google-apis-drive_v3 0.13.0 → 0.20.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 +30 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/drive_v3/classes.rb +30 -0
- data/lib/google/apis/drive_v3/gem_version.rb +3 -3
- data/lib/google/apis/drive_v3/representations.rb +4 -0
- data/lib/google/apis/drive_v3/service.rb +9 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 867b47b3434bd5ca2eed51d510faa7db3681dba77485ac10a89e5b1d9611b00a
|
4
|
+
data.tar.gz: df34c5e1bf64bbe3a7482cee7d5da87964afb06895e14bd6a77ae8138c052ba6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eb4eef87c887ac2d8ba57fb5f39a4d72d25122a6fa4a726fe8d6bd700aa98ebaecd6beeb290089df897b1388154be32868a6ad45165110542bfc3224e7eaeb7
|
7
|
+
data.tar.gz: 3f2293ba349b58249e485471573715e7f51fce44b02e9507f598591eb9795a971e959523f9210bde25acbe479da366f475184cf9cffa6a7ec29fa867d4e40188
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,35 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.20.0 (2022-04-14)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220410
|
6
|
+
|
7
|
+
### v0.19.0 (2022-02-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220214
|
10
|
+
|
11
|
+
### v0.18.0 (2022-01-13)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220110
|
14
|
+
* Regenerated using generator version 0.4.1
|
15
|
+
|
16
|
+
### v0.17.0 (2021-12-14)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
20
|
+
### v0.16.0 (2021-11-11)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20211107
|
23
|
+
|
24
|
+
### v0.15.0 (2021-10-21)
|
25
|
+
|
26
|
+
* Regenerated from discovery document revision 20211017
|
27
|
+
* Unspecified changes
|
28
|
+
|
29
|
+
### v0.14.0 (2021-09-24)
|
30
|
+
|
31
|
+
* Regenerated from discovery document revision 20210919
|
32
|
+
|
3
33
|
### v0.13.0 (2021-07-29)
|
4
34
|
|
5
35
|
* 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.
|
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/
|
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
|
|
@@ -684,6 +684,12 @@ module Google
|
|
684
684
|
# @return [String]
|
685
685
|
attr_accessor :name
|
686
686
|
|
687
|
+
# The organizational unit of this shared drive. This field is only populated on
|
688
|
+
# drives.list responses when the useDomainAdminAccess parameter is set to true.
|
689
|
+
# Corresponds to the JSON property `orgUnitId`
|
690
|
+
# @return [String]
|
691
|
+
attr_accessor :org_unit_id
|
692
|
+
|
687
693
|
# A set of restrictions that apply to this shared drive or items inside this
|
688
694
|
# shared drive.
|
689
695
|
# Corresponds to the JSON property `restrictions`
|
@@ -714,6 +720,7 @@ module Google
|
|
714
720
|
@id = args[:id] if args.key?(:id)
|
715
721
|
@kind = args[:kind] if args.key?(:kind)
|
716
722
|
@name = args[:name] if args.key?(:name)
|
723
|
+
@org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
|
717
724
|
@restrictions = args[:restrictions] if args.key?(:restrictions)
|
718
725
|
@theme_id = args[:theme_id] if args.key?(:theme_id)
|
719
726
|
end
|
@@ -1446,6 +1453,13 @@ module Google
|
|
1446
1453
|
class Capabilities
|
1447
1454
|
include Google::Apis::Core::Hashable
|
1448
1455
|
|
1456
|
+
# Whether the current user is the pending owner of the file. Not populated for
|
1457
|
+
# shared drive files.
|
1458
|
+
# Corresponds to the JSON property `canAcceptOwnership`
|
1459
|
+
# @return [Boolean]
|
1460
|
+
attr_accessor :can_accept_ownership
|
1461
|
+
alias_method :can_accept_ownership?, :can_accept_ownership
|
1462
|
+
|
1449
1463
|
# Whether the current user can add children to this folder. This is always false
|
1450
1464
|
# when the item is not a folder.
|
1451
1465
|
# Corresponds to the JSON property `canAddChildren`
|
@@ -1690,6 +1704,7 @@ module Google
|
|
1690
1704
|
|
1691
1705
|
# Update properties of this object
|
1692
1706
|
def update!(**args)
|
1707
|
+
@can_accept_ownership = args[:can_accept_ownership] if args.key?(:can_accept_ownership)
|
1693
1708
|
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
1694
1709
|
@can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
|
1695
1710
|
@can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
|
@@ -2192,6 +2207,13 @@ module Google
|
|
2192
2207
|
# @return [String]
|
2193
2208
|
attr_accessor :kind
|
2194
2209
|
|
2210
|
+
# Whether the account associated with this permission is a pending owner. Only
|
2211
|
+
# populated for user type permissions for files that are not in a shared drive.
|
2212
|
+
# Corresponds to the JSON property `pendingOwner`
|
2213
|
+
# @return [Boolean]
|
2214
|
+
attr_accessor :pending_owner
|
2215
|
+
alias_method :pending_owner?, :pending_owner
|
2216
|
+
|
2195
2217
|
# Details of whether the permissions on this shared drive item are inherited or
|
2196
2218
|
# directly on this item. This is an output-only field which is present only for
|
2197
2219
|
# shared drive items.
|
@@ -2252,6 +2274,7 @@ module Google
|
|
2252
2274
|
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
2253
2275
|
@id = args[:id] if args.key?(:id)
|
2254
2276
|
@kind = args[:kind] if args.key?(:kind)
|
2277
|
+
@pending_owner = args[:pending_owner] if args.key?(:pending_owner)
|
2255
2278
|
@permission_details = args[:permission_details] if args.key?(:permission_details)
|
2256
2279
|
@photo_link = args[:photo_link] if args.key?(:photo_link)
|
2257
2280
|
@role = args[:role] if args.key?(:role)
|
@@ -2718,6 +2741,12 @@ module Google
|
|
2718
2741
|
# @return [String]
|
2719
2742
|
attr_accessor :name
|
2720
2743
|
|
2744
|
+
# The organizational unit of this shared drive. This field is only populated on
|
2745
|
+
# drives.list responses when the useDomainAdminAccess parameter is set to true.
|
2746
|
+
# Corresponds to the JSON property `orgUnitId`
|
2747
|
+
# @return [String]
|
2748
|
+
attr_accessor :org_unit_id
|
2749
|
+
|
2721
2750
|
# A set of restrictions that apply to this Team Drive or items inside this Team
|
2722
2751
|
# Drive.
|
2723
2752
|
# Corresponds to the JSON property `restrictions`
|
@@ -2748,6 +2777,7 @@ module Google
|
|
2748
2777
|
@id = args[:id] if args.key?(:id)
|
2749
2778
|
@kind = args[:kind] if args.key?(:kind)
|
2750
2779
|
@name = args[:name] if args.key?(:name)
|
2780
|
+
@org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
|
2751
2781
|
@restrictions = args[:restrictions] if args.key?(:restrictions)
|
2752
2782
|
@theme_id = args[:theme_id] if args.key?(:theme_id)
|
2753
2783
|
end
|
@@ -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.20.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220410"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -450,6 +450,7 @@ module Google
|
|
450
450
|
property :id, as: 'id'
|
451
451
|
property :kind, as: 'kind'
|
452
452
|
property :name, as: 'name'
|
453
|
+
property :org_unit_id, as: 'orgUnitId'
|
453
454
|
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV3::Drive::Restrictions, decorator: Google::Apis::DriveV3::Drive::Restrictions::Representation
|
454
455
|
|
455
456
|
property :theme_id, as: 'themeId'
|
@@ -595,6 +596,7 @@ module Google
|
|
595
596
|
class Capabilities
|
596
597
|
# @private
|
597
598
|
class Representation < Google::Apis::Core::JsonRepresentation
|
599
|
+
property :can_accept_ownership, as: 'canAcceptOwnership'
|
598
600
|
property :can_add_children, as: 'canAddChildren'
|
599
601
|
property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
|
600
602
|
property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
|
@@ -746,6 +748,7 @@ module Google
|
|
746
748
|
|
747
749
|
property :id, as: 'id'
|
748
750
|
property :kind, as: 'kind'
|
751
|
+
property :pending_owner, as: 'pendingOwner'
|
749
752
|
collection :permission_details, as: 'permissionDetails', class: Google::Apis::DriveV3::Permission::PermissionDetail, decorator: Google::Apis::DriveV3::Permission::PermissionDetail::Representation
|
750
753
|
|
751
754
|
property :photo_link, as: 'photoLink'
|
@@ -869,6 +872,7 @@ module Google
|
|
869
872
|
property :id, as: 'id'
|
870
873
|
property :kind, as: 'kind'
|
871
874
|
property :name, as: 'name'
|
875
|
+
property :org_unit_id, as: 'orgUnitId'
|
872
876
|
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV3::TeamDrive::Restrictions, decorator: Google::Apis::DriveV3::TeamDrive::Restrictions::Representation
|
873
877
|
|
874
878
|
property :theme_id, as: 'themeId'
|
@@ -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
|
@@ -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
|
@@ -1300,7 +1303,9 @@ module Google
|
|
1300
1303
|
execute_or_queue_command(command, &block)
|
1301
1304
|
end
|
1302
1305
|
|
1303
|
-
# Subscribes to changes to a file
|
1306
|
+
# Subscribes to changes to a file. While you can establish a channel for changes
|
1307
|
+
# to a file on a shared drive, a change to a shared drive file won't create a
|
1308
|
+
# notification.
|
1304
1309
|
# @param [String] file_id
|
1305
1310
|
# The ID of the file.
|
1306
1311
|
# @param [Google::Apis::DriveV3::Channel] channel_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.20.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:
|
11
|
+
date: 2022-04-18 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.20.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.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Drive API V3
|