class

GoogleDrive::LabelModification

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

A modification to a label on a file. A LabelModification can be used to apply a label to a file, update an existing label on a file, or remove a label from a file.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, field_modifications : Array(GoogleDrive::LabelFieldModification) | Nil = nil, kind : String | Nil = "drive#labelModification", label_id : String | Nil = nil, remove_label : 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_modifications

The list of modifications to this label's fields.

Source
field_modifications=(new_value : Array(GoogleDrive::LabelFieldModification) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] field_modifications 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#labelModification.

Source
kind=(new_value : String | Nil)

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

Source
label_id

The ID of the label to modify.

Source
label_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] label_id 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
remove_label

If true, the label will be removed from the file.

Source
remove_label=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] remove_label 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