google-apis-drive_v3 0.13.0 → 0.17.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: 907390030195c21c638f7c48cbc6ea94c4c85ea4a984a34f01b80e4fceaa24ba
4
- data.tar.gz: c2bb64b5837d022e3f66fa5fa149e3d5ebe2ef3c14380870ab0f836050c1af20
3
+ metadata.gz: 6ea57596ca39b66fcf3c53e45d21fdcaedb9c86fdf1cfd99edd417f983f4265b
4
+ data.tar.gz: 3a5a6fd3dd53223498c891758fc1b88fa26784559222bd5f795829715c327b26
5
5
  SHA512:
6
- metadata.gz: cf61b823198451a415914e663b7166389bec5a87325c66b76110772980dbbe89eac957642a1699b0699d07e7a2af35c2c86153b87b2b8d7d2f878773d5d91a01
7
- data.tar.gz: 3af1d87bb7690318dcdb6f88aa40f59305df4ef6a29bdac78d04ab66e343984c59bef77f095ff29fdcce52eb94185d213e0d67d2746ec57b4b1b1e6afdbbe504
6
+ metadata.gz: 7b73ae65954ef5d809f3341117f717d1d74cb79676e488d593797355aa74b51ab5bc3b178dd8b910684a4fa8f0f208743fa708bf9daac7f8c5613b9bc35adc14
7
+ data.tar.gz: 506dc89c945f8d5e0dd0d5aa1ece3d3b8688ecb16708d575c7a96e87b3c39da33364c4251a4c7b2804476d70c0623391abc2d12240798a7fbc78d8333b725982
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.17.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.16.0 (2021-11-11)
8
+
9
+ * Regenerated from discovery document revision 20211107
10
+
11
+ ### v0.15.0 (2021-10-21)
12
+
13
+ * Regenerated from discovery document revision 20211017
14
+ * Unspecified changes
15
+
16
+ ### v0.14.0 (2021-09-24)
17
+
18
+ * Regenerated from discovery document revision 20210919
19
+
3
20
  ### v0.13.0 (2021-07-29)
4
21
 
5
22
  * Regenerated from discovery document revision 20210725
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/drive_v3"
51
51
  client = Google::Apis::DriveV3::DriveService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Drive service in particular.)
67
67
 
@@ -1446,6 +1446,13 @@ module Google
1446
1446
  class Capabilities
1447
1447
  include Google::Apis::Core::Hashable
1448
1448
 
1449
+ # Whether the current user is the pending owner of the file. Not populated for
1450
+ # shared drive files.
1451
+ # Corresponds to the JSON property `canAcceptOwnership`
1452
+ # @return [Boolean]
1453
+ attr_accessor :can_accept_ownership
1454
+ alias_method :can_accept_ownership?, :can_accept_ownership
1455
+
1449
1456
  # Whether the current user can add children to this folder. This is always false
1450
1457
  # when the item is not a folder.
1451
1458
  # Corresponds to the JSON property `canAddChildren`
@@ -1690,6 +1697,7 @@ module Google
1690
1697
 
1691
1698
  # Update properties of this object
1692
1699
  def update!(**args)
1700
+ @can_accept_ownership = args[:can_accept_ownership] if args.key?(:can_accept_ownership)
1693
1701
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
1694
1702
  @can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
1695
1703
  @can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
@@ -2192,6 +2200,13 @@ module Google
2192
2200
  # @return [String]
2193
2201
  attr_accessor :kind
2194
2202
 
2203
+ # Whether the account associated with this permission is a pending owner. Only
2204
+ # populated for user type permissions for files that are not in a shared drive.
2205
+ # Corresponds to the JSON property `pendingOwner`
2206
+ # @return [Boolean]
2207
+ attr_accessor :pending_owner
2208
+ alias_method :pending_owner?, :pending_owner
2209
+
2195
2210
  # Details of whether the permissions on this shared drive item are inherited or
2196
2211
  # directly on this item. This is an output-only field which is present only for
2197
2212
  # shared drive items.
@@ -2252,6 +2267,7 @@ module Google
2252
2267
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
2253
2268
  @id = args[:id] if args.key?(:id)
2254
2269
  @kind = args[:kind] if args.key?(:kind)
2270
+ @pending_owner = args[:pending_owner] if args.key?(:pending_owner)
2255
2271
  @permission_details = args[:permission_details] if args.key?(:permission_details)
2256
2272
  @photo_link = args[:photo_link] if args.key?(:photo_link)
2257
2273
  @role = args[:role] if args.key?(:role)
@@ -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.13.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210725"
25
+ REVISION = "20211107"
26
26
  end
27
27
  end
28
28
  end
@@ -595,6 +595,7 @@ module Google
595
595
  class Capabilities
596
596
  # @private
597
597
  class Representation < Google::Apis::Core::JsonRepresentation
598
+ property :can_accept_ownership, as: 'canAcceptOwnership'
598
599
  property :can_add_children, as: 'canAddChildren'
599
600
  property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
600
601
  property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
@@ -746,6 +747,7 @@ module Google
746
747
 
747
748
  property :id, as: 'id'
748
749
  property :kind, as: 'kind'
750
+ property :pending_owner, as: 'pendingOwner'
749
751
  collection :permission_details, as: 'permissionDetails', class: Google::Apis::DriveV3::Permission::PermissionDetail, decorator: Google::Apis::DriveV3::Permission::PermissionDetail::Representation
750
752
 
751
753
  property :photo_link, as: 'photoLink'
@@ -996,8 +996,8 @@ module Google
996
996
  execute_or_queue_command(command, &block)
997
997
  end
998
998
 
999
- # Exports a Google Doc to the requested MIME type and returns the exported
1000
- # content. Please note that the exported content is limited to 10MB.
999
+ # Exports a Google Workspace document to the requested MIME type and returns
1000
+ # exported byte content. Note that the exported content is limited to 10MB.
1001
1001
  # @param [String] file_id
1002
1002
  # The ID of the file.
1003
1003
  # @param [String] mime_type
@@ -1222,7 +1222,10 @@ module Google
1222
1222
  execute_or_queue_command(command, &block)
1223
1223
  end
1224
1224
 
1225
- # Updates a file's metadata and/or content. This method supports patch semantics.
1225
+ # Updates a file's metadata and/or content. When calling this method, only
1226
+ # populate fields in the request that you want to modify. When updating fields,
1227
+ # some fields might change automatically, such as modifiedDate. This method
1228
+ # supports patch semantics.
1226
1229
  # @param [String] file_id
1227
1230
  # The ID of the file.
1228
1231
  # @param [Google::Apis::DriveV3::File] file_object
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.13.0
4
+ version: 0.17.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-08-02 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.13.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v3
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.17.0
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: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Drive API V3