class Google::Apis::DriveV3::About

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

Attributes

app_installed[RW]

Whether the user has installed the requesting app. Corresponds to the JSON property `appInstalled` @return [Boolean]

app_installed?[RW]

Whether the user has installed the requesting app. Corresponds to the JSON property `appInstalled` @return [Boolean]

can_create_drives[RW]

Whether the user can create shared drives. Corresponds to the JSON property `canCreateDrives` @return [Boolean]

can_create_drives?[RW]

Whether the user can create shared drives. Corresponds to the JSON property `canCreateDrives` @return [Boolean]

can_create_team_drives[RW]

Deprecated - use canCreateDrives instead. Corresponds to the JSON property `canCreateTeamDrives` @return [Boolean]

can_create_team_drives?[RW]

Deprecated - use canCreateDrives instead. Corresponds to the JSON property `canCreateTeamDrives` @return [Boolean]

drive_themes[RW]

A list of themes that are supported for shared drives. Corresponds to the JSON property `driveThemes` @return [Array<Google::Apis::DriveV3::About::DriveTheme>]

export_formats[RW]

A map of source MIME type to possible targets for all supported exports. Corresponds to the JSON property `exportFormats` @return [Hash<String,Array<String>>]

folder_color_palette[RW]

The currently supported folder colors as RGB hex strings. Corresponds to the JSON property `folderColorPalette` @return [Array<String>]

import_formats[RW]

A map of source MIME type to possible targets for all supported imports. Corresponds to the JSON property `importFormats` @return [Hash<String,Array<String>>]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “drive#about” . Corresponds to the JSON property `kind` @return [String]

max_import_sizes[RW]

A map of maximum import sizes by MIME type, in bytes. Corresponds to the JSON property `maxImportSizes` @return [Hash<String,Fixnum>]

max_upload_size[RW]

The maximum upload size in bytes. Corresponds to the JSON property `maxUploadSize` @return [Fixnum]

storage_quota[RW]

The user's storage quota limits and usage. All fields are measured in bytes. Corresponds to the JSON property `storageQuota` @return [Google::Apis::DriveV3::About::StorageQuota]

team_drive_themes[RW]

Deprecated - use driveThemes instead. Corresponds to the JSON property `teamDriveThemes` @return [Array<Google::Apis::DriveV3::About::TeamDriveTheme>]

user[RW]

Information about a Drive user. Corresponds to the JSON property `user` @return [Google::Apis::DriveV3::User]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/drive_v3/classes.rb, line 98
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/drive_v3/classes.rb, line 103
def update!(**args)
  @app_installed = args[:app_installed] if args.key?(:app_installed)
  @can_create_drives = args[:can_create_drives] if args.key?(:can_create_drives)
  @can_create_team_drives = args[:can_create_team_drives] if args.key?(:can_create_team_drives)
  @drive_themes = args[:drive_themes] if args.key?(:drive_themes)
  @export_formats = args[:export_formats] if args.key?(:export_formats)
  @folder_color_palette = args[:folder_color_palette] if args.key?(:folder_color_palette)
  @import_formats = args[:import_formats] if args.key?(:import_formats)
  @kind = args[:kind] if args.key?(:kind)
  @max_import_sizes = args[:max_import_sizes] if args.key?(:max_import_sizes)
  @max_upload_size = args[:max_upload_size] if args.key?(:max_upload_size)
  @storage_quota = args[:storage_quota] if args.key?(:storage_quota)
  @team_drive_themes = args[:team_drive_themes] if args.key?(:team_drive_themes)
  @user = args[:user] if args.key?(:user)
end