Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest

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 change the type of a Field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest

Returns a new instance of GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest.



820
821
822
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 820

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

Instance Attribute Details

#date_optionsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldDateOptions

Options for the date field type. Corresponds to the JSON property dateOptions



786
787
788
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 786

def date_options
  @date_options
end

#idString

Required. The Field to update. Corresponds to the JSON property id

Returns:

  • (String)


791
792
793
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 791

def id
  @id
end

#integer_optionsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldIntegerOptions

Options for the Integer field type. Corresponds to the JSON property integerOptions



796
797
798
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 796

def integer_options
  @integer_options
end

#selection_optionsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSelectionOptions

Options for the selection field type. Corresponds to the JSON property selectionOptions



801
802
803
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 801

def selection_options
  @selection_options
end

#text_optionsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldTextOptions

Options for the Text field type. Corresponds to the JSON property textOptions



806
807
808
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 806

def text_options
  @text_options
end

#update_maskString

The fields that should be updated. At least one field must be specified. The root of type_options is implied and should not be specified. A single * can be used as short-hand for updating every field. Corresponds to the JSON property updateMask

Returns:

  • (String)


813
814
815
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 813

def update_mask
  @update_mask
end

#user_optionsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldUserOptions

Options for the user field type. Corresponds to the JSON property userOptions



818
819
820
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 818

def user_options
  @user_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



825
826
827
828
829
830
831
832
833
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 825

def update!(**args)
  @date_options = args[:date_options] if args.key?(:date_options)
  @id = args[:id] if args.key?(:id)
  @integer_options = args[:integer_options] if args.key?(:integer_options)
  @selection_options = args[:selection_options] if args.key?(:selection_options)
  @text_options = args[:text_options] if args.key?(:text_options)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
  @user_options = args[:user_options] if args.key?(:user_options)
end