class Google::Apis::DriveV2::About
An item with user information and settings.
Attributes
Information about supported additional roles per file type. The most specific type takes precedence. Corresponds to the JSON property `additionalRoleInfo` @return [Array<Google::Apis::DriveV2::About::AdditionalRoleInfo>]
The domain sharing policy for the current user. Possible values are:
-
allowed
-
allowedWithWarning
-
incomingOnly
-
disallowed
Corresponds to the JSON property `domainSharingPolicy` @return [String]
The ETag of the item. Corresponds to the JSON property `etag` @return [String]
The allowable export formats. Corresponds to the JSON property `exportFormats` @return [Array<Google::Apis::DriveV2::About::ExportFormat>]
List of additional features enabled on this account. Corresponds to the JSON property `features` @return [Array<Google::Apis::DriveV2::About::Feature>]
The palette of allowable folder colors as RGB hex strings. Corresponds to the JSON property `folderColorPalette` @return [Array<String>]
The allowable import formats. Corresponds to the JSON property `importFormats` @return [Array<Google::Apis::DriveV2::About::ImportFormat>]
A boolean indicating whether the authenticated app is installed by the authenticated user. Corresponds to the JSON property `isCurrentAppInstalled` @return [Boolean]
A boolean indicating whether the authenticated app is installed by the authenticated user. Corresponds to the JSON property `isCurrentAppInstalled` @return [Boolean]
This is always drive#about. Corresponds to the JSON property `kind` @return [String]
The user's language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (www.unicode.org/reports/tr35/). Corresponds to the JSON property `languageCode` @return [String]
The largest change id. Corresponds to the JSON property `largestChangeId` @return [String]
List of max upload sizes for each file type. The most specific type takes precedence. Corresponds to the JSON property `maxUploadSizes` @return [Array<Google::Apis::DriveV2::About::MaxUploadSize>]
The name of the current user. Corresponds to the JSON property `name` @return [String]
The current user's ID as visible in the permissions collection. Corresponds to the JSON property `permissionId` @return [String]
The amount of storage quota used by different Google services. Corresponds to the JSON property `quotaBytesByService` @return [Array<Google::Apis::DriveV2::About::QuotaBytesByService>]
The total number of quota bytes. Corresponds to the JSON property `quotaBytesTotal` @return [String]
The number of quota bytes used by Google Drive. Corresponds to the JSON property `quotaBytesUsed` @return [String]
The number of quota bytes used by all Google apps (Drive, Picasa, etc.). Corresponds to the JSON property `quotaBytesUsedAggregate` @return [String]
The number of quota bytes used by trashed items. Corresponds to the JSON property `quotaBytesUsedInTrash` @return [String]
The type of the user's storage quota. Possible values are:
-
LIMITED
-
UNLIMITED
Corresponds to the JSON property `quotaType` @return [String]
The number of remaining change ids. Corresponds to the JSON property `remainingChangeIds` @return [String]
The id of the root folder. Corresponds to the JSON property `rootFolderId` @return [String]
A link back to this item. Corresponds to the JSON property `selfLink` @return [String]
Information about a Drive user. Corresponds to the JSON property `user` @return [Google::Apis::DriveV2::User]
Public Class Methods
# File generated/google/apis/drive_v2/classes.rb, line 160 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/drive_v2/classes.rb, line 165 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) @user = args[:user] if args.key?(:user) end