google-apis-drive_v3 0.46.0 → 0.51.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: 6007c46f0599577f9b8a76ef48fb7093c5f830144a122ac3cab92fdb8cc5eb71
4
- data.tar.gz: ebafc349cbd2d6fb530507ef0c420fd03e62cac5ed9c1cd755fd3d6b93110c8d
3
+ metadata.gz: acfd309295b57b0dce3ca39fb55d248eea59c093114c70ee81d00593fee9fe33
4
+ data.tar.gz: 5ace7cce0873881d7dfe852316c1a1cc5a84cf4ae5558db9564b42a8767425e4
5
5
  SHA512:
6
- metadata.gz: b331554c61d9093e152b06917dcdbdfee247cfab4a76376082dad445d2611b2685aab0c26783bd478913eb63ca295a78f13e96968a49db240b639a7cdb124411
7
- data.tar.gz: 8e90f3df2cca145c9148ddf85c86eaecbede2345cb8e28723047fc2d3a332f414748cecbbbfbda49d4211623e3d6ea36c956b61ae52af5e678fa46233bca9708
6
+ metadata.gz: 9a91075df55c6644a013c24ffbda6275751dab987b61064f70831683b7c78a1283b33d406fad6680a6acaa70a49767616212a488ab48cacd116e4ed151a0f911
7
+ data.tar.gz: acf7c6b7fbb288d9af9c4b8f86ed7d18fb05d5f0fa783170c218b19d9137c0006afc51384dd71c248a8f4bdfc5795f85d3ae2ab08097623d49d898ade46cc19a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.51.0 (2024-05-26)
4
+
5
+ * Regenerated from discovery document revision 20240521
6
+ * Regenerated using generator version 0.15.0
7
+
8
+ ### v0.50.0 (2024-03-31)
9
+
10
+ * Regenerated from discovery document revision 20240327
11
+
12
+ ### v0.49.0 (2024-02-24)
13
+
14
+ * Regenerated using generator version 0.14.0
15
+
16
+ ### v0.48.0 (2024-01-28)
17
+
18
+ * Regenerated from discovery document revision 20240123
19
+ * Regenerated using generator version 0.13.1
20
+
21
+ ### v0.47.0 (2024-01-23)
22
+
23
+ * Regenerated from discovery document revision 20240110
24
+ * Regenerated using generator version 0.13.0
25
+
3
26
  ### v0.46.0 (2023-12-10)
4
27
 
5
28
  * Regenerated from discovery document revision 20231128
data/OVERVIEW.md CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://developers.google.com/drive/) may provide gu
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -80,7 +80,10 @@ module Google
80
80
  # @return [Fixnum]
81
81
  attr_accessor :max_upload_size
82
82
 
83
- # The user's storage quota limits and usage. All fields are measured in bytes.
83
+ # The user's storage quota limits and usage. For users that are part of an
84
+ # organization with pooled storage, information about the limit and usage across
85
+ # all services is for the organization, rather than the individual user. All
86
+ # fields are measured in bytes.
84
87
  # Corresponds to the JSON property `storageQuota`
85
88
  # @return [Google::Apis::DriveV3::About::StorageQuota]
86
89
  attr_accessor :storage_quota
@@ -147,17 +150,24 @@ module Google
147
150
  end
148
151
  end
149
152
 
150
- # The user's storage quota limits and usage. All fields are measured in bytes.
153
+ # The user's storage quota limits and usage. For users that are part of an
154
+ # organization with pooled storage, information about the limit and usage across
155
+ # all services is for the organization, rather than the individual user. All
156
+ # fields are measured in bytes.
151
157
  class StorageQuota
152
158
  include Google::Apis::Core::Hashable
153
159
 
154
160
  # The usage limit, if applicable. This will not be present if the user has
155
- # unlimited storage.
161
+ # unlimited storage. For users that are part of an organization with pooled
162
+ # storage, this is the limit for the organization, rather than the individual
163
+ # user.
156
164
  # Corresponds to the JSON property `limit`
157
165
  # @return [Fixnum]
158
166
  attr_accessor :limit
159
167
 
160
- # The total usage across all services.
168
+ # The total usage across all services. For users that are part of an
169
+ # organization with pooled storage, this is the usage across all services for
170
+ # the organization, rather than the individual user.
161
171
  # Corresponds to the JSON property `usage`
162
172
  # @return [Fixnum]
163
173
  attr_accessor :usage
