google-apis-drive_v3 0.25.0 → 0.26.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: 7d4857ba2cfe0b1292757e4bcfa4030fcb7ad3b620478328fd9d649321f9a966
4
- data.tar.gz: 92f1eb02cc10d49f2e98169a871a640c8eb93fd49b84fa35eea193149332fb1a
3
+ metadata.gz: 8d5a9f7805d2a26e5fe7a42b5b46feac10a82ccaca68573ff761e40067679f90
4
+ data.tar.gz: 43f28f1be40991c5e21d035ad45d29a79a43e2401d80c8c74a2f4c20ce3fdc8d
5
5
  SHA512:
6
- metadata.gz: dc67dced0accc0fe7368c17547bf0a3311d57aa5e2d04ae9289cb9c792f5bfa38e3271b06a3db9cbfdb7cd7e20b42461165cf5bb088f6665e325b029406aaf2f
7
- data.tar.gz: e0e6477e93999eed2c1008135c3bf4347de966f4cba6355b464b834a84d9a8bffb55dcc30f4ee7907e1427509d05e05cfb3b4b726dddaf17758ded3a39c55803
6
+ metadata.gz: 2b67c533a7f5b1439f3eb0f3c4dced93ad6ea727f3de1037b995fdf043864384bbaef9ec49402982ce79d7cbfaf64fc53dac7d0c98e2373ada804a26ecfb9284
7
+ data.tar.gz: 2a966a24e03d1dd6a07687724459b8110a29a712e92e1163462753485ed538b8dad5dd24fa7fd57f649a4adb76a1948158a2146aa4017d1644e40ffbe7b0855b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-drive_v3
2
2
 
3
+ ### v0.26.0 (2022-07-14)
4
+
5
+ * Regenerated from discovery document revision 20220709
6
+ * Regenerated using generator version 0.9.0
7
+
3
8
  ### v0.25.0 (2022-06-30)
4
9
 
5
10
  * Regenerated using generator version 0.8.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]
@@ -1415,6 +1420,7 @@ module Google
1415
1420
  @image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
1416
1421
  @is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
1417
1422
  @kind = args[:kind] if args.key?(:kind)
1423
+ @label_info = args[:label_info] if args.key?(:label_info)
1418
1424
  @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
1419
1425
  @link_share_metadata = args[:link_share_metadata] if args.key?(:link_share_metadata)
1420
1426
  @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
@@ -1569,6 +1575,12 @@ module Google
1569
1575
  attr_accessor :can_modify_content_restriction
1570
1576
  alias_method :can_modify_content_restriction?, :can_modify_content_restriction
1571
1577
 
1578
+ # Whether the current user can modify the labels on this file.
1579
+ # Corresponds to the JSON property `canModifyLabels`
1580
+ # @return [Boolean]
1581
+ attr_accessor :can_modify_labels
1582
+ alias_method :can_modify_labels?, :can_modify_labels
1583
+
1572
1584
  # Whether the current user can move children of this folder outside of the
1573
1585
  # shared drive. This is false when the item is not a folder. Only populated for
1574
1586
  # items in shared drives.
@@ -1645,6 +1657,12 @@ module Google
1645
1657
  attr_accessor :can_read_drive
1646
1658
  alias_method :can_read_drive?, :can_read_drive
1647
1659
 
1660
+ # Whether the current user can read the labels on this file.
1661
+ # Corresponds to the JSON property `canReadLabels`
1662
+ # @return [Boolean]
1663
+ attr_accessor :can_read_labels
1664
+ alias_method :can_read_labels?, :can_read_labels
1665
+
1648
1666
  # Whether the current user can read the revisions resource of this file. For a
1649
1667
  # shared drive item, whether revisions of non-folder descendants of this item,
1650
1668
  # or this item itself if it is not a folder, can be read.
@@ -1727,6 +1745,7 @@ module Google
1727
1745
  @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
1728
1746
  @can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
1729
1747
  @can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
1748
+ @can_modify_labels = args[:can_modify_labels] if args.key?(:can_modify_labels)
1730
1749
  @can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive)
1731
1750
  @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
1751
  @can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive)
@@ -1738,6 +1757,7 @@ module Google
1738
1757
  @can_move_item_within_team_drive = args[:can_move_item_within_team_drive] if args.key?(:can_move_item_within_team_drive)
1739
1758
  @can_move_team_drive_item = args[:can_move_team_drive_item] if args.key?(:can_move_team_drive_item)
1740
1759
  @can_read_drive = args[:can_read_drive] if args.key?(:can_read_drive)
