Class: Google::Apis::CloudassetV1p4beta1::IdentitySelector

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

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.

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) ⇒ IdentitySelector

Returns a new instance of IdentitySelector.



692
693
694
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 692

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

Instance Attribute Details

#identityString

Required. The identity appear in the form of members in IAM policy binding. Corresponds to the JSON property identity

Returns:

  • (String)


690
691
692
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 690

def identity
  @identity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



697
698
699
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 697

def update!(**args)
  @identity = args[:identity] if args.key?(:identity)
end