google-apis-drive_v2 0.5.0 → 0.10.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a303d8f42443cae5d24e960b7714a5b8d54e9f50e36484a181b1b0c32c9cba1
|
4
|
+
data.tar.gz: 707b329424ee444f3375c67ef35c9c5ff7828c8028fc40d97adf5e1929ece16f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aace98f56fdbed89926f60e7c34565cd5980b35216f04a372d362bf546fc4bdf86459475a3cdfabc252769a634b96ae526122ed84db2f473f8ed99467a027f8e
|
7
|
+
data.tar.gz: e11ee3da438457548231ea48dc8f9c83d250898077554062543443c7589cab32b6343ff2e8627cdc4422aa70d5b66f75e9719311cb0e8e59f07ecc855ee4996f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-drive_v2
|
2
2
|
|
3
|
+
### v0.10.0 (2021-06-24)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.9.0 (2021-06-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210612
|
10
|
+
* Regenerated using generator version 0.3.0
|
11
|
+
|
12
|
+
### v0.8.0 (2021-05-28)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210524
|
15
|
+
|
16
|
+
### v0.7.0 (2021-05-19)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
20
|
+
### v0.6.0 (2021-05-13)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210509
|
23
|
+
|
3
24
|
### v0.5.0 (2021-03-18)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210315
|
@@ -1039,8 +1039,8 @@ module Google
|
|
1039
1039
|
class Comment
|
1040
1040
|
include Google::Apis::Core::Hashable
|
1041
1041
|
|
1042
|
-
# A region of the document represented as a JSON string.
|
1043
|
-
#
|
1042
|
+
# A region of the document represented as a JSON string. For details on defining
|
1043
|
+
# anchor properties, refer to Add comments and replies.
|
1044
1044
|
# Corresponds to the JSON property `anchor`
|
1045
1045
|
# @return [String]
|
1046
1046
|
attr_accessor :anchor
|
@@ -1976,6 +1976,12 @@ module Google
|
|
1976
1976
|
# @return [DateTime]
|
1977
1977
|
attr_accessor :last_viewed_by_me_date
|
1978
1978
|
|
1979
|
+
# Contains details about the link URLs that clients are using to refer to this
|
1980
|
+
# item.
|
1981
|
+
# Corresponds to the JSON property `linkShareMetadata`
|
1982
|
+
# @return [Google::Apis::DriveV2::File::LinkShareMetadata]
|
1983
|
+
attr_accessor :link_share_metadata
|
1984
|
+
|
1979
1985
|
# Deprecated.
|
1980
1986
|
# Corresponds to the JSON property `markedViewedByMeDate`
|
1981
1987
|
# @return [DateTime]
|
@@ -2033,7 +2039,8 @@ module Google
|
|
2033
2039
|
# @return [Array<String>]
|
2034
2040
|
attr_accessor :owner_names
|
2035
2041
|
|
2036
|
-
# The owner
|
2042
|
+
# The owner of this file. Only certain legacy files may have more than one owner.
|
2043
|
+
# This field isn't populated for items in shared drives.
|
2037
2044
|
# Corresponds to the JSON property `owners`
|
2038
2045
|
# @return [Array<Google::Apis::DriveV2::User>]
|
2039
2046
|
attr_accessor :owners
|
@@ -2069,6 +2076,11 @@ module Google
|
|
2069
2076
|
# @return [Fixnum]
|
2070
2077
|
attr_accessor :quota_bytes_used
|
2071
2078
|
|
2079
|
+
# A key needed to access the item via a shared link.
|
2080
|
+
# Corresponds to the JSON property `resourceKey`
|
2081
|
+
# @return [String]
|
2082
|
+
attr_accessor :resource_key
|
2083
|
+
|
2072
2084
|
# A link back to this file.
|
2073
2085
|
# Corresponds to the JSON property `selfLink`
|
2074
2086
|
# @return [String]
|
@@ -2229,6 +2241,7 @@ module Google
|
|
2229
2241
|
@last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
|
2230
2242
|
@last_modifying_user_name = args[:last_modifying_user_name] if args.key?(:last_modifying_user_name)
|
2231
2243
|
@last_viewed_by_me_date = args[:last_viewed_by_me_date] if args.key?(:last_viewed_by_me_date)
|
2244
|
+
@link_share_metadata = args[:link_share_metadata] if args.key?(:link_share_metadata)
|
2232
2245
|
@marked_viewed_by_me_date = args[:marked_viewed_by_me_date] if args.key?(:marked_viewed_by_me_date)
|
2233
2246
|
@md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
|
2234
2247
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
@@ -2244,6 +2257,7 @@ module Google
|
|
2244
2257
|
@permissions = args[:permissions] if args.key?(:permissions)
|
2245
2258
|
@properties = args[:properties] if args.key?(:properties)
|
2246
2259
|
@quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
|
2260
|
+
@resource_key = args[:resource_key] if args.key?(:resource_key)
|
2247
2261
|
@self_link = args[:self_link] if args.key?(:self_link)
|
2248
2262
|
@shareable = args[:shareable] if args.key?(:shareable)
|
2249
2263
|
@shared = args[:shared] if args.key?(:shared)
|
@@ -2306,6 +2320,13 @@ module Google
|
|
2306
2320
|
attr_accessor :can_change_restricted_download
|
2307
2321
|
alias_method :can_change_restricted_download?, :can_change_restricted_download
|
2308
2322
|
|
2323
|
+
# Whether the current user can change the securityUpdateEnabled field on link
|
2324
|
+
# share metadata.
|
2325
|
+
# Corresponds to the JSON property `canChangeSecurityUpdateEnabled`
|
2326
|
+
# @return [Boolean]
|
2327
|
+
attr_accessor :can_change_security_update_enabled
|
2328
|
+
alias_method :can_change_security_update_enabled?, :can_change_security_update_enabled
|
2329
|
+
|
2309
2330
|
# Whether the current user can comment on this file.
|
2310
2331
|
# Corresponds to the JSON property `canComment`
|
2311
2332
|
# @return [Boolean]
|
@@ -2513,6 +2534,7 @@ module Google
|
|
2513
2534
|
@can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
|
2514
2535
|
@can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
|
2515
2536
|
@can_change_restricted_download = args[:can_change_restricted_download] if args.key?(:can_change_restricted_download)
|
2537
|
+
@can_change_security_update_enabled = args[:can_change_security_update_enabled] if args.key?(:can_change_security_update_enabled)
|
2516
2538
|
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
2517
2539
|
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
2518
2540
|
@can_delete = args[:can_delete] if args.key?(:can_delete)
|
@@ -2797,6 +2819,34 @@ module Google
|
|
2797
2819
|
end
|
2798
2820
|
end
|
2799
2821
|
|
2822
|
+
# Contains details about the link URLs that clients are using to refer to this
|
2823
|
+
# item.
|
2824
|
+
class LinkShareMetadata
|
2825
|
+
include Google::Apis::Core::Hashable
|
2826
|
+
|
2827
|
+
# Whether the file is eligible for security update.
|
2828
|
+
# Corresponds to the JSON property `securityUpdateEligible`
|
2829
|
+
# @return [Boolean]
|
2830
|
+
attr_accessor :security_update_eligible
|
2831
|
+
alias_method :security_update_eligible?, :security_update_eligible
|
2832
|
+
|
2833
|
+
# Whether the security update is enabled for this file.
|
2834
|
+
# Corresponds to the JSON property `securityUpdateEnabled`
|
2835
|
+
# @return [Boolean]
|
2836
|
+
attr_accessor :security_update_enabled
|
2837
|
+
alias_method :security_update_enabled?, :security_update_enabled
|
2838
|
+
|
2839
|
+
def initialize(**args)
|
2840
|
+
update!(**args)
|
2841
|
+
end
|
2842
|
+
|
2843
|
+
# Update properties of this object
|
2844
|
+
def update!(**args)
|
2845
|
+
@security_update_eligible = args[:security_update_eligible] if args.key?(:security_update_eligible)
|
2846
|
+
@security_update_enabled = args[:security_update_enabled] if args.key?(:security_update_enabled)
|
2847
|
+
end
|
2848
|
+
end
|
2849
|
+
|
2800
2850
|
# Shortcut file details. Only populated for shortcut files, which have the
|
2801
2851
|
# mimeType field set to application/vnd.google-apps.shortcut.
|
2802
2852
|
class ShortcutDetails
|
@@ -2814,6 +2864,11 @@ module Google
|
|
2814
2864
|
# @return [String]
|
2815
2865
|
attr_accessor :target_mime_type
|
2816
2866
|
|
2867
|
+
# The ResourceKey for the target file.
|
2868
|
+
# Corresponds to the JSON property `targetResourceKey`
|
2869
|
+
# @return [String]
|
2870
|
+
attr_accessor :target_resource_key
|
2871
|
+
|
2817
2872
|
def initialize(**args)
|
2818
2873
|
update!(**args)
|
2819
2874
|
end
|
@@ -2822,6 +2877,7 @@ module Google
|
|
2822
2877
|
def update!(**args)
|
2823
2878
|
@target_id = args[:target_id] if args.key?(:target_id)
|
2824
2879
|
@target_mime_type = args[:target_mime_type] if args.key?(:target_mime_type)
|
2880
|
+
@target_resource_key = args[:target_resource_key] if args.key?(:target_resource_key)
|
2825
2881
|
end
|
2826
2882
|
end
|
2827
2883
|
|
@@ -3555,12 +3611,13 @@ module Google
|
|
3555
3611
|
# @return [String]
|
3556
3612
|
attr_accessor :original_filename
|
3557
3613
|
|
3558
|
-
# Whether this revision is pinned to prevent automatic purging.
|
3559
|
-
#
|
3560
|
-
#
|
3561
|
-
#
|
3562
|
-
#
|
3563
|
-
# quota, up to a
|
3614
|
+
# Whether this revision is pinned to prevent automatic purging. If not set, the
|
3615
|
+
# revision is automatically purged 30 days after newer content is uploaded. This
|
3616
|
+
# field can only be modified on files with content stored in Drive, excluding
|
3617
|
+
# Docs Editors files. Revisions can also be pinned when they are created through
|
3618
|
+
# the drive.files.insert/update/copy by using the pinned query parameter. Pinned
|
3619
|
+
# revisions are stored indefinitely using additional storage quota, up to a
|
3620
|
+
# maximum of 200 revisions.
|
3564
3621
|
# Corresponds to the JSON property `pinned`
|
3565
3622
|
# @return [Boolean]
|
3566
3623
|
attr_accessor :pinned
|
@@ -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.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210612"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -229,6 +229,12 @@ module Google
|
|
229
229
|
include Google::Apis::Core::JsonObjectSupport
|
230
230
|
end
|
231
231
|
|
232
|
+
class LinkShareMetadata
|
233
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
234
|
+
|
235
|
+
include Google::Apis::Core::JsonObjectSupport
|
236
|
+
end
|
237
|
+
|
232
238
|
class ShortcutDetails
|
233
239
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
234
240
|
|
@@ -833,6 +839,8 @@ module Google
|
|
833
839
|
property :last_modifying_user_name, as: 'lastModifyingUserName'
|
834
840
|
property :last_viewed_by_me_date, as: 'lastViewedByMeDate', type: DateTime
|
835
841
|
|
842
|
+
property :link_share_metadata, as: 'linkShareMetadata', class: Google::Apis::DriveV2::File::LinkShareMetadata, decorator: Google::Apis::DriveV2::File::LinkShareMetadata::Representation
|
843
|
+
|
836
844
|
property :marked_viewed_by_me_date, as: 'markedViewedByMeDate', type: DateTime
|
837
845
|
|
838
846
|
property :md5_checksum, as: 'md5Checksum'
|
@@ -855,6 +863,7 @@ module Google
|
|
855
863
|
collection :properties, as: 'properties', class: Google::Apis::DriveV2::Property, decorator: Google::Apis::DriveV2::Property::Representation
|
856
864
|
|
857
865
|
property :quota_bytes_used, :numeric_string => true, as: 'quotaBytesUsed'
|
866
|
+
property :resource_key, as: 'resourceKey'
|
858
867
|
property :self_link, as: 'selfLink'
|
859
868
|
property :shareable, as: 'shareable'
|
860
869
|
property :shared, as: 'shared'
|
@@ -893,6 +902,7 @@ module Google
|
|
893
902
|
property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
|
894
903
|
property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
|
895
904
|
property :can_change_restricted_download, as: 'canChangeRestrictedDownload'
|
905
|
+
property :can_change_security_update_enabled, as: 'canChangeSecurityUpdateEnabled'
|
896
906
|
property :can_comment, as: 'canComment'
|
897
907
|
property :can_copy, as: 'canCopy'
|
898
908
|
property :can_delete, as: 'canDelete'
|
@@ -981,11 +991,20 @@ module Google
|
|
981
991
|
end
|
982
992
|
end
|
983
993
|
|
994
|
+
class LinkShareMetadata
|
995
|
+
# @private
|
996
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
997
|
+
property :security_update_eligible, as: 'securityUpdateEligible'
|
998
|
+
property :security_update_enabled, as: 'securityUpdateEnabled'
|
999
|
+
end
|
1000
|
+
end
|
1001
|
+
|
984
1002
|
class ShortcutDetails
|
985
1003
|
# @private
|
986
1004
|
class Representation < Google::Apis::Core::JsonRepresentation
|
987
1005
|
property :target_id, as: 'targetId'
|
988
1006
|
property :target_mime_type, as: 'targetMimeType'
|
1007
|
+
property :target_resource_key, as: 'targetResourceKey'
|
989
1008
|
end
|
990
1009
|
end
|
991
1010
|
|
@@ -1329,7 +1329,11 @@ module Google
|
|
1329
1329
|
# Maximum number of IDs to return.
|
1330
1330
|
# @param [String] space
|
1331
1331
|
# The space in which the IDs can be used to create new files. Supported values
|
1332
|
-
# are 'drive' and 'appDataFolder'.
|
1332
|
+
# are 'drive' and 'appDataFolder'. (Default: 'drive')
|
1333
|
+
# @param [String] type
|
1334
|
+
# The type of items which the IDs can be used for. Supported values are 'files'
|
1335
|
+
# and 'shortcuts'. Note that 'shortcuts' are only supported in the drive 'space'.
|
1336
|
+
# (Default: 'files')
|
1333
1337
|
# @param [String] fields
|
1334
1338
|
# Selector specifying which fields to include in a partial response.
|
1335
1339
|
# @param [String] quota_user
|
@@ -1349,19 +1353,20 @@ module Google
|
|
1349
1353
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1350
1354
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1351
1355
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1352
|
-
def generate_file_ids(max_results: nil, space: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1356
|
+
def generate_file_ids(max_results: nil, space: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1353
1357
|
command = make_simple_command(:get, 'files/generateIds', options)
|
1354
1358
|
command.response_representation = Google::Apis::DriveV2::GeneratedIds::Representation
|
1355
1359
|
command.response_class = Google::Apis::DriveV2::GeneratedIds
|
1356
1360
|
command.query['maxResults'] = max_results unless max_results.nil?
|
1357
1361
|
command.query['space'] = space unless space.nil?
|
1362
|
+
command.query['type'] = type unless type.nil?
|
1358
1363
|
command.query['fields'] = fields unless fields.nil?
|
1359
1364
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1360
1365
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
1361
1366
|
execute_or_queue_command(command, &block)
|
1362
1367
|
end
|
1363
1368
|
|
1364
|
-
# Gets a file's metadata by ID.
|
1369
|
+
# Gets a file's metadata or content by ID.
|
1365
1370
|
# @param [String] file_id
|
1366
1371
|
# The ID for the file in question.
|
1367
1372
|
# @param [Boolean] acknowledge_abuse
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.10.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-06-28 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.3'
|
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.3'
|
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 V2. 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_v2/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.10.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-drive_v2
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
78
|
+
rubygems_version: 3.2.17
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Simple REST client for Drive API V2
|