class

GoogleDrive::Revision

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

The metadata for a revision to a file.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
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

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 ID of the revision.

Source
id=(new_value : String | Nil)

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

Source
keep_forever

Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive.

Source
keep_forever=(new_value : Bool | Nil)

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

Source
kind

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

Source
kind=(new_value : String | Nil)

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

Source
last_modifying_user
Source
last_modifying_user=(new_value : GoogleDrive::User | Nil)

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

The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive.

Source
md5_checksum=(new_value : String | Nil)

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

Source
mime_type

The MIME type of the revision.

Source
mime_type=(new_value : String | Nil)

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

Source
modified_time

The last time the revision was modified (RFC 3339 date-time).

Source
modified_time=(new_value : Time | Nil)

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

Source
original_filename

The original filename used to create this revision. This is only applicable to files with binary content in Drive.

Source
original_filename=(new_value : String | Nil)

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

Source
publish_auto

Whether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files.

Source
publish_auto=(new_value : Bool | Nil)

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

Source
published

Whether this revision is published. This is only applicable to Docs Editors files.

Source
published=(new_value : Bool | Nil)

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

Source
published_outside_domain

Whether this revision is published outside the domain. This is only applicable to Docs Editors files.

Source
published_outside_domain=(new_value : Bool | Nil)

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

Source
size

The size of the revision's content in bytes. This is only applicable to files with binary content in Drive.

Source
size=(new_value : String | Nil)

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