google-apis-drive_v3 0.24.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efeb24fe19bb0183032fb438f8b57f584606e80dd25cefb6453cb0519a63b7ff
4
- data.tar.gz: 6d676dffb922b376f5fd62540031e0b0db1c2906fe4b25669ae1cf74d0c3b288
3
+ metadata.gz: ddd37aa5e8b95e3ce4d27c64f20c0eaa01dc6c1c08315669fb6c8fca10ef764f
4
+ data.tar.gz: 9f6ebf6ef456b227f1b924c5d4d8c067cd942f831101ca1717821038df43cb7f
5
5
  SHA512:
6
- metadata.gz: 74690274e2a46cc2b3acc6686b01559d3670dcabd95b59158168e1ae2584b6811ed50069025599fa715f5ec63ef058c56fd85c6527437e486bed6eec3197c341
7
- data.tar.gz: 0616ad98b284e660ab0fb2816ab02f781b73763cd7eb176e85df6bb74fcf32304baa352abe1c5a3fe6a23b8f178d8b7dcc4fda0aeaa83485fad49a7aff0711ae
6
+ metadata.gz: 5d3318aa5846ba6020e68ecc43c7ec2fe5d1b6794dc4eba91e3b6e2da29982ee54234acbdbeef5d414ecb0800c4521195748497743e8208045ae47e00ecfedab
7
+ data.tar.gz: 7452d86aaabac0900fe15d118aeedc3331d04cf3fac18084ee9c42d32bcfe1e11435e29e48d471e49385ad2fa4a5f91ca4c8417c49a06e22dd19222381be54f7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.27.0 (2022-08-18)
4
+
5
+ * Regenerated from discovery document revision 20220815
6
+
7
+ ### v0.26.0 (2022-07-14)
8
+
9
+ * Regenerated from discovery document revision 20220709
10
+ * Regenerated using generator version 0.9.0
11
+
12
+ ### v0.25.0 (2022-06-30)
13
+
14
+ * Regenerated using generator version 0.8.0
15
+
3
16
  ### v0.24.0 (2022-06-17)
4
17
 
5
18
  * Regenerated using generator version 0.6.0
@@ -1152,6 +1152,11 @@ module Google
1152
1152
  # @return [String]
1153
1153
  attr_accessor :kind
1154
1154
 
1155
+ # An overview of the labels on the file.
1156
+ # Corresponds to the JSON property `labelInfo`
1157
+ # @return [Google::Apis::DriveV3::File::LabelInfo]
1158
+ attr_accessor :label_info
1159
+
1155
1160
  # Information about a Drive user.
1156
1161
  # Corresponds to the JSON property `lastModifyingUser`
1157
1162
  # @return [Google::Apis::DriveV3::User]
@@ -1261,6 +1266,20 @@ module Google
1261
1266
  # @return [String]
1262
1267
  attr_accessor :resource_key
1263
1268
 
1269
+ # The SHA1 checksum associated with this file, if available. This field is only
1270
+ # populated for files with content stored in Google Drive; it is not populated
1271
+ # for Docs Editors or shortcut files.
1272
+ # Corresponds to the JSON property `sha1Checksum`
1273
+ # @return [String]
1274
+ attr_accessor :sha1_checksum
1275
+
1276
+ # The SHA256 checksum associated with this file, if available. This field is
1277
+ # only populated for files with content stored in Google Drive; it is not
1278
+ # populated for Docs Editors or shortcut files.
1279
+ # Corresponds to the JSON property `sha256Checksum`
1280
+ # @return [String]
1281
+ attr_accessor :sha256_checksum
1282
+
1264
1283
  # Whether the file has been shared. Not populated for items in shared drives.
1265
1284
  # Corresponds to the JSON property `shared`
1266
1285
  # @return [Boolean]
@@ -1415,6 +1434,7 @@ module Google
1415
1434
  @image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
1416
1435
  @is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
1417
1436
  @kind = args[:kind] if args.key?(:kind)
1437
+ @label_info = args[:label_info] if args.key?(:label_info)
1418
1438
  @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
1419
1439
  @link_share_metadata = args[:link_share_metadata] if args.key?(:link_share_metadata)
1420
1440
  @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
@@ -1432,6 +1452,8 @@ module Google
1432
1452
  @properties = args[:properties] if args.key?(:properties)
1433
1453
  @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
1434
1454
  @resource_key = args[:resource_key] if args.key?(:resource_key)
1455
+ @sha1_checksum = args[:sha1_checksum] if args.key?(:sha1_checksum)
1456
+ @sha256_checksum = args[:sha256_checksum] if args.key?(:sha256_checksum)
1435
1457
  @shared = args[:shared] if args.key?(:shared)
1436
1458
  @shared_with_me_time = args[:shared_with_me_time] if args.key?(:shared_with_me_time)
1437
1459
  @sharing_user = args[:sharing_user] if args.key?(:sharing_user)
@@ -1569,6 +1591,12 @@ module Google
1569
1591
  attr_accessor :can_modify_content_restriction
1570
1592
  alias_method :can_modify_content_restriction?, :can_modify_content_restriction
1571
1593
 
1594
+ # Whether the current user can modify the labels on this file.
1595
+ # Corresponds to the JSON property `canModifyLabels`
1596
+ # @return [Boolean]
1597
+ attr_accessor :can_modify_labels
1598
+ alias_method :can_modify_labels?, :can_modify_labels
1599
+
1572
1600
  # Whether the current user can move children of this folder outside of the
