google-apis-drive_v3 0.46.0 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/drive_v3/classes.rb +281 -15
- data/lib/google/apis/drive_v3/gem_version.rb +3 -3
- data/lib/google/apis/drive_v3/representations.rb +69 -0
- data/lib/google/apis/drive_v3/service.rb +86 -5
- data/lib/google/apis/drive_v3.rb +6 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf97b73de411f12bc4446c075acba2c742153dd0bf1b1633c7f0f02f6ae22d62
|
4
|
+
data.tar.gz: 6872287245476fd9c24c50b3dce010a63495681e4a165ffd656c23a35755b7bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0043b8b2de981e9aa8964d13b84c26824687e2fca7ddd7e7b5fdc32a272cb538793f7bc78a736f64faff1943bc789706d4fc1546746c4f15edfede3d736fd789
|
7
|
+
data.tar.gz: cfb2b727a9533627d00d840558c3071dd0b344314b56bced886e7dcad86952019ff958ef7d4f6f83ce35c35d8b9ca92fcddbd59e5ee5ac1177ef70d739ac589a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,45 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.55.0 (2024-08-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240809
|
6
|
+
|
7
|
+
### v0.54.0 (2024-08-11)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240730
|
10
|
+
|
11
|
+
### v0.53.0 (2024-08-04)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20240722
|
14
|
+
* Regenerated using generator version 0.15.1
|
15
|
+
|
16
|
+
### v0.52.0 (2024-07-25)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20240628
|
19
|
+
|
20
|
+
### v0.51.0 (2024-05-26)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20240521
|
23
|
+
* Regenerated using generator version 0.15.0
|
24
|
+
|
25
|
+
### v0.50.0 (2024-03-31)
|
26
|
+
|
27
|
+
* Regenerated from discovery document revision 20240327
|
28
|
+
|
29
|
+
### v0.49.0 (2024-02-24)
|
30
|
+
|
31
|
+
* Regenerated using generator version 0.14.0
|
32
|
+
|
33
|
+
### v0.48.0 (2024-01-28)
|
34
|
+
|
35
|
+
* Regenerated from discovery document revision 20240123
|
36
|
+
* Regenerated using generator version 0.13.1
|
37
|
+
|
38
|
+
### v0.47.0 (2024-01-23)
|
39
|
+
|
40
|
+
* Regenerated from discovery document revision 20240110
|
41
|
+
* Regenerated using generator version 0.13.0
|
42
|
+
|
3
43
|
### v0.46.0 (2023-12-10)
|
4
44
|
|
5
45
|
* 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.
|
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.
|
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.
|
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.
|
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
|
@@ -1285,10 +1544,11 @@ module Google
|
|
1285
1544
|
# @return [Array<Google::Apis::DriveV3::User>]
|
1286
1545
|
attr_accessor :owners
|
1287
1546
|
|
1288
|
-
# The
|
1289
|
-
#
|
1290
|
-
#
|
1291
|
-
#
|
1547
|
+
# The ID of the parent folder containing the file. A file can only have one
|
1548
|
+
# parent folder; specifying multiple parents isn't supported. If not specified
|
1549
|
+
# as part of a create request, the file is placed directly in the user's My
|
1550
|
+
# Drive folder. If not specified as part of a copy request, the file inherits
|
1551
|
+
# any discoverable parent of the source file. Update requests must use the `
|
1292
1552
|
# addParents` and `removeParents` parameters to modify the parents list.
|
1293
1553
|
# Corresponds to the JSON property `parents`
|
1294
1554
|
# @return [Array<String>]
|
@@ -1356,7 +1616,8 @@ module Google
|
|
1356
1616
|
attr_accessor :sharing_user
|
1357
1617
|
|
1358
1618
|
# Shortcut file details. Only populated for shortcut files, which have the
|
1359
|
-
# mimeType field set to `application/vnd.google-apps.shortcut`.
|
1619
|
+
# mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set
|
1620
|
+
# on `files.create` requests.
|
1360
1621
|
# Corresponds to the JSON property `shortcutDetails`
|
1361
1622
|
# @return [Google::Apis::DriveV3::File::ShortcutDetails]
|
1362
1623
|
attr_accessor :shortcut_details
|
@@ -1385,9 +1646,12 @@ module Google
|
|
1385
1646
|
attr_accessor :team_drive_id
|
1386
1647
|
|
1387
1648
|
# Output only. A short-lived link to the file's thumbnail, if available.
|
1388
|
-
# Typically lasts on the order of hours.
|
1389
|
-
#
|
1390
|
-
#
|
1649
|
+
# Typically lasts on the order of hours. Not intended for direct usage on web
|
1650
|
+
# applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.
|
1651
|
+
# mozilla.org/en-US/docs/Web/HTTP/CORS) policies, consider using a proxy server.
|
1652
|
+
# Only populated when the requesting app can access the file's content. If the
|
1653
|
+
# file isn't shared publicly, the URL returned in `Files.thumbnailLink` must be
|
1654
|
+
# fetched using a credentialed request.
|
1391
1655
|
# Corresponds to the JSON property `thumbnailLink`
|
1392
1656
|
# @return [String]
|
1393
1657
|
attr_accessor :thumbnail_link
|
@@ -2152,11 +2416,13 @@ module Google
|
|
2152
2416
|
end
|
2153
2417
|
|
2154
2418
|
# Shortcut file details. Only populated for shortcut files, which have the
|
2155
|
-
# mimeType field set to `application/vnd.google-apps.shortcut`.
|
2419
|
+
# mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set
|
2420
|
+
# on `files.create` requests.
|
2156
2421
|
class ShortcutDetails
|
2157
2422
|
include Google::Apis::Core::Hashable
|
2158
2423
|
|
2159
|
-
# The ID of the file that this shortcut points to.
|
2424
|
+
# The ID of the file that this shortcut points to. Can only be set on `files.
|
2425
|
+
# create` requests.
|
2160
2426
|
# Corresponds to the JSON property `targetId`
|
2161
2427
|
# @return [String]
|
2162
2428
|
attr_accessor :target_id
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.55.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240809"
|
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(
|
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
|
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
|
@@ -1063,7 +1138,9 @@ module Google
|
|
1063
1138
|
# The ID of the file.
|
1064
1139
|
# @param [Boolean] acknowledge_abuse
|
1065
1140
|
# Whether the user is acknowledging the risk of downloading known malware or
|
1066
|
-
# other abusive files. This is only applicable when alt
|
1141
|
+
# other abusive files. This is only applicable when the `alt` parameter is set
|
1142
|
+
# to `media` and the user is the owner of the file or an organizer of the shared
|
1143
|
+
# drive in which the file resides.
|
1067
1144
|
# @param [String] include_labels
|
1068
1145
|
# A comma-separated list of IDs of labels to include in the `labelInfo` part of
|
1069
1146
|
# the response.
|
@@ -1367,7 +1444,9 @@ module Google
|
|
1367
1444
|
# @param [Google::Apis::DriveV3::Channel] channel_object
|
1368
1445
|
# @param [Boolean] acknowledge_abuse
|
1369
1446
|
# Whether the user is acknowledging the risk of downloading known malware or
|
1370
|
-
# other abusive files. This is only applicable when alt
|
1447
|
+
# other abusive files. This is only applicable when the `alt` parameter is set
|
1448
|
+
# to `media` and the user is the owner of the file or an organizer of the shared
|
1449
|
+
# drive in which the file resides.
|
1371
1450
|
# @param [String] include_labels
|
1372
1451
|
# A comma-separated list of IDs of labels to include in the `labelInfo` part of
|
1373
1452
|
# the response.
|
@@ -1916,7 +1995,9 @@ module Google
|
|
1916
1995
|
# The ID of the revision.
|
1917
1996
|
# @param [Boolean] acknowledge_abuse
|
1918
1997
|
# Whether the user is acknowledging the risk of downloading known malware or
|
1919
|
-
# other abusive files. This is only applicable when alt
|
1998
|
+
# other abusive files. This is only applicable when the `alt` parameter is set
|
1999
|
+
# to `media` and the user is the owner of the file or an organizer of the shared
|
2000
|
+
# drive in which the file resides.
|
1920
2001
|
# @param [String] fields
|
1921
2002
|
# Selector specifying which fields to include in a partial response.
|
1922
2003
|
# @param [String] quota_user
|
data/lib/google/apis/drive_v3.rb
CHANGED
@@ -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.
|
4
|
+
version: 0.55.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:
|
11
|
+
date: 2024-08-18 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.
|
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.
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.55.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.
|
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.
|
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
|