Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest

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 one of more Label Permissions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest

Returns a new instance of GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest.



277
278
279
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 277

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#requestsArray<Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest>

Required. The request message specifying the resources to update. Corresponds to the JSON property requests



266
267
268
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 266

def requests
  @requests
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. If this is set, the use_admin_access field in the DeleteLabelPermissionRequest messages must either be empty or match this field. Corresponds to the JSON property useAdminAccess

Returns:

  • (Boolean)


274
275
276
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 274

def use_admin_access
  @use_admin_access
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



282
283
284
285
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 282

def update!(**args)
  @requests = args[:requests] if args.key?(:requests)
  @use_admin_access = args[:use_admin_access] if args.key?(:use_admin_access)
end