1573
1601
  # shared drive. This is false when the item is not a folder. Only populated for
1574
1602
  # items in shared drives.
@@ -1645,6 +1673,12 @@ module Google
1645
1673
  attr_accessor :can_read_drive
1646
1674
  alias_method :can_read_drive?, :can_read_drive
1647
1675
 
1676
+ # Whether the current user can read the labels on this file.
1677
+ # Corresponds to the JSON property `canReadLabels`
1678
+ # @return [Boolean]
1679
+ attr_accessor :can_read_labels
1680
+ alias_method :can_read_labels?, :can_read_labels
1681
+
1648
1682
  # Whether the current user can read the revisions resource of this file. For a
1649
1683
  # shared drive item, whether revisions of non-folder descendants of this item,
1650
1684
  # or this item itself if it is not a folder, can be read.
@@ -1727,6 +1761,7 @@ module Google
1727
1761
  @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
1728
1762
  @can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
1729
1763
  @can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
1764
+ @can_modify_labels = args[:can_modify_labels] if args.key?(:can_modify_labels)
1730
1765
  @can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive)
1731
1766
  @can_move_children_out_of_team_drive = args[:can_move_children_out_of_team_drive] if args.key?(:can_move_children_out_of_team_drive)
1732
1767
  @can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive)
@@ -1738,6 +1773,7 @@ module Google
1738
1773
  @can_move_item_within_team_drive = args[:can_move_item_within_team_drive] if args.key?(:can_move_item_within_team_drive)
1739
1774
  @can_move_team_drive_item = args[:can_move_team_drive_item] if args.key?(:can_move_team_drive_item)
1740
1775
  @can_read_drive = args[:can_read_drive] if args.key?(:can_read_drive)
1776
+ @can_read_labels = args[:can_read_labels] if args.key?(:can_read_labels)
1741
1777
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1742
1778
  @can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
1743
1779
  @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
@@ -1978,6 +2014,26 @@ module Google
1978
2014
  end
1979
2015
  end
1980
2016
 
2017
+ # An overview of the labels on the file.
2018
+ class LabelInfo
2019
+ include Google::Apis::Core::Hashable
2020
+
2021
+ # The set of labels on the file as requested by the label IDs in the
2022
+ # includeLabels parameter. By default, no labels are returned.
2023
+ # Corresponds to the JSON property `labels`
2024
+ # @return [Array<Google::Apis::DriveV3::Label>]
2025
+ attr_accessor :labels
2026
+
2027
+ def initialize(**args)
2028
+ update!(**args)
2029
+ end
2030
+
2031
+ # Update properties of this object
2032
+ def update!(**args)
2033
+ @labels = args[:labels] if args.key?(:labels)
2034
+ end
2035
+ end
2036
+
1981
2037
  # Contains details about the link URLs that clients are using to refer to this
1982
2038
  # item.
1983
2039
  class LinkShareMetadata
@@ -2152,6 +2208,300 @@ module Google
2152
2208
  end
2153
2209
  end
2154
2210
 