@@ -217,6 +227,254 @@ module Google
217
227
  end
218
228
  end
219
229
 
230
+ # The `apps` resource provides a list of apps that a user has installed, with
231
+ # information about each app's supported MIME types, file extensions, and other
232
+ # details. Some resource methods (such as `apps.get`) require an `appId`. Use
233
+ # the `apps.list` method to retrieve the ID for an installed application.
234
+ class App
235
+ include Google::Apis::Core::Hashable
236
+
237
+ # Whether the app is authorized to access data on the user's Drive.
238
+ # Corresponds to the JSON property `authorized`
239
+ # @return [Boolean]
240
+ attr_accessor :authorized
241
+ alias_method :authorized?, :authorized
242
+
243
+ # The template URL to create a file with this app in a given folder. The
244
+ # template contains the `folderId` to be replaced by the folder ID house the new
245
+ # file.
246
+ # Corresponds to the JSON property `createInFolderTemplate`
247
+ # @return [String]
248
+ attr_accessor :create_in_folder_template
249
+
250
+ # The URL to create a file with this app.
251
+ # Corresponds to the JSON property `createUrl`
252
+ # @return [String]
253
+ attr_accessor :create_url
254
+
255
+ # Whether the app has Drive-wide scope. An app with Drive-wide scope can access
256
+ # all files in the user's Drive.
257
+ # Corresponds to the JSON property `hasDriveWideScope`
258
+ # @return [Boolean]
259
+ attr_accessor :has_drive_wide_scope
260
+ alias_method :has_drive_wide_scope?, :has_drive_wide_scope
261
+
262
+ # The various icons for the app.
263
+ # Corresponds to the JSON property `icons`
264
+ # @return [Array<Google::Apis::DriveV3::AppIcons>]
265
+ attr_accessor :icons
266
+
267
+ # The ID of the app.
268
+ # Corresponds to the JSON property `id`
269
+ # @return [String]
270
+ attr_accessor :id
271
+
272
+ # Whether the app is installed.
273
+ # Corresponds to the JSON property `installed`
274
+ # @return [Boolean]
275
+ attr_accessor :installed
276
+ alias_method :installed?, :installed
277
+
278
+ # Output only. Identifies what kind of resource this is. Value: the fixed string
279
+ # "drive#app".
280
+ # Corresponds to the JSON property `kind`
281
+ # @return [String]
282
+ attr_accessor :kind
283
+
284
+ # A long description of the app.
285
+ # Corresponds to the JSON property `longDescription`
286
+ # @return [String]
287
+ attr_accessor :long_description
288
+
289
+ # The name of the app.
290
+ # Corresponds to the JSON property `name`
291
+ # @return [String]
292
+ attr_accessor :name
293
+
294
+ # The type of object this app creates such as a Chart. If empty, the app name
295
+ # should be used instead.
296
+ # Corresponds to the JSON property `objectType`
297
+ # @return [String]
298
+ attr_accessor :object_type
299
+
300
+ # The template URL for opening files with this app. The template contains `ids`
301
+ # or `exportIds` to be replaced by the actual file IDs. For more information,
302
+ # see Open Files for the full documentation.
303
+ # Corresponds to the JSON property `openUrlTemplate`
304
+ # @return [String]
305
+ attr_accessor :open_url_template
306
+
307
+ # The list of primary file extensions.
308
+ # Corresponds to the JSON property `primaryFileExtensions`
309
+ # @return [Array<String>]
310
+ attr_accessor :primary_file_extensions
311
+
312
+ # The list of primary MIME types.
313
+ # Corresponds to the JSON property `primaryMimeTypes`
314
+ # @return [Array<String>]
315
+ attr_accessor :primary_mime_types
316
+
317
+ # The ID of the product listing for this app.
318
+ # Corresponds to the JSON property `productId`
319
+ # @return [String]
320
+ attr_accessor :product_id
321
+
322
+ # A link to the product listing for this app.
323
+ # Corresponds to the JSON property `productUrl`
324
+ # @return [String]
325
+ attr_accessor :product_url
326
+
327
+ # The list of secondary file extensions.
328
+ # Corresponds to the JSON property `secondaryFileExtensions`
329
+ # @return [Array<String>]
330
+ attr_accessor :secondary_file_extensions
331
+
332
+ # The list of secondary MIME types.
333
+ # Corresponds to the JSON property `secondaryMimeTypes`
334
+ # @return [Array<String>]
335
+ attr_accessor :secondary_mime_types
336
+
337
+ # A short description of the app.
338
+ # Corresponds to the JSON property `shortDescription`
339
+ # @return [String]
340
+ attr_accessor :short_description
341
+
342
+ # Whether this app supports creating objects.
343
+ # Corresponds to the JSON property `supportsCreate`
344
+ # @return [Boolean]
345
+ attr_accessor :supports_create
346
+ alias_method :supports_create?, :supports_create
347
+
348
+ # Whether this app supports importing from Google Docs.
349
+ # Corresponds to the JSON property `supportsImport`
350
+ # @return [Boolean]
351
+ attr_accessor :supports_import
352
+ alias_method :supports_import?, :supports_import
353
+
354
+ # Whether this app supports opening more than one file.
355
+ # Corresponds to the JSON property `supportsMultiOpen`
356
+ # @return [Boolean]
357
+ attr_accessor :supports_multi_open
358
+ alias_method :supports_multi_open?, :supports_multi_open
359
+
360
+ # Whether this app supports creating files when offline.
361
+ # Corresponds to the JSON property `supportsOfflineCreate`
362
+ # @return [Boolean]
363
+ attr_accessor :supports_offline_create
364
+ alias_method :supports_offline_create?, :supports_offline_create
365
+
366
+ # Whether the app is selected as the default handler for the types it supports.
367
+ # Corresponds to the JSON property `useByDefault`
368
+ # @return [Boolean]
369
+ attr_accessor :use_by_default
370
+ alias_method :use_by_default?, :use_by_default
371
+
372
+ def initialize(**args)
373
+ update!(**args)
374
+ end
375
+
376
+ # Update properties of this object
377
+ def update!(**args)
378
+ @authorized = args[:authorized] if args.key?(:authorized)
379
+ @create_in_folder_template = args[:create_in_folder_template] if args.key?(:create_in_folder_template)
380
+ @create_url = args[:create_url] if args.key?(:create_url)
381
+ @has_drive_wide_scope = args[:has_drive_wide_scope] if args.key?(:has_drive_wide_scope)
382
+ @icons = args[:icons] if args.key?(:icons)
383
+ @id = args[:id] if args.key?(:id)
384
+ @installed = args[:installed] if args.key?(:installed)
385
+ @kind = args[:kind] if args.key?(:kind)
386
+ @long_description = args[:long_description] if args.key?(:long_description)
387
+ @name = args[:name] if args.key?(:name)
388
+ @object_type = args[:object_type] if args.key?(:object_type)
389
+ @open_url_template = args[:open_url_template] if args.key?(:open_url_template)
390
+ @primary_file_extensions = args[:primary_file_extensions] if args.key?(:primary_file_extensions)
391
+ @primary_mime_types = args[:primary_mime_types] if args.key?(:primary_mime_types)
392
+ @product_id = args[:product_id] if args.key?(:product_id)
393
+ @product_url = args[:product_url] if args.key?(:product_url)
394
+ @secondary_file_extensions = args[:secondary_file_extensions] if args.key?(:secondary_file_extensions)
395
+ @secondary_mime_types = args[:secondary_mime_types] if args.key?(:secondary_mime_types)
396
+ @short_description = args[:short_description] if args.key?(:short_description)
397
+ @supports_create = args[:supports_create] if args.key?(:supports_create)
398
+ @supports_import = args[:supports_import] if args.key?(:supports_import)
399
+ @supports_multi_open = args[:supports_multi_open] if args.key?(:supports_multi_open)
400
+ @supports_offline_create = args[:supports_offline_create] if args.key?(:supports_offline_create)
401
+ @use_by_default = args[:use_by_default] if args.key?(:use_by_default)
402
+ end
403
+ end
404
+
405
+ #
406
+ class AppIcons
407
+ include Google::Apis::Core::Hashable
408
+
409
+ # Category of the icon. Allowed values are: * `application` - The icon for the
410
+ # application. * `document` - The icon for a file associated with the app. * `
411
+ # documentShared` - The icon for a shared file associated with the app.
412
+ # Corresponds to the JSON property `category`
413
+ # @return [String]
414
+ attr_accessor :category
415
+
416
+ # URL for the icon.
417
+ # Corresponds to the JSON property `iconUrl`
418
+ # @return [String]
419
+ attr_accessor :icon_url
420
+
421
+ # Size of the icon. Represented as the maximum of the width and height.
422
+ # Corresponds to the JSON property `size`
423
+ # @return [Fixnum]
424
+ attr_accessor :size
425
+
426
+ def initialize(**args)
427
+ update!(**args)
428
+ end
429
+
430
+ # Update properties of this object
431
+ def update!(**args)
432
+ @category = args[:category] if args.key?(:category)
433
+ @icon_url = args[:icon_url] if args.key?(:icon_url)
434
+ @size = args[:size] if args.key?(:size)
435
+ end
436
+ end
437
+
438
+ # A list of third-party applications which the user has installed or given
439
+ # access to Google Drive.
440
+ class AppList
441
+ include Google::Apis::Core::Hashable
442
+
443
+ # The list of app IDs that the user has specified to use by default. The list is
444
+ # in reverse-priority order (lowest to highest).
445
+ # Corresponds to the JSON property `defaultAppIds`
446
+ # @return [Array<String>]
447
+ attr_accessor :default_app_ids
448
+
449
+ # The list of apps.
450
+ # Corresponds to the JSON property `items`
451
+ # @return [Array<Google::Apis::DriveV3::App>]
452
+ attr_accessor :items
453
+
454
+ # Output only. Identifies what kind of resource this is. Value: the fixed string
455
+ # "drive#appList".
456
+ # Corresponds to the JSON property `kind`
457
+ # @return [String]
458
+ attr_accessor :kind
459
+
460
+ # A link back to this list.
461
+ # Corresponds to the JSON property `selfLink`
462
+ # @return [String]
463
+ attr_accessor :self_link
464
+
465
+ def initialize(**args)
466
+ update!(**args)
467
+ end
468
+
469
+ # Update properties of this object
470
+ def update!(**args)
471
+ @default_app_ids = args[:default_app_ids] if args.key?(:default_app_ids)
472
+ @items = args[:items] if args.key?(:items)
473
+ @kind = args[:kind] if args.key?(:kind)
474
+ @self_link = args[:self_link] if args.key?(:self_link)
475
+ end
476
+ end
477
+
220
478
  # A change to a file or shared drive.
