Class: Google::Apis::DriveV2::LabelFieldModification
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::LabelFieldModification
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/google/apis/drive_v2/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 a dateString field with these new values.
-
#set_integer_values ⇒ Array<Fixnum>
Replaces an integer field with these new values.
-
#set_selection_values ⇒ Array<String>
Replaces a selection field with these new values.
-
#set_text_values ⇒ Array<String>
Replaces a text field with these new values.
-
#set_user_values ⇒ Array<String>
Replaces a user field 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.
3286 3287 3288 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3286 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
3246 3247 3248 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3246 def field_id @field_id end |
#kind ⇒ String
This is always drive#labelFieldModification.
Corresponds to the JSON property kind
3251 3252 3253 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3251 def kind @kind end |
#set_date_values ⇒ Array<Date>
Replaces a dateString field with these new values. The values must be strings
in the RFC 3339 full-date format: YYYY-MM-DD.
Corresponds to the JSON property setDateValues
3257 3258 3259 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3257 def set_date_values @set_date_values end |
#set_integer_values ⇒ Array<Fixnum>
Replaces an integer field with these new values.
Corresponds to the JSON property setIntegerValues
3262 3263 3264 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3262 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
3267 3268 3269 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3267 def set_selection_values @set_selection_values end |
#set_text_values ⇒ Array<String>
Replaces a text field with these new values.
Corresponds to the JSON property setTextValues
3272 3273 3274 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3272 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 valid email
addresses.
Corresponds to the JSON property setUserValues
3278 3279 3280 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3278 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
3283 3284 3285 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3283 def unset_values @unset_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3291 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 |