2211
+ # Representation of a label and its fields.
2212
+ class Label
2213
+ include Google::Apis::Core::Hashable
2214
+
2215
+ # A map of the label's fields keyed by the field ID.
2216
+ # Corresponds to the JSON property `fields`
2217
+ # @return [Hash<String,Google::Apis::DriveV3::LabelField>]
2218
+ attr_accessor :fields
2219
+
2220
+ # The ID of the label.
2221
+ # Corresponds to the JSON property `id`
2222
+ # @return [String]
2223
+ attr_accessor :id
2224
+
2225
+ # This is always drive#label
2226
+ # Corresponds to the JSON property `kind`
2227
+ # @return [String]
2228
+ attr_accessor :kind
2229
+
2230
+ # The revision ID of the label.
2231
+ # Corresponds to the JSON property `revisionId`
2232
+ # @return [String]
2233
+ attr_accessor :revision_id
2234
+
2235
+ def initialize(**args)
2236
+ update!(**args)
2237
+ end
2238
+
2239
+ # Update properties of this object
2240
+ def update!(**args)
2241
+ @fields = args[:fields] if args.key?(:fields)
2242
+ @id = args[:id] if args.key?(:id)
2243
+ @kind = args[:kind] if args.key?(:kind)
2244
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
2245
+ end
2246
+ end
2247
+
2248
+ # Representation of a label field.
2249
+ class LabelField
2250
+ include Google::Apis::Core::Hashable
2251
+
2252
+ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2253
+ # Corresponds to the JSON property `dateString`
2254
+ # @return [Array<Date>]
2255
+ attr_accessor :date_string
2256
+
2257
+ # The identifier of this field.
2258
+ # Corresponds to the JSON property `id`
2259
+ # @return [String]
2260
+ attr_accessor :id
2261
+
2262
+ # Only present if valueType is integer.
2263
+ # Corresponds to the JSON property `integer`
2264
+ # @return [Array<Fixnum>]
2265
+ attr_accessor :integer
2266
+
2267
+ # This is always drive#labelField.
2268
+ # Corresponds to the JSON property `kind`
2269
+ # @return [String]
2270
+ attr_accessor :kind
2271
+
2272
+ # Only present if valueType is selection.
2273
+ # Corresponds to the JSON property `selection`
2274
+ # @return [Array<String>]
2275
+ attr_accessor :selection
2276
+
2277
+ # Only present if valueType is text.
2278
+ # Corresponds to the JSON property `text`
2279
+ # @return [Array<String>]
2280
+ attr_accessor :text
2281
+
2282
+ # Only present if valueType is user.
2283
+ # Corresponds to the JSON property `user`
2284
+ # @return [Array<Google::Apis::DriveV3::User>]
2285
+ attr_accessor :user
2286
+
2287
+ # The field type. While new values may be supported in the future, the following
2288
+ # are currently allowed:
2289
+ # - dateString
2290
+ # - integer
2291
+ # - selection
2292
+ # - text
2293
+ # - user
2294
+ # Corresponds to the JSON property `valueType`
2295
+ # @return [String]
2296
+ attr_accessor :value_type
2297
+
2298
+ def initialize(**args)
2299
+ update!(**args)
2300
+ end
2301
+
2302
+ # Update properties of this object
2303
+ def update!(**args)
2304
+ @date_string = args[:date_string] if args.key?(:date_string)
2305
+ @id = args[:id] if args.key?(:id)
2306
+ @integer = args[:integer] if args.key?(:integer)
2307
+ @kind = args[:kind] if args.key?(:kind)
2308
+ @selection = args[:selection] if args.key?(:selection)
2309
+ @text = args[:text] if args.key?(:text)
2310
+ @user = args[:user] if args.key?(:user)
2311
+ @value_type = args[:value_type] if args.key?(:value_type)
2312
+ end
2313
+ end
2314
+
2315
+ # A modification to a label's field.
2316
+ class LabelFieldModification
2317
+ include Google::Apis::Core::Hashable
2318
+
2319
+ # The ID of the Field to be modified.
2320
+ # Corresponds to the JSON property `fieldId`
2321
+ # @return [String]
2322
+ attr_accessor :field_id
2323
+
2324
+ # This is always drive#labelFieldModification.
2325
+ # Corresponds to the JSON property `kind`
2326
+ # @return [String]
2327
+ attr_accessor :kind
2328
+
2329
+ # Replaces a dateString field with these new values. The values must be strings
2330
+ # in the RFC 3339 full-date format: YYYY-MM-DD.
2331
+ # Corresponds to the JSON property `setDateValues`
2332
+ # @return [Array<Date>]
2333
+ attr_accessor :set_date_values
2334
+
2335
+ # Replaces an integer field with these new values.
2336
+ # Corresponds to the JSON property `setIntegerValues`
2337
+ # @return [Array<Fixnum>]
2338
+ attr_accessor :set_integer_values
2339
+
2340
+ # Replaces a selection field with these new values.
2341
+ # Corresponds to the JSON property `setSelectionValues`
2342
+ # @return [Array<String>]
2343
+ attr_accessor :set_selection_values
2344
+
2345
+ # Replaces a text field with these new values.
2346
+ # Corresponds to the JSON property `setTextValues`
2347
+ # @return [Array<String>]
2348
+ attr_accessor :set_text_values
2349
+
2350
+ # Replaces a user field with these new values. The values must be valid email
2351
+ # addresses.
2352
+ # Corresponds to the JSON property `setUserValues`
2353
+ # @return [Array<String>]
2354
+ attr_accessor :set_user_values
2355
+
2356
+ # Unsets the values for this field.
2357
+ # Corresponds to the JSON property `unsetValues`
2358
+ # @return [Boolean]
2359
+ attr_accessor :unset_values
2360
+ alias_method :unset_values?, :unset_values
2361
+
2362
+ def initialize(**args)
2363
+ update!(**args)
2364
+ end
2365
+
2366
+ # Update properties of this object
2367
+ def update!(**args)
2368
+ @field_id = args[:field_id] if args.key?(:field_id)
2369
+ @kind = args[:kind] if args.key?(:kind)
2370
+ @set_date_values = args[:set_date_values] if args.key?(:set_date_values)
2371
+ @set_integer_values = args[:set_integer_values] if args.key?(:set_integer_values)
2372
+ @set_selection_values = args[:set_selection_values] if args.key?(:set_selection_values)
2373
+ @set_text_values = args[:set_text_values] if args.key?(:set_text_values)
2374
+ @set_user_values = args[:set_user_values] if args.key?(:set_user_values)
2375
+ @unset_values = args[:unset_values] if args.key?(:unset_values)
2376
+ end
2377
+ end
2378
+
2379
+ # A list of labels.
2380
+ class LabelList
2381
+ include Google::Apis::Core::Hashable
2382
+
2383
+ # This is always drive#labelList
2384
+ # Corresponds to the JSON property `kind`
2385
+ # @return [String]
2386
+ attr_accessor :kind
2387
+
2388
+ # The list of labels.
2389
+ # Corresponds to the JSON property `labels`
2390
+ # @return [Array<Google::Apis::DriveV3::Label>]
2391
+ attr_accessor :labels
2392
+
2393
+ # The page token for the next page of labels. This field will be absent if the
2394
+ # end of the list has been reached. If the token is rejected for any reason, it
2395
+ # should be discarded, and pagination should be restarted from the first page of
2396
+ # results.
2397
+ # Corresponds to the JSON property `nextPageToken`
2398
+ # @return [String]
2399
+ attr_accessor :next_page_token
2400
+
2401
+ def initialize(**args)
2402
+ update!(**args)
2403
+ end
2404
+
2405
+ # Update properties of this object
2406
+ def update!(**args)
2407
+ @kind = args[:kind] if args.key?(:kind)
2408
+ @labels = args[:labels] if args.key?(:labels)
2409
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2410
+ end
2411
+ end
2412
+
2413
+ # A modification to a label on a file. A LabelModification can be used to apply
2414
+ # a label to a file, update an existing label on a file, or remove a label from
2415
+ # a file.
2416
+ class LabelModification
2417
+ include Google::Apis::Core::Hashable
2418
+
2419
+ # The list of modifications to this label's fields.
2420
+ # Corresponds to the JSON property `fieldModifications`
2421
+ # @return [Array<Google::Apis::DriveV3::LabelFieldModification>]
2422
+ attr_accessor :field_modifications
2423
+
2424
+ # This is always drive#labelModification.
2425
+ # Corresponds to the JSON property `kind`
2426
+ # @return [String]
2427
+ attr_accessor :kind
2428
+
2429
+ # The ID of the label to modify.
2430
+ # Corresponds to the JSON property `labelId`
2431
+ # @return [String]
2432
+ attr_accessor :label_id
2433
+
2434
+ # If true, the label will be removed from the file.
2435
+ # Corresponds to the JSON property `removeLabel`
2436
+ # @return [Boolean]
2437
+ attr_accessor :remove_label
2438
+ alias_method :remove_label?, :remove_label
2439
+
2440
+ def initialize(**args)
2441
+ update!(**args)
2442
+ end
2443
+
2444
+ # Update properties of this object
2445
+ def update!(**args)
2446
+ @field_modifications = args[:field_modifications] if args.key?(:field_modifications)
2447
+ @kind = args[:kind] if args.key?(:kind)
2448
+ @label_id = args[:label_id] if args.key?(:label_id)
2449
+ @remove_label = args[:remove_label] if args.key?(:remove_label)
2450
+ end
2451
+ end
2452
+
2453
+ # A request to modify the set of labels on a file. This request may contain many
2454
+ # modifications that will either all succeed or all fail transactionally.
2455
+ class ModifyLabelsRequest
2456
+ include Google::Apis::Core::Hashable
2457
+
2458
+ # This is always drive#modifyLabelsRequest
2459
+ # Corresponds to the JSON property `kind`
2460
+ # @return [String]
2461
+ attr_accessor :kind
2462
+
2463
+ # The list of modifications to apply to the labels on the file.
2464
+ # Corresponds to the JSON property `labelModifications`
2465
+ # @return [Array<Google::Apis::DriveV3::LabelModification>]
2466
+ attr_accessor :label_modifications
2467
+
2468
+ def initialize(**args)
2469
+ update!(**args)
2470
+ end
2471
+
2472
+ # Update properties of this object
2473
+ def update!(**args)
2474
+ @kind = args[:kind] if args.key?(:kind)
2475
+ @label_modifications = args[:label_modifications] if args.key?(:label_modifications)
2476
+ end
2477
+ end
2478
+
2479
+ # Response to a ModifyLabels request. This contains only those labels which were
2480
+ # added or updated by the request.
2481
+ class ModifyLabelsResponse
2482
+ include Google::Apis::Core::Hashable
2483
+
2484
+ # This is always drive#modifyLabelsResponse
2485
+ # Corresponds to the JSON property `kind`
2486
+ # @return [String]
2487
+ attr_accessor :kind
2488
+
2489
+ # The list of labels which were added or updated by the request.
2490
+ # Corresponds to the JSON property `modifiedLabels`
2491
+ # @return [Array<Google::Apis::DriveV3::Label>]
2492
+ attr_accessor :modified_labels
2493
+
2494
+ def initialize(**args)
2495
+ update!(**args)
2496
+ end
2497
+
2498
+ # Update properties of this object
2499
+ def update!(**args)
2500
+ @kind = args[:kind] if args.key?(:kind)
2501
+ @modified_labels = args[:modified_labels] if args.key?(:modified_labels)
2502
+ end
2503
+ end
2504
+
2155
2505
  # A permission for a file. A permission grants a user, group, domain or the
