google-apis-drive_v2 0.58.0 → 0.60.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 +8 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/drive_v2/classes.rb +137 -0
- data/lib/google/apis/drive_v2/gem_version.rb +3 -3
- data/lib/google/apis/drive_v2/representations.rb +53 -0
- data/lib/google/apis/drive_v2/service.rb +65 -25
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6593181ae97ca0e8226f6505a391d75cf2582ed8fa26f1095f629fd4f7febc5d
|
|
4
|
+
data.tar.gz: 190303af0b79c3018244665ca97f1221b1cc1984be9b1e4183949cda02097a6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d5dbfe9308a6d70f4fca24f07b985be3d70299eccad4eed5e6308713fa231ec91a0e66217c780dff62899e568021ceb425206e6de08a0f2afde09aa988906a7
|
|
7
|
+
data.tar.gz: 9e9b51a44c1cf4dbf7d6d22102ac4555b6eeb09ad9cbf51c0d528fb14cbb5bb861dda5179a9f758292264c3c4b12bdb3af2f865fcefea8e0441e1ce9730e2b78
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-drive_v2
|
|
2
2
|
|
|
3
|
+
### v0.60.0 (2026-06-14)
|
|
4
|
+
|
|
5
|
+
* Regenerated using generator version 0.19.0
|
|
6
|
+
|
|
7
|
+
### v0.59.0 (2026-04-19)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260405
|
|
10
|
+
|
|
3
11
|
### v0.58.0 (2026-03-22)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20260318
|
data/OVERVIEW.md
CHANGED
|
@@ -83,7 +83,7 @@ The [product documentation](https://developers.google.com/workspace/drive/) may
|
|
|
83
83
|
|
|
84
84
|
## Supported Ruby versions
|
|
85
85
|
|
|
86
|
-
This library is supported on Ruby 3.
|
|
86
|
+
This library is supported on Ruby 3.2+.
|
|
87
87
|
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
|
89
89
|
|
|
@@ -1040,6 +1040,32 @@ module Google
|
|
|
1040
1040
|
end
|
|
1041
1041
|
end
|
|
1042
1042
|
|
|
1043
|
+
# Details about the client-side encryption applied to the file.
|
|
1044
|
+
class ClientEncryptionDetails
|
|
1045
|
+
include Google::Apis::Core::Hashable
|
|
1046
|
+
|
|
1047
|
+
# Representation of the CSE DecryptionMetadata.
|
|
1048
|
+
# Corresponds to the JSON property `decryptionMetadata`
|
|
1049
|
+
# @return [Google::Apis::DriveV2::DecryptionMetadata]
|
|
1050
|
+
attr_accessor :decryption_metadata
|
|
1051
|
+
|
|
1052
|
+
# The encryption state of the file. The values expected here are: - encrypted -
|
|
1053
|
+
# unencrypted
|
|
1054
|
+
# Corresponds to the JSON property `encryptionState`
|
|
1055
|
+
# @return [String]
|
|
1056
|
+
attr_accessor :encryption_state
|
|
1057
|
+
|
|
1058
|
+
def initialize(**args)
|
|
1059
|
+
update!(**args)
|
|
1060
|
+
end
|
|
1061
|
+
|
|
1062
|
+
# Update properties of this object
|
|
1063
|
+
def update!(**args)
|
|
1064
|
+
@decryption_metadata = args[:decryption_metadata] if args.key?(:decryption_metadata)
|
|
1065
|
+
@encryption_state = args[:encryption_state] if args.key?(:encryption_state)
|
|
1066
|
+
end
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1043
1069
|
# A comment on a file in Google Drive.
|
|
1044
1070
|
class Comment
|
|
1045
1071
|
include Google::Apis::Core::Hashable
|
|
@@ -1414,6 +1440,67 @@ module Google
|
|
|
1414
1440
|
end
|
|
1415
1441
|
end
|
|
1416
1442
|
|
|
1443
|
+
# Representation of the CSE DecryptionMetadata.
|
|
1444
|
+
class DecryptionMetadata
|
|
1445
|
+
include Google::Apis::Core::Hashable
|
|
1446
|
+
|
|
1447
|
+
# Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible
|
|
1448
|
+
# values are: - default - small
|
|
1449
|
+
# Corresponds to the JSON property `aes256GcmChunkSize`
|
|
1450
|
+
# @return [String]
|
|
1451
|
+
attr_accessor :aes256_gcm_chunk_size
|
|
1452
|
+
|
|
1453
|
+
# The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with
|
|
1454
|
+
# its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/
|
|
1455
|
+
# reference
|
|
1456
|
+
# Corresponds to the JSON property `encryptionResourceKeyHash`
|
|
1457
|
+
# @return [String]
|
|
1458
|
+
attr_accessor :encryption_resource_key_hash
|
|
1459
|
+
|
|
1460
|
+
# The signed JSON Web Token (JWT) which can be used to authorize the requesting
|
|
1461
|
+
# user with the Key ACL Service (KACLS). The JWT asserts that the requesting
|
|
1462
|
+
# user has at least read permissions on the file.
|
|
1463
|
+
# Corresponds to the JSON property `jwt`
|
|
1464
|
+
# @return [String]
|
|
1465
|
+
attr_accessor :jwt
|
|
1466
|
+
|
|
1467
|
+
# The ID of the KACLS (Key ACL Service) used to encrypt the file.
|
|
1468
|
+
# Corresponds to the JSON property `kaclsId`
|
|
1469
|
+
# @return [Fixnum]
|
|
1470
|
+
attr_accessor :kacls_id
|
|
1471
|
+
|
|
1472
|
+
# The name of the KACLS (Key ACL Service) used to encrypt the file.
|
|
1473
|
+
# Corresponds to the JSON property `kaclsName`
|
|
1474
|
+
# @return [String]
|
|
1475
|
+
attr_accessor :kacls_name
|
|
1476
|
+
|
|
1477
|
+
# Key format for the unwrapped key. Must be `tinkAesGcmKey`.
|
|
1478
|
+
# Corresponds to the JSON property `keyFormat`
|
|
1479
|
+
# @return [String]
|
|
1480
|
+
attr_accessor :key_format
|
|
1481
|
+
|
|
1482
|
+
# The URL-safe Base64 encoded wrapped key used to encrypt the contents of the
|
|
1483
|
+
# file.
|
|
1484
|
+
# Corresponds to the JSON property `wrappedKey`
|
|
1485
|
+
# @return [String]
|
|
1486
|
+
attr_accessor :wrapped_key
|
|
1487
|
+
|
|
1488
|
+
def initialize(**args)
|
|
1489
|
+
update!(**args)
|
|
1490
|
+
end
|
|
1491
|
+
|
|
1492
|
+
# Update properties of this object
|
|
1493
|
+
def update!(**args)
|
|
1494
|
+
@aes256_gcm_chunk_size = args[:aes256_gcm_chunk_size] if args.key?(:aes256_gcm_chunk_size)
|
|
1495
|
+
@encryption_resource_key_hash = args[:encryption_resource_key_hash] if args.key?(:encryption_resource_key_hash)
|
|
1496
|
+
@jwt = args[:jwt] if args.key?(:jwt)
|
|
1497
|
+
@kacls_id = args[:kacls_id] if args.key?(:kacls_id)
|
|
1498
|
+
@kacls_name = args[:kacls_name] if args.key?(:kacls_name)
|
|
1499
|
+
@key_format = args[:key_format] if args.key?(:key_format)
|
|
1500
|
+
@wrapped_key = args[:wrapped_key] if args.key?(:wrapped_key)
|
|
1501
|
+
end
|
|
1502
|
+
end
|
|
1503
|
+
|
|
1417
1504
|
# Representation of a shared drive. Some resource methods (such as `drives.
|
|
1418
1505
|
# update`) require a `driveId`. Use the `drives.list` method to retrieve the ID
|
|
1419
1506
|
# for a shared drive.
|
|
@@ -1861,6 +1948,11 @@ module Google
|
|
|
1861
1948
|
# @return [Google::Apis::DriveV2::File::Capabilities]
|
|
1862
1949
|
attr_accessor :capabilities
|
|
1863
1950
|
|
|
1951
|
+
# Details about the client-side encryption applied to the file.
|
|
1952
|
+
# Corresponds to the JSON property `clientEncryptionDetails`
|
|
1953
|
+
# @return [Google::Apis::DriveV2::ClientEncryptionDetails]
|
|
1954
|
+
attr_accessor :client_encryption_details
|
|
1955
|
+
|
|
1864
1956
|
# Restrictions for accessing the content of the file. Only populated if such a
|
|
1865
1957
|
# restriction exists.
|
|
1866
1958
|
# Corresponds to the JSON property `contentRestrictions`
|
|
@@ -2315,6 +2407,7 @@ module Google
|
|
|
2315
2407
|
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
|
2316
2408
|
@can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
|
|
2317
2409
|
@capabilities = args[:capabilities] if args.key?(:capabilities)
|
|
2410
|
+
@client_encryption_details = args[:client_encryption_details] if args.key?(:client_encryption_details)
|
|
2318
2411
|
@content_restrictions = args[:content_restrictions] if args.key?(:content_restrictions)
|
|
2319
2412
|
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
|
2320
2413
|
@copyable = args[:copyable] if args.key?(:copyable)
|
|
@@ -3201,6 +3294,50 @@ module Google
|
|
|
3201
3294
|
end
|
|
3202
3295
|
end
|
|
3203
3296
|
|
|
3297
|
+
# JWT and associated metadata used to generate CSE files.
|
|
3298
|
+
class GenerateCseTokenResponse
|
|
3299
|
+
include Google::Apis::Core::Hashable
|
|
3300
|
+
|
|
3301
|
+
# The current Key ACL Service (KACLS) ID associated with the JWT.
|
|
3302
|
+
# Corresponds to the JSON property `currentKaclsId`
|
|
3303
|
+
# @return [Fixnum]
|
|
3304
|
+
attr_accessor :current_kacls_id
|
|
3305
|
+
|
|
3306
|
+
# Name of the KACLs that the returned KACLs ID points to.
|
|
3307
|
+
# Corresponds to the JSON property `currentKaclsName`
|
|
3308
|
+
# @return [String]
|
|
3309
|
+
attr_accessor :current_kacls_name
|
|
3310
|
+
|
|
3311
|
+
# The fileId for which the JWT was generated.
|
|
3312
|
+
# Corresponds to the JSON property `fileId`
|
|
3313
|
+
# @return [String]
|
|
3314
|
+
attr_accessor :file_id
|
|
3315
|
+
|
|
3316
|
+
# The signed JSON Web Token (JWT) for the file.
|
|
3317
|
+
# Corresponds to the JSON property `jwt`
|
|
3318
|
+
# @return [String]
|
|
3319
|
+
attr_accessor :jwt
|
|
3320
|
+
|
|
3321
|
+
# Output only. Identifies what kind of resource this is. Value: the fixed string
|
|
3322
|
+
# `"drive#generateCseTokenResponse"`.
|
|
3323
|
+
# Corresponds to the JSON property `kind`
|
|
3324
|
+
# @return [String]
|
|
3325
|
+
attr_accessor :kind
|
|
3326
|
+
|
|
3327
|
+
def initialize(**args)
|
|
3328
|
+
update!(**args)
|
|
3329
|
+
end
|
|
3330
|
+
|
|
3331
|
+
# Update properties of this object
|
|
3332
|
+
def update!(**args)
|
|
3333
|
+
@current_kacls_id = args[:current_kacls_id] if args.key?(:current_kacls_id)
|
|
3334
|
+
@current_kacls_name = args[:current_kacls_name] if args.key?(:current_kacls_name)
|
|
3335
|
+
@file_id = args[:file_id] if args.key?(:file_id)
|
|
3336
|
+
@jwt = args[:jwt] if args.key?(:jwt)
|
|
3337
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
3338
|
+
end
|
|
3339
|
+
end
|
|
3340
|
+
|
|
3204
3341
|
# A list of generated IDs which can be provided in insert requests
|
|
3205
3342
|
class GeneratedIds
|
|
3206
3343
|
include Google::Apis::Core::Hashable
|
|
@@ -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.60.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
22
|
+
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260405"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -130,6 +130,12 @@ module Google
|
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
+
class ClientEncryptionDetails
|
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
|
+
|
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
137
|
+
end
|
|
138
|
+
|
|
133
139
|
class Comment
|
|
134
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
141
|
|
|
@@ -166,6 +172,12 @@ module Google
|
|
|
166
172
|
include Google::Apis::Core::JsonObjectSupport
|
|
167
173
|
end
|
|
168
174
|
|
|
175
|
+
class DecryptionMetadata
|
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
|
+
|
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
179
|
+
end
|
|
180
|
+
|
|
169
181
|
class Drive
|
|
170
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
171
183
|
|
|
@@ -268,6 +280,12 @@ module Google
|
|
|
268
280
|
include Google::Apis::Core::JsonObjectSupport
|
|
269
281
|
end
|
|
270
282
|
|
|
283
|
+
class GenerateCseTokenResponse
|
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
285
|
+
|
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
287
|
+
end
|
|
288
|
+
|
|
271
289
|
class GeneratedIds
|
|
272
290
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
273
291
|
|
|
@@ -677,6 +695,15 @@ module Google
|
|
|
677
695
|
end
|
|
678
696
|
end
|
|
679
697
|
|
|
698
|
+
class ClientEncryptionDetails
|
|
699
|
+
# @private
|
|
700
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
701
|
+
property :decryption_metadata, as: 'decryptionMetadata', class: Google::Apis::DriveV2::DecryptionMetadata, decorator: Google::Apis::DriveV2::DecryptionMetadata::Representation
|
|
702
|
+
|
|
703
|
+
property :encryption_state, as: 'encryptionState'
|
|
704
|
+
end
|
|
705
|
+
end
|
|
706
|
+
|
|
680
707
|
class Comment
|
|
681
708
|
# @private
|
|
682
709
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -768,6 +795,19 @@ module Google
|
|
|
768
795
|
end
|
|
769
796
|
end
|
|
770
797
|
|
|
798
|
+
class DecryptionMetadata
|
|
799
|
+
# @private
|
|
800
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
801
|
+
property :aes256_gcm_chunk_size, as: 'aes256GcmChunkSize'
|
|
802
|
+
property :encryption_resource_key_hash, as: 'encryptionResourceKeyHash'
|
|
803
|
+
property :jwt, as: 'jwt'
|
|
804
|
+
property :kacls_id, :numeric_string => true, as: 'kaclsId'
|
|
805
|
+
property :kacls_name, as: 'kaclsName'
|
|
806
|
+
property :key_format, as: 'keyFormat'
|
|
807
|
+
property :wrapped_key, as: 'wrappedKey'
|
|
808
|
+
end
|
|
809
|
+
end
|
|
810
|
+
|
|
771
811
|
class Drive
|
|
772
812
|
# @private
|
|
773
813
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -856,6 +896,8 @@ module Google
|
|
|
856
896
|
property :can_read_revisions, as: 'canReadRevisions'
|
|
857
897
|
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::File::Capabilities, decorator: Google::Apis::DriveV2::File::Capabilities::Representation
|
|
858
898
|
|
|
899
|
+
property :client_encryption_details, as: 'clientEncryptionDetails', class: Google::Apis::DriveV2::ClientEncryptionDetails, decorator: Google::Apis::DriveV2::ClientEncryptionDetails::Representation
|
|
900
|
+
|
|
859
901
|
collection :content_restrictions, as: 'contentRestrictions', class: Google::Apis::DriveV2::ContentRestriction, decorator: Google::Apis::DriveV2::ContentRestriction::Representation
|
|
860
902
|
|
|
861
903
|
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
|
@@ -1115,6 +1157,17 @@ module Google
|
|
|
1115
1157
|
end
|
|
1116
1158
|
end
|
|
1117
1159
|
|
|
1160
|
+
class GenerateCseTokenResponse
|
|
1161
|
+
# @private
|
|
1162
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1163
|
+
property :current_kacls_id, :numeric_string => true, as: 'currentKaclsId'
|
|
1164
|
+
property :current_kacls_name, as: 'currentKaclsName'
|
|
1165
|
+
property :file_id, as: 'fileId'
|
|
1166
|
+
property :jwt, as: 'jwt'
|
|
1167
|
+
property :kind, as: 'kind'
|
|
1168
|
+
end
|
|
1169
|
+
end
|
|
1170
|
+
|
|
1118
1171
|
class GeneratedIds
|
|
1119
1172
|
# @private
|
|
1120
1173
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -970,8 +970,8 @@ module Google
|
|
|
970
970
|
|
|
971
971
|
# Lists the user's shared drives. This method accepts the `q` parameter, which
|
|
972
972
|
# is a search query combining one or more search terms. For more information,
|
|
973
|
-
# see the [Search for shared drives](/workspace/
|
|
974
|
-
# shareddrives) guide.
|
|
973
|
+
# see the [Search for shared drives](https://developers.google.com/workspace/
|
|
974
|
+
# drive/api/guides/search-shareddrives) guide.
|
|
975
975
|
# @param [Fixnum] max_results
|
|
976
976
|
# Maximum number of shared drives to return per page.
|
|
977
977
|
# @param [String] page_token
|
|
@@ -1266,6 +1266,44 @@ module Google
|
|
|
1266
1266
|
execute_or_queue_command(command, &block)
|
|
1267
1267
|
end
|
|
1268
1268
|
|
|
1269
|
+
# Generates a CSE token which can be used to create or update CSE files.
|
|
1270
|
+
# @param [String] file_id
|
|
1271
|
+
# The ID of the file for which the JWT should be generated. If not provided, an
|
|
1272
|
+
# id will be generated.
|
|
1273
|
+
# @param [String] parent
|
|
1274
|
+
# The ID of the expected parent of the file. Used when generating a JWT for a
|
|
1275
|
+
# new CSE file. If specified, the parent will be fetched, and if the parent is a
|
|
1276
|
+
# shared drive item, the shared drive's policy will be used to determine the
|
|
1277
|
+
# KACLS that should be used. It is invalid to specify both file_id and parent in
|
|
1278
|
+
# a single request.
|
|
1279
|
+
# @param [String] fields
|
|
1280
|
+
# Selector specifying which fields to include in a partial response.
|
|
1281
|
+
# @param [String] quota_user
|
|
1282
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1283
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1284
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1285
|
+
# Request-specific options
|
|
1286
|
+
#
|
|
1287
|
+
# @yield [result, err] Result & error if block supplied
|
|
1288
|
+
# @yieldparam result [Google::Apis::DriveV2::GenerateCseTokenResponse] parsed result object
|
|
1289
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1290
|
+
#
|
|
1291
|
+
# @return [Google::Apis::DriveV2::GenerateCseTokenResponse]
|
|
1292
|
+
#
|
|
1293
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1294
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1295
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1296
|
+
def generate_file_cse_token(file_id: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1297
|
+
command = make_simple_command(:get, 'files/generateCseToken', options)
|
|
1298
|
+
command.response_representation = Google::Apis::DriveV2::GenerateCseTokenResponse::Representation
|
|
1299
|
+
command.response_class = Google::Apis::DriveV2::GenerateCseTokenResponse
|
|
1300
|
+
command.query['fileId'] = file_id unless file_id.nil?
|
|
1301
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1302
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1303
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1304
|
+
execute_or_queue_command(command, &block)
|
|
1305
|
+
end
|
|
1306
|
+
|
|
1269
1307
|
# Generates a set of file IDs which can be provided in insert or copy requests.
|
|
1270
1308
|
# @param [Fixnum] max_results
|
|
1271
1309
|
# Maximum number of IDs to return.
|
|
@@ -1308,9 +1346,10 @@ module Google
|
|
|
1308
1346
|
# Gets a file's metadata or content by ID. If you provide the URL parameter `
|
|
1309
1347
|
# alt=media`, then the response includes the file contents in the response body.
|
|
1310
1348
|
# Downloading content with `alt=media` only works if the file is stored in Drive.
|
|
1311
|
-
# To download Google Docs, Sheets, and Slides use [`files.export`](
|
|
1312
|
-
# drive/api/reference/rest/v2/files/export)
|
|
1313
|
-
# Download & export files](
|
|
1349
|
+
# To download Google Docs, Sheets, and Slides use [`files.export`](https://
|
|
1350
|
+
# developers.google.com/workspace/drive/api/reference/rest/v2/files/export)
|
|
1351
|
+
# instead. For more information, see [Download & export files](https://
|
|
1352
|
+
# developers.google.com/workspace/drive/api/guides/manage-downloads).
|
|
1314
1353
|
# @param [String] file_id
|
|
1315
1354
|
# The ID for the file in question.
|
|
1316
1355
|
# @param [Boolean] acknowledge_abuse
|
|
@@ -1383,18 +1422,18 @@ module Google
|
|
|
1383
1422
|
# 120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type,
|
|
1384
1423
|
# rather than the literal `*/*` value. The literal `*/*` is only used to
|
|
1385
1424
|
# indicate that any valid MIME type can be uploaded. For more information on
|
|
1386
|
-
# uploading files, see [Upload file data](/
|
|
1387
|
-
# uploads). Apps creating shortcuts with `
|
|
1388
|
-
# type `application/vnd.google-apps.shortcut
|
|
1389
|
-
# extension in the `title` property when inserting
|
|
1390
|
-
# example, an operation to insert a JPEG file should
|
|
1391
|
-
# title": "cat.jpg"` in the metadata. Subsequent `GET`
|
|
1392
|
-
# only `fileExtension` property populated with the
|
|
1393
|
-
# specified in the `title` property. When a Google Drive
|
|
1394
|
-
# download a file, or when the file is downloaded through the
|
|
1395
|
-
# builds a full filename (with extension) based on the title.
|
|
1396
|
-
# extension is missing, Drive attempts to determine the
|
|
1397
|
-
# file's MIME type.
|
|
1425
|
+
# uploading files, see [Upload file data](https://developers.google.com/
|
|
1426
|
+
# workspace/drive/api/guides/manage-uploads). Apps creating shortcuts with `
|
|
1427
|
+
# files.insert` must specify the MIME type `application/vnd.google-apps.shortcut`
|
|
1428
|
+
# . Apps should specify a file extension in the `title` property when inserting
|
|
1429
|
+
# files with the API. For example, an operation to insert a JPEG file should
|
|
1430
|
+
# specify something like `"title": "cat.jpg"` in the metadata. Subsequent `GET`
|
|
1431
|
+
# requests include the read-only `fileExtension` property populated with the
|
|
1432
|
+
# extension originally specified in the `title` property. When a Google Drive
|
|
1433
|
+
# user requests to download a file, or when the file is downloaded through the
|
|
1434
|
+
# sync client, Drive builds a full filename (with extension) based on the title.
|
|
1435
|
+
# In cases where the extension is missing, Drive attempts to determine the
|
|
1436
|
+
# extension based on the file's MIME type.
|
|
1398
1437
|
# @param [Google::Apis::DriveV2::File] file_object
|
|
1399
1438
|
# @param [Boolean] convert
|
|
1400
1439
|
# Whether to convert this file to the corresponding Docs Editors format.
|
|
@@ -1478,11 +1517,11 @@ module Google
|
|
|
1478
1517
|
end
|
|
1479
1518
|
|
|
1480
1519
|
# Lists the user's files. For more information, see [Search for files and
|
|
1481
|
-
# folders](/workspace/drive/api/guides/search-files)
|
|
1482
|
-
# parameter, which is a search query combining one
|
|
1483
|
-
# method returns *all* files by default, including
|
|
1484
|
-
# want trashed files to appear in the list, use the `
|
|
1485
|
-
# parameter to remove trashed files from the results.
|
|
1520
|
+
# folders](https://developers.google.com/workspace/drive/api/guides/search-files)
|
|
1521
|
+
# . This method accepts the `q` parameter, which is a search query combining one
|
|
1522
|
+
# or more search terms. This method returns *all* files by default, including
|
|
1523
|
+
# trashed files. If you don't want trashed files to appear in the list, use the `
|
|
1524
|
+
# trashed=false` query parameter to remove trashed files from the results.
|
|
1486
1525
|
# @param [String] corpora
|
|
1487
1526
|
# Bodies of items (files/documents) to which the query applies. Supported bodies
|
|
1488
1527
|
# are `default`, `domain`, `drive` and `allDrives`. Prefer `default` or `drive`
|
|
@@ -1898,9 +1937,10 @@ module Google
|
|
|
1898
1937
|
# size:* 5,120 GB - *Accepted Media MIME types:* `*/*` (Specify a valid MIME
|
|
1899
1938
|
# type, rather than the literal `*/*` value. The literal `*/*` is only used to
|
|
1900
1939
|
# indicate that any valid MIME type can be uploaded. For more information, see [
|
|
1901
|
-
# Google Workspace and Google Drive supported MIME types](
|
|
1902
|
-
# guides/mime-types).) For more information on
|
|
1903
|
-
# data](/
|
|
1940
|
+
# Google Workspace and Google Drive supported MIME types](https://developers.
|
|
1941
|
+
# google.com/workspace/drive/api/guides/mime-types).) For more information on
|
|
1942
|
+
# uploading files, see [Upload file data](https://developers.google.com/
|
|
1943
|
+
# workspace/drive/api/guides/manage-uploads).
|
|
1904
1944
|
# @param [String] file_id
|
|
1905
1945
|
# The ID of the file to update.
|
|
1906
1946
|
# @param [Google::Apis::DriveV2::File] file_object
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.60.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v2/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v2/v0.60.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v2
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
requirements:
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '3.
|
|
69
|
+
version: '3.2'
|
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|