Class: Google::Apis::SasportalV1alpha1::SasPortalAssignment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#membersArray<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

Returns:

  • (Array<String>)


35
36
37
# File 'generated/google/apis/sasportal_v1alpha1/classes.rb', line 35

def members
  @members
end

#roleString

Required. Role that is assigned to members. Corresponds to the JSON property role

Returns:

  • (String)


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