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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SasPortalAssignment
Returns a new instance of SasPortalAssignment.
44 45 46 |
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 44 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 propertymembers
37 38 39 |
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 37 def members @members end |
#role ⇒ String
Required. Role that is assigned to members
.
Corresponds to the JSON property role
42 43 44 |
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 42 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
49 50 51 52 |
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 49 def update!(**args) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end |