2156
2506
  # world access to a file or a folder hierarchy.
2157
2507
  class Permission
@@ -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.24.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.6.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220508"
25
+ REVISION = "20220815"
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 LabelInfo
155
+ class Representation < Google::Apis::Core::JsonRepresentation; end
156
+
157
+ include Google::Apis::Core::JsonObjectSupport
158
+ end
159
+
154
160
  class LinkShareMetadata
155
161
  class Representation < Google::Apis::Core::JsonRepresentation; end
156
162
 
@@ -184,6 +190,48 @@ module Google
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class Label
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class LabelField
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class LabelFieldModification
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class LabelList
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class LabelModification
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class ModifyLabelsRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class ModifyLabelsResponse
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
187
235
  class Permission
188
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
237
 
@@ -541,6 +589,8 @@ module Google
541
589
 
542
590
  property :is_app_authorized, as: 'isAppAuthorized'
543
591
  property :kind, as: 'kind'
592
+ property :label_info, as: 'labelInfo', class: Google::Apis::DriveV3::File::LabelInfo, decorator: Google::Apis::DriveV3::File::LabelInfo::Representation
593
+
544
594
  property :last_modifying_user, as: 'lastModifyingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
545
595
 
546
596
  property :link_share_metadata, as: 'linkShareMetadata', class: Google::Apis::DriveV3::File::LinkShareMetadata, decorator: Google::Apis::DriveV3::File::LinkShareMetadata::Representation
