Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drivelabels_v2beta/classes.rb,
lib/google/apis/drivelabels_v2beta/representations.rb,
lib/google/apis/drivelabels_v2beta/representations.rb
Overview
The permission that applies to a principal (user, group, audience) on a label.
Instance Attribute Summary collapse
-
#audience ⇒ String
Audience to grant a role to.
-
#email ⇒ String
Specifies the email address for a user or group pricinpal.
-
#group ⇒ String
Group resource name.
-
#name ⇒ String
Resource name of this permission.
-
#person ⇒ String
Person resource name.
-
#role ⇒ String
The role the principal should have.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelPermission
constructor
A new instance of GoogleAppsDriveLabelsV2betaLabelPermission.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelPermission
Returns a new instance of GoogleAppsDriveLabelsV2betaLabelPermission.
2622 2623 2624 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2622 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audience ⇒ String
Audience to grant a role to. The magic value of audiences/default
may be
used to apply the role to the default audience in the context of the
organization that owns the Label.
Corresponds to the JSON property audience
2592 2593 2594 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2592 def audience @audience end |
#email ⇒ String
Specifies the email address for a user or group pricinpal. Not populated for
audience principals. User and Group permissions may only be inserted using
email address. On update requests, if email address is specified, no principal
should be specified.
Corresponds to the JSON property email
2600 2601 2602 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2600 def email @email end |
#group ⇒ String
Group resource name.
Corresponds to the JSON property group
2605 2606 2607 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2605 def group @group end |
#name ⇒ String
Resource name of this permission.
Corresponds to the JSON property name
2610 2611 2612 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2610 def name @name end |
#person ⇒ String
Person resource name.
Corresponds to the JSON property person
2615 2616 2617 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2615 def person @person end |
#role ⇒ String
The role the principal should have.
Corresponds to the JSON property role
2620 2621 2622 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2620 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2627 2628 2629 2630 2631 2632 2633 2634 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2627 def update!(**args) @audience = args[:audience] if args.key?(:audience) @email = args[:email] if args.key?(:email) @group = args[:group] if args.key?(:group) @name = args[:name] if args.key?(:name) @person = args[:person] if args.key?(:person) @role = args[:role] if args.key?(:role) end |