Class: Google::Apis::DriveV3::About
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::About
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb
Overview
Information about the user, the user's Drive, and system capabilities.
Defined Under Namespace
Classes: DriveTheme, StorageQuota, TeamDriveTheme
Instance Attribute Summary collapse
-
#app_installed ⇒ Boolean
(also: #app_installed?)
Whether the user has installed the requesting app.
-
#can_create_drives ⇒ Boolean
(also: #can_create_drives?)
Whether the user can create shared drives.
-
#can_create_team_drives ⇒ Boolean
(also: #can_create_team_drives?)
Deprecated: Use
canCreateDrives
instead. -
#drive_themes ⇒ Array<Google::Apis::DriveV3::About::DriveTheme>
A list of themes that are supported for shared drives.
-
#export_formats ⇒ Hash<String,Array<String>>
A map of source MIME type to possible targets for all supported exports.
-
#folder_color_palette ⇒ Array<String>
The currently supported folder colors as RGB hex strings.
-
#import_formats ⇒ Hash<String,Array<String>>
A map of source MIME type to possible targets for all supported imports.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#max_import_sizes ⇒ Hash<String,Fixnum>
A map of maximum import sizes by MIME type, in bytes.
-
#max_upload_size ⇒ Fixnum
The maximum upload size in bytes.
-
#storage_quota ⇒ Google::Apis::DriveV3::About::StorageQuota
The user's storage quota limits and usage.
-
#team_drive_themes ⇒ Array<Google::Apis::DriveV3::About::TeamDriveTheme>
Deprecated: Use
driveThemes
instead. -
#user ⇒ Google::Apis::DriveV3::User
Information about a Drive user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ About
constructor
A new instance of About.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ About
Returns a new instance of About.
101 102 103 |
# File 'lib/google/apis/drive_v3/classes.rb', line 101 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_installed ⇒ Boolean Also known as: app_installed?
Whether the user has installed the requesting app.
Corresponds to the JSON property appInstalled
32 33 34 |
# File 'lib/google/apis/drive_v3/classes.rb', line 32 def app_installed @app_installed end |
#can_create_drives ⇒ Boolean Also known as: can_create_drives?
Whether the user can create shared drives.
Corresponds to the JSON property canCreateDrives
38 39 40 |
# File 'lib/google/apis/drive_v3/classes.rb', line 38 def can_create_drives @can_create_drives end |
#can_create_team_drives ⇒ Boolean Also known as: can_create_team_drives?
Deprecated: Use canCreateDrives
instead.
Corresponds to the JSON property canCreateTeamDrives
44 45 46 |
# File 'lib/google/apis/drive_v3/classes.rb', line 44 def can_create_team_drives @can_create_team_drives end |
#drive_themes ⇒ Array<Google::Apis::DriveV3::About::DriveTheme>
A list of themes that are supported for shared drives.
Corresponds to the JSON property driveThemes
50 51 52 |
# File 'lib/google/apis/drive_v3/classes.rb', line 50 def drive_themes @drive_themes end |
#export_formats ⇒ Hash<String,Array<String>>
A map of source MIME type to possible targets for all supported exports.
Corresponds to the JSON property exportFormats
55 56 57 |
# File 'lib/google/apis/drive_v3/classes.rb', line 55 def export_formats @export_formats end |
#folder_color_palette ⇒ Array<String>
The currently supported folder colors as RGB hex strings.
Corresponds to the JSON property folderColorPalette
60 61 62 |
# File 'lib/google/apis/drive_v3/classes.rb', line 60 def folder_color_palette @folder_color_palette end |
#import_formats ⇒ Hash<String,Array<String>>
A map of source MIME type to possible targets for all supported imports.
Corresponds to the JSON property importFormats
65 66 67 |
# File 'lib/google/apis/drive_v3/classes.rb', line 65 def import_formats @import_formats end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "drive#
about"
.
Corresponds to the JSON property kind
71 72 73 |
# File 'lib/google/apis/drive_v3/classes.rb', line 71 def kind @kind end |
#max_import_sizes ⇒ Hash<String,Fixnum>
A map of maximum import sizes by MIME type, in bytes.
Corresponds to the JSON property maxImportSizes
76 77 78 |
# File 'lib/google/apis/drive_v3/classes.rb', line 76 def max_import_sizes @max_import_sizes end |
#max_upload_size ⇒ Fixnum
The maximum upload size in bytes.
Corresponds to the JSON property maxUploadSize
81 82 83 |
# File 'lib/google/apis/drive_v3/classes.rb', line 81 def max_upload_size @max_upload_size end |
#storage_quota ⇒ Google::Apis::DriveV3::About::StorageQuota
The user's storage quota limits and usage. For users that are part of an
organization with pooled storage, information about the limit and usage across
all services is for the organization, rather than the individual user. All
fields are measured in bytes.
Corresponds to the JSON property storageQuota
89 90 91 |
# File 'lib/google/apis/drive_v3/classes.rb', line 89 def storage_quota @storage_quota end |
#team_drive_themes ⇒ Array<Google::Apis::DriveV3::About::TeamDriveTheme>
Deprecated: Use driveThemes
instead.
Corresponds to the JSON property teamDriveThemes
94 95 96 |
# File 'lib/google/apis/drive_v3/classes.rb', line 94 def team_drive_themes @team_drive_themes end |
#user ⇒ Google::Apis::DriveV3::User
Information about a Drive user.
Corresponds to the JSON property user
99 100 101 |
# File 'lib/google/apis/drive_v3/classes.rb', line 99 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/google/apis/drive_v3/classes.rb', line 106 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 |