1760
+ @can_read_labels = args[:can_read_labels] if args.key?(:can_read_labels)
1741
1761
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1742
1762
  @can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
1743
1763
  @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
@@ -1978,6 +1998,26 @@ module Google
1978
1998
  end
1979
1999
  end
1980
2000
 
2001
+ # An overview of the labels on the file.
2002
+ class LabelInfo
2003
+ include Google::Apis::Core::Hashable
2004
+
2005
+ # The set of labels on the file as requested by the label IDs in the
2006
+ # includeLabels parameter. By default, no labels are returned.
2007
+ # Corresponds to the JSON property `labels`
2008
+ # @return [Array<Google::Apis::DriveV3::Label>]
2009
+ attr_accessor :labels
2010
+
2011
+ def initialize(**args)
2012
+ update!(**args)
2013
+ end
2014
+
2015
+ # Update properties of this object
2016
+ def update!(**args)
2017
+ @labels = args[:labels] if args.key?(:labels)
2018
+ end
2019
+ end
2020
+
1981
2021
  # Contains details about the link URLs that clients are using to refer to this
1982
2022
  # item.
1983
2023
  class LinkShareMetadata
@@ -2152,6 +2192,300 @@ module Google
2152
2192
  end
2153
2193
  end
2154
2194
 
2195
+ # Representation of a label and its fields.
2196
+ class Label
2197
+ include Google::Apis::Core::Hashable
2198
+
2199
+ # A map of the label's fields keyed by the field ID.
2200
+ # Corresponds to the JSON property `fields`
2201
+ # @return [Hash<String,Google::Apis::DriveV3::LabelField>]
2202
+ attr_accessor :fields
2203
+
2204
+ # The ID of the label.
2205
+ # Corresponds to the JSON property `id`
2206
+ # @return [String]
2207
+ attr_accessor :id
2208
+
2209
+ # This is always drive#label
2210
+ # Corresponds to the JSON property `kind`
2211
+ # @return [String]
2212
+ attr_accessor :kind
2213
+
2214
+ # The revision ID of the label.
2215
+ # Corresponds to the JSON property `revisionId`
2216
+ # @return [String]
2217
+ attr_accessor :revision_id
2218
+
2219
+ def initialize(**args)
2220
+ update!(**args)
2221
+ end
2222
+
2223
+ # Update properties of this object
2224
+ def update!(**args)
2225
+ @fields = args[:fields] if args.key?(:fields)
2226
+ @id = args[:id] if args.key?(:id)
2227
+ @kind = args[:kind] if args.key?(:kind)
2228
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
2229
+ end
2230
+ end
2231
+
2232
+ # Representation of a label field.
2233
+ class LabelField
2234
+ include Google::Apis::Core::Hashable
2235
+
2236
+ # Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
2237
+ # Corresponds to the JSON property `dateString`
2238
+ # @return [Array<Date>]
2239
+ attr_accessor :date_string
2240
+
2241
+ # The identifier of this field.
2242
+ # Corresponds to the JSON property `id`
2243
+ # @return [String]
2244
+ attr_accessor :id
2245
+
2246
+ # Only present if valueType is integer.
2247
+ # Corresponds to the JSON property `integer`
2248
+ # @return [Array<Fixnum>]
2249
+ attr_accessor :integer
2250
+
2251
+ # This is always drive#labelField.
2252
+ # Corresponds to the JSON property `kind`
2253
+ # @return [String]
2254
+ attr_accessor :kind
2255
+
2256
+ # Only present if valueType is selection.
2257
+ # Corresponds to the JSON property `selection`
2258
+ # @return [Array<String>]
2259
+ attr_accessor :selection
2260
+
2261
+ # Only present if valueType is text.
2262
+ # Corresponds to the JSON property `text`
2263
+ # @return [Array<String>]
2264
+ attr_accessor :text
2265
+
2266
+ # Only present if valueType is user.
2267
+ # Corresponds to the JSON property `user`
2268
+ # @return [Array<Google::Apis::DriveV3::User>]
2269
+ attr_accessor :user
2270
+
2271
+ # The field type. While new values may be supported in the future, the following
2272
+ # are currently allowed:
2273
+ # - dateString
2274
+ # - integer
2275
+ # - selection
2276
+ # - text
2277
+ # - user
2278
+ # Corresponds to the JSON property `valueType`
2279
+ # @return [String]
2280
+ attr_accessor :value_type
2281
+
2282
+ def initialize(**args)
2283
+ update!(**args)
2284
+ end
2285
+
2286
+ # Update properties of this object
2287
+ def update!(**args)
2288
+ @date_string = args[:date_string] if args.key?(:date_string)
2289
+ @id = args[:id] if args.key?(:id)
2290
+ @integer = args[:integer] if args.key?(:integer)
2291
+ @kind = args[:kind] if args.key?(:kind)
2292
+ @selection = args[:selection] if args.key?(:selection)
2293
+ @text = args[:text] if args.key?(:text)
2294
+ @user = args[:user] if args.key?(:user)
2295
+ @value_type = args[:value_type] if args.key?(:value_type)
2296
+ end
2297
+ end
2298
+
2299
+ # A modification to a label's field.
2300
+ class LabelFieldModification
2301
+ include Google::Apis::Core::Hashable
2302
+
2303
+ # The ID of the Field to be modified.
2304
+ # Corresponds to the JSON property `fieldId`
2305
+ # @return [String]
2306
+ attr_accessor :field_id
2307
+
2308
+ # This is always drive#labelFieldModification.
2309
+ # Corresponds to the JSON property `kind`
2310
+ # @return [String]
2311
+ attr_accessor :kind
2312
+
2313
+ # Replaces a dateString field with these new values. The values must be strings
2314
+ # in the RFC 3339 full-date format: YYYY-MM-DD.
2315
+ # Corresponds to the JSON property `setDateValues`
2316
+ # @return [Array<Date>]
2317
+ attr_accessor :set_date_values
2318
+
2319
+ # Replaces an integer field with these new values.
2320
+ # Corresponds to the JSON property `setIntegerValues`
2321
+ # @return [Array<Fixnum>]
2322
+ attr_accessor :set_integer_values
2323
+
2324
+ # Replaces a selection field with these new values.
2325
+ # Corresponds to the JSON property `setSelectionValues`
2326
+ # @return [Array<String>]
2327
+ attr_accessor :set_selection_values
2328
+
2329
+ # Replaces a text field with these new values.
2330
+ # Corresponds to the JSON property `setTextValues`
2331
+ # @return [Array<String>]
2332
+ attr_accessor :set_text_values
2333
+
2334
+ # Replaces a user field with these new values. The values must be valid email
2335
+ # addresses.
2336
+ # Corresponds to the JSON property `setUserValues`
2337
+ # @return [Array<String>]
2338
+ attr_accessor :set_user_values
2339
+
2340
+ # Unsets the values for this field.
2341
+ # Corresponds to the JSON property `unsetValues`
2342
+ # @return [Boolean]
2343
+ attr_accessor :unset_values
2344
+ alias_method :unset_values?, :unset_values
2345
+
2346
+ def initialize(**args)
2347
+ update!(**args)
2348
+ end
2349
+
2350
+ # Update properties of this object
2351
+ def update!(**args)
2352
+ @field_id = args[:field_id] if args.key?(:field_id)
2353
+ @kind = args[:kind] if args.key?(:kind)
2354
+ @set_date_values = args[:set_date_values] if args.key?(:set_date_values)
2355
+ @set_integer_values = args[:set_integer_values] if args.key?(:set_integer_values)
2356
+ @set_selection_values = args[:set_selection_values] if args.key?(:set_selection_values)
2357
+ @set_text_values = args[:set_text_values] if args.key?(:set_text_values)
2358
+ @set_user_values = args[:set_user_values] if args.key?(:set_user_values)
2359
+ @unset_values = args[:unset_values] if args.key?(:unset_values)
2360
+ end
2361
+ end
2362
+
2363
+ # A list of labels.
2364
+ class LabelList
2365
+ include Google::Apis::Core::Hashable
2366
+
2367
+ # This is always drive#labelList
2368
+ # Corresponds to the JSON property `kind`
2369
+ # @return [String]
2370
+ attr_accessor :kind
2371
+
2372
+ # The list of labels.
2373
+ # Corresponds to the JSON property `labels`
2374
+ # @return [Array<Google::Apis::DriveV3::Label>]
2375
+ attr_accessor :labels
2376
+
2377
+ # The page token for the next page of labels. This field will be absent if the
2378
+ # end of the list has been reached. If the token is rejected for any reason, it
2379
+ # should be discarded, and pagination should be restarted from the first page of
2380
+ # results.
2381
+ # Corresponds to the JSON property `nextPageToken`
2382
+ # @return [String]
2383
+ attr_accessor :next_page_token
2384
+
2385
+ def initialize(**args)
2386
+ update!(**args)
2387
+ end
2388
+
2389
+ # Update properties of this object
2390
+ def update!(**args)
2391
+ @kind = args[:kind] if args.key?(:kind)
2392
+ @labels = args[:labels] if args.key?(:labels)
2393
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2394
+ end
2395
+ end
2396
+
2397
+ # A modification to a label on a file. A LabelModification can be used to apply
2398
+ # a label to a file, update an existing label on a file, or remove a label from
2399
+ # a file.
2400
+ class LabelModification
2401
+ include Google::Apis::Core::Hashable
2402
+
2403
+ # The list of modifications to this label's fields.
2404
+ # Corresponds to the JSON property `fieldModifications`
2405
+ # @return [Array<Google::Apis::DriveV3::LabelFieldModification>]
2406
+ attr_accessor :field_modifications
2407
+
2408
+ # This is always drive#labelModification.
2409
+ # Corresponds to the JSON property `kind`
2410
+ # @return [String]
2411
+ attr_accessor :kind
2412
+
2413
+ # The ID of the label to modify.
2414
+ # Corresponds to the JSON property `labelId`
2415
+ # @return [String]
2416
+ attr_accessor :label_id
2417
+
2418
+ # If true, the label will be removed from the file.
2419
+ # Corresponds to the JSON property `removeLabel`
2420
+ # @return [Boolean]
2421
+ attr_accessor :remove_label
2422
+ alias_method :remove_label?, :remove_label
2423
+
2424
+ def initialize(**args)
2425
+ update!(**args)
2426
+ end
2427
+
2428
+ # Update properties of this object
2429
+ def update!(**args)
2430
+ @field_modifications = args[:field_modifications] if args.key?(:field_modifications)
2431
+ @kind = args[:kind] if args.key?(:kind)
2432
+ @label_id = args[:label_id] if args.key?(:label_id)
2433
+ @remove_label = args[:remove_label] if args.key?(:remove_label)
2434
+ end
2435
+ end
2436
+
2437
+ # A request to modify the set of labels on a file. This request may contain many
2438
+ # modifications that will either all succeed or all fail transactionally.
2439
+ class ModifyLabelsRequest
2440
+ include Google::Apis::Core::Hashable
2441
+
2442
+ # This is always drive#modifyLabelsRequest
2443
+ # Corresponds to the JSON property `kind`
2444
+ # @return [String]
2445
+ attr_accessor :kind
2446
+
2447
+ # The list of modifications to apply to the labels on the file.
2448
+ # Corresponds to the JSON property `labelModifications`
2449
+ # @return [Array<Google::Apis::DriveV3::LabelModification>]
2450
+ attr_accessor :label_modifications
2451
+
2452
+ def initialize(**args)
2453
+ update!(**args)
2454
+ end
2455
+
2456
+ # Update properties of this object
2457
+ def update!(**args)
2458
+ @kind = args[:kind] if args.key?(:kind)
2459
+ @label_modifications = args[:label_modifications] if args.key?(:label_modifications)
2460
+ end
2461
+ end
2462
+
2463
+ # Response to a ModifyLabels request. This contains only those labels which were
2464
+ # added or updated by the request.
2465
+ class ModifyLabelsResponse
2466
+ include Google::Apis::Core::Hashable
2467
+
2468
+ # This is always drive#modifyLabelsResponse
2469
+ # Corresponds to the JSON property `kind`
2470
+ # @return [String]
2471
+ attr_accessor :kind
2472
+
2473
+ # The list of labels which were added or updated by the request.
2474
+ # Corresponds to the JSON property `modifiedLabels`
2475
+ # @return [Array<Google::Apis::DriveV3::Label>]
2476
+ attr_accessor :modified_labels
2477
+
2478
+ def initialize(**args)
2479
+ update!(**args)
2480
+ end
2481
+
2482
+ # Update properties of this object
2483
+ def update!(**args)
2484
+ @kind = args[:kind] if args.key?(:kind)
2485
+ @modified_labels = args[:modified_labels] if args.key?(:modified_labels)
2486
+ end
2487
+ end
2488
+
2155
2489
  # A permission for a file. A permission grants a user, group, domain or the
