google-apis-drive_v2 0.5.0 → 0.6.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: 4409464050a5b7884bd0d800faa7a7448b4567386b599b6682d58140faa156af
4
- data.tar.gz: 3fd1f0781cfe79cea1fa5abb07f0ad87f144de2da5786cb4655c171bbe106a92
3
+ metadata.gz: 810dc1a62fe56a92f460841278575455fba64856bb4482094efd1ddb4a15c908
4
+ data.tar.gz: 8f6cb0edbdbdc1996b955f81783c423f2ebab9abcf7f256610d6ec4540fdaade
5
5
  SHA512:
6
- metadata.gz: 628f93d5753ae06274bb542a953b44586f9eaf83895c226a353fae75cac51e40fc8c7d28fd429ef85b65767172d2312b3874d33c19451d4c81b61ecc528c87a6
7
- data.tar.gz: 292353974b60780d9829b5365b549511dce9124852cccaab8f8afefd31a14a463f548a6de59f45b54fc6e71eaf8d22d76782cdfd2737c05977002e72976d1583
6
+ metadata.gz: '082930dbd1a20c2fbc8fdb907e7ba71f5a1271c68c3139b837d0516e5bf4e1188873df28eb6ecabf808b81fabf1b1369fb522df458cbfdafeda9b5f6bc69f5bb'
7
+ data.tar.gz: 6ae0c77d00e8ee3dde8334be334409f37aa69c61e488d2636960d42de49a2854a6ca002bc8c644af70b147fb40e705803c578dc546b18be9ab0f73e8864b82a2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-drive_v2
2
2
 
3
+ ### v0.6.0 (2021-05-13)
4
+
5
+ * Regenerated from discovery document revision 20210509
6
+
3
7
  ### v0.5.0 (2021-03-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20210315
@@ -1039,8 +1039,8 @@ module Google
1039
1039
  class Comment
1040
1040
  include Google::Apis::Core::Hashable
1041
1041
 
1042
- # A region of the document represented as a JSON string. See anchor
1043
- # documentation for details on how to define and interpret anchor properties.
1042
+ # A region of the document represented as a JSON string. For details on defining
1043
+ # anchor properties, refer to Add comments and replies.
1044
1044
  # Corresponds to the JSON property `anchor`
1045
1045
  # @return [String]
1046
1046
  attr_accessor :anchor
@@ -3555,12 +3555,13 @@ module Google
3555
3555
  # @return [String]
3556
3556
  attr_accessor :original_filename
3557
3557
 
3558
- # Whether this revision is pinned to prevent automatic purging. This will only
3559
- # be populated and can only be modified on files with content stored in Drive,
3560
- # excluding Docs Editors files. Revisions can also be pinned when they are
3561
- # created through the drive.files.insert/update/copy by using the pinned query
3562
- # parameter. Pinned revisions are stored indefinitely using additional storage
3563
- # quota, up to a maximum of 200 revisions.
3558
+ # Whether this revision is pinned to prevent automatic purging. If not set, the
3559
+ # revision is automatically purged 30 days after newer content is uploaded. This
3560
+ # field can only be modified on files with content stored in Drive, excluding
3561
+ # Docs Editors files. Revisions can also be pinned when they are created through
3562
+ # the drive.files.insert/update/copy by using the pinned query parameter. Pinned
3563
+ # revisions are stored indefinitely using additional storage quota, up to a
3564
+ # maximum of 200 revisions.
3564
3565
  # Corresponds to the JSON property `pinned`
3565
3566
  # @return [Boolean]
3566
3567
  attr_accessor :pinned
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DriveV2
18
18
  # Version of the google-apis-drive_v2 gem
19
- GEM_VERSION = "0.5.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210315"
25
+ REVISION = "20210509"
26
26
  end
27
27
  end
28
28
  end
@@ -1329,7 +1329,11 @@ module Google
1329
1329
  # Maximum number of IDs to return.
1330
1330
  # @param [String] space
1331
1331
  # The space in which the IDs can be used to create new files. Supported values
1332
- # are 'drive' and 'appDataFolder'.
1332
+ # are 'drive' and 'appDataFolder'. (Default: 'drive')
1333
+ # @param [String] type
1334
+ # The type of items which the IDs can be used for. Supported values are 'files'
1335
+ # and 'shortcuts'. Note that 'shortcuts' are only supported in the drive 'space'.
1336
+ # (Default: 'files')
1333
1337
  # @param [String] fields
1334
1338
  # Selector specifying which fields to include in a partial response.
1335
1339
  # @param [String] quota_user
@@ -1349,19 +1353,20 @@ module Google
1349
1353
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1350
1354
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1351
1355
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1352
- def generate_file_ids(max_results: nil, space: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1356
+ def generate_file_ids(max_results: nil, space: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1353
1357
  command = make_simple_command(:get, 'files/generateIds', options)
1354
1358
  command.response_representation = Google::Apis::DriveV2::GeneratedIds::Representation
1355
1359
  command.response_class = Google::Apis::DriveV2::GeneratedIds
1356
1360
  command.query['maxResults'] = max_results unless max_results.nil?
1357
1361
  command.query['space'] = space unless space.nil?
1362
+ command.query['type'] = type unless type.nil?
1358
1363
  command.query['fields'] = fields unless fields.nil?
1359
1364
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1360
1365
  command.query['userIp'] = user_ip unless user_ip.nil?
1361
1366
  execute_or_queue_command(command, &block)
1362
1367
  end
1363
1368
 
1364
- # Gets a file's metadata by ID.
1369
+ # Gets a file's metadata or content by ID.
1365
1370
  # @param [String] file_id
1366
1371
  # The ID for the file in question.
1367
1372
  # @param [Boolean] acknowledge_abuse
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-drive_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.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: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.5.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v2
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Drive API V2