Class: Google::Apis::DriveV2::About
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::About
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb
Overview
An item with user information and settings.
Defined Under Namespace
Classes: AdditionalRoleInfo, ExportFormat, Feature, ImportFormat, MaxUploadSize, QuotaBytesByService, TeamDriveTheme
Instance Attribute Summary collapse
-
#additional_role_info ⇒ Array<Google::Apis::DriveV2::About::AdditionalRoleInfo>
Information about supported additional roles per file type.
-
#domain_sharing_policy ⇒ String
The domain sharing policy for the current user.
-
#etag ⇒ String
The ETag of the item.
-
#export_formats ⇒ Array<Google::Apis::DriveV2::About::ExportFormat>
The allowable export formats.
-
#features ⇒ Array<Google::Apis::DriveV2::About::Feature>
List of additional features enabled on this account.
-
#folder_color_palette ⇒ Array<String>
The palette of allowable folder colors as RGB hex strings.
-
#import_formats ⇒ Array<Google::Apis::DriveV2::About::ImportFormat>
The allowable import formats.
-
#is_current_app_installed ⇒ Boolean
(also: #is_current_app_installed?)
A boolean indicating whether the authenticated app is installed by the authenticated user.
-
#kind ⇒ String
This is always drive#about.
-
#language_code ⇒ String
The user's language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (http://www.unicode.org/reports/tr35/).
-
#largest_change_id ⇒ Fixnum
The largest change id.
-
#max_upload_sizes ⇒ Array<Google::Apis::DriveV2::About::MaxUploadSize>
List of max upload sizes for each file type.
-
#name ⇒ String
The name of the current user.
-
#permission_id ⇒ String
The current user's ID as visible in the permissions collection.
-
#quota_bytes_by_service ⇒ Array<Google::Apis::DriveV2::About::QuotaBytesByService>
The amount of storage quota used by different Google services.
-
#quota_bytes_total ⇒ Fixnum
The total number of quota bytes.
-
#quota_bytes_used ⇒ Fixnum
The number of quota bytes used by Google Drive.
-
#quota_bytes_used_aggregate ⇒ Fixnum
The number of quota bytes used by all Google apps (Drive, Picasa, etc.).
-
#quota_bytes_used_in_trash ⇒ Fixnum
The number of quota bytes used by trashed items.
-
#quota_type ⇒ String
The type of the user's storage quota.
-
#remaining_change_ids ⇒ Fixnum
The number of remaining change ids, limited to no more than 2500.
-
#root_folder_id ⇒ String
The id of the root folder.
-
#self_link ⇒ String
A link back to this item.
-
#team_drive_themes ⇒ Array<Google::Apis::DriveV2::About::TeamDriveTheme>
A list of themes that are supported for Team Drives.
-
#user ⇒ Google::Apis::DriveV2::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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ About
Returns a new instance of About
165 166 167 |
# File 'generated/google/apis/drive_v2/classes.rb', line 165 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_role_info ⇒ Array<Google::Apis::DriveV2::About::AdditionalRoleInfo>
Information about supported additional roles per file type. The most specific
type takes precedence.
Corresponds to the JSON property additionalRoleInfo
33 34 35 |
# File 'generated/google/apis/drive_v2/classes.rb', line 33 def additional_role_info @additional_role_info end |
#domain_sharing_policy ⇒ String
The domain sharing policy for the current user. Possible values are:
- allowed
- allowedWithWarning
- incomingOnly
- disallowed
Corresponds to the JSON property
domainSharingPolicy
42 43 44 |
# File 'generated/google/apis/drive_v2/classes.rb', line 42 def domain_sharing_policy @domain_sharing_policy end |
#etag ⇒ String
The ETag of the item.
Corresponds to the JSON property etag
47 48 49 |
# File 'generated/google/apis/drive_v2/classes.rb', line 47 def etag @etag end |
#export_formats ⇒ Array<Google::Apis::DriveV2::About::ExportFormat>
The allowable export formats.
Corresponds to the JSON property exportFormats
52 53 54 |
# File 'generated/google/apis/drive_v2/classes.rb', line 52 def export_formats @export_formats end |
#features ⇒ Array<Google::Apis::DriveV2::About::Feature>
List of additional features enabled on this account.
Corresponds to the JSON property features
57 58 59 |
# File 'generated/google/apis/drive_v2/classes.rb', line 57 def features @features end |
#folder_color_palette ⇒ Array<String>
The palette of allowable folder colors as RGB hex strings.
Corresponds to the JSON property folderColorPalette
62 63 64 |
# File 'generated/google/apis/drive_v2/classes.rb', line 62 def folder_color_palette @folder_color_palette end |
#import_formats ⇒ Array<Google::Apis::DriveV2::About::ImportFormat>
The allowable import formats.
Corresponds to the JSON property importFormats
67 68 69 |
# File 'generated/google/apis/drive_v2/classes.rb', line 67 def import_formats @import_formats end |
#is_current_app_installed ⇒ Boolean Also known as: is_current_app_installed?
A boolean indicating whether the authenticated app is installed by the
authenticated user.
Corresponds to the JSON property isCurrentAppInstalled
73 74 75 |
# File 'generated/google/apis/drive_v2/classes.rb', line 73 def is_current_app_installed @is_current_app_installed end |
#kind ⇒ String
This is always drive#about.
Corresponds to the JSON property kind
79 80 81 |
# File 'generated/google/apis/drive_v2/classes.rb', line 79 def kind @kind end |
#language_code ⇒ String
The user's language or locale code, as defined by BCP 47, with some extensions
from Unicode's LDML format (http://www.unicode.org/reports/tr35/).
Corresponds to the JSON property languageCode
85 86 87 |
# File 'generated/google/apis/drive_v2/classes.rb', line 85 def language_code @language_code end |
#largest_change_id ⇒ Fixnum
The largest change id.
Corresponds to the JSON property largestChangeId
90 91 92 |
# File 'generated/google/apis/drive_v2/classes.rb', line 90 def largest_change_id @largest_change_id end |
#max_upload_sizes ⇒ Array<Google::Apis::DriveV2::About::MaxUploadSize>
List of max upload sizes for each file type. The most specific type takes
precedence.
Corresponds to the JSON property maxUploadSizes
96 97 98 |
# File 'generated/google/apis/drive_v2/classes.rb', line 96 def max_upload_sizes @max_upload_sizes end |
#name ⇒ String
The name of the current user.
Corresponds to the JSON property name
101 102 103 |
# File 'generated/google/apis/drive_v2/classes.rb', line 101 def name @name end |
#permission_id ⇒ String
The current user's ID as visible in the permissions collection.
Corresponds to the JSON property permissionId
106 107 108 |
# File 'generated/google/apis/drive_v2/classes.rb', line 106 def @permission_id end |
#quota_bytes_by_service ⇒ Array<Google::Apis::DriveV2::About::QuotaBytesByService>
The amount of storage quota used by different Google services.
Corresponds to the JSON property quotaBytesByService
111 112 113 |
# File 'generated/google/apis/drive_v2/classes.rb', line 111 def quota_bytes_by_service @quota_bytes_by_service end |
#quota_bytes_total ⇒ Fixnum
The total number of quota bytes.
Corresponds to the JSON property quotaBytesTotal
116 117 118 |
# File 'generated/google/apis/drive_v2/classes.rb', line 116 def quota_bytes_total @quota_bytes_total end |
#quota_bytes_used ⇒ Fixnum
The number of quota bytes used by Google Drive.
Corresponds to the JSON property quotaBytesUsed
121 122 123 |
# File 'generated/google/apis/drive_v2/classes.rb', line 121 def quota_bytes_used @quota_bytes_used end |
#quota_bytes_used_aggregate ⇒ Fixnum
The number of quota bytes used by all Google apps (Drive, Picasa, etc.).
Corresponds to the JSON property quotaBytesUsedAggregate
126 127 128 |
# File 'generated/google/apis/drive_v2/classes.rb', line 126 def quota_bytes_used_aggregate @quota_bytes_used_aggregate end |
#quota_bytes_used_in_trash ⇒ Fixnum
The number of quota bytes used by trashed items.
Corresponds to the JSON property quotaBytesUsedInTrash
131 132 133 |
# File 'generated/google/apis/drive_v2/classes.rb', line 131 def quota_bytes_used_in_trash @quota_bytes_used_in_trash end |
#quota_type ⇒ String
The type of the user's storage quota. Possible values are:
- LIMITED
- UNLIMITED
Corresponds to the JSON property
quotaType
138 139 140 |
# File 'generated/google/apis/drive_v2/classes.rb', line 138 def quota_type @quota_type end |
#remaining_change_ids ⇒ Fixnum
The number of remaining change ids, limited to no more than 2500.
Corresponds to the JSON property remainingChangeIds
143 144 145 |
# File 'generated/google/apis/drive_v2/classes.rb', line 143 def remaining_change_ids @remaining_change_ids end |
#root_folder_id ⇒ String
The id of the root folder.
Corresponds to the JSON property rootFolderId
148 149 150 |
# File 'generated/google/apis/drive_v2/classes.rb', line 148 def root_folder_id @root_folder_id end |
#self_link ⇒ String
A link back to this item.
Corresponds to the JSON property selfLink
153 154 155 |
# File 'generated/google/apis/drive_v2/classes.rb', line 153 def self_link @self_link end |
#team_drive_themes ⇒ Array<Google::Apis::DriveV2::About::TeamDriveTheme>
A list of themes that are supported for Team Drives.
Corresponds to the JSON property teamDriveThemes
158 159 160 |
# File 'generated/google/apis/drive_v2/classes.rb', line 158 def team_drive_themes @team_drive_themes end |
#user ⇒ Google::Apis::DriveV2::User
Information about a Drive user.
Corresponds to the JSON property user
163 164 165 |
# File 'generated/google/apis/drive_v2/classes.rb', line 163 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'generated/google/apis/drive_v2/classes.rb', line 170 def update!(**args) @additional_role_info = args[:additional_role_info] if args.key?(:additional_role_info) @domain_sharing_policy = args[:domain_sharing_policy] if args.key?(:domain_sharing_policy) @etag = args[:etag] if args.key?(:etag) @export_formats = args[:export_formats] if args.key?(:export_formats) @features = args[:features] if args.key?(:features) @folder_color_palette = args[:folder_color_palette] if args.key?(:folder_color_palette) @import_formats = args[:import_formats] if args.key?(:import_formats) @is_current_app_installed = args[:is_current_app_installed] if args.key?(:is_current_app_installed) @kind = args[:kind] if args.key?(:kind) @language_code = args[:language_code] if args.key?(:language_code) @largest_change_id = args[:largest_change_id] if args.key?(:largest_change_id) @max_upload_sizes = args[:max_upload_sizes] if args.key?(:max_upload_sizes) @name = args[:name] if args.key?(:name) @permission_id = args[:permission_id] if args.key?(:permission_id) @quota_bytes_by_service = args[:quota_bytes_by_service] if args.key?(:quota_bytes_by_service) @quota_bytes_total = args[:quota_bytes_total] if args.key?(:quota_bytes_total) @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used) @quota_bytes_used_aggregate = args[:quota_bytes_used_aggregate] if args.key?(:quota_bytes_used_aggregate) @quota_bytes_used_in_trash = args[:quota_bytes_used_in_trash] if args.key?(:quota_bytes_used_in_trash) @quota_type = args[:quota_type] if args.key?(:quota_type) @remaining_change_ids = args[:remaining_change_ids] if args.key?(:remaining_change_ids) @root_folder_id = args[:root_folder_id] if args.key?(:root_folder_id) @self_link = args[:self_link] if args.key?(:self_link) @team_drive_themes = args[:team_drive_themes] if args.key?(:team_drive_themes) @user = args[:user] if args.key?(:user) end |