2156
2490
  # world access to a file or a folder hierarchy.
2157
2491
  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.25.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.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 = "20220709"
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
@@ -613,6 +663,7 @@ module Google
613
663
  property :can_list_children, as: 'canListChildren'
614
664
  property :can_modify_content, as: 'canModifyContent'
615
665
  property :can_modify_content_restriction, as: 'canModifyContentRestriction'
666
+ property :can_modify_labels, as: 'canModifyLabels'
616
667
  property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
617
668
  property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
618
669
  property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
@@ -624,6 +675,7 @@ module Google
624
675
  property :can_move_item_within_team_drive, as: 'canMoveItemWithinTeamDrive'
625
676
  property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
626
677
  property :can_read_drive, as: 'canReadDrive'
678
+ property :can_read_labels, as: 'canReadLabels'
627
679
  property :can_read_revisions, as: 'canReadRevisions'
628
680
  property :can_read_team_drive, as: 'canReadTeamDrive'
629
681
  property :can_remove_children, as: 'canRemoveChildren'
@@ -690,6 +742,14 @@ module Google
690
742
  end
691
743
  end
692
744
 
745
+ class LabelInfo
746
+ # @private
747
+ class Representation < Google::Apis::Core::JsonRepresentation
748
+ collection :labels, as: 'labels', class: Google::Apis::DriveV3::Label, decorator: Google::Apis::DriveV3::Label::Representation
749
+
750
+ end
751
+ end
752
+
693
753
  class LinkShareMetadata
