Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest
- 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
Updates a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
Instance Attribute Summary collapse
-
#label_permission ⇒ Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission
The permission that applies to a principal (user, group, audience) on a label.
-
#parent ⇒ String
Required.
-
#use_admin_access ⇒ Boolean
(also: #use_admin_access?)
Set to
true
in order to use the user's admin credentials.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest
constructor
A new instance of GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest
Returns a new instance of GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest.
3061 3062 3063 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3061 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label_permission ⇒ Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission
The permission that applies to a principal (user, group, audience) on a label.
Corresponds to the JSON property labelPermission
3047 3048 3049 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3047 def @label_permission end |
#parent ⇒ String
Required. The parent Label resource name.
Corresponds to the JSON property parent
3052 3053 3054 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3052 def parent @parent end |
#use_admin_access ⇒ Boolean Also known as: use_admin_access?
Set to true
in order to use the user's admin credentials. The server will
verify the user is an admin for the Label before allowing access.
Corresponds to the JSON property useAdminAccess
3058 3059 3060 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3058 def use_admin_access @use_admin_access end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3066 3067 3068 3069 3070 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3066 def update!(**args) @label_permission = args[:label_permission] if args.key?(:label_permission) @parent = args[:parent] if args.key?(:parent) @use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access) end |