google-apis-drive_v3 0.47.0 → 0.48.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c28aca4b595ccde8726057de66d1578cbf1e5864871f0e01b50044a900a9973
4
- data.tar.gz: 76bea9695a0f70dcb6305d4b1399a6d5707ae382f12c777750765fa723b1ff32
3
+ metadata.gz: 2fb0368b0e13a6689d929b813a0a5f00dc9d63bc1c7b042b22467c12d26bcb31
4
+ data.tar.gz: de2b901a8a4124bb2e21d0c2c64a4432516b1b3f5b3cc2d85e6ab026df38efe2
5
5
  SHA512:
6
- metadata.gz: cb359ad3a4dc0eea08ce1f1f7cf1889b1716794fa6ef229cc8924f85317547e35557f06bb0be09997eda20bd2c5759b06589358f3a931024339f2da937238620
7
- data.tar.gz: e9a4df98e258cb415e23f019bb087338039d94406e60794b9e169f74cec8278cc245f1e91576655f8c2f8a4ab93ac119cdda08f7004b915904ccdcc2a0a98863
6
+ metadata.gz: c5b45d0e2b38757945637bab36a9a51a4336ba97df6d510529c7fcfd2874ed6ef8ed498f4d24aec482de87301b0cae80fe6bee5a8eaa9868bd9c6f7d60ba9ccd
7
+ data.tar.gz: 7e52a3c9ab695681883b731678229a74787511276353dfe6da73c722dabe19b43e32aab10c0997d5c0efbc8772e115b9a40502c493a62c45c4cb85d3d04aac8c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.48.0 (2024-01-28)
4
+
5
+ * Regenerated from discovery document revision 20240123
6
+ * Regenerated using generator version 0.13.1
7
+
3
8
  ### v0.47.0 (2024-01-23)
4
9
 
5
10
  * Regenerated from discovery document revision 20240110
@@ -217,6 +217,254 @@ module Google
217
217
  end
218
218
  end
219
219
 
