class

GoogleDrive::LabelFieldModification

Inherits OpenApi::Json / OpenApi::Validatable / JSON::Serializable::Unmapped / JSON::Serializable / Reference / Object

A modification to a label's field.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, field_id : String | Nil = nil, kind : String | Nil = "drive#labelFieldModification", set_date_values : Array(Time) | Nil = nil, set_integer_values : Array(String) | Nil = nil, set_selection_values : Array(String) | Nil = nil, set_text_values : Array(String) | Nil = nil, set_user_values : Array(String) | Nil = nil, unset_values : Bool | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

field_id

The ID of the Field to be modified.

Source
field_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] field_id Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

kind

This is always drive#labelFieldModification.

Source
kind=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] kind Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
set_date_values

Replaces a dateString field with these new values. The values must be strings in the RFC 3339 full-date format: YYYY-MM-DD.

Source
set_date_values=(new_value : Array(Time) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] set_date_values Object to be assigned

Source
set_integer_values

Replaces an integer field with these new values.

Source
set_integer_values=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] set_integer_values Object to be assigned

Source
set_selection_values

Replaces a selection field with these new values.

Source
set_selection_values=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] set_selection_values Object to be assigned

Source
set_text_values

Replaces a text field with these new values.

Source
set_text_values=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] set_text_values Object to be assigned

Source
set_user_values

Replaces a user field with these new values. The values must be valid email addresses.

Source
set_user_values=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] set_user_values Object to be assigned

Source
unset_values

Unsets the values for this field.

Source
unset_values=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] unset_values Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source