Class: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1p4beta1/classes.rb,
lib/google/apis/cloudasset_v1p4beta1/representations.rb,
lib/google/apis/cloudasset_v1p4beta1/representations.rb
Overview
IAM policy analysis query message.
Instance Attribute Summary collapse
-
#access_selector ⇒ Google::Apis::CloudassetV1p4beta1::AccessSelector
Specifies roles and/or permissions to analyze, to determine both the identities possessing them and the resources they control.
-
#identity_selector ⇒ Google::Apis::CloudassetV1p4beta1::IdentitySelector
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.
-
#parent ⇒ String
Required.
-
#resource_selector ⇒ Google::Apis::CloudassetV1p4beta1::ResourceSelector
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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IamPolicyAnalysisQuery
constructor
A new instance of IamPolicyAnalysisQuery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IamPolicyAnalysisQuery
Returns a new instance of IamPolicyAnalysisQuery.
2085 2086 2087 |
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 2085 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_selector ⇒ Google::Apis::CloudassetV1p4beta1::AccessSelector
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. The total number of roles and permissions should be equal or less than
10.
Corresponds to the JSON property accessSelector
2056 2057 2058 |
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 2056 def access_selector @access_selector end |
#identity_selector ⇒ Google::Apis::CloudassetV1p4beta1::IdentitySelector
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.
Corresponds to the JSON property identitySelector
2063 2064 2065 |
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 2063 def identity_selector @identity_selector end |
#parent ⇒ String
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"), 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, visit here . To know how to get folder or project id,
visit here .
Corresponds to the JSON property parent
2076 2077 2078 |
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 2076 def parent @parent end |
#resource_selector ⇒ Google::Apis::CloudassetV1p4beta1::ResourceSelector
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.
Corresponds to the JSON property resourceSelector
2083 2084 2085 |
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 2083 def resource_selector @resource_selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2090 2091 2092 2093 2094 2095 |
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 2090 def update!(**args) @access_selector = args[:access_selector] if args.key?(:access_selector) @identity_selector = args[:identity_selector] if args.key?(:identity_selector) @parent = args[:parent] if args.key?(:parent) @resource_selector = args[:resource_selector] if args.key?(:resource_selector) end |