220
+ # The `apps` resource provides a list of apps that a user has installed, with
221
+ # information about each app's supported MIME types, file extensions, and other
222
+ # details. Some resource methods (such as `apps.get`) require an `appId`. Use
223
+ # the `apps.list` method to retrieve the ID for an installed application.
224
+ class App
225
+ include Google::Apis::Core::Hashable
226
+
227
+ # Whether the app is authorized to access data on the user's Drive.
228
+ # Corresponds to the JSON property `authorized`
229
+ # @return [Boolean]
230
+ attr_accessor :authorized
231
+ alias_method :authorized?, :authorized
232
+
233
+ # The template URL to create a file with this app in a given folder. The
234
+ # template contains the `folderId` to be replaced by the folder ID house the new
235
+ # file.
236
+ # Corresponds to the JSON property `createInFolderTemplate`
237
+ # @return [String]
238
+ attr_accessor :create_in_folder_template
239
+
240
+ # The URL to create a file with this app.
241
+ # Corresponds to the JSON property `createUrl`
242
+ # @return [String]
243
+ attr_accessor :create_url
244
+
245
+ # Whether the app has Drive-wide scope. An app with Drive-wide scope can access
246
+ # all files in the user's Drive.
247
+ # Corresponds to the JSON property `hasDriveWideScope`
248
+ # @return [Boolean]
249
+ attr_accessor :has_drive_wide_scope
250
+ alias_method :has_drive_wide_scope?, :has_drive_wide_scope
251
+
252
+ # The various icons for the app.
253
+ # Corresponds to the JSON property `icons`
254
+ # @return [Array<Google::Apis::DriveV3::AppIcons>]
255
+ attr_accessor :icons
256
+
257
+ # The ID of the app.
258
+ # Corresponds to the JSON property `id`
259
+ # @return [String]
260
+ attr_accessor :id
261
+
262
+ # Whether the app is installed.
263
+ # Corresponds to the JSON property `installed`
264
+ # @return [Boolean]
265
+ attr_accessor :installed
266
+ alias_method :installed?, :installed
267
+
268
+ # Output only. Identifies what kind of resource this is. Value: the fixed string
269
+ # "drive#app".
270
+ # Corresponds to the JSON property `kind`
271
+ # @return [String]
272
+ attr_accessor :kind
273
+
274
+ # A long description of the app.
275
+ # Corresponds to the JSON property `longDescription`
276
+ # @return [String]
277
+ attr_accessor :long_description
278
+
279
+ # The name of the app.
280
+ # Corresponds to the JSON property `name`
281
+ # @return [String]
282
+ attr_accessor :name
283
+
284
+ # The type of object this app creates such as a Chart. If empty, the app name
285
+ # should be used instead.
286
+ # Corresponds to the JSON property `objectType`
287
+ # @return [String]
288
+ attr_accessor :object_type
289
+
290
+ # The template URL for opening files with this app. The template contains `ids`
291
+ # or `exportIds` to be replaced by the actual file IDs. For more information,
292
+ # see Open Files for the full documentation.
293
+ # Corresponds to the JSON property `openUrlTemplate`
294
+ # @return [String]
295
+ attr_accessor :open_url_template
296
+
297
+ # The list of primary file extensions.
298
+ # Corresponds to the JSON property `primaryFileExtensions`
299
+ # @return [Array<String>]
300
+ attr_accessor :primary_file_extensions
301
+
302
+ # The list of primary MIME types.
303
+ # Corresponds to the JSON property `primaryMimeTypes`
304
+ # @return [Array<String>]
305
+ attr_accessor :primary_mime_types
306
+
307
+ # The ID of the product listing for this app.
308
+ # Corresponds to the JSON property `productId`
309
+ # @return [String]
310
+ attr_accessor :product_id
311
+
312
+ # A link to the product listing for this app.
313
+ # Corresponds to the JSON property `productUrl`
314
+ # @return [String]
315
+ attr_accessor :product_url
316
+
317
+ # The list of secondary file extensions.
318
+ # Corresponds to the JSON property `secondaryFileExtensions`
319
+ # @return [Array<String>]
320
+ attr_accessor :secondary_file_extensions
321
+
322
+ # The list of secondary MIME types.
323
+ # Corresponds to the JSON property `secondaryMimeTypes`
324
+ # @return [Array<String>]
325
+ attr_accessor :secondary_mime_types
326
+
327
+ # A short description of the app.
328
+ # Corresponds to the JSON property `shortDescription`
329
+ # @return [String]
330
+ attr_accessor :short_description
331
+
332
+ # Whether this app supports creating objects.
333
+ # Corresponds to the JSON property `supportsCreate`
334
+ # @return [Boolean]
335
+ attr_accessor :supports_create
336
+ alias_method :supports_create?, :supports_create
337
+
338
+ # Whether this app supports importing from Google Docs.
339
+ # Corresponds to the JSON property `supportsImport`
340
+ # @return [Boolean]
341
+ attr_accessor :supports_import
342
+ alias_method :supports_import?, :supports_import
343
+
344
+ # Whether this app supports opening more than one file.
345
+ # Corresponds to the JSON property `supportsMultiOpen`
346
+ # @return [Boolean]
347
+ attr_accessor :supports_multi_open
348
+ alias_method :supports_multi_open?, :supports_multi_open
349
+
350
+ # Whether this app supports creating files when offline.
351
+ # Corresponds to the JSON property `supportsOfflineCreate`
352
+ # @return [Boolean]
353
+ attr_accessor :supports_offline_create
354
+ alias_method :supports_offline_create?, :supports_offline_create
355
+
356
+ # Whether the app is selected as the default handler for the types it supports.
357
+ # Corresponds to the JSON property `useByDefault`
358
+ # @return [Boolean]
359
+ attr_accessor :use_by_default
360
+ alias_method :use_by_default?, :use_by_default
361
+
362
+ def initialize(**args)
363
+ update!(**args)
364
+ end
365
+
366
+ # Update properties of this object
367
+ def update!(**args)
368
+ @authorized = args[:authorized] if args.key?(:authorized)
369
+ @create_in_folder_template = args[:create_in_folder_template] if args.key?(:create_in_folder_template)
370
+ @create_url = args[:create_url] if args.key?(:create_url)
371
+ @has_drive_wide_scope = args[:has_drive_wide_scope] if args.key?(:has_drive_wide_scope)
372
+ @icons = args[:icons] if args.key?(:icons)
373
+ @id = args[:id] if args.key?(:id)
374
+ @installed = args[:installed] if args.key?(:installed)
375
+ @kind = args[:kind] if args.key?(:kind)
376
+ @long_description = args[:long_description] if args.key?(:long_description)
377
+ @name = args[:name] if args.key?(:name)
378
+ @object_type = args[:object_type] if args.key?(:object_type)
379
+ @open_url_template = args[:open_url_template] if args.key?(:open_url_template)
380
+ @primary_file_extensions = args[:primary_file_extensions] if args.key?(:primary_file_extensions)
381
+ @primary_mime_types = args[:primary_mime_types] if args.key?(:primary_mime_types)
382
+ @product_id = args[:product_id] if args.key?(:product_id)
383
+ @product_url = args[:product_url] if args.key?(:product_url)
384
+ @secondary_file_extensions = args[:secondary_file_extensions] if args.key?(:secondary_file_extensions)
385
+ @secondary_mime_types = args[:secondary_mime_types] if args.key?(:secondary_mime_types)
386
+ @short_description = args[:short_description] if args.key?(:short_description)
387
+ @supports_create = args[:supports_create] if args.key?(:supports_create)
388
+ @supports_import = args[:supports_import] if args.key?(:supports_import)
389
+ @supports_multi_open = args[:supports_multi_open] if args.key?(:supports_multi_open)
390
+ @supports_offline_create = args[:supports_offline_create] if args.key?(:supports_offline_create)
391
+ @use_by_default = args[:use_by_default] if args.key?(:use_by_default)
392
+ end
393
+ end
394
+
395
+ #
396
+ class AppIcons
397
+ include Google::Apis::Core::Hashable
398
+
399
+ # Category of the icon. Allowed values are: * `application` - The icon for the
400
+ # application. * `document` - The icon for a file associated with the app. * `
401
+ # documentShared` - The icon for a shared file associated with the app.
402
+ # Corresponds to the JSON property `category`
403
+ # @return [String]
404
+ attr_accessor :category
405
+
406
+ # URL for the icon.
407
+ # Corresponds to the JSON property `iconUrl`
408
+ # @return [String]
409
+ attr_accessor :icon_url
410
+
411
+ # Size of the icon. Represented as the maximum of the width and height.
412
+ # Corresponds to the JSON property `size`
413
+ # @return [Fixnum]
414
+ attr_accessor :size
415
+
416
+ def initialize(**args)
417
+ update!(**args)
418
+ end
419
+
420
+ # Update properties of this object
421
+ def update!(**args)
422
+ @category = args[:category] if args.key?(:category)
423
+ @icon_url = args[:icon_url] if args.key?(:icon_url)
424
+ @size = args[:size] if args.key?(:size)
425
+ end
426
+ end
427
+
428
+ # A list of third-party applications which the user has installed or given
429
+ # access to Google Drive.
430
+ class AppList
431
+ include Google::Apis::Core::Hashable
432
+
433
+ # The list of app IDs that the user has specified to use by default. The list is
434
+ # in reverse-priority order (lowest to highest).
435
+ # Corresponds to the JSON property `defaultAppIds`
436
+ # @return [Array<String>]
437
+ attr_accessor :default_app_ids
438
+
439
+ # The list of apps.
440
+ # Corresponds to the JSON property `items`
441
+ # @return [Array<Google::Apis::DriveV3::App>]
442
+ attr_accessor :items
443
+
444
+ # Output only. Identifies what kind of resource this is. Value: the fixed string
445
+ # "drive#appList".
446
+ # Corresponds to the JSON property `kind`
447
+ # @return [String]
448
+ attr_accessor :kind
449
+
450
+ # A link back to this list.
451
+ # Corresponds to the JSON property `selfLink`
452
+ # @return [String]
453
+ attr_accessor :self_link
454
+
455
+ def initialize(**args)
456
+ update!(**args)
457
+ end
458
+
459
+ # Update properties of this object
460
+ def update!(**args)
461
+ @default_app_ids = args[:default_app_ids] if args.key?(:default_app_ids)
462
+ @items = args[:items] if args.key?(:items)
463
+ @kind = args[:kind] if args.key?(:kind)
464
+ @self_link = args[:self_link] if args.key?(:self_link)
465
+ end
466
+ end
467
+
220
468
  # A change to a file or shared drive.
