google-apis-drive_v2 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 +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/drive_v2/classes.rb +16 -0
- data/lib/google/apis/drive_v2/gem_version.rb +2 -2
- data/lib/google/apis/drive_v2/representations.rb +2 -0
- data/lib/google/apis/drive_v2/service.rb +10 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3d291f917463556bc62d80b382d5a322e6ee441b78340a4704b629071df0838
|
4
|
+
data.tar.gz: d0116919ad9bd21d9b8f7335374a99597f498e7e0b39de28cb43c3863dfd1149
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153f47257c982ed629e27cbd7ddb3027ba0338ff043395952af8aaef70680e713619adb74472430cbc7f803dc4aef870ce2c21da869148a86ed1429e43564b9d
|
7
|
+
data.tar.gz: 945f5e99578ce11ee3db7af5cae8e7116fd799aec6adf1736e554569c654d6e141abd86eaa5130cf39fcee39501ccaa52281b5d2862aa3f6a2c7bc15dd98ec7c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-drive_v2
|
2
2
|
|
3
|
+
### v0.17.0 (2021-12-09)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211205
|
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
@@ -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/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
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.
|
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 = "
|
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
|
1286
|
-
# content.
|
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
|
@@ -1603,7 +1603,10 @@ module Google
|
|
1603
1603
|
execute_or_queue_command(command, &block)
|
1604
1604
|
end
|
1605
1605
|
|
1606
|
-
# Updates file metadata and/or content.
|
1606
|
+
# Updates a file's metadata and/or content. When calling this method, only
|
1607
|
+
# populate fields in the request that you want to modify. When updating fields,
|
1608
|
+
# some fields might change automatically, such as modifiedDate. This method
|
1609
|
+
# supports patch semantics.
|
1607
1610
|
# @param [String] file_id
|
1608
1611
|
# The ID of the file to update.
|
1609
1612
|
# @param [Google::Apis::DriveV2::File] file_object
|
@@ -1840,7 +1843,10 @@ module Google
|
|
1840
1843
|
execute_or_queue_command(command, &block)
|
1841
1844
|
end
|
1842
1845
|
|
1843
|
-
# Updates file metadata and/or content.
|
1846
|
+
# Updates a file's metadata and/or content. When calling this method, only
|
1847
|
+
# populate fields in the request that you want to modify. When updating fields,
|
1848
|
+
# some fields might be changed automatically, such as modifiedDate. This method
|
1849
|
+
# supports patch semantics.
|
1844
1850
|
# @param [String] file_id
|
1845
1851
|
# The ID of the file to update.
|
1846
1852
|
# @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.
|
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-
|
11
|
+
date: 2021-12-13 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/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.17.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:
|