Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest

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

The set of requests for updating aspects of a Label. If any request is not valid, no requests will be applied.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest

Returns a new instance of GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest.



439
440
441
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 439

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

Instance Attribute Details

#language_codeString

The BCP-47 language code to use for evaluating localized Field labels when include_label_in_response is true. Corresponds to the JSON property languageCode

Returns:

  • (String)


412
413
414
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 412

def language_code
  @language_code
end

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

A list of updates to apply to the Label. Requests will be applied in the order they are specified. Corresponds to the JSON property requests



418
419
420
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 418

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. Corresponds to the JSON property useAdminAccess

Returns:

  • (Boolean)


424
425
426
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 424

def use_admin_access
  @use_admin_access
end

#viewString

When specified, only certain fields belonging to the indicated view will be returned. Corresponds to the JSON property view

Returns:

  • (String)


431
432
433
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 431

def view
  @view
end

#write_controlGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaWriteControl

Provides control over how write requests are executed. When not specified, the last write wins. Corresponds to the JSON property writeControl



437
438
439
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 437

def write_control
  @write_control
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



444
445
446
447
448
449
450
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 444

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