Class: Google::Apis::SasportalV1alpha1::SasPortalAssignment
- Inherits:
-
Object
- Object
- Google::Apis::SasportalV1alpha1::SasPortalAssignment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sasportal_v1alpha1/classes.rb,
generated/google/apis/sasportal_v1alpha1/representations.rb,
generated/google/apis/sasportal_v1alpha1/representations.rb
Overview
Associates members
with a role
.
Instance Attribute Summary collapse
-
#members ⇒ Array<String>
The identities the role is assigned to.
-
#role ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SasPortalAssignment
constructor
A new instance of SasPortalAssignment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SasPortalAssignment
Returns a new instance of SasPortalAssignment.
42 43 44 |
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 42 def initialize(**args) update!(**args) end |
Instance Attribute Details
#members ⇒ Array<String>
The identities the role is assigned to. It can have the following values: *
user_email
: An email address that represents a specific Google account. For
example: alice@gmail.com
. * group_email
: An email address that
represents a Google group. For example, viewers@gmail.com
.
Corresponds to the JSON property members
35 36 37 |
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 35 def members @members end |
#role ⇒ String
Required. Role that is assigned to members
.
Corresponds to the JSON property role
40 41 42 |
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 40 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47 48 49 50 |
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 47 def update!(**args) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end |