Class: Google::Apis::CloudassetV1p4beta1::IdentitySelector
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1p4beta1::IdentitySelector
- 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
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
-
#identity ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IdentitySelector
constructor
A new instance of IdentitySelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IdentitySelector
Returns a new instance of IdentitySelector.
2209 2210 2211 |
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 2209 def initialize(**args) update!(**args) end |
Instance Attribute Details
#identity ⇒ String
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
2207 2208 2209 |
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 2207 def identity @identity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2214 2215 2216 |
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 2214 def update!(**args) @identity = args[:identity] if args.key?(:identity) end |