Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::CreateSavedQueryRequest.
Request to create a saved query.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#parent
defparent()->::String
Returns
(::String) — Required. The name of the project/folder/organization where this
saved_query should be created in. It can only be an organization number
(such as "organizations/123"), a folder number (such as "folders/123"), a
project ID (such as "projects/my-project-id"), or a project number (such as
"projects/12345").
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The name of the project/folder/organization where this
saved_query should be created in. It can only be an organization number
(such as "organizations/123"), a folder number (such as "folders/123"), a
project ID (such as "projects/my-project-id"), or a project number (such as
"projects/12345").
Returns
(::String) — Required. The name of the project/folder/organization where this
saved_query should be created in. It can only be an organization number
(such as "organizations/123"), a folder number (such as "folders/123"), a
project ID (such as "projects/my-project-id"), or a project number (such as
"projects/12345").
(::Google::Cloud::Asset::V1::SavedQuery) — Required. The saved_query details. The name field must be empty as it
will be generated based on the parent and saved_query_id.
value (::Google::Cloud::Asset::V1::SavedQuery) — Required. The saved_query details. The name field must be empty as it
will be generated based on the parent and saved_query_id.
Returns
(::Google::Cloud::Asset::V1::SavedQuery) — Required. The saved_query details. The name field must be empty as it
will be generated based on the parent and saved_query_id.
#saved_query_id
defsaved_query_id()->::String
Returns
(::String) — Required. The ID to use for the saved query, which must be unique in the
specified parent. It will become the final component of the saved query's
resource name.
This value should be 4-63 characters, and valid characters
are [a-z][0-9]-.
Notice that this field is required in the saved query creation, and the
name field of the saved_query will be ignored.
#saved_query_id=
defsaved_query_id=(value)->::String
Parameter
value (::String) — Required. The ID to use for the saved query, which must be unique in the
specified parent. It will become the final component of the saved query's
resource name.
This value should be 4-63 characters, and valid characters
are [a-z][0-9]-.
Notice that this field is required in the saved query creation, and the
name field of the saved_query will be ignored.
Returns
(::String) — Required. The ID to use for the saved query, which must be unique in the
specified parent. It will become the final component of the saved query's
resource name.
This value should be 4-63 characters, and valid characters
are [a-z][0-9]-.
Notice that this field is required in the saved query creation, and the
name field of the saved_query will be ignored.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Asset V1 API - Class Google::Cloud::Asset::V1::CreateSavedQueryRequest (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [1.4.0](/ruby/docs/reference/google-cloud-asset-v1/1.4.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [1.3.1](/ruby/docs/reference/google-cloud-asset-v1/1.3.1/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-asset-v1/1.2.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-asset-v1/1.1.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [1.0.2](/ruby/docs/reference/google-cloud-asset-v1/1.0.2/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.32.0](/ruby/docs/reference/google-cloud-asset-v1/0.32.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.31.0](/ruby/docs/reference/google-cloud-asset-v1/0.31.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.30.0](/ruby/docs/reference/google-cloud-asset-v1/0.30.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.29.3](/ruby/docs/reference/google-cloud-asset-v1/0.29.3/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.28.1](/ruby/docs/reference/google-cloud-asset-v1/0.28.1/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.27.0](/ruby/docs/reference/google-cloud-asset-v1/0.27.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.26.1](/ruby/docs/reference/google-cloud-asset-v1/0.26.1/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.25.0](/ruby/docs/reference/google-cloud-asset-v1/0.25.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.24.0](/ruby/docs/reference/google-cloud-asset-v1/0.24.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.23.0](/ruby/docs/reference/google-cloud-asset-v1/0.23.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.22.0](/ruby/docs/reference/google-cloud-asset-v1/0.22.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.21.1](/ruby/docs/reference/google-cloud-asset-v1/0.21.1/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.20.1](/ruby/docs/reference/google-cloud-asset-v1/0.20.1/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.19.0](/ruby/docs/reference/google-cloud-asset-v1/0.19.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-asset-v1/0.18.0/Google-Cloud-Asset-V1-CreateSavedQueryRequest)\n- [0.17.3](/ruby/docs/reference/google-cloud-asset-v1/0.17.3/Google-Cloud-Asset-V1-CreateSavedQueryRequest) \nReference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::CreateSavedQueryRequest.\n\nRequest to create a saved query. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The name of the project/folder/organization where this saved_query should be created in. It can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\").\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The name of the project/folder/organization where this saved_query should be created in. It can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\"). \n**Returns**\n\n- (::String) --- Required. The name of the project/folder/organization where this saved_query should be created in. It can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\").\n\n### #saved_query\n\n def saved_query() -\u003e ::Google::Cloud::Asset::V1::SavedQuery\n\n**Returns**\n\n- ([::Google::Cloud::Asset::V1::SavedQuery](./Google-Cloud-Asset-V1-SavedQuery)) --- Required. The saved_query details. The `name` field must be empty as it will be generated based on the parent and saved_query_id.\n\n### #saved_query=\n\n def saved_query=(value) -\u003e ::Google::Cloud::Asset::V1::SavedQuery\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Asset::V1::SavedQuery](./Google-Cloud-Asset-V1-SavedQuery)) --- Required. The saved_query details. The `name` field must be empty as it will be generated based on the parent and saved_query_id. \n**Returns**\n\n- ([::Google::Cloud::Asset::V1::SavedQuery](./Google-Cloud-Asset-V1-SavedQuery)) --- Required. The saved_query details. The `name` field must be empty as it will be generated based on the parent and saved_query_id.\n\n### #saved_query_id\n\n def saved_query_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The ID to use for the saved query, which must be unique in the specified parent. It will become the final component of the saved query's resource name.\n\n This value should be 4-63 characters, and valid characters\n are `[a-z][0-9]-`.\n\n Notice that this field is required in the saved query creation, and the\n `name` field of the `saved_query` will be ignored.\n\n### #saved_query_id=\n\n def saved_query_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The ID to use for the saved query, which must be unique in the specified parent. It will become the final component of the saved query's resource name.\n\n\n This value should be 4-63 characters, and valid characters\n are `[a-z][0-9]-`.\n\n Notice that this field is required in the saved query creation, and the\n`name` field of the `saved_query` will be ignored. \n**Returns**\n\n- (::String) --- Required. The ID to use for the saved query, which must be unique in the specified parent. It will become the final component of the saved query's resource name.\n\n This value should be 4-63 characters, and valid characters\n are `[a-z][0-9]-`.\n\n Notice that this field is required in the saved query creation, and the\n `name` field of the `saved_query` will be ignored."]]