class Google::Apis::DriveV2::App

The apps resource provides a list of the apps that a user has installed, with information about each app's supported MIME types, file extensions, and other details.

Attributes

authorized[RW]

Whether the app is authorized to access data on the user's Drive. Corresponds to the JSON property `authorized` @return [Boolean]

authorized?[RW]

Whether the app is authorized to access data on the user's Drive. Corresponds to the JSON property `authorized` @return [Boolean]

create_in_folder_template[RW]

The template url to create a new file with this app in a given folder. The template will contain `folderId` to be replaced by the folder to create the new file in. Corresponds to the JSON property `createInFolderTemplate` @return [String]

create_url[RW]

The url to create a new file with this app. Corresponds to the JSON property `createUrl` @return [String]

has_drive_wide_scope[RW]

Whether the app has drive-wide scope. An app with drive-wide scope can access all files in the user's drive. Corresponds to the JSON property `hasDriveWideScope` @return [Boolean]

has_drive_wide_scope?[RW]

Whether the app has drive-wide scope. An app with drive-wide scope can access all files in the user's drive. Corresponds to the JSON property `hasDriveWideScope` @return [Boolean]

icons[RW]

The various icons for the app. Corresponds to the JSON property `icons` @return [Array<Google::Apis::DriveV2::App::Icon>]

id[RW]

The ID of the app. Corresponds to the JSON property `id` @return [String]

installed[RW]

Whether the app is installed. Corresponds to the JSON property `installed` @return [Boolean]

installed?[RW]

Whether the app is installed. Corresponds to the JSON property `installed` @return [Boolean]

kind[RW]

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

long_description[RW]

A long description of the app. Corresponds to the JSON property `longDescription` @return [String]

name[RW]

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

object_type[RW]

The type of object this app creates (e.g. Chart). If empty, the app name should be used instead. Corresponds to the JSON property `objectType` @return [String]

open_url_template[RW]

The template url for opening files with this app. The template will contain ` ids` and/or `exportIds` to be replaced by the actual file ids. See Open Files for the full documentation. Corresponds to the JSON property `openUrlTemplate` @return [String]

primary_file_extensions[RW]

The list of primary file extensions. Corresponds to the JSON property `primaryFileExtensions` @return [Array<String>]

primary_mime_types[RW]

The list of primary mime types. Corresponds to the JSON property `primaryMimeTypes` @return [Array<String>]

product_id[RW]

The ID of the product listing for this app. Corresponds to the JSON property `productId` @return [String]

product_url[RW]

A link to the product listing for this app. Corresponds to the JSON property `productUrl` @return [String]

secondary_file_extensions[RW]

The list of secondary file extensions. Corresponds to the JSON property `secondaryFileExtensions` @return [Array<String>]

secondary_mime_types[RW]

The list of secondary mime types. Corresponds to the JSON property `secondaryMimeTypes` @return [Array<String>]

short_description[RW]

A short description of the app. Corresponds to the JSON property `shortDescription` @return [String]

supports_create[RW]

Whether this app supports creating new objects. Corresponds to the JSON property `supportsCreate` @return [Boolean]

supports_create?[RW]

Whether this app supports creating new objects. Corresponds to the JSON property `supportsCreate` @return [Boolean]

supports_import[RW]

Whether this app supports importing Google Docs. Corresponds to the JSON property `supportsImport` @return [Boolean]

supports_import?[RW]

Whether this app supports importing Google Docs. Corresponds to the JSON property `supportsImport` @return [Boolean]

supports_multi_open[RW]

Whether this app supports opening more than one file. Corresponds to the JSON property `supportsMultiOpen` @return [Boolean]

supports_multi_open?[RW]

Whether this app supports opening more than one file. Corresponds to the JSON property `supportsMultiOpen` @return [Boolean]

supports_offline_create[RW]

Whether this app supports creating new files when offline. Corresponds to the JSON property `supportsOfflineCreate` @return [Boolean]

supports_offline_create?[RW]

Whether this app supports creating new files when offline. Corresponds to the JSON property `supportsOfflineCreate` @return [Boolean]

use_by_default[RW]

Whether the app is selected as the default handler for the types it supports. Corresponds to the JSON property `useByDefault` @return [Boolean]

use_by_default?[RW]

Whether the app is selected as the default handler for the types it supports. Corresponds to the JSON property `useByDefault` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/drive_v2/classes.rb, line 508
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 513
def update!(**args)
  @authorized = args[:authorized] if args.key?(:authorized)
  @create_in_folder_template = args[:create_in_folder_template] if args.key?(:create_in_folder_template)
  @create_url = args[:create_url] if args.key?(:create_url)
  @has_drive_wide_scope = args[:has_drive_wide_scope] if args.key?(:has_drive_wide_scope)
  @icons = args[:icons] if args.key?(:icons)
  @id = args[:id] if args.key?(:id)
  @installed = args[:installed] if args.key?(:installed)
  @kind = args[:kind] if args.key?(:kind)
  @long_description = args[:long_description] if args.key?(:long_description)
  @name = args[:name] if args.key?(:name)
  @object_type = args[:object_type] if args.key?(:object_type)
  @open_url_template = args[:open_url_template] if args.key?(:open_url_template)
  @primary_file_extensions = args[:primary_file_extensions] if args.key?(:primary_file_extensions)
  @primary_mime_types = args[:primary_mime_types] if args.key?(:primary_mime_types)
  @product_id = args[:product_id] if args.key?(:product_id)
  @product_url = args[:product_url] if args.key?(:product_url)
  @secondary_file_extensions = args[:secondary_file_extensions] if args.key?(:secondary_file_extensions)
  @secondary_mime_types = args[:secondary_mime_types] if args.key?(:secondary_mime_types)
  @short_description = args[:short_description] if args.key?(:short_description)
  @supports_create = args[:supports_create] if args.key?(:supports_create)
  @supports_import = args[:supports_import] if args.key?(:supports_import)
  @supports_multi_open = args[:supports_multi_open] if args.key?(:supports_multi_open)
  @supports_offline_create = args[:supports_offline_create] if args.key?(:supports_offline_create)
  @use_by_default = args[:use_by_default] if args.key?(:use_by_default)
end