If this field is set with a value less than the RPC deadline, and the
execution of your query hasn't finished in the specified
execution timeout, you will get a response with partial result.
Otherwise, your query's execution will continue until the RPC deadline.
If it's not finished until then, you will get a DEADLINE_EXCEEDED error.
If this field is set with a value less than the RPC deadline, and the
execution of your query hasn't finished in the specified
execution timeout, you will get a response with partial result.
Otherwise, your query's execution will continue until the RPC deadline.
If it's not finished until then, you will get a DEADLINE_EXCEEDED error.
If this field is set with a value less than the RPC deadline, and the
execution of your query hasn't finished in the specified
execution timeout, you will get a response with partial result.
Otherwise, your query's execution will continue until the RPC deadline.
If it's not finished until then, you will get a DEADLINE_EXCEEDED error.
Default is empty.
#saved_analysis_query
defsaved_analysis_query()->::String
Returns
(::String) — Optional. The name of a saved query, which must be in the format of:
If both analysis_query and saved_analysis_query are provided, they
will be merged together with the saved_analysis_query as base and
the analysis_query as overrides. For more details of the merge behavior,
refer to the
MergeFrom
page.
Note that you cannot override primitive fields with default value, such as
0 or empty string, etc., because we use proto3, which doesn't support field
presence yet.
#saved_analysis_query=
defsaved_analysis_query=(value)->::String
Parameter
value (::String) — Optional. The name of a saved query, which must be in the format of:
If both analysis_query and saved_analysis_query are provided, they
will be merged together with the saved_analysis_query as base and
the analysis_query as overrides. For more details of the merge behavior,
refer to the
MergeFrom
page.
Note that you cannot override primitive fields with default value, such as
0 or empty string, etc., because we use proto3, which doesn't support field
presence yet.
Returns
(::String) — Optional. The name of a saved query, which must be in the format of:
If both analysis_query and saved_analysis_query are provided, they
will be merged together with the saved_analysis_query as base and
the analysis_query as overrides. For more details of the merge behavior,
refer to the
MergeFrom
page.
Note that you cannot override primitive fields with default value, such as
0 or empty string, etc., because we use proto3, which doesn't support field
presence yet.
[[["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-04 UTC."],[],[],null,["# Cloud Asset V1 API - Class Google::Cloud::Asset::V1::AnalyzeIamPolicyRequest (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-AnalyzeIamPolicyRequest)\n- [1.4.0](/ruby/docs/reference/google-cloud-asset-v1/1.4.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [1.3.1](/ruby/docs/reference/google-cloud-asset-v1/1.3.1/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-asset-v1/1.2.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-asset-v1/1.1.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [1.0.2](/ruby/docs/reference/google-cloud-asset-v1/1.0.2/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.32.0](/ruby/docs/reference/google-cloud-asset-v1/0.32.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.31.0](/ruby/docs/reference/google-cloud-asset-v1/0.31.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.30.0](/ruby/docs/reference/google-cloud-asset-v1/0.30.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.29.3](/ruby/docs/reference/google-cloud-asset-v1/0.29.3/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.28.1](/ruby/docs/reference/google-cloud-asset-v1/0.28.1/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.27.0](/ruby/docs/reference/google-cloud-asset-v1/0.27.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.26.1](/ruby/docs/reference/google-cloud-asset-v1/0.26.1/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.25.0](/ruby/docs/reference/google-cloud-asset-v1/0.25.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.24.0](/ruby/docs/reference/google-cloud-asset-v1/0.24.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.23.0](/ruby/docs/reference/google-cloud-asset-v1/0.23.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.22.0](/ruby/docs/reference/google-cloud-asset-v1/0.22.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.21.1](/ruby/docs/reference/google-cloud-asset-v1/0.21.1/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.20.1](/ruby/docs/reference/google-cloud-asset-v1/0.20.1/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.19.0](/ruby/docs/reference/google-cloud-asset-v1/0.19.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-asset-v1/0.18.0/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest)\n- [0.17.3](/ruby/docs/reference/google-cloud-asset-v1/0.17.3/Google-Cloud-Asset-V1-AnalyzeIamPolicyRequest) \nReference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::AnalyzeIamPolicyRequest.\n\nA request message for\n[AssetService.AnalyzeIamPolicy](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AssetService-Client#Google__Cloud__Asset__V1__AssetService__Client_analyze_iam_policy_instance_ \"Google::Cloud::Asset::V1::AssetService::Client#analyze_iam_policy (method)\"). \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### #analysis_query\n\n def analysis_query() -\u003e ::Google::Cloud::Asset::V1::IamPolicyAnalysisQuery\n\n**Returns**\n\n- ([::Google::Cloud::Asset::V1::IamPolicyAnalysisQuery](./Google-Cloud-Asset-V1-IamPolicyAnalysisQuery)) --- Required. The request query.\n\n### #analysis_query=\n\n def analysis_query=(value) -\u003e ::Google::Cloud::Asset::V1::IamPolicyAnalysisQuery\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Asset::V1::IamPolicyAnalysisQuery](./Google-Cloud-Asset-V1-IamPolicyAnalysisQuery)) --- Required. The request query. \n**Returns**\n\n- ([::Google::Cloud::Asset::V1::IamPolicyAnalysisQuery](./Google-Cloud-Asset-V1-IamPolicyAnalysisQuery)) --- Required. The request query.\n\n### #execution_timeout\n\n def execution_timeout() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. Amount of time executable has to complete. See JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).\n\n\n If this field is set with a value less than the RPC deadline, and the\n execution of your query hasn't finished in the specified\n execution timeout, you will get a response with partial result.\n Otherwise, your query's execution will continue until the RPC deadline.\n If it's not finished until then, you will get a DEADLINE_EXCEEDED error.\n\n Default is empty.\n\n### #execution_timeout=\n\n def execution_timeout=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. Amount of time executable has to complete. See JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).\n\n\n If this field is set with a value less than the RPC deadline, and the\n execution of your query hasn't finished in the specified\n execution timeout, you will get a response with partial result.\n Otherwise, your query's execution will continue until the RPC deadline.\n If it's not finished until then, you will get a DEADLINE_EXCEEDED error.\n\nDefault is empty. \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Optional. Amount of time executable has to complete. See JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).\n\n\n If this field is set with a value less than the RPC deadline, and the\n execution of your query hasn't finished in the specified\n execution timeout, you will get a response with partial result.\n Otherwise, your query's execution will continue until the RPC deadline.\n If it's not finished until then, you will get a DEADLINE_EXCEEDED error.\n\n Default is empty.\n\n### #saved_analysis_query\n\n def saved_analysis_query() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The name of a saved query, which must be in the format of:\n\n - projects/project_number/savedQueries/saved_query_id\n - folders/folder_number/savedQueries/saved_query_id\n - organizations/organization_number/savedQueries/saved_query_id\n\n If both `analysis_query` and `saved_analysis_query` are provided, they\n will be merged together with the `saved_analysis_query` as base and\n the `analysis_query` as overrides. For more details of the merge behavior,\n refer to the\n [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)\n page.\n\n Note that you cannot override primitive fields with default value, such as\n 0 or empty string, etc., because we use proto3, which doesn't support field\n presence yet.\n\n### #saved_analysis_query=\n\n def saved_analysis_query=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The name of a saved query, which must be in the format of:\n\n\n - projects/project_number/savedQueries/saved_query_id\n - folders/folder_number/savedQueries/saved_query_id\n - organizations/organization_number/savedQueries/saved_query_id\n\n If both `analysis_query` and `saved_analysis_query` are provided, they\n will be merged together with the `saved_analysis_query` as base and\n the `analysis_query` as overrides. For more details of the merge behavior,\n refer to the\n [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)\n page.\n\n Note that you cannot override primitive fields with default value, such as\n 0 or empty string, etc., because we use proto3, which doesn't support field\npresence yet. \n**Returns**\n\n- (::String) --- Optional. The name of a saved query, which must be in the format of:\n\n - projects/project_number/savedQueries/saved_query_id\n - folders/folder_number/savedQueries/saved_query_id\n - organizations/organization_number/savedQueries/saved_query_id\n\n If both `analysis_query` and `saved_analysis_query` are provided, they\n will be merged together with the `saved_analysis_query` as base and\n the `analysis_query` as overrides. For more details of the merge behavior,\n refer to the\n [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)\n page.\n\n Note that you cannot override primitive fields with default value, such as\n 0 or empty string, etc., because we use proto3, which doesn't support field\n presence yet."]]