google-apis-drive_v3 0.12.0 → 0.16.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_v3/classes.rb +19 -2
- data/lib/google/apis/drive_v3/gem_version.rb +2 -2
- data/lib/google/apis/drive_v3/representations.rb +2 -0
- data/lib/google/apis/drive_v3/service.rb +7 -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: 7998c3d00faed2aa09e315dc365317226f005a2fac7e3762be6a7b5496ba00b2
|
4
|
+
data.tar.gz: 849bb84677e4eb8913653cf303267327359c0e37b62c1e22f1d69a011a7a502f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ae86a74795b24d17ed5c0a566dd40d9562eaa2b3ababfbc3d04f7c273b2a096ad726897cf98617ec9aaf9fcb8b037a9c9823b27902c7b7f22cee3f3a40aa905
|
7
|
+
data.tar.gz: '0192b702cc43a8bdcf1dcf9a0484edaeb8bc8880645b65a610e25682da1d853584a3948f3e80fabbca499342d204b2cd658e551399d4a353df9212e79ffa10d4'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.16.0 (2021-11-11)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211107
|
6
|
+
|
7
|
+
### v0.15.0 (2021-10-21)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211017
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.14.0 (2021-09-24)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210919
|
15
|
+
|
16
|
+
### v0.13.0 (2021-07-29)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210725
|
19
|
+
|
3
20
|
### v0.12.0 (2021-07-13)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210707
|
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
|
|
@@ -1073,8 +1073,9 @@ module Google
|
|
1073
1073
|
# @return [String]
|
1074
1074
|
attr_accessor :file_extension
|
1075
1075
|
|
1076
|
-
# The color for a folder as an RGB hex string. The
|
1077
|
-
# published in the folderColorPalette field of the About
|
1076
|
+
# The color for a folder or shortcut to a folder as an RGB hex string. The
|
1077
|
+
# supported colors are published in the folderColorPalette field of the About
|
1078
|
+
# resource.
|
1078
1079
|
# If an unsupported color is specified, the closest color in the palette will be
|
1079
1080
|
# used instead.
|
1080
1081
|
# Corresponds to the JSON property `folderColorRgb`
|
@@ -1445,6 +1446,13 @@ module Google
|
|
1445
1446
|
class Capabilities
|
1446
1447
|
include Google::Apis::Core::Hashable
|
1447
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
|
+
|
1448
1456
|
# Whether the current user can add children to this folder. This is always false
|
1449
1457
|
# when the item is not a folder.
|
1450
1458
|
# Corresponds to the JSON property `canAddChildren`
|
@@ -1689,6 +1697,7 @@ module Google
|
|
1689
1697
|
|
1690
1698
|
# Update properties of this object
|
1691
1699
|
def update!(**args)
|
1700
|
+
@can_accept_ownership = args[:can_accept_ownership] if args.key?(:can_accept_ownership)
|
1692
1701
|
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
1693
1702
|
@can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
|
1694
1703
|
@can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
|
@@ -2191,6 +2200,13 @@ module Google
|
|
2191
2200
|
# @return [String]
|
2192
2201
|
attr_accessor :kind
|
2193
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
|
+
|
2194
2210
|
# Details of whether the permissions on this shared drive item are inherited or
|
2195
2211
|
# directly on this item. This is an output-only field which is present only for
|
2196
2212
|
# shared drive items.
|
@@ -2251,6 +2267,7 @@ module Google
|
|
2251
2267
|
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
2252
2268
|
@id = args[:id] if args.key?(:id)
|
2253
2269
|
@kind = args[:kind] if args.key?(:kind)
|
2270
|
+
@pending_owner = args[:pending_owner] if args.key?(:pending_owner)
|
2254
2271
|
@permission_details = args[:permission_details] if args.key?(:permission_details)
|
2255
2272
|
@photo_link = args[:photo_link] if args.key?(:photo_link)
|
2256
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.
|
19
|
+
GEM_VERSION = "0.16.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 = "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
|
1000
|
-
# content.
|
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
|
@@ -1172,7 +1172,7 @@ module Google
|
|
1172
1172
|
# supported syntax.
|
1173
1173
|
# @param [String] spaces
|
1174
1174
|
# A comma-separated list of spaces to query within the corpus. Supported values
|
1175
|
-
# are 'drive'
|
1175
|
+
# are 'drive' and 'appDataFolder'.
|
1176
1176
|
# @param [Boolean] supports_all_drives
|
1177
1177
|
# Whether the requesting application supports both My Drives and shared drives.
|
1178
1178
|
# @param [Boolean] supports_team_drives
|
@@ -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.
|
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.
|
4
|
+
version: 0.16.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-11-15 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_v3/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_v3/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.16.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:
|