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]

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]

This is always 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,String>]

max_upload_size[RW]

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

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]

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 generated/google/apis/drive_v3/classes.rb, line 75
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/drive_v3/classes.rb, line 80
def update!(**args)
  @app_installed = args[:app_installed] if args.key?(:app_installed)
  @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)
  @user = args[:user] if args.key?(:user)
end