Class: Google::Apis::DriveV3::App
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::App
- 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
The apps
resource provides a list of apps that a user has installed, with
information about each app's supported MIME types, file extensions, and other
details. Some resource methods (such as apps.get
) require an appId
. Use
the apps.list
method to retrieve the ID for an installed application.
Instance Attribute Summary collapse
-
#authorized ⇒ Boolean
(also: #authorized?)
Whether the app is authorized to access data on the user's Drive.
-
#create_in_folder_template ⇒ String
The template URL to create a file with this app in a given folder.
-
#create_url ⇒ String
The URL to create a file with this app.
-
#has_drive_wide_scope ⇒ Boolean
(also: #has_drive_wide_scope?)
Whether the app has Drive-wide scope.
-
#icons ⇒ Array<Google::Apis::DriveV3::AppIcons>
The various icons for the app.
-
#id ⇒ String
The ID of the app.
-
#installed ⇒ Boolean
(also: #installed?)
Whether the app is installed.
-
#kind ⇒ String
Output only.
-
#long_description ⇒ String
A long description of the app.
-
#name ⇒ String
The name of the app.
-
#object_type ⇒ String
The type of object this app creates such as a Chart.
-
#open_url_template ⇒ String
The template URL for opening files with this app.
-
#primary_file_extensions ⇒ Array<String>
The list of primary file extensions.
-
#primary_mime_types ⇒ Array<String>
The list of primary MIME types.
-
#product_id ⇒ String
The ID of the product listing for this app.
-
#product_url ⇒ String
A link to the product listing for this app.
-
#secondary_file_extensions ⇒ Array<String>
The list of secondary file extensions.
-
#secondary_mime_types ⇒ Array<String>
The list of secondary MIME types.
-
#short_description ⇒ String
A short description of the app.
-
#supports_create ⇒ Boolean
(also: #supports_create?)
Whether this app supports creating objects.
-
#supports_import ⇒ Boolean
(also: #supports_import?)
Whether this app supports importing from Google Docs.
-
#supports_multi_open ⇒ Boolean
(also: #supports_multi_open?)
Whether this app supports opening more than one file.
-
#supports_offline_create ⇒ Boolean
(also: #supports_offline_create?)
Whether this app supports creating files when offline.
-
#use_by_default ⇒ Boolean
(also: #use_by_default?)
Whether the app is selected as the default handler for the types it supports.
Instance Method Summary collapse
-
#initialize(**args) ⇒ App
constructor
A new instance of App.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ App
Returns a new instance of App.
455 456 457 |
# File 'lib/google/apis/drive_v3/classes.rb', line 455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authorized ⇒ Boolean Also known as:
Whether the app is authorized to access data on the user's Drive.
Corresponds to the JSON property authorized
323 324 325 |
# File 'lib/google/apis/drive_v3/classes.rb', line 323 def @authorized end |
#create_in_folder_template ⇒ String
The template URL to create a file with this app in a given folder. The
template contains the folderId
to be replaced by the folder ID house the new
file.
Corresponds to the JSON property createInFolderTemplate
331 332 333 |
# File 'lib/google/apis/drive_v3/classes.rb', line 331 def create_in_folder_template @create_in_folder_template end |
#create_url ⇒ String
The URL to create a file with this app.
Corresponds to the JSON property createUrl
336 337 338 |
# File 'lib/google/apis/drive_v3/classes.rb', line 336 def create_url @create_url end |
#has_drive_wide_scope ⇒ Boolean Also known as: has_drive_wide_scope?
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
342 343 344 |
# File 'lib/google/apis/drive_v3/classes.rb', line 342 def has_drive_wide_scope @has_drive_wide_scope end |
#icons ⇒ Array<Google::Apis::DriveV3::AppIcons>
The various icons for the app.
Corresponds to the JSON property icons
348 349 350 |
# File 'lib/google/apis/drive_v3/classes.rb', line 348 def icons @icons end |
#id ⇒ String
The ID of the app.
Corresponds to the JSON property id
353 354 355 |
# File 'lib/google/apis/drive_v3/classes.rb', line 353 def id @id end |
#installed ⇒ Boolean Also known as: installed?
Whether the app is installed.
Corresponds to the JSON property installed
358 359 360 |
# File 'lib/google/apis/drive_v3/classes.rb', line 358 def installed @installed end |
#kind ⇒ String
Output only. Identifies what kind of resource this is. Value: the fixed string
"drive#app".
Corresponds to the JSON property kind
365 366 367 |
# File 'lib/google/apis/drive_v3/classes.rb', line 365 def kind @kind end |
#long_description ⇒ String
A long description of the app.
Corresponds to the JSON property longDescription
370 371 372 |
# File 'lib/google/apis/drive_v3/classes.rb', line 370 def long_description @long_description end |
#name ⇒ String
The name of the app.
Corresponds to the JSON property name
375 376 377 |
# File 'lib/google/apis/drive_v3/classes.rb', line 375 def name @name end |
#object_type ⇒ String
The type of object this app creates such as a Chart. If empty, the app name
should be used instead.
Corresponds to the JSON property objectType
381 382 383 |
# File 'lib/google/apis/drive_v3/classes.rb', line 381 def object_type @object_type end |
#open_url_template ⇒ String
The template URL for opening files with this app. The template contains ids
or exportIds
to be replaced by the actual file IDs. For more information,
see Open Files for the full documentation.
Corresponds to the JSON property openUrlTemplate
388 389 390 |
# File 'lib/google/apis/drive_v3/classes.rb', line 388 def open_url_template @open_url_template end |
#primary_file_extensions ⇒ Array<String>
The list of primary file extensions.
Corresponds to the JSON property primaryFileExtensions
393 394 395 |
# File 'lib/google/apis/drive_v3/classes.rb', line 393 def primary_file_extensions @primary_file_extensions end |
#primary_mime_types ⇒ Array<String>
The list of primary MIME types.
Corresponds to the JSON property primaryMimeTypes
398 399 400 |
# File 'lib/google/apis/drive_v3/classes.rb', line 398 def primary_mime_types @primary_mime_types end |
#product_id ⇒ String
The ID of the product listing for this app.
Corresponds to the JSON property productId
403 404 405 |
# File 'lib/google/apis/drive_v3/classes.rb', line 403 def product_id @product_id end |
#product_url ⇒ String
A link to the product listing for this app.
Corresponds to the JSON property productUrl
408 409 410 |
# File 'lib/google/apis/drive_v3/classes.rb', line 408 def product_url @product_url end |
#secondary_file_extensions ⇒ Array<String>
The list of secondary file extensions.
Corresponds to the JSON property secondaryFileExtensions
413 414 415 |
# File 'lib/google/apis/drive_v3/classes.rb', line 413 def secondary_file_extensions @secondary_file_extensions end |
#secondary_mime_types ⇒ Array<String>
The list of secondary MIME types.
Corresponds to the JSON property secondaryMimeTypes
418 419 420 |
# File 'lib/google/apis/drive_v3/classes.rb', line 418 def secondary_mime_types @secondary_mime_types end |
#short_description ⇒ String
A short description of the app.
Corresponds to the JSON property shortDescription
423 424 425 |
# File 'lib/google/apis/drive_v3/classes.rb', line 423 def short_description @short_description end |
#supports_create ⇒ Boolean Also known as: supports_create?
Whether this app supports creating objects.
Corresponds to the JSON property supportsCreate
428 429 430 |
# File 'lib/google/apis/drive_v3/classes.rb', line 428 def supports_create @supports_create end |
#supports_import ⇒ Boolean Also known as: supports_import?
Whether this app supports importing from Google Docs.
Corresponds to the JSON property supportsImport
434 435 436 |
# File 'lib/google/apis/drive_v3/classes.rb', line 434 def supports_import @supports_import end |
#supports_multi_open ⇒ Boolean Also known as: supports_multi_open?
Whether this app supports opening more than one file.
Corresponds to the JSON property supportsMultiOpen
440 441 442 |
# File 'lib/google/apis/drive_v3/classes.rb', line 440 def supports_multi_open @supports_multi_open end |
#supports_offline_create ⇒ Boolean Also known as: supports_offline_create?
Whether this app supports creating files when offline.
Corresponds to the JSON property supportsOfflineCreate
446 447 448 |
# File 'lib/google/apis/drive_v3/classes.rb', line 446 def supports_offline_create @supports_offline_create end |
#use_by_default ⇒ Boolean Also known as: use_by_default?
Whether the app is selected as the default handler for the types it supports.
Corresponds to the JSON property useByDefault
452 453 454 |
# File 'lib/google/apis/drive_v3/classes.rb', line 452 def use_by_default @use_by_default end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
# File 'lib/google/apis/drive_v3/classes.rb', line 460 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 |