@@ -564,6 +614,8 @@ module Google
564
614
  hash :properties, as: 'properties'
565
615
  property :quota_bytes_used, :numeric_string => true, as: 'quotaBytesUsed'
566
616
  property :resource_key, as: 'resourceKey'
617
+ property :sha1_checksum, as: 'sha1Checksum'
618
+ property :sha256_checksum, as: 'sha256Checksum'
567
619
  property :shared, as: 'shared'
568
620
  property :shared_with_me_time, as: 'sharedWithMeTime', type: DateTime
569
621
 
@@ -613,6 +665,7 @@ module Google
613
665
  property :can_list_children, as: 'canListChildren'
614
666
  property :can_modify_content, as: 'canModifyContent'
615
667
  property :can_modify_content_restriction, as: 'canModifyContentRestriction'
668
+ property :can_modify_labels, as: 'canModifyLabels'
616
669
  property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
617
670
  property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
618
671
  property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
@@ -624,6 +677,7 @@ module Google
624
677
  property :can_move_item_within_team_drive, as: 'canMoveItemWithinTeamDrive'
625
678
  property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
626
679
  property :can_read_drive, as: 'canReadDrive'
680
+ property :can_read_labels, as: 'canReadLabels'
627
681
  property :can_read_revisions, as: 'canReadRevisions'
628
682
  property :can_read_team_drive, as: 'canReadTeamDrive'
629
683
  property :can_remove_children, as: 'canRemoveChildren'
@@ -690,6 +744,14 @@ module Google
690
744
  end
691
745
  end
692
746
 
747
+ class LabelInfo
748
+ # @private
749
+ class Representation < Google::Apis::Core::JsonRepresentation
750
+ collection :labels, as: 'labels', class: Google::Apis::DriveV3::Label, decorator: Google::Apis::DriveV3::Label::Representation
751
+
752
+ end
753
+ end
754
+
693
755
  class LinkShareMetadata
694
756
  # @private
695
757
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -737,6 +799,87 @@ module Google
737
799
  end
738
800
  end
739
801
 
802
+ class Label
803
+ # @private
804
+ class Representation < Google::Apis::Core::JsonRepresentation
805
+ hash :fields, as: 'fields', class: Google::Apis::DriveV3::LabelField, decorator: Google::Apis::DriveV3::LabelField::Representation
806
+
807
+ property :id, as: 'id'
808
+ property :kind, as: 'kind'
809
+ property :revision_id, as: 'revisionId'
810
+ end
811
+ end
812
+
813
+ class LabelField
814
+ # @private
815
+ class Representation < Google::Apis::Core::JsonRepresentation
816
+ collection :date_string, as: 'dateString', type: Date
817
+
818
+ property :id, as: 'id'
819
+ collection :integer, as: 'integer'
820
+ property :kind, as: 'kind'
821
+ collection :selection, as: 'selection'
822
+ collection :text, as: 'text'
823
+ collection :user, as: 'user', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
824
+
825
+ property :value_type, as: 'valueType'
826
+ end
827
+ end
828
+
829
+ class LabelFieldModification
830
+ # @private
831
+ class Representation < Google::Apis::Core::JsonRepresentation
832
+ property :field_id, as: 'fieldId'
833
+ property :kind, as: 'kind'
834
+ collection :set_date_values, as: 'setDateValues', type: Date
835
+
836
+ collection :set_integer_values, as: 'setIntegerValues'
837
+ collection :set_selection_values, as: 'setSelectionValues'
838
+ collection :set_text_values, as: 'setTextValues'
839
+ collection :set_user_values, as: 'setUserValues'
840
+ property :unset_values, as: 'unsetValues'
841
+ end
842
+ end
843
+
844
+ class LabelList
845
+ # @private
846
+ class Representation < Google::Apis::Core::JsonRepresentation
847
+ property :kind, as: 'kind'
848
+ collection :labels, as: 'labels', class: Google::Apis::DriveV3::Label, decorator: Google::Apis::DriveV3::Label::Representation
849
+
850
+ property :next_page_token, as: 'nextPageToken'
851
+ end
852
+ end
853
+
854
+ class LabelModification
855
+ # @private
856
+ class Representation < Google::Apis::Core::JsonRepresentation
857
+ collection :field_modifications, as: 'fieldModifications', class: Google::Apis::DriveV3::LabelFieldModification, decorator: Google::Apis::DriveV3::LabelFieldModification::Representation
858
+
859
+ property :kind, as: 'kind'
860
+ property :label_id, as: 'labelId'
861
+ property :remove_label, as: 'removeLabel'
862
+ end
863
+ end
864
+
865
+ class ModifyLabelsRequest
866
+ # @private
867
+ class Representation < Google::Apis::Core::JsonRepresentation
868
+ property :kind, as: 'kind'
869
+ collection :label_modifications, as: 'labelModifications', class: Google::Apis::DriveV3::LabelModification, decorator: Google::Apis::DriveV3::LabelModification::Representation
870
+
871
+ end
872
+ end
873
+
874
+ class ModifyLabelsResponse
875
+ # @private
876
+ class Representation < Google::Apis::Core::JsonRepresentation
877
+ property :kind, as: 'kind'
878
+ collection :modified_labels, as: 'modifiedLabels', class: Google::Apis::DriveV3::Label, decorator: Google::Apis::DriveV3::Label::Representation
879
+
880
+ end
881
+ end
882
+
740
883
  class Permission
