Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest

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

Updates one or more Label Permissions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest

Returns a new instance of GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest.



306
307
308
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 306

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

Instance Attribute Details

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

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



295
296
297
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 295

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 UpdateLabelPermissionRequest messages must either be empty or match this field. Corresponds to the JSON property useAdminAccess

Returns:

  • (Boolean)


303
304
305
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 303

def use_admin_access
  @use_admin_access
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



311
312
313
314
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 311

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