Class: Google::Apis::CloudassetV1::IdentitySelector

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

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

Constructor Details

#initialize(**args) ⇒ IdentitySelector

Returns a new instance of IdentitySelector.



2446
2447
2448
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2446

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

Instance Attribute Details

#identityString

Required. The identity appear in the form of members in IAM policy binding. The examples of supported forms are: "user:mike@example.com", "group:admins@example.com", " domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity. Corresponds to the JSON property identity

Returns:

  • (String)


2444
2445
2446
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2444

def identity
  @identity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2451
2452
2453
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 2451

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