class Google::Apis::DriveV2::About

An item with user information and settings.

Attributes

additional_role_info[RW]

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>]

domain_sharing_policy[RW]

The domain sharing policy for the current user. Possible values are:

  • allowed

  • allowedWithWarning

  • incomingOnly

  • disallowed

Corresponds to the JSON property `domainSharingPolicy` @return [String]

etag[RW]

The ETag of the item. Corresponds to the JSON property `etag` @return [String]

export_formats[RW]

The allowable export formats. Corresponds to the JSON property `exportFormats` @return [Array<Google::Apis::DriveV2::About::ExportFormat>]

features[RW]

List of additional features enabled on this account. Corresponds to the JSON property `features` @return [Array<Google::Apis::DriveV2::About::Feature>]

folder_color_palette[RW]

The palette of allowable folder colors as RGB hex strings. Corresponds to the JSON property `folderColorPalette` @return [Array<String>]

import_formats[RW]

The allowable import formats. Corresponds to the JSON property `importFormats` @return [Array<Google::Apis::DriveV2::About::ImportFormat>]

is_current_app_installed[RW]

A boolean indicating whether the authenticated app is installed by the authenticated user. Corresponds to the JSON property `isCurrentAppInstalled` @return [Boolean]

is_current_app_installed?[RW]

A boolean indicating whether the authenticated app is installed by the authenticated user. Corresponds to the JSON property `isCurrentAppInstalled` @return [Boolean]

kind[RW]

This is always drive#about. Corresponds to the JSON property `kind` @return [String]

language_code[RW]

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]

largest_change_id[RW]

The largest change id. Corresponds to the JSON property `largestChangeId` @return [String]

max_upload_sizes[RW]

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>]

name[RW]

The name of the current user. Corresponds to the JSON property `name` @return [String]

permission_id[RW]

The current user's ID as visible in the permissions collection. Corresponds to the JSON property `permissionId` @return [String]

quota_bytes_by_service[RW]

The amount of storage quota used by different Google services. Corresponds to the JSON property `quotaBytesByService` @return [Array<Google::Apis::DriveV2::About::QuotaBytesByService>]

quota_bytes_total[RW]

The total number of quota bytes. Corresponds to the JSON property `quotaBytesTotal` @return [String]

quota_bytes_used[RW]

The number of quota bytes used by Google Drive. Corresponds to the JSON property `quotaBytesUsed` @return [String]

quota_bytes_used_aggregate[RW]

The number of quota bytes used by all Google apps (Drive, Picasa, etc.). Corresponds to the JSON property `quotaBytesUsedAggregate` @return [String]

quota_bytes_used_in_trash[RW]

The number of quota bytes used by trashed items. Corresponds to the JSON property `quotaBytesUsedInTrash` @return [String]

quota_type[RW]

The type of the user's storage quota. Possible values are:

  • LIMITED

  • UNLIMITED

Corresponds to the JSON property `quotaType` @return [String]

remaining_change_ids[RW]

The number of remaining change ids. Corresponds to the JSON property `remainingChangeIds` @return [String]

root_folder_id[RW]

The id of the root folder. Corresponds to the JSON property `rootFolderId` @return [String]

user[RW]

Information about a Drive user. Corresponds to the JSON property `user` @return [Google::Apis::DriveV2::User]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/drive_v2/classes.rb, line 160
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_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