Class: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery

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

Overview

IAM policy analysis query message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IamPolicyAnalysisQuery

Returns a new instance of IamPolicyAnalysisQuery.



618
619
620
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 618

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

Instance Attribute Details

#access_selectorGoogle::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. Corresponds to the JSON property accessSelector



593
594
595
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 593

def access_selector
  @access_selector
end

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



600
601
602
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 600

def identity_selector
  @identity_selector
end

#parentString

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"). Corresponds to the JSON property parent

Returns:

  • (String)


608
609
610
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 608

def parent
  @parent
end

#resource_selectorGoogle::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. At least one of ResourceSelector, IdentitySelector or AccessSelector must be specified in a request. Corresponds to the JSON property resourceSelector



616
617
618
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 616

def resource_selector
  @resource_selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



623
624
625
626
627
628
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 623

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