class

GoogleDrive::Change

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

A change to a file or shared drive.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, change_type : String | Nil = nil, drive : GoogleDrive::Drive | Nil = nil, drive_id : String | Nil = nil, file : GoogleDrive::File | Nil = nil, file_id : String | Nil = nil, kind : String | Nil = "drive#change", removed : Bool | Nil = nil, team_drive : GoogleDrive::TeamDrive | Nil = nil, team_drive_id : String | Nil = nil, time : Time | Nil = nil, _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

_type

Deprecated - use changeType instead.

Source
_type=(new_value : String | Nil)

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

Source
change_type

The type of the change. Possible values are file and drive.

Source
change_type=(new_value : String | Nil)

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

Source
drive
Source
drive=(new_value : GoogleDrive::Drive | Nil)

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

Source
drive_id

The ID of the shared drive associated with this change.

Source
drive_id=(new_value : String | Nil)

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

Source
file
Source
file=(new_value : GoogleDrive::File | Nil)

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

Source
file_id

The ID of the file which has changed.

Source
file_id=(new_value : String | Nil)

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

Identifies what kind of resource this is. Value: the fixed string "drive#change".

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
removed

Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.

Source
removed=(new_value : Bool | Nil)

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

Source
team_drive
Source
team_drive=(new_value : GoogleDrive::TeamDrive | Nil)

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

Source
team_drive_id

Deprecated - use driveId instead.

Source
team_drive_id=(new_value : String | Nil)

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

Source
time

The time of this change (RFC 3339 date-time).

Source
time=(new_value : Time | Nil)

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