221
469
  class Change
222
470
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DriveV3
18
18
  # Version of the google-apis-drive_v3 gem
19
- GEM_VERSION = "0.47.0"
19
+ GEM_VERSION = "0.48.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.0"
22
+ GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240110"
25
+ REVISION = "20240123"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,24 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class App
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class AppIcons
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class AppList
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
49
67
  class Change
50
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
69
 
@@ -381,6 +399,57 @@ module Google
381
399
  end
382
400
  end
383
401
 
402
+ class App
403
+ # @private
404
+ class Representation < Google::Apis::Core::JsonRepresentation
405
+ property :authorized, as: 'authorized'
406
+ property :create_in_folder_template, as: 'createInFolderTemplate'
407
+ property :create_url, as: 'createUrl'
408
+ property :has_drive_wide_scope, as: 'hasDriveWideScope'
409
+ collection :icons, as: 'icons', class: Google::Apis::DriveV3::AppIcons, decorator: Google::Apis::DriveV3::AppIcons::Representation
410
+
411
+ property :id, as: 'id'
412
+ property :installed, as: 'installed'
413
+ property :kind, as: 'kind'
414
+ property :long_description, as: 'longDescription'
415
+ property :name, as: 'name'
416
+ property :object_type, as: 'objectType'
417
+ property :open_url_template, as: 'openUrlTemplate'
418
+ collection :primary_file_extensions, as: 'primaryFileExtensions'
419
+ collection :primary_mime_types, as: 'primaryMimeTypes'
420
+ property :product_id, as: 'productId'
421
+ property :product_url, as: 'productUrl'
422
+ collection :secondary_file_extensions, as: 'secondaryFileExtensions'
423
+ collection :secondary_mime_types, as: 'secondaryMimeTypes'
424
+ property :short_description, as: 'shortDescription'
425
+ property :supports_create, as: 'supportsCreate'
426
+ property :supports_import, as: 'supportsImport'
427
+ property :supports_multi_open, as: 'supportsMultiOpen'
428
+ property :supports_offline_create, as: 'supportsOfflineCreate'
429
+ property :use_by_default, as: 'useByDefault'
430
+ end
431
+ end
432
+
433
+ class AppIcons
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :category, as: 'category'
437
+ property :icon_url, as: 'iconUrl'
438
+ property :size, as: 'size'
439
+ end
440
+ end
441
+
442
+ class AppList
443
+ # @private
444
+ class Representation < Google::Apis::Core::JsonRepresentation
445
+ collection :default_app_ids, as: 'defaultAppIds'
446
+ collection :items, as: 'items', class: Google::Apis::DriveV3::App, decorator: Google::Apis::DriveV3::App::Representation
447
+
448
+ property :kind, as: 'kind'
449
+ property :self_link, as: 'selfLink'
450
+ end
451
+ end
452
+
384
453
  class Change
