google-apis-drive_v2 0.14.0 → 0.18.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: dd83610ac47f787aeedfd9ac510100d4715a09306267dc7c3b66d8084c334459
4
- data.tar.gz: e570fcd929d534a9905bd250379d04333c209833b403a73034916227e7c9a49b
3
+ metadata.gz: bc8ec002e86db3fa6dff1835ecee59f70b56231c1e535080e41e2657cfbc5016
4
+ data.tar.gz: 36e612ddc45f6537cf120adc222c4e19a5e028bdae4230efaf0ae62eaf4403da
5
5
  SHA512:
6
- metadata.gz: 6d7c7b5375c7aa50372899da0fb9e25f0ac06ee3738465e140b7259f573ea564edeb6597c41f9084d6251544135bf568d1613dcc5ddabd395fb3c4ef2c4e9e58
7
- data.tar.gz: 58881b3f55d542b507546842d4383d60235b66b14f296651a975d944f522aeb292d4653ae4b93f3c15565cbbfcdc42fac8252e1b517e9de80bef416ffb1fc238
6
+ metadata.gz: be8991cff866cecaf1790fc39007d38c874d586b35dffb9e59758758882b58b136846048bb21857ca6821ef28fd4a6ac1a7916797d4889431f3390c1b994772d
7
+ data.tar.gz: b48918624e343966cd749ed995d8939603082df5ffce569726cf53b4e426f8452b1180f50a69dcd59f7da4a3aa97334cdb22fe80ed1670fa950cf49ab44eecf2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-drive_v2
2
2
 
3
+ ### v0.18.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.17.0 (2021-12-09)
8
+
9
+ * Regenerated from discovery document revision 20211205
10
+
11
+ ### v0.16.0 (2021-11-11)
12
+
13
+ * Regenerated from discovery document revision 20211107
14
+
15
+ ### v0.15.0 (2021-10-21)
16
+
17
+ * Regenerated from discovery document revision 20211017
18
+ * Unspecified changes
19
+
3
20
  ### v0.14.0 (2021-09-24)
4
21
 
5
22
  * Regenerated from discovery document revision 20210919
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/drive_v2"
51
51
  client = Google::Apis::DriveV2::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
 
@@ -2285,6 +2285,13 @@ module Google
2285
2285
  class Capabilities
2286
2286
  include Google::Apis::Core::Hashable
2287
2287
 
2288
+ # Whether the current user is the pending owner of the file. Not populated for
2289
+ # shared drive files.
2290
+ # Corresponds to the JSON property `canAcceptOwnership`
2291
+ # @return [Boolean]
2292
+ attr_accessor :can_accept_ownership
2293
+ alias_method :can_accept_ownership?, :can_accept_ownership
2294
+
2288
2295
  # Whether the current user can add children to this folder. This is always false
2289
2296
  # when the item is not a folder.
2290
2297
  # Corresponds to the JSON property `canAddChildren`
@@ -2529,6 +2536,7 @@ module Google
2529
2536
 
2530
2537
  # Update properties of this object
2531
2538
  def update!(**args)
2539
+ @can_accept_ownership = args[:can_accept_ownership] if args.key?(:can_accept_ownership)
2532
2540
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
2533
2541
  @can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
2534
2542
  @can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
@@ -3186,6 +3194,13 @@ module Google
3186
3194
  # @return [String]
3187
3195
  attr_accessor :name
3188
3196
 
3197
+ # Whether the account associated with this permission is a pending owner. Only
3198
+ # populated for user type permissions for files that are not in a shared drive.
3199
+ # Corresponds to the JSON property `pendingOwner`
3200
+ # @return [Boolean]
3201
+ attr_accessor :pending_owner
3202
+ alias_method :pending_owner?, :pending_owner
3203
+
3189
3204
  # Details of whether the permissions on this shared drive item are inherited or
3190
3205
  # directly on this item. This is an output-only field which is present only for
3191
3206
  # shared drive items.
@@ -3264,6 +3279,7 @@ module Google
3264
3279
  @id = args[:id] if args.key?(:id)
3265
3280
  @kind = args[:kind] if args.key?(:kind)
3266
3281
  @name = args[:name] if args.key?(:name)
3282
+ @pending_owner = args[:pending_owner] if args.key?(:pending_owner)
3267
3283
  @permission_details = args[:permission_details] if args.key?(:permission_details)
3268
3284
  @photo_link = args[:photo_link] if args.key?(:photo_link)
3269
3285
  @role = args[:role] if args.key?(:role)
@@ -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.14.0"
19
+ GEM_VERSION = "0.18.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 = "20210919"
25
+ REVISION = "20211205"
26
26
  end
27
27
  end
28
28
  end
@@ -897,6 +897,7 @@ module Google
897
897
  class Capabilities
898
898
  # @private
899
899
  class Representation < Google::Apis::Core::JsonRepresentation
900
+ property :can_accept_ownership, as: 'canAcceptOwnership'
900
901
  property :can_add_children, as: 'canAddChildren'
901
902
  property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
902
903
  property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
@@ -1085,6 +1086,7 @@ module Google
1085
1086
  property :id, as: 'id'
1086
1087
  property :kind, as: 'kind'
1087
1088
  property :name, as: 'name'
1089
+ property :pending_owner, as: 'pendingOwner'
1088
1090
  collection :permission_details, as: 'permissionDetails', class: Google::Apis::DriveV2::Permission::PermissionDetail, decorator: Google::Apis::DriveV2::Permission::PermissionDetail::Representation
1089
1091
 
1090
1092
  property :photo_link, as: 'photoLink'
@@ -1282,8 +1282,8 @@ module Google
1282
1282
  execute_or_queue_command(command, &block)
1283
1283
  end
1284
1284
 
1285
- # Exports a Google Doc to the requested MIME type and returns the exported
1286
- # content. Please note that the exported content is limited to 10MB.
1285
+ # Exports a Google Workspace document to the requested MIME type and returns
1286
+ # exported byte content. Note that the exported content is limited to 10MB.
1287
1287
  # @param [String] file_id
1288
1288
  # The ID of the file.
1289
1289
  # @param [String] mime_type
@@ -1605,8 +1605,8 @@ module Google
1605
1605
 
1606
1606
  # Updates a file's metadata and/or content. When calling this method, only
1607
1607
  # populate fields in the request that you want to modify. When updating fields,
1608
- # some fields might might change automatically, such as modifiedDate. This
1609
- # method supports patch semantics.
1608
+ # some fields might change automatically, such as modifiedDate. This method
1609
+ # supports patch semantics.
1610
1610
  # @param [String] file_id
1611
1611
  # The ID of the file to update.
1612
1612
  # @param [Google::Apis::DriveV2::File] file_object
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.14.0
4
+ version: 0.18.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-09-27 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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.14.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v2
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v2/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.18.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v2
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 V2