class

GoogleDrive::About

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

Information about the user, the user's Drive, and system capabilities.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, app_installed : Bool | Nil = nil, can_create_drives : Bool | Nil = nil, can_create_team_drives : Bool | Nil = nil, drive_themes : Array(GoogleDrive::AboutDriveThemesInner) | Nil = nil, export_formats : Hash(String, Array(String)) | Nil = nil, folder_color_palette : Array(String) | Nil = nil, import_formats : Hash(String, Array(String)) | Nil = nil, kind : String | Nil = "drive#about", max_import_sizes : Hash(String, String) | Nil = nil, max_upload_size : String | Nil = nil, storage_quota : GoogleDrive::AboutStorageQuota | Nil = nil, team_drive_themes : Array(GoogleDrive::AboutTeamDriveThemesInner) | Nil = nil, user : GoogleDrive::User | 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

app_installed

Whether the user has installed the requesting app.

Source
app_installed=(new_value : Bool | Nil)

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

Source
can_create_drives

Whether the user can create shared drives.

Source
can_create_drives=(new_value : Bool | Nil)

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

Source
can_create_team_drives

Deprecated - use canCreateDrives instead.

Source
can_create_team_drives=(new_value : Bool | Nil)

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

Source
drive_themes

A list of themes that are supported for shared drives.

Source
drive_themes=(new_value : Array(GoogleDrive::AboutDriveThemesInner) | Nil)

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

Source
export_formats

A map of source MIME type to possible targets for all supported exports.

Source
export_formats=(new_value : Hash(String, Array(String)) | Nil)

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

Source
folder_color_palette

The currently supported folder colors as RGB hex strings.

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

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

import_formats

A map of source MIME type to possible targets for all supported imports.

Source
import_formats=(new_value : Hash(String, Array(String)) | Nil)

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

Source
kind

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

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
max_import_sizes

A map of maximum import sizes by MIME type, in bytes.

Source
max_import_sizes=(new_value : Hash(String, String) | Nil)

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

Source
max_upload_size

The maximum upload size in bytes.

Source
max_upload_size=(new_value : String | Nil)

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

Source
storage_quota
Source
storage_quota=(new_value : GoogleDrive::AboutStorageQuota | Nil)

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

Source
team_drive_themes

Deprecated - use driveThemes instead.

Source
team_drive_themes=(new_value : Array(GoogleDrive::AboutTeamDriveThemesInner) | Nil)

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

Source
user
Source
user=(new_value : 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