Class: Google::Apis::DriveV3::LabelFieldModification
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::LabelFieldModification
- 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
-
#field_id ⇒ String
The ID of the field to be modified.
-
#kind ⇒ String
This is always
"drive#labelFieldModification". -
#set_date_values ⇒ Array<Date>
Replaces the value of a dateString Field with these new values.
-
#set_integer_values ⇒ Array<Fixnum>
Replaces the value of an
integerfield with these new values. -
#set_selection_values ⇒ Array<String>
Replaces a
selectionfield with these new values. -
#set_text_values ⇒ Array<String>
Sets the value of a
textfield. -
#set_user_values ⇒ Array<String>
Replaces a
userfield with these new values. -
#unset_values ⇒ Boolean
(also: #unset_values?)
Unsets the values for this field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LabelFieldModification
constructor
A new instance of LabelFieldModification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LabelFieldModification
Returns a new instance of LabelFieldModification.
2910 2911 2912 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2910 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field_id ⇒ String
The ID of the field to be modified.
Corresponds to the JSON property fieldId
2870 2871 2872 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2870 def field_id @field_id end |
#kind ⇒ String
This is always "drive#labelFieldModification".
Corresponds to the JSON property kind
2875 2876 2877 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2875 def kind @kind end |
#set_date_values ⇒ Array<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
2881 2882 2883 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2881 def set_date_values @set_date_values end |
#set_integer_values ⇒ Array<Fixnum>
Replaces the value of an integer field with these new values.
Corresponds to the JSON property setIntegerValues
2886 2887 2888 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2886 def set_integer_values @set_integer_values end |
#set_selection_values ⇒ Array<String>
Replaces a selection field with these new values.
Corresponds to the JSON property setSelectionValues
2891 2892 2893 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2891 def set_selection_values @set_selection_values end |
#set_text_values ⇒ Array<String>
Sets the value of a text field.
Corresponds to the JSON property setTextValues
2896 2897 2898 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2896 def set_text_values @set_text_values end |
#set_user_values ⇒ Array<String>
Replaces a user field with these new values. The values must be a valid
email addresses.
Corresponds to the JSON property setUserValues
2902 2903 2904 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2902 def set_user_values @set_user_values end |
#unset_values ⇒ Boolean Also known as: unset_values?
Unsets the values for this field.
Corresponds to the JSON property unsetValues
2907 2908 2909 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2907 def unset_values @unset_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2915 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 |