Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest
- 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
Deletes a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
Instance Attribute Summary collapse
-
#name ⇒ 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) ⇒ GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest
constructor
A new instance of GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest
Returns a new instance of GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest.
392 393 394 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 392 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. Label Permission resource name.
Corresponds to the JSON property name
383 384 385 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 383 def name @name 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
389 390 391 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 389 def use_admin_access @use_admin_access end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
397 398 399 400 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 397 def update!(**args) @name = args[:name] if args.key?(:name) @use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access) end |