Class: Google::Apis::DriveV3::About

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/drive_v3/classes.rb,
generated/google/apis/drive_v3/representations.rb,
generated/google/apis/drive_v3/representations.rb

Overview

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

Defined Under Namespace

Classes: StorageQuota

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ About

Returns a new instance of About.


76
77
78
# File 'generated/google/apis/drive_v3/classes.rb', line 76

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#app_installedBoolean Also known as: app_installed?

Whether the user has installed the requesting app. Corresponds to the JSON property appInstalled

Returns:

  • (Boolean)

32
33
34
# File 'generated/google/apis/drive_v3/classes.rb', line 32

def app_installed
  @app_installed
end

#export_formatsHash<String,Array<String>>

A map of source MIME type to possible targets for all supported exports. Corresponds to the JSON property exportFormats

Returns:

  • (Hash<String,Array<String>>)

38
39
40
# File 'generated/google/apis/drive_v3/classes.rb', line 38

def export_formats
  @export_formats
end

#folder_color_paletteArray<String>

The currently supported folder colors as RGB hex strings. Corresponds to the JSON property folderColorPalette

Returns:

  • (Array<String>)

43
44
45
# File 'generated/google/apis/drive_v3/classes.rb', line 43

def folder_color_palette
  @folder_color_palette
end

#import_formatsHash<String,Array<String>>

A map of source MIME type to possible targets for all supported imports. Corresponds to the JSON property importFormats

Returns:

  • (Hash<String,Array<String>>)

48
49
50
# File 'generated/google/apis/drive_v3/classes.rb', line 48

def import_formats
  @import_formats
end

#kindString

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

Returns:

  • (String)

54
55
56
# File 'generated/google/apis/drive_v3/classes.rb', line 54

def kind
  @kind
end

#max_import_sizesHash<String,String>

A map of maximum import sizes by MIME type, in bytes. Corresponds to the JSON property maxImportSizes

Returns:

  • (Hash<String,String>)

59
60
61
# File 'generated/google/apis/drive_v3/classes.rb', line 59

def max_import_sizes
  @max_import_sizes
end

#max_upload_sizeString

The maximum upload size in bytes. Corresponds to the JSON property maxUploadSize

Returns:

  • (String)

64
65
66
# File 'generated/google/apis/drive_v3/classes.rb', line 64

def max_upload_size
  @max_upload_size
end

#storage_quotaGoogle::Apis::DriveV3::About::StorageQuota

The user's storage quota limits and usage. All fields are measured in bytes. Corresponds to the JSON property storageQuota


69
70
71
# File 'generated/google/apis/drive_v3/classes.rb', line 69

def storage_quota
  @storage_quota
end

#userGoogle::Apis::DriveV3::User

Information about a Drive user. Corresponds to the JSON property user


74
75
76
# File 'generated/google/apis/drive_v3/classes.rb', line 74

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


81
82
83
84
85
86
87
88
89
90
91
# File 'generated/google/apis/drive_v3/classes.rb', line 81

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