google-apis-drive_v2 0.2.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef3a9d16e4b0af64e9b39d3c1840ff85e75d2830867668799c9fa43dc1cfa024
4
- data.tar.gz: ca4d5017469dc74eeb5dd4e810d867dbbd27e1dfc16f2c33463418b40087818e
3
+ metadata.gz: 3b68fbb5e261992a1fd701e0984c719ab9e2fc6059c7494aa958bced9e3ac04c
4
+ data.tar.gz: 9cdce52ab5603c1f4ca0858d4adb6f3feca3f2558f0af638b4e78656dc6e3841
5
5
  SHA512:
6
- metadata.gz: c31d07748cbf85d0c4541dc446ccb1966c1e4a522cdc03f26caf878a0c915dd03ea35474dac77452daa328da6e588830c34a8d985989ad33a9ebbd1027a7844d
7
- data.tar.gz: 330a9b8ea1289b73449b189aaadb288728e340e394e7a21bede125a90d24b402995817420c3f2a31a046b04fe1fb4435bab2e191110578b281d52713fab33724
6
+ metadata.gz: c1916986222ca04402a5af50d4e5b1f3b9e863cff6bcde50db7b58a486ee8f9f746e28f8899e58fd13867b514c248d273eadbfd9caefb110311f16369bea4d00
7
+ data.tar.gz: c17cf3a0b99d38c9a630165ce57dc7d06b3a7e8fe2ca6c1bf1f0202c3d24d433d0c01df43c476eee1796c5c3c8ee36fba8da61264d5e3f38101c9b0d70abeeb3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-drive_v2
2
2
 
3
+ ### v0.7.0 (2021-05-19)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.6.0 (2021-05-13)
8
+
9
+ * Regenerated from discovery document revision 20210509
10
+
11
+ ### v0.5.0 (2021-03-18)
12
+
13
+ * Regenerated from discovery document revision 20210315
14
+ * Regenerated using generator version 0.2.0
15
+
16
+ ### v0.4.0 (2021-03-04)
17
+
18
+ * Regenerated from discovery document revision 20210228
19
+
20
+ ### v0.3.0 (2021-02-11)
21
+
22
+ * Regenerated from discovery document revision 20210207
23
+
3
24
  ### v0.2.0 (2021-02-04)
4
25
 
5
26
  * Regenerated from discovery document revision 20210201
@@ -39,13 +39,13 @@ module Google
39
39
  # View your Google Drive apps
40
40
  AUTH_DRIVE_APPS_READONLY = 'https://www.googleapis.com/auth/drive.apps.readonly'
41
41
 
42
- # View and manage Google Drive files and folders that you have opened or created with this app
42
+ # See, edit, create, and delete only the specific Google Drive files you use with this app
43
43
  AUTH_DRIVE_FILE = 'https://www.googleapis.com/auth/drive.file'
44
44
 
45
45
  # View and manage metadata of files in your Google Drive
46
46
  AUTH_DRIVE_METADATA = 'https://www.googleapis.com/auth/drive.metadata'
47
47
 
48
- # View metadata for files in your Google Drive
48
+ # See information about your Google Drive files
49
49
  AUTH_DRIVE_METADATA_READONLY = 'https://www.googleapis.com/auth/drive.metadata.readonly'
50
50
 
51
51
  # View the photos, videos and albums in your Google Photos
@@ -919,7 +919,9 @@ module Google
919
919
  # @return [String]
920
920
  attr_accessor :token
921
921
 
922
- # The type of delivery mechanism used for this channel.
922
+ # The type of delivery mechanism used for this channel. Valid values are "
923
+ # web_hook" (or "webhook"). Both values refer to a channel where Http requests
924
+ # are used to deliver messages.
923
925
  # Corresponds to the JSON property `type`
924
926
  # @return [String]
925
927
  attr_accessor :type
@@ -1037,8 +1039,8 @@ module Google
1037
1039
  class Comment
1038
1040
  include Google::Apis::Core::Hashable
1039
1041
 
1040
- # A region of the document represented as a JSON string. See anchor
1041
- # 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.
1042
1044
  # Corresponds to the JSON property `anchor`
1043
1045
  # @return [String]
1044
1046
  attr_accessor :anchor
@@ -3553,12 +3555,13 @@ module Google
3553
3555
  # @return [String]
3554
3556
  attr_accessor :original_filename
3555
3557
 
3556
- # Whether this revision is pinned to prevent automatic purging. This will only
3557
- # be populated and can only be modified on files with content stored in Drive,
3558
- # excluding Docs Editors files. Revisions can also be pinned when they are
3559
- # created through the drive.files.insert/update/copy by using the pinned query
3560
- # parameter. Pinned revisions are stored indefinitely using additional storage
3561
- # 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.
3562
3565
  # Corresponds to the JSON property `pinned`
3563
3566
  # @return [Boolean]
3564
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.2.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210201"
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.2.0
4
+ version: 0.7.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-02-08 00:00:00.000000000 Z
11
+ date: 2021-05-24 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.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.7.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: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.6
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