Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest

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

Request to create a Selection Choice.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest

Returns a new instance of GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest.



488
489
490
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 488

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

Instance Attribute Details

#choiceGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice

Selection field choice. Corresponds to the JSON property choice



481
482
483
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 481

def choice
  @choice
end

#field_idString

Required. The Selection Field in which a Choice will be created. Corresponds to the JSON property fieldId

Returns:

  • (String)


486
487
488
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 486

def field_id
  @field_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



493
494
495
496
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 493

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