221
479
  class Change
222
480
  include Google::Apis::Core::Hashable
@@ -398,7 +656,8 @@ module Google
398
656
  # @return [String]
399
657
  attr_accessor :token
400
658
 
401
- # The type of delivery mechanism used for this channel.
659
+ # The type of delivery mechanism used for this channel. Valid values are "
660
+ # web_hook" or "webhook".
402
661
  # Corresponds to the JSON property `type`
403
662
  # @return [String]
404
663
  attr_accessor :type
@@ -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.46.0"
19
+ GEM_VERSION = "0.51.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231128"
25
+ REVISION = "20240521"
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
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/drive/
34
34
  class DriveService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://www.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://www.googleapis.com/', 'drive/v3/',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, 'drive/v3/',
47
49
  client_name: 'google-apis-drive_v3',
48
50
  client_version: Google::Apis::DriveV3::GEM_VERSION)
49
51
  @batch_path = 'batch/drive/v3'
@@ -76,6 +78,79 @@ module Google
76
78
  execute_or_queue_command(command, &block)
77
79
  end
78
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
+
79
154
  # Gets the starting pageToken for listing future changes.
80
155
  # @param [String] drive_id
81
156
  # The ID of the shared drive for which the starting pageToken for listing future
@@ -706,7 +781,7 @@ module Google
706
781
  execute_or_queue_command(command, &block)
707
782
  end
708
783
 
709
- # Updates the metadate for a shared drive.
784
+ # Updates the metadata for a shared drive.
710
785
  # @param [String] drive_id
711
786
  # The ID of the shared drive.
712
787
  # @param [Google::Apis::DriveV3::Drive] drive_object
@@ -35,9 +35,15 @@ 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
 
44
+ # See and download your Google Drive files that were created or edited by Google Meet.
45
+ AUTH_DRIVE_MEET_READONLY = 'https://www.googleapis.com/auth/drive.meet.readonly'
46
+
41
47
  # View and manage metadata of files in your Google Drive
42
48
  AUTH_DRIVE_METADATA = 'https://www.googleapis.com/auth/drive.metadata'
43
49
 
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.46.0
4
+ version: 0.51.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: 2023-12-10 00:00:00.000000000 Z
11
+ date: 2024-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.51.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: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Drive API V3