Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest

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

Instance Method Summary collapse

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

#nameString

Required. Label Permission resource name. Corresponds to the JSON property name

Returns:

  • (String)


383
384
385
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 383

def name
  @name
end

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

Returns:

  • (Boolean)


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