385
454
  # @private
386
455
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -78,6 +78,79 @@ module Google
78
78
  execute_or_queue_command(command, &block)
79
79
  end
80
80
 
81
+ # Gets a specific app.
82
+ # @param [String] app_id
83
+ # The ID of the app.
84
+ # @param [String] fields
85
+ # Selector specifying which fields to include in a partial response.
86
+ # @param [String] quota_user
87
+ # Available to use for quota purposes for server-side applications. Can be any
88
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
89
+ # @param [Google::Apis::RequestOptions] options
90
+ # Request-specific options
91
+ #
92
+ # @yield [result, err] Result & error if block supplied
93
+ # @yieldparam result [Google::Apis::DriveV3::App] parsed result object
94
+ # @yieldparam err [StandardError] error object if request failed
95
+ #
96
+ # @return [Google::Apis::DriveV3::App]
97
+ #
98
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
99
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
100
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
101
+ def get_app(app_id, fields: nil, quota_user: nil, options: nil, &block)
102
+ command = make_simple_command(:get, 'apps/{appId}', options)
103
+ command.response_representation = Google::Apis::DriveV3::App::Representation
104
+ command.response_class = Google::Apis::DriveV3::App
105
+ command.params['appId'] = app_id unless app_id.nil?
106
+ command.query['fields'] = fields unless fields.nil?
107
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
108
+ execute_or_queue_command(command, &block)
109
+ end
110
+
111
+ # Lists a user's installed apps.
112
+ # @param [String] app_filter_extensions
113
+ # A comma-separated list of file extensions to limit returned results. All
114
+ # results within the given app query scope which can open any of the given file
115
+ # extensions are included in the response. If `appFilterMimeTypes` are provided
116
+ # as well, the result is a union of the two resulting app lists.
117
+ # @param [String] app_filter_mime_types
118
+ # A comma-separated list of file extensions to limit returned results. All
119
+ # results within the given app query scope which can open any of the given MIME
120
+ # types will be included in the response. If `appFilterExtensions` are provided
121
+ # as well, the result is a union of the two resulting app lists.
122
+ # @param [String] language_code
123
+ # A language or locale code, as defined by BCP 47, with some extensions from
124
+ # Unicode's LDML format (http://www.unicode.org/reports/tr35/).
125
+ # @param [String] fields
126
+ # Selector specifying which fields to include in a partial response.
127
+ # @param [String] quota_user
128
+ # Available to use for quota purposes for server-side applications. Can be any
129
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
130
+ # @param [Google::Apis::RequestOptions] options
131
+ # Request-specific options
132
+ #
133
+ # @yield [result, err] Result & error if block supplied
134
+ # @yieldparam result [Google::Apis::DriveV3::AppList] parsed result object
135
+ # @yieldparam err [StandardError] error object if request failed
136
+ #
137
+ # @return [Google::Apis::DriveV3::AppList]
138
+ #
139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
142
+ def list_apps(app_filter_extensions: nil, app_filter_mime_types: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
143
+ command = make_simple_command(:get, 'apps', options)
144
+ command.response_representation = Google::Apis::DriveV3::AppList::Representation
145
+ command.response_class = Google::Apis::DriveV3::AppList
146
+ command.query['appFilterExtensions'] = app_filter_extensions unless app_filter_extensions.nil?
147
+ command.query['appFilterMimeTypes'] = app_filter_mime_types unless app_filter_mime_types.nil?
148
+ command.query['languageCode'] = language_code unless language_code.nil?
149
+ command.query['fields'] = fields unless fields.nil?
150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
151
+ execute_or_queue_command(command, &block)
152
+ end
153
+
81
154
  # Gets the starting pageToken for listing future changes.
82
155
  # @param [String] drive_id
83
156
  # The ID of the shared drive for which the starting pageToken for listing future
@@ -35,6 +35,9 @@ module Google
35
35
  # See, create, and delete its own configuration data in your Google Drive
36
36
  AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
37
37
 
38
+ # View your Google Drive apps
39
+ AUTH_DRIVE_APPS_READONLY = 'https://www.googleapis.com/auth/drive.apps.readonly'
40
+
38
41
  # See, edit, create, and delete only the specific Google Drive files you use with this app
39
42
  AUTH_DRIVE_FILE = 'https://www.googleapis.com/auth/drive.file'
40
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-drive_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.48.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-23 00:00:00.000000000 Z
11
+ date: 2024-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.48.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3
63
63
  post_install_message:
64
64
  rdoc_options: []