Reference documentation and code samples for the Google Cloud Asset V1 Client class IamPolicyAnalysisQuery.
IAM policy analysis query message.
Generated from protobuf messagegoogle.cloud.asset.v1.IamPolicyAnalysisQuery
Namespace
Google \ Cloud \ Asset \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ scope
string
Required. The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This 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"). To know how to get organization ID, visithere. To know how to get folder or project ID, visithere.
Optional. The hypothetical context for IAM conditions evaluation.
getScope
Required. The relative name of the root asset. Only resources and IAM
policies within the scope will be analyzed.
This 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").
To know how to get organization ID, visithere.
To know how to get folder or project ID, visithere.
Returns
Type
Description
string
setScope
Required. The relative name of the root asset. Only resources and IAM
policies within the scope will be analyzed.
This 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").
To know how to get organization ID, visithere.
To know how to get folder or project ID, visithere.
[[["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,["# Google Cloud Asset V1 Client - Class IamPolicyAnalysisQuery (2.2.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.3 (latest)](/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisQuery)\n- [2.2.2](/php/docs/reference/cloud-asset/2.2.2/V1.IamPolicyAnalysisQuery)\n- [2.1.3](/php/docs/reference/cloud-asset/2.1.3/V1.IamPolicyAnalysisQuery)\n- [2.0.1](/php/docs/reference/cloud-asset/2.0.1/V1.IamPolicyAnalysisQuery)\n- [1.16.4](/php/docs/reference/cloud-asset/1.16.4/V1.IamPolicyAnalysisQuery)\n- [1.14.1](/php/docs/reference/cloud-asset/1.14.1/V1.IamPolicyAnalysisQuery)\n- [1.13.2](/php/docs/reference/cloud-asset/1.13.2/V1.IamPolicyAnalysisQuery)\n- [1.12.2](/php/docs/reference/cloud-asset/1.12.2/V1.IamPolicyAnalysisQuery)\n- [1.11.3](/php/docs/reference/cloud-asset/1.11.3/V1.IamPolicyAnalysisQuery)\n- [1.10.2](/php/docs/reference/cloud-asset/1.10.2/V1.IamPolicyAnalysisQuery)\n- [1.9.2](/php/docs/reference/cloud-asset/1.9.2/V1.IamPolicyAnalysisQuery) \nReference documentation and code samples for the Google Cloud Asset V1 Client class IamPolicyAnalysisQuery.\n\nIAM policy analysis query message.\n\nGenerated from protobuf message `google.cloud.asset.v1.IamPolicyAnalysisQuery`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Asset \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getScope\n\nRequired. The relative name of the root asset. Only resources and IAM\npolicies within the scope will be analyzed.\n\nThis can only be an organization number (such as \"organizations/123\"), a\nfolder number (such as \"folders/123\"), a project ID (such as\n\"projects/my-project-id\"), or a project number (such as \"projects/12345\").\nTo know how to get organization ID, visit [here](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).\nTo know how to get folder or project ID, visit [here](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).\n\n### setScope\n\nRequired. The relative name of the root asset. Only resources and IAM\npolicies within the scope will be analyzed.\n\nThis can only be an organization number (such as \"organizations/123\"), a\nfolder number (such as \"folders/123\"), a project ID (such as\n\"projects/my-project-id\"), or a project number (such as \"projects/12345\").\nTo know how to get organization ID, visit [here](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).\nTo know how to get folder or project ID, visit [here](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).\n\n### getResourceSelector\n\nOptional. Specifies a resource for analysis.\n\n### hasResourceSelector\n\n### clearResourceSelector\n\n### setResourceSelector\n\nOptional. Specifies a resource for analysis.\n\n### getIdentitySelector\n\nOptional. Specifies an identity for analysis.\n\n### hasIdentitySelector\n\n### clearIdentitySelector\n\n### setIdentitySelector\n\nOptional. Specifies an identity for analysis.\n\n### getAccessSelector\n\nOptional. Specifies roles or permissions for analysis. This is optional.\n\n### hasAccessSelector\n\n### clearAccessSelector\n\n### setAccessSelector\n\nOptional. Specifies roles or permissions for analysis. This is optional.\n\n### getOptions\n\nOptional. The query options.\n\n### hasOptions\n\n### clearOptions\n\n### setOptions\n\nOptional. The query options.\n\n### getConditionContext\n\nOptional. The hypothetical context for IAM conditions evaluation.\n\n### hasConditionContext\n\n### clearConditionContext\n\n### setConditionContext\n\nOptional. The hypothetical context for IAM conditions evaluation."]]