Class IamPolicyAnalysisQuery (3.8.1)

IamPolicyAnalysisQuery(mapping=None, *, ignore_unknown_fields=False, **kwargs)

IAM policy analysis query message.

Attributes

NameDescription
parent str
Required. The relative name of the root asset. Only resources and IAM policies within the parent will be analyzed. This can only be an organization number (such as "organizations/123") or a folder number (such as "folders/123").
resource_selector google.cloud.asset_v1p4beta1.types.IamPolicyAnalysisQuery.ResourceSelector
Optional. Specifies a resource for analysis. Leaving it empty means ANY.
identity_selector google.cloud.asset_v1p4beta1.types.IamPolicyAnalysisQuery.IdentitySelector
Optional. Specifies an identity for analysis. Leaving it empty means ANY.
access_selector google.cloud.asset_v1p4beta1.types.IamPolicyAnalysisQuery.AccessSelector
Optional. Specifies roles or permissions for analysis. Leaving it empty means ANY.

Classes

AccessSelector

AccessSelector(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specifies roles and/or permissions to analyze, to determine both the identities possessing them and the resources they control. If multiple values are specified, results will include identities and resources matching any of them.

IdentitySelector

IdentitySelector(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specifies an identity for which to determine resource access, based on roles assigned either directly to them or to the groups they belong to, directly or indirectly.

ResourceSelector

ResourceSelector(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specifies the resource to analyze for access policies, which may be set directly on the resource, or on ancestors such as organizations, folders or projects. At least one of ResourceSelector, IdentitySelector or AccessSelector must be specified in a request.