694
754
  # @private
695
755
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -737,6 +797,87 @@ module Google
737
797
  end
738
798
  end
739
799
 
800
+ class Label
801
+ # @private
802
+ class Representation < Google::Apis::Core::JsonRepresentation
803
+ hash :fields, as: 'fields', class: Google::Apis::DriveV3::LabelField, decorator: Google::Apis::DriveV3::LabelField::Representation
804
+
805
+ property :id, as: 'id'
806
+ property :kind, as: 'kind'
807
+ property :revision_id, as: 'revisionId'
808
+ end
809
+ end
810
+
811
+ class LabelField
812
+ # @private
813
+ class Representation < Google::Apis::Core::JsonRepresentation
814
+ collection :date_string, as: 'dateString', type: Date
815
+
816
+ property :id, as: 'id'
817
+ collection :integer, as: 'integer'
818
+ property :kind, as: 'kind'
819
+ collection :selection, as: 'selection'
820
+ collection :text, as: 'text'
821
+ collection :user, as: 'user', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
822
+
823
+ property :value_type, as: 'valueType'
824
+ end
825
+ end
826
+
827
+ class LabelFieldModification
828
+ # @private
829
+ class Representation < Google::Apis::Core::JsonRepresentation
830
+ property :field_id, as: 'fieldId'
831
+ property :kind, as: 'kind'
832
+ collection :set_date_values, as: 'setDateValues', type: Date
833
+
834
+ collection :set_integer_values, as: 'setIntegerValues'
835
+ collection :set_selection_values, as: 'setSelectionValues'
836
+ collection :set_text_values, as: 'setTextValues'
837
+ collection :set_user_values, as: 'setUserValues'
838
+ property :unset_values, as: 'unsetValues'
839
+ end
840
+ end
841
+
842
+ class LabelList
843
+ # @private
844
+ class Representation < Google::Apis::Core::JsonRepresentation
845
+ property :kind, as: 'kind'
846
+ collection :labels, as: 'labels', class: Google::Apis::DriveV3::Label, decorator: Google::Apis::DriveV3::Label::Representation
847
+
848
+ property :next_page_token, as: 'nextPageToken'
849
+ end
850
+ end
851
+
852
+ class LabelModification
853
+ # @private
854
+ class Representation < Google::Apis::Core::JsonRepresentation
855
+ collection :field_modifications, as: 'fieldModifications', class: Google::Apis::DriveV3::LabelFieldModification, decorator: Google::Apis::DriveV3::LabelFieldModification::Representation
856
+
857
+ property :kind, as: 'kind'
858
+ property :label_id, as: 'labelId'
859
+ property :remove_label, as: 'removeLabel'
860
+ end
861
+ end
862
+
863
+ class ModifyLabelsRequest
864
+ # @private
865
+ class Representation < Google::Apis::Core::JsonRepresentation
866
+ property :kind, as: 'kind'
867
+ collection :label_modifications, as: 'labelModifications', class: Google::Apis::DriveV3::LabelModification, decorator: Google::Apis::DriveV3::LabelModification::Representation
868
+
869
+ end
870
+ end
871
+
872
+ class ModifyLabelsResponse
873
+ # @private
874
+ class Representation < Google::Apis::Core::JsonRepresentation
875
+ property :kind, as: 'kind'
876
+ collection :modified_labels, as: 'modifiedLabels', class: Google::Apis::DriveV3::Label, decorator: Google::Apis::DriveV3::Label::Representation
877
+
878
+ end
879
+ end
880
+
740
881
  class Permission
741
882
  # @private
742
883
  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.25.0
4
+ version: 0.26.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-07-04 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-drive_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.25.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-drive_v3/v0.26.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: []