google-apis-drive_v3 0.8.0 → 0.12.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 +18 -0
- data/lib/google/apis/drive_v3/classes.rb +55 -0
- data/lib/google/apis/drive_v3/gem_version.rb +3 -3
- data/lib/google/apis/drive_v3/representations.rb +19 -0
- data/lib/google/apis/drive_v3/service.rb +11 -3
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5550986535b150a590396c416910c8d13360213250fffc8ebd3b90b4a2c8b7ba
|
4
|
+
data.tar.gz: 5f8527d026177470bbf8dfc6c62edd2e41c79863b4131e9676077978f97e5bd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e290fd8af3d1331376884dafc2baf708d82ca053ff67f789bbb2aa9f4b64f06476d09ef74e7c76d43fde794fc0eb03752d302b90774a23f55e64564cef4e638
|
7
|
+
data.tar.gz: 4bc1c4c09e6b4368de4485bea6af3aa1b6a2d5a09cdc70624454f01d7c1f9124b798a1fdcb20789a41eba52afe8b2092aae9e575c3e5665f24ea6dd84f17f932
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release history for google-apis-drive_v3
|
2
2
|
|
3
|
+
### v0.12.0 (2021-07-13)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210707
|
6
|
+
|
7
|
+
### v0.11.0 (2021-07-01)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210628
|
10
|
+
* Regenerated using generator version 0.4.0
|
11
|
+
|
12
|
+
### v0.10.0 (2021-06-24)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.9.0 (2021-06-17)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210612
|
19
|
+
* Regenerated using generator version 0.3.0
|
20
|
+
|
3
21
|
### v0.8.0 (2021-05-28)
|
4
22
|
|
5
23
|
* Regenerated from discovery document revision 20210524
|
@@ -1142,6 +1142,12 @@ module Google
|
|
1142
1142
|
# @return [Google::Apis::DriveV3::User]
|
1143
1143
|
attr_accessor :last_modifying_user
|
1144
1144
|
|
1145
|
+
# Contains details about the link URLs that clients are using to refer to this
|
1146
|
+
# item.
|
1147
|
+
# Corresponds to the JSON property `linkShareMetadata`
|
1148
|
+
# @return [Google::Apis::DriveV3::File::LinkShareMetadata]
|
1149
|
+
attr_accessor :link_share_metadata
|
1150
|
+
|
1145
1151
|
# The MD5 checksum for the content of the file. This is only applicable to files
|
1146
1152
|
# with binary content in Google Drive.
|
1147
1153
|
# Corresponds to the JSON property `md5Checksum`
|
@@ -1235,6 +1241,11 @@ module Google
|
|
1235
1241
|
# @return [Fixnum]
|
1236
1242
|
attr_accessor :quota_bytes_used
|
1237
1243
|
|
1244
|
+
# A key needed to access the item via a shared link.
|
1245
|
+
# Corresponds to the JSON property `resourceKey`
|
1246
|
+
# @return [String]
|
1247
|
+
attr_accessor :resource_key
|
1248
|
+
|
1238
1249
|
# Whether the file has been shared. Not populated for items in shared drives.
|
1239
1250
|
# Corresponds to the JSON property `shared`
|
1240
1251
|
# @return [Boolean]
|
@@ -1390,6 +1401,7 @@ module Google
|
|
1390
1401
|
@is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
|
1391
1402
|
@kind = args[:kind] if args.key?(:kind)
|
1392
1403
|
@last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
|
1404
|
+
@link_share_metadata = args[:link_share_metadata] if args.key?(:link_share_metadata)
|
1393
1405
|
@md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
|
1394
1406
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
1395
1407
|
@modified_by_me = args[:modified_by_me] if args.key?(:modified_by_me)
|
@@ -1404,6 +1416,7 @@ module Google
|
|
1404
1416
|
@permissions = args[:permissions] if args.key?(:permissions)
|
1405
1417
|
@properties = args[:properties] if args.key?(:properties)
|
1406
1418
|
@quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
|
1419
|
+
@resource_key = args[:resource_key] if args.key?(:resource_key)
|
1407
1420
|
@shared = args[:shared] if args.key?(:shared)
|
1408
1421
|
@shared_with_me_time = args[:shared_with_me_time] if args.key?(:shared_with_me_time)
|
1409
1422
|
@sharing_user = args[:sharing_user] if args.key?(:sharing_user)
|
@@ -1461,6 +1474,13 @@ module Google
|
|
1461
1474
|
attr_accessor :can_change_copy_requires_writer_permission
|
1462
1475
|
alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
|
1463
1476
|
|
1477
|
+
# Whether the current user can change the securityUpdateEnabled field on link
|
1478
|
+
# share metadata.
|
1479
|
+
# Corresponds to the JSON property `canChangeSecurityUpdateEnabled`
|
1480
|
+
# @return [Boolean]
|
1481
|
+
attr_accessor :can_change_security_update_enabled
|
1482
|
+
alias_method :can_change_security_update_enabled?, :can_change_security_update_enabled
|
1483
|
+
|
1464
1484
|
# Deprecated
|
1465
1485
|
# Corresponds to the JSON property `canChangeViewersCanCopyContent`
|
1466
1486
|
# @return [Boolean]
|
@@ -1673,6 +1693,7 @@ module Google
|
|
1673
1693
|
@can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
|
1674
1694
|
@can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
|
1675
1695
|
@can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
|
1696
|
+
@can_change_security_update_enabled = args[:can_change_security_update_enabled] if args.key?(:can_change_security_update_enabled)
|
1676
1697
|
@can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content)
|
1677
1698
|
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
1678
1699
|
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
@@ -1934,6 +1955,34 @@ module Google
|
|
1934
1955
|
end
|
1935
1956
|
end
|
1936
1957
|
|
1958
|
+
# Contains details about the link URLs that clients are using to refer to this
|
1959
|
+
# item.
|
1960
|
+
class LinkShareMetadata
|
1961
|
+
include Google::Apis::Core::Hashable
|
1962
|
+
|
1963
|
+
# Whether the file is eligible for security update.
|
1964
|
+
# Corresponds to the JSON property `securityUpdateEligible`
|
1965
|
+
# @return [Boolean]
|
1966
|
+
attr_accessor :security_update_eligible
|
1967
|
+
alias_method :security_update_eligible?, :security_update_eligible
|
1968
|
+
|
1969
|
+
# Whether the security update is enabled for this file.
|
1970
|
+
# Corresponds to the JSON property `securityUpdateEnabled`
|
1971
|
+
# @return [Boolean]
|
1972
|
+
attr_accessor :security_update_enabled
|
1973
|
+
alias_method :security_update_enabled?, :security_update_enabled
|
1974
|
+
|
1975
|
+
def initialize(**args)
|
1976
|
+
update!(**args)
|
1977
|
+
end
|
1978
|
+
|
1979
|
+
# Update properties of this object
|
1980
|
+
def update!(**args)
|
1981
|
+
@security_update_eligible = args[:security_update_eligible] if args.key?(:security_update_eligible)
|
1982
|
+
@security_update_enabled = args[:security_update_enabled] if args.key?(:security_update_enabled)
|
1983
|
+
end
|
1984
|
+
end
|
1985
|
+
|
1937
1986
|
# Shortcut file details. Only populated for shortcut files, which have the
|
1938
1987
|
# mimeType field set to application/vnd.google-apps.shortcut.
|
1939
1988
|
class ShortcutDetails
|
@@ -1951,6 +2000,11 @@ module Google
|
|
1951
2000
|
# @return [String]
|
1952
2001
|
attr_accessor :target_mime_type
|
1953
2002
|
|
2003
|
+
# The ResourceKey for the target file.
|
2004
|
+
# Corresponds to the JSON property `targetResourceKey`
|
2005
|
+
# @return [String]
|
2006
|
+
attr_accessor :target_resource_key
|
2007
|
+
|
1954
2008
|
def initialize(**args)
|
1955
2009
|
update!(**args)
|
1956
2010
|
end
|
@@ -1959,6 +2013,7 @@ module Google
|
|
1959
2013
|
def update!(**args)
|
1960
2014
|
@target_id = args[:target_id] if args.key?(:target_id)
|
1961
2015
|
@target_mime_type = args[:target_mime_type] if args.key?(:target_mime_type)
|
2016
|
+
@target_resource_key = args[:target_resource_key] if args.key?(:target_resource_key)
|
1962
2017
|
end
|
1963
2018
|
end
|
1964
2019
|
|
@@ -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.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210707"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -151,6 +151,12 @@ module Google
|
|
151
151
|
include Google::Apis::Core::JsonObjectSupport
|
152
152
|
end
|
153
153
|
|
154
|
+
class LinkShareMetadata
|
155
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
156
|
+
|
157
|
+
include Google::Apis::Core::JsonObjectSupport
|
158
|
+
end
|
159
|
+
|
154
160
|
class ShortcutDetails
|
155
161
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
156
162
|
|
@@ -535,6 +541,8 @@ module Google
|
|
535
541
|
property :kind, as: 'kind'
|
536
542
|
property :last_modifying_user, as: 'lastModifyingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
537
543
|
|
544
|
+
property :link_share_metadata, as: 'linkShareMetadata', class: Google::Apis::DriveV3::File::LinkShareMetadata, decorator: Google::Apis::DriveV3::File::LinkShareMetadata::Representation
|
545
|
+
|
538
546
|
property :md5_checksum, as: 'md5Checksum'
|
539
547
|
property :mime_type, as: 'mimeType'
|
540
548
|
property :modified_by_me, as: 'modifiedByMe'
|
@@ -553,6 +561,7 @@ module Google
|
|
553
561
|
|
554
562
|
hash :properties, as: 'properties'
|
555
563
|
property :quota_bytes_used, :numeric_string => true, as: 'quotaBytesUsed'
|
564
|
+
property :resource_key, as: 'resourceKey'
|
556
565
|
property :shared, as: 'shared'
|
557
566
|
property :shared_with_me_time, as: 'sharedWithMeTime', type: DateTime
|
558
567
|
|
@@ -590,6 +599,7 @@ module Google
|
|
590
599
|
property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
|
591
600
|
property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
|
592
601
|
property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
|
602
|
+
property :can_change_security_update_enabled, as: 'canChangeSecurityUpdateEnabled'
|
593
603
|
property :can_change_viewers_can_copy_content, as: 'canChangeViewersCanCopyContent'
|
594
604
|
property :can_comment, as: 'canComment'
|
595
605
|
property :can_copy, as: 'canCopy'
|
@@ -677,11 +687,20 @@ module Google
|
|
677
687
|
end
|
678
688
|
end
|
679
689
|
|
690
|
+
class LinkShareMetadata
|
691
|
+
# @private
|
692
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
693
|
+
property :security_update_eligible, as: 'securityUpdateEligible'
|
694
|
+
property :security_update_enabled, as: 'securityUpdateEnabled'
|
695
|
+
end
|
696
|
+
end
|
697
|
+
|
680
698
|
class ShortcutDetails
|
681
699
|
# @private
|
682
700
|
class Representation < Google::Apis::Core::JsonRepresentation
|
683
701
|
property :target_id, as: 'targetId'
|
684
702
|
property :target_mime_type, as: 'targetMimeType'
|
703
|
+
property :target_resource_key, as: 'targetResourceKey'
|
685
704
|
end
|
686
705
|
end
|
687
706
|
|
@@ -665,7 +665,7 @@ module Google
|
|
665
665
|
|
666
666
|
# Lists the user's shared drives.
|
667
667
|
# @param [Fixnum] page_size
|
668
|
-
# Maximum number of shared drives to return.
|
668
|
+
# Maximum number of shared drives to return per page.
|
669
669
|
# @param [String] page_token
|
670
670
|
# Page token for shared drives.
|
671
671
|
# @param [String] q
|
@@ -1381,7 +1381,11 @@ module Google
|
|
1381
1381
|
# @param [Boolean] transfer_ownership
|
1382
1382
|
# Whether to transfer ownership to the specified user and downgrade the current
|
1383
1383
|
# owner to a writer. This parameter is required as an acknowledgement of the
|
1384
|
-
# side effect.
|
1384
|
+
# side effect. File owners can only transfer ownership of files existing on My
|
1385
|
+
# Drive. Files existing in a shared drive are owned by the organization that
|
1386
|
+
# owns that shared drive. Ownership transfers are not supported for files and
|
1387
|
+
# folders in shared drives. Organizers of a shared drive can move items from
|
1388
|
+
# that shared drive into their My Drive which transfers the ownership to them.
|
1385
1389
|
# @param [Boolean] use_domain_admin_access
|
1386
1390
|
# Issue the request as a domain administrator; if set to true, then the
|
1387
1391
|
# requester will be granted access if the file ID parameter refers to a shared
|
@@ -1594,7 +1598,11 @@ module Google
|
|
1594
1598
|
# @param [Boolean] transfer_ownership
|
1595
1599
|
# Whether to transfer ownership to the specified user and downgrade the current
|
1596
1600
|
# owner to a writer. This parameter is required as an acknowledgement of the
|
1597
|
-
# side effect.
|
1601
|
+
# side effect. File owners can only transfer ownership of files existing on My
|
1602
|
+
# Drive. Files existing in a shared drive are owned by the organization that
|
1603
|
+
# owns that shared drive. Ownership transfers are not supported for files and
|
1604
|
+
# folders in shared drives. Organizers of a shared drive can move items from
|
1605
|
+
# that shared drive into their My Drive which transfers the ownership to them.
|
1598
1606
|
# @param [Boolean] use_domain_admin_access
|
1599
1607
|
# Issue the request as a domain administrator; if set to true, then the
|
1600
1608
|
# requester will be granted access if the file ID parameter refers to a shared
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.12.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-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Drive API V3. Simple REST clients
|
28
34
|
are Ruby client libraries that provide access to Google services via their HTTP
|
29
35
|
REST API endpoints. These libraries are generated and updated automatically based
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v3/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.12.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v3
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|