class

GoogleDrive::LabelField

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

Representation of a label field.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, date_string : Array(Time) | Nil = nil, id : String | Nil = nil, integer : Array(String) | Nil = nil, kind : String | Nil = "drive#labelField", selection : Array(String) | Nil = nil, text : Array(String) | Nil = nil, user : Array(GoogleDrive::User) | Nil = nil, value_type : String | 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

date_string

Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.

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

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

id

The identifier of this field.

Source
id=(new_value : String | Nil)

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

Source
integer

Only present if valueType is integer.

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

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

Source
kind

This is always drive#labelField.

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
selection

Only present if valueType is selection.

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

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

Source
text

Only present if valueType is text.

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

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

Source
user

Only present if valueType is user.

Source
user=(new_value : Array(GoogleDrive::User) | Nil)

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

The field type. While new values may be supported in the future, the following are currently allowed: - dateString - integer - selection - text - user

Source
value_type=(new_value : String | Nil)

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

Source