google-apis-drive_v2 0.15.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/drive_v2/classes.rb +30 -0
- data/lib/google/apis/drive_v2/gem_version.rb +3 -3
- data/lib/google/apis/drive_v2/representations.rb +4 -0
- data/lib/google/apis/drive_v2/service.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f13435fa63075dbf5e725cf1e13c3a4d7a9e39dc47725efbd48f1b5117ec4aa
|
4
|
+
data.tar.gz: 671768180c79b9a218fe2eed3e86d47d2fb24d7c76204592786106d3d585fc33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1dbca38955af2f8340893d2c1dc284b168ab54d82336f64928ecee858ffff4b0c78f32d42cef69598eb579b8d59fbc1b6c6b62856d00a2b44ec0006d480c99e
|
7
|
+
data.tar.gz: fb839356d786c49aaf7dada7b8c87b94f7f9c0671718c84a7d039211458973b83369f620da22b60b6fc09782f274268d4e129e705d8cfb6bfe5b3f5668b86f1a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-drive_v2
|
2
2
|
|
3
|
+
### v0.19.0 (2022-01-13)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220110
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.18.0 (2021-12-14)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.17.0 (2021-12-09)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211205
|
15
|
+
|
16
|
+
### v0.16.0 (2021-11-11)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20211107
|
19
|
+
|
3
20
|
### v0.15.0 (2021-10-21)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20211017
|
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.
|
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.
|
@@ -1446,6 +1446,12 @@ module Google
|
|
1446
1446
|
# @return [String]
|
1447
1447
|
attr_accessor :name
|
1448
1448
|
|
1449
|
+
# The organizational unit of this shared drive. This field is only populated on
|
1450
|
+
# drives.list responses when the useDomainAdminAccess parameter is set to true.
|
1451
|
+
# Corresponds to the JSON property `orgUnitId`
|
1452
|
+
# @return [String]
|
1453
|
+
attr_accessor :org_unit_id
|
1454
|
+
|
1449
1455
|
# A set of restrictions that apply to this shared drive or items inside this
|
1450
1456
|
# shared drive.
|
1451
1457
|
# Corresponds to the JSON property `restrictions`
|
@@ -1476,6 +1482,7 @@ module Google
|
|
1476
1482
|
@id = args[:id] if args.key?(:id)
|
1477
1483
|
@kind = args[:kind] if args.key?(:kind)
|
1478
1484
|
@name = args[:name] if args.key?(:name)
|
1485
|
+
@org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
|
1479
1486
|
@restrictions = args[:restrictions] if args.key?(:restrictions)
|
1480
1487
|
@theme_id = args[:theme_id] if args.key?(:theme_id)
|
1481
1488
|
end
|
@@ -2285,6 +2292,13 @@ module Google
|
|
2285
2292
|
class Capabilities
|
2286
2293
|
include Google::Apis::Core::Hashable
|
2287
2294
|
|
2295
|
+
# Whether the current user is the pending owner of the file. Not populated for
|
2296
|
+
# shared drive files.
|
2297
|
+
# Corresponds to the JSON property `canAcceptOwnership`
|
2298
|
+
# @return [Boolean]
|
2299
|
+
attr_accessor :can_accept_ownership
|
2300
|
+
alias_method :can_accept_ownership?, :can_accept_ownership
|
2301
|
+
|
2288
2302
|
# Whether the current user can add children to this folder. This is always false
|
2289
2303
|
# when the item is not a folder.
|
2290
2304
|
# Corresponds to the JSON property `canAddChildren`
|
@@ -2529,6 +2543,7 @@ module Google
|
|
2529
2543
|
|
2530
2544
|
# Update properties of this object
|
2531
2545
|
def update!(**args)
|
2546
|
+
@can_accept_ownership = args[:can_accept_ownership] if args.key?(:can_accept_ownership)
|
2532
2547
|
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
2533
2548
|
@can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
|
2534
2549
|
@can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
|
@@ -3186,6 +3201,13 @@ module Google
|
|
3186
3201
|
# @return [String]
|
3187
3202
|
attr_accessor :name
|
3188
3203
|
|
3204
|
+
# Whether the account associated with this permission is a pending owner. Only
|
3205
|
+
# populated for user type permissions for files that are not in a shared drive.
|
3206
|
+
# Corresponds to the JSON property `pendingOwner`
|
3207
|
+
# @return [Boolean]
|
3208
|
+
attr_accessor :pending_owner
|
3209
|
+
alias_method :pending_owner?, :pending_owner
|
3210
|
+
|
3189
3211
|
# Details of whether the permissions on this shared drive item are inherited or
|
3190
3212
|
# directly on this item. This is an output-only field which is present only for
|
3191
3213
|
# shared drive items.
|
@@ -3264,6 +3286,7 @@ module Google
|
|
3264
3286
|
@id = args[:id] if args.key?(:id)
|
3265
3287
|
@kind = args[:kind] if args.key?(:kind)
|
3266
3288
|
@name = args[:name] if args.key?(:name)
|
3289
|
+
@pending_owner = args[:pending_owner] if args.key?(:pending_owner)
|
3267
3290
|
@permission_details = args[:permission_details] if args.key?(:permission_details)
|
3268
3291
|
@photo_link = args[:photo_link] if args.key?(:photo_link)
|
3269
3292
|
@role = args[:role] if args.key?(:role)
|
@@ -3804,6 +3827,12 @@ module Google
|
|
3804
3827
|
# @return [String]
|
3805
3828
|
attr_accessor :name
|
3806
3829
|
|
3830
|
+
# The organizational unit of this shared drive. This field is only populated on
|
3831
|
+
# drives.list responses when the useDomainAdminAccess parameter is set to true.
|
3832
|
+
# Corresponds to the JSON property `orgUnitId`
|
3833
|
+
# @return [String]
|
3834
|
+
attr_accessor :org_unit_id
|
3835
|
+
|
3807
3836
|
# A set of restrictions that apply to this Team Drive or items inside this Team
|
3808
3837
|
# Drive.
|
3809
3838
|
# Corresponds to the JSON property `restrictions`
|
@@ -3834,6 +3863,7 @@ module Google
|
|
3834
3863
|
@id = args[:id] if args.key?(:id)
|
3835
3864
|
@kind = args[:kind] if args.key?(:kind)
|
3836
3865
|
@name = args[:name] if args.key?(:name)
|
3866
|
+
@org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
|
3837
3867
|
@restrictions = args[:restrictions] if args.key?(:restrictions)
|
3838
3868
|
@theme_id = args[:theme_id] if args.key?(:theme_id)
|
3839
3869
|
end
|
@@ -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.19.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 = "20220110"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -733,6 +733,7 @@ module Google
|
|
733
733
|
property :id, as: 'id'
|
734
734
|
property :kind, as: 'kind'
|
735
735
|
property :name, as: 'name'
|
736
|
+
property :org_unit_id, as: 'orgUnitId'
|
736
737
|
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV2::Drive::Restrictions, decorator: Google::Apis::DriveV2::Drive::Restrictions::Representation
|
737
738
|
|
738
739
|
property :theme_id, as: 'themeId'
|
@@ -897,6 +898,7 @@ module Google
|
|
897
898
|
class Capabilities
|
898
899
|
# @private
|
899
900
|
class Representation < Google::Apis::Core::JsonRepresentation
|
901
|
+
property :can_accept_ownership, as: 'canAcceptOwnership'
|
900
902
|
property :can_add_children, as: 'canAddChildren'
|
901
903
|
property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
|
902
904
|
property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
|
@@ -1085,6 +1087,7 @@ module Google
|
|
1085
1087
|
property :id, as: 'id'
|
1086
1088
|
property :kind, as: 'kind'
|
1087
1089
|
property :name, as: 'name'
|
1090
|
+
property :pending_owner, as: 'pendingOwner'
|
1088
1091
|
collection :permission_details, as: 'permissionDetails', class: Google::Apis::DriveV2::Permission::PermissionDetail, decorator: Google::Apis::DriveV2::Permission::PermissionDetail::Representation
|
1089
1092
|
|
1090
1093
|
property :photo_link, as: 'photoLink'
|
@@ -1224,6 +1227,7 @@ module Google
|
|
1224
1227
|
property :id, as: 'id'
|
1225
1228
|
property :kind, as: 'kind'
|
1226
1229
|
property :name, as: 'name'
|
1230
|
+
property :org_unit_id, as: 'orgUnitId'
|
1227
1231
|
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV2::TeamDrive::Restrictions, decorator: Google::Apis::DriveV2::TeamDrive::Restrictions::Representation
|
1228
1232
|
|
1229
1233
|
property :theme_id, as: 'themeId'
|
@@ -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
|
1609
|
-
#
|
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.
|
4
|
+
version: 0.19.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-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.19.0
|
62
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: []
|
@@ -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 V2
|