Class: Google::Apis::CloudassetV1::IamPolicyAnalysisQuery

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudasset_v1/classes.rb,
generated/google/apis/cloudasset_v1/representations.rb,
generated/google/apis/cloudasset_v1/representations.rb

Overview

LINT.IfChange Keep in sync with ## logs/proto/cloud_asset_inventory/

iam_policy_analyzer_log.proto IAM policy analysis query message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IamPolicyAnalysisQuery

Returns a new instance of IamPolicyAnalysisQuery.



2266
2267
2268
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2266

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#access_selectorGoogle::Apis::CloudassetV1::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 roles or permissions matching any of them. The total number of roles and permissions should be equal or less than 10. Corresponds to the JSON property accessSelector



2232
2233
2234
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2232

def access_selector
  @access_selector
end

#identity_selectorGoogle::Apis::CloudassetV1::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



2239
2240
2241
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2239

def identity_selector
  @identity_selector
end

#optionsGoogle::Apis::CloudassetV1::Options

Contains query options. Corresponds to the JSON property options



2244
2245
2246
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2244

def options
  @options
end

#resource_selectorGoogle::Apis::CloudassetV1::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



2251
2252
2253
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2251

def resource_selector
  @resource_selector
end

#scopeString

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, visit here . To know how to get folder or project id, visit here . Corresponds to the JSON property scope

Returns:

  • (String)


2264
2265
2266
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2264

def scope
  @scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2271
2272
2273
2274
2275
2276
2277
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2271

def update!(**args)
  @access_selector = args[:access_selector] if args.key?(:access_selector)
  @identity_selector = args[:identity_selector] if args.key?(:identity_selector)
  @options = args[:options] if args.key?(:options)
  @resource_selector = args[:resource_selector] if args.key?(:resource_selector)
  @scope = args[:scope] if args.key?(:scope)
end