Class: Google::Apis::DriveV3::LabelFieldModification

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb

Overview

A modification to a label's field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LabelFieldModification

Returns a new instance of LabelFieldModification.



2710
2711
2712
# File 'lib/google/apis/drive_v3/classes.rb', line 2710

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

Instance Attribute Details

#field_idString

The ID of the field to be modified. Corresponds to the JSON property fieldId

Returns:

  • (String)


2670
2671
2672
# File 'lib/google/apis/drive_v3/classes.rb', line 2670

def field_id
  @field_id
end

#kindString

This is always drive#labelFieldModification. Corresponds to the JSON property kind

Returns:

  • (String)


2675
2676
2677
# File 'lib/google/apis/drive_v3/classes.rb', line 2675

def kind
  @kind
end

#set_date_valuesArray<Date>

Replaces the value of a dateString Field with these new values. The string must be in the RFC 3339 full-date format: YYYY-MM-DD. Corresponds to the JSON property setDateValues

Returns:

  • (Array<Date>)


2681
2682
2683
# File 'lib/google/apis/drive_v3/classes.rb', line 2681

def set_date_values
  @set_date_values
end

#set_integer_valuesArray<Fixnum>

Replaces the value of an integer field with these new values. Corresponds to the JSON property setIntegerValues

Returns:

  • (Array<Fixnum>)


2686
2687
2688
# File 'lib/google/apis/drive_v3/classes.rb', line 2686

def set_integer_values
  @set_integer_values
end

#set_selection_valuesArray<String>

Replaces a selection field with these new values. Corresponds to the JSON property setSelectionValues

Returns:

  • (Array<String>)


2691
2692
2693
# File 'lib/google/apis/drive_v3/classes.rb', line 2691

def set_selection_values
  @set_selection_values
end

#set_text_valuesArray<String>

Sets the value of a text field. Corresponds to the JSON property setTextValues

Returns:

  • (Array<String>)


2696
2697
2698
# File 'lib/google/apis/drive_v3/classes.rb', line 2696

def set_text_values
  @set_text_values
end

#set_user_valuesArray<String>

Replaces a user field with these new values. The values must be valid email addresses. Corresponds to the JSON property setUserValues

Returns:

  • (Array<String>)


2702
2703
2704
# File 'lib/google/apis/drive_v3/classes.rb', line 2702

def set_user_values
  @set_user_values
end

#unset_valuesBoolean Also known as: unset_values?

Unsets the values for this field. Corresponds to the JSON property unsetValues

Returns:

  • (Boolean)


2707
2708
2709
# File 'lib/google/apis/drive_v3/classes.rb', line 2707

def unset_values
  @unset_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
# File 'lib/google/apis/drive_v3/classes.rb', line 2715

def update!(**args)
  @field_id = args[:field_id] if args.key?(:field_id)
  @kind = args[:kind] if args.key?(:kind)
  @set_date_values = args[:set_date_values] if args.key?(:set_date_values)
  @set_integer_values = args[:set_integer_values] if args.key?(:set_integer_values)
  @set_selection_values = args[:set_selection_values] if args.key?(:set_selection_values)
  @set_text_values = args[:set_text_values] if args.key?(:set_text_values)
  @set_user_values = args[:set_user_values] if args.key?(:set_user_values)
  @unset_values = args[:unset_values] if args.key?(:unset_values)
end