741
884
  # @private
742
885
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -143,6 +143,9 @@ module Google
143
143
  # for this file.
144
144
  # @param [Boolean] include_items_from_all_drives
145
145
  # Whether both My Drive and shared drive items should be included in results.
146
+ # @param [String] include_labels
147
+ # A comma-separated list of IDs of labels to include in the labelInfo part of
148
+ # the response.
146
149
  # @param [String] include_permissions_for_view
147
150
  # Specifies which additional view's permissions to include in the response. Only
148
151
  # 'published' is supported.
@@ -185,13 +188,14 @@ module Google
185
188
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
186
189
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
187
190
  # @raise [Google::Apis::AuthorizationError] Authorization is required
188
- def list_changes(page_token, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_permissions_for_view: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
191
+ def list_changes(page_token, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_labels: nil, include_permissions_for_view: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
189
192
  command = make_simple_command(:get, 'changes', options)
190
193
  command.response_representation = Google::Apis::DriveV3::ChangeList::Representation
191
194
  command.response_class = Google::Apis::DriveV3::ChangeList
192
195
  command.query['driveId'] = drive_id unless drive_id.nil?
193
196
  command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
194
197
  command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
198
+ command.query['includeLabels'] = include_labels unless include_labels.nil?
195
199
  command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil?
196
200
  command.query['includeRemoved'] = include_removed unless include_removed.nil?
197
201
  command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
@@ -225,6 +229,9 @@ module Google
225
229
  # for this file.
226
230
  # @param [Boolean] include_items_from_all_drives
227
231
  # Whether both My Drive and shared drive items should be included in results.
232
+ # @param [String] include_labels
233
+ # A comma-separated list of IDs of labels to include in the labelInfo part of
234
+ # the response.
228
235
  # @param [String] include_permissions_for_view
229
236
  # Specifies which additional view's permissions to include in the response. Only
230
237
  # 'published' is supported.
@@ -267,7 +274,7 @@ module Google
267
274
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
275
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
276
  # @raise [Google::Apis::AuthorizationError] Authorization is required
270
- def watch_change(page_token, channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_permissions_for_view: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
277
+ def watch_change(page_token, channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_labels: nil, include_permissions_for_view: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
271
278
  command = make_simple_command(:post, 'changes/watch', options)
272
279
  command.request_representation = Google::Apis::DriveV3::Channel::Representation
273
280
  command.request_object = channel_object
@@ -276,6 +283,7 @@ module Google
276
283
  command.query['driveId'] = drive_id unless drive_id.nil?
277
284
  command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
278
285
  command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
286
+ command.query['includeLabels'] = include_labels unless include_labels.nil?
279
287
  command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil?
280
288
  command.query['includeRemoved'] = include_removed unless include_removed.nil?
281
289
  command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
@@ -802,6 +810,9 @@ module Google
802
810
  # file. Domain administrators can choose to make all uploaded files visible to
803
811
  # the domain by default; this parameter bypasses that behavior for the request.
804
812
  # Permissions are still inherited from parent folders.
813
+ # @param [String] include_labels
814
+ # A comma-separated list of IDs of labels to include in the labelInfo part of
815
+ # the response.
805
816
  # @param [String] include_permissions_for_view
806
817
  # Specifies which additional view's permissions to include in the response. Only
807
818
  # 'published' is supported.
@@ -835,7 +846,7 @@ module Google
835
846
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
836
847
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
837
848
  # @raise [Google::Apis::AuthorizationError] Authorization is required
838
- def copy_file(file_id, file_object = nil, enforce_single_parent: nil, ignore_default_visibility: nil, include_permissions_for_view: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
849
+ def copy_file(file_id, file_object = nil, enforce_single_parent: nil, ignore_default_visibility: nil, include_labels: nil, include_permissions_for_view: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
839
850
  command = make_simple_command(:post, 'files/{fileId}/copy', options)
840
851
  command.request_representation = Google::Apis::DriveV3::File::Representation
841
852
  command.request_object = file_object
@@ -844,6 +855,7 @@ module Google
844
855
  command.params['fileId'] = file_id unless file_id.nil?
845
856
  command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil?
846
857
  command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil?
858
+ command.query['includeLabels'] = include_labels unless include_labels.nil?
847
859
  command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil?
848
860
  command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
849
861
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
@@ -864,6 +876,9 @@ module Google
864
876
  # file. Domain administrators can choose to make all uploaded files visible to
865
877
  # the domain by default; this parameter bypasses that behavior for the request.
866
878
  # Permissions are still inherited from parent folders.
879
+ # @param [String] include_labels
880
+ # A comma-separated list of IDs of labels to include in the labelInfo part of
881
+ # the response.
867
882
  # @param [String] include_permissions_for_view
868
883
  # Specifies which additional view's permissions to include in the response. Only
869
884
  # 'published' is supported.
@@ -903,7 +918,7 @@ module Google
903
918
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
904
919
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
905
920
  # @raise [Google::Apis::AuthorizationError] Authorization is required
906
- def create_file(file_object = nil, enforce_single_parent: nil, ignore_default_visibility: nil, include_permissions_for_view: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
921
+ def create_file(file_object = nil, enforce_single_parent: nil, ignore_default_visibility: nil, include_labels: nil, include_permissions_for_view: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
907
922
  if upload_source.nil?
908
923
  command = make_simple_command(:post, 'files', options)
909
924
  else
@@ -917,6 +932,7 @@ module Google
917
932
  command.response_class = Google::Apis::DriveV3::File
918
933
  command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil?
919
934
  command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil?
935
+ command.query['includeLabels'] = include_labels unless include_labels.nil?
920
936
  command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil?
921
937
  command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
922
938
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
@@ -1095,6 +1111,9 @@ module Google
1095
1111
  # @param [Boolean] acknowledge_abuse
1096
1112
  # Whether the user is acknowledging the risk of downloading known malware or
1097
1113
  # other abusive files. This is only applicable when alt=media.
1114
+ # @param [String] include_labels
1115
+ # A comma-separated list of IDs of labels to include in the labelInfo part of
1116
+ # the response.
1098
1117
  # @param [String] include_permissions_for_view
1099
1118
  # Specifies which additional view's permissions to include in the response. Only
1100
1119
  # 'published' is supported.
@@ -1123,7 +1142,7 @@ module Google
1123
1142
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1124
1143
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1125
1144
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1126
- def get_file(file_id, acknowledge_abuse: nil, include_permissions_for_view: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1145
+ def get_file(file_id, acknowledge_abuse: nil, include_labels: nil, include_permissions_for_view: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1127
1146
  if download_dest.nil?
1128
1147
  command = make_simple_command(:get, 'files/{fileId}', options)
1129
1148
  else
@@ -1134,6 +1153,7 @@ module Google
1134
1153
  command.response_class = Google::Apis::DriveV3::File
1135
1154
  command.params['fileId'] = file_id unless file_id.nil?
1136
1155
  command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
1156
+ command.query['includeLabels'] = include_labels unless include_labels.nil?
1137
1157
  command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil?
1138
1158
  command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1139
1159
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
@@ -1157,6 +1177,9 @@ module Google
1157
1177
  # ID of the shared drive to search.
1158
1178
  # @param [Boolean] include_items_from_all_drives
1159
1179
  # Whether both My Drive and shared drive items should be included in results.
1180
+ # @param [String] include_labels
1181
+ # A comma-separated list of IDs of labels to include in the labelInfo part of
1182
+ # the response.
1160
1183
  # @param [String] include_permissions_for_view
1161
1184
  # Specifies which additional view's permissions to include in the response. Only
1162
1185
  # 'published' is supported.
@@ -1207,7 +1230,7 @@ module Google
1207
1230
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1208
1231
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1209
1232
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1210
- def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_permissions_for_view: nil, include_team_drive_items: nil, order_by: nil, page_size: nil, page_token: nil, q: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1233
+ def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_labels: nil, include_permissions_for_view: nil, include_team_drive_items: nil, order_by: nil, page_size: nil, page_token: nil, q: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1211
1234
  command = make_simple_command(:get, 'files', options)
1212
1235
  command.response_representation = Google::Apis::DriveV3::FileList::Representation
1213
1236
  command.response_class = Google::Apis::DriveV3::FileList
@@ -1215,6 +1238,7 @@ module Google
1215
1238
  command.query['corpus'] = corpus unless corpus.nil?
1216
1239
  command.query['driveId'] = drive_id unless drive_id.nil?
1217
1240
  command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
1241
+ command.query['includeLabels'] = include_labels unless include_labels.nil?
1218
1242
  command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil?
1219
1243
  command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
1220
1244
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -1231,6 +1255,83 @@ module Google
1231
1255
  execute_or_queue_command(command, &block)
1232
1256
  end
1233
1257
 
1258
+ # Lists the labels on a file.
1259
+ # @param [String] file_id
1260
+ # The ID of the file.
1261
+ # @param [Fixnum] max_results
1262
+ # The maximum number of labels to return per page. When not set, this defaults
1263
+ # to 100.
1264
+ # @param [String] page_token
1265
+ # The token for continuing a previous list request on the next page. This should
1266
+ # be set to the value of 'nextPageToken' from the previous response.
1267
+ # @param [String] fields
1268
+ # Selector specifying which fields to include in a partial response.
1269
+ # @param [String] quota_user
1270
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1271
+ # characters.
1272
+ # @param [String] user_ip
1273
+ # Deprecated. Please use quotaUser instead.
1274
+ # @param [Google::Apis::RequestOptions] options
1275
+ # Request-specific options
1276
+ #
1277
+ # @yield [result, err] Result & error if block supplied
1278
+ # @yieldparam result [Google::Apis::DriveV3::LabelList] parsed result object
1279
+ # @yieldparam err [StandardError] error object if request failed
1280
+ #
1281
+ # @return [Google::Apis::DriveV3::LabelList]
1282
+ #
1283
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1284
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1285
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1286
+ def list_file_labels(file_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1287
+ command = make_simple_command(:get, 'files/{fileId}/listLabels', options)
1288
+ command.response_representation = Google::Apis::DriveV3::LabelList::Representation
1289
+ command.response_class = Google::Apis::DriveV3::LabelList
1290
+ command.params['fileId'] = file_id unless file_id.nil?
1291
+ command.query['maxResults'] = max_results unless max_results.nil?
1292
+ command.query['pageToken'] = page_token unless page_token.nil?
1293
+ command.query['fields'] = fields unless fields.nil?
1294
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1295
+ command.query['userIp'] = user_ip unless user_ip.nil?
1296
+ execute_or_queue_command(command, &block)
1297
+ end
1298
+
1299
+ # Modifies the set of labels on a file.
1300
+ # @param [String] file_id
1301
+ # The ID of the file for which the labels are modified.
1302
+ # @param [Google::Apis::DriveV3::ModifyLabelsRequest] modify_labels_request_object
1303
+ # @param [String] fields
1304
+ # Selector specifying which fields to include in a partial response.
1305
+ # @param [String] quota_user
1306
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1307
+ # characters.
1308
+ # @param [String] user_ip
1309
+ # Deprecated. Please use quotaUser instead.
1310
+ # @param [Google::Apis::RequestOptions] options
1311
+ # Request-specific options
1312
+ #
1313
+ # @yield [result, err] Result & error if block supplied
1314
+ # @yieldparam result [Google::Apis::DriveV3::ModifyLabelsResponse] parsed result object
1315
+ # @yieldparam err [StandardError] error object if request failed
1316
+ #
1317
+ # @return [Google::Apis::DriveV3::ModifyLabelsResponse]
1318
+ #
1319
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1320
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1321
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1322
+ def modify_file_labels(file_id, modify_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1323
+ command = make_simple_command(:post, 'files/{fileId}/modifyLabels', options)
1324
+ command.request_representation = Google::Apis::DriveV3::ModifyLabelsRequest::Representation
1325
+ command.request_object = modify_labels_request_object
1326
+ command.response_representation = Google::Apis::DriveV3::ModifyLabelsResponse::Representation
1327
+ command.response_class = Google::Apis::DriveV3::ModifyLabelsResponse
1328
+ command.params['fileId'] = file_id unless file_id.nil?
1329
+ command.query['fields'] = fields unless fields.nil?
1330
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1331
+ command.query['userIp'] = user_ip unless user_ip.nil?
1332
+ execute_or_queue_command(command, &block)
1333
+ end
1334
+
1234
1335
  # Updates a file's metadata and/or content. When calling this method, only
1235
1336
  # populate fields in the request that you want to modify. When updating fields,
1236
1337
  # some fields might change automatically, such as modifiedDate. This method
@@ -1243,6 +1344,9 @@ module Google
1243
1344
  # @param [Boolean] enforce_single_parent
1244
1345
  # Deprecated. Adding files to multiple folders is no longer supported. Use
1245
1346
  # shortcuts instead.
1347
+ # @param [String] include_labels
1348
+ # A comma-separated list of IDs of labels to include in the labelInfo part of
1349
+ # the response.
1246
1350
  # @param [String] include_permissions_for_view
1247
1351
  # Specifies which additional view's permissions to include in the response. Only
1248
1352
  # 'published' is supported.
@@ -1284,7 +1388,7 @@ module Google
1284
1388
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1285
1389
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1286
1390
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1287
- def update_file(file_id, file_object = nil, add_parents: nil, enforce_single_parent: nil, include_permissions_for_view: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1391
+ def update_file(file_id, file_object = nil, add_parents: nil, enforce_single_parent: nil, include_labels: nil, include_permissions_for_view: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1288
1392
  if upload_source.nil?
1289
1393
  command = make_simple_command(:patch, 'files/{fileId}', options)
1290
1394
  else
@@ -1299,6 +1403,7 @@ module Google
1299
1403
  command.params['fileId'] = file_id unless file_id.nil?
1300
1404
  command.query['addParents'] = add_parents unless add_parents.nil?
1301
1405
  command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil?
1406
+ command.query['includeLabels'] = include_labels unless include_labels.nil?
1302
1407
  command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil?
1303
1408
  command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
1304
1409
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
@@ -1321,6 +1426,9 @@ module Google
1321
1426
  # @param [Boolean] acknowledge_abuse
1322
1427
  # Whether the user is acknowledging the risk of downloading known malware or
1323
1428
  # other abusive files. This is only applicable when alt=media.
1429
+ # @param [String] include_labels
1430
+ # A comma-separated list of IDs of labels to include in the labelInfo part of
1431
+ # the response.
1324
1432
  # @param [String] include_permissions_for_view
1325
1433
  # Specifies which additional view's permissions to include in the response. Only
1326
1434
  # 'published' is supported.
@@ -1349,7 +1457,7 @@ module Google
1349
1457
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1350
1458
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1351
1459
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1352
- def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, include_permissions_for_view: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1460
+ def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, include_labels: nil, include_permissions_for_view: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1353
1461
  if download_dest.nil?
1354
1462
  command = make_simple_command(:post, 'files/{fileId}/watch', options)
1355
1463
  else
@@ -1362,6 +1470,7 @@ module Google
1362
1470
  command.response_class = Google::Apis::DriveV3::Channel
1363
1471
  command.params['fileId'] = file_id unless file_id.nil?
1364
1472
  command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
1473
+ command.query['includeLabels'] = include_labels unless include_labels.nil?
1365
1474
  command.query['includePermissionsForView'] = include_permissions_for_view unless include_permissions_for_view.nil?
1366
1475
  command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1367
1476
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
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.24.0
4
+ version: 0.27.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: 2022-06-20 00:00:00.000000000 Z
11
+ date: 2022-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.6'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.6'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.27.0
62
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: []