google-cloud-tasks-v2beta2 0.12.0 → 0.12.1

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: d25d77d0ed2c1c11e1ce13240bfe726ee3370301ad4a4fc1d1cbcd7980d4077e
4
- data.tar.gz: 5fac9cd708de370e083e43a1b5f5873f4da43a887d0b2d5510931293260a62f0
3
+ metadata.gz: 4a5557934b75667b392e72c0524cd2a025b0e229ce91c45b5b83ed6e487de75a
4
+ data.tar.gz: a2d78b7ff4c4403785ab5ea2615f00bbb73ef22b08d71566a91fac3ff10343b8
5
5
  SHA512:
6
- metadata.gz: 68862685c7716e4365297a8a99b15344803e6d65a6ca7ca24ad2067b5fc601c7ca772c1a29877bedcffc51220a824f145ac474806fd11fc83dd140fd3b67c4c9
7
- data.tar.gz: 67ea02da7e7fe98440957b4d7169d1568b922655abc7bd33ca3fd56cd31510b7935b421d21c72c486ec6652ebc0a6bdf132bf58954d619bf9e579833210b57ef
6
+ metadata.gz: 7e7f57fb789f4c2a548d3536a69eb88391021b9c57b34bade00e450291072da4771ac67681d6e5d5b2b0a09b0995560be2a258af712daadde90a35ab7bc1c1dc
7
+ data.tar.gz: 315d2342b701b4eb979aabeae4b18c416b52ec4dd92052ca52c487e9680fa427268eff0e65bb1ca9620c79a77446dcab313252bd0961a070c3e7432a2a82fdf9
@@ -32,6 +32,9 @@ module Google
32
32
  # work in their applications.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "cloudtasks.$UNIVERSE_DOMAIN$"
37
40
 
@@ -339,10 +342,11 @@ module Google
339
342
  # Customize the options with defaults
340
343
  metadata = @config.rpcs.list_queues.metadata.to_h
341
344
 
342
- # Set x-goog-api-client and x-goog-user-project headers
345
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
343
346
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
344
347
  lib_name: @config.lib_name, lib_version: @config.lib_version,
345
348
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
349
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
346
350
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
347
351
 
348
352
  header_params = {}
@@ -431,10 +435,11 @@ module Google
431
435
  # Customize the options with defaults
432
436
  metadata = @config.rpcs.get_queue.metadata.to_h
433
437
 
434
- # Set x-goog-api-client and x-goog-user-project headers
438
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
435
439
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
436
440
  lib_name: @config.lib_name, lib_version: @config.lib_version,
437
441
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
442
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
438
443
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
439
444
 
440
445
  header_params = {}
@@ -537,10 +542,11 @@ module Google
537
542
  # Customize the options with defaults
538
543
  metadata = @config.rpcs.create_queue.metadata.to_h
539
544
 
540
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
541
546
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
542
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
543
548
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
549
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
544
550
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
545
551
 
546
552
  header_params = {}
@@ -648,10 +654,11 @@ module Google
648
654
  # Customize the options with defaults
649
655
  metadata = @config.rpcs.update_queue.metadata.to_h
650
656
 
651
- # Set x-goog-api-client and x-goog-user-project headers
657
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
652
658
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
653
659
  lib_name: @config.lib_name, lib_version: @config.lib_version,
654
660
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
661
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
655
662
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
656
663
 
657
664
  header_params = {}
@@ -746,10 +753,11 @@ module Google
746
753
  # Customize the options with defaults
747
754
  metadata = @config.rpcs.delete_queue.metadata.to_h
748
755
 
749
- # Set x-goog-api-client and x-goog-user-project headers
756
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
750
757
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
751
758
  lib_name: @config.lib_name, lib_version: @config.lib_version,
752
759
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
760
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
753
761
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
754
762
 
755
763
  header_params = {}
@@ -837,10 +845,11 @@ module Google
837
845
  # Customize the options with defaults
838
846
  metadata = @config.rpcs.purge_queue.metadata.to_h
839
847
 
840
- # Set x-goog-api-client and x-goog-user-project headers
848
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
841
849
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
842
850
  lib_name: @config.lib_name, lib_version: @config.lib_version,
843
851
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
852
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
844
853
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
845
854
 
846
855
  header_params = {}
@@ -930,10 +939,11 @@ module Google
930
939
  # Customize the options with defaults
931
940
  metadata = @config.rpcs.pause_queue.metadata.to_h
932
941
 
933
- # Set x-goog-api-client and x-goog-user-project headers
942
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
934
943
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
935
944
  lib_name: @config.lib_name, lib_version: @config.lib_version,
936
945
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
946
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
937
947
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
938
948
 
939
949
  header_params = {}
@@ -1030,10 +1040,11 @@ module Google
1030
1040
  # Customize the options with defaults
1031
1041
  metadata = @config.rpcs.resume_queue.metadata.to_h
1032
1042
 
1033
- # Set x-goog-api-client and x-goog-user-project headers
1043
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1034
1044
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1035
1045
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1036
1046
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
1047
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1037
1048
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1038
1049
 
1039
1050
  header_params = {}
@@ -1123,10 +1134,11 @@ module Google
1123
1134
  # Customize the options with defaults
1124
1135
  metadata = @config.rpcs.upload_queue_yaml.metadata.to_h
1125
1136
 
1126
- # Set x-goog-api-client and x-goog-user-project headers
1137
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1127
1138
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1128
1139
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1129
1140
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
1141
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1130
1142
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1131
1143
 
1132
1144
  options.apply_defaults timeout: @config.rpcs.upload_queue_yaml.timeout,
@@ -1212,10 +1224,11 @@ module Google
1212
1224
  # Customize the options with defaults
1213
1225
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1214
1226
 
1215
- # Set x-goog-api-client and x-goog-user-project headers
1227
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1216
1228
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1217
1229
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1218
1230
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
1231
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1219
1232
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1220
1233
 
1221
1234
  header_params = {}
@@ -1319,10 +1332,11 @@ module Google
1319
1332
  # Customize the options with defaults
1320
1333
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1321
1334
 
1322
- # Set x-goog-api-client and x-goog-user-project headers
1335
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1323
1336
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1324
1337
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1325
1338
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
1339
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1326
1340
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1327
1341
 
1328
1342
  header_params = {}
@@ -1417,10 +1431,11 @@ module Google
1417
1431
  # Customize the options with defaults
1418
1432
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1419
1433
 
1420
- # Set x-goog-api-client and x-goog-user-project headers
1434
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1421
1435
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1422
1436
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1423
1437
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
1438
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1424
1439
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1425
1440
 
1426
1441
  header_params = {}
@@ -1548,10 +1563,11 @@ module Google
1548
1563
  # Customize the options with defaults
1549
1564
  metadata = @config.rpcs.list_tasks.metadata.to_h
1550
1565
 
1551
- # Set x-goog-api-client and x-goog-user-project headers
1566
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1552
1567
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1553
1568
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1554
1569
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
1570
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1555
1571
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1556
1572
 
1557
1573
  header_params = {}
@@ -1649,10 +1665,11 @@ module Google
1649
1665
  # Customize the options with defaults
1650
1666
  metadata = @config.rpcs.get_task.metadata.to_h
1651
1667
 
1652
- # Set x-goog-api-client and x-goog-user-project headers
1668
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1653
1669
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1654
1670
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1655
1671
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
1672
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1656
1673
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1657
1674
 
1658
1675
  header_params = {}
@@ -1793,10 +1810,11 @@ module Google
1793
1810
  # Customize the options with defaults
1794
1811
  metadata = @config.rpcs.create_task.metadata.to_h
1795
1812
 
1796
- # Set x-goog-api-client and x-goog-user-project headers
1813
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1797
1814
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1798
1815
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1799
1816
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
1817
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1800
1818
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1801
1819
 
1802
1820
  header_params = {}
@@ -1883,10 +1901,11 @@ module Google
1883
1901
  # Customize the options with defaults
1884
1902
  metadata = @config.rpcs.delete_task.metadata.to_h
1885
1903
 
1886
- # Set x-goog-api-client and x-goog-user-project headers
1904
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1887
1905
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1888
1906
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1889
1907
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
1908
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1890
1909
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1891
1910
 
1892
1911
  header_params = {}
@@ -2072,10 +2091,11 @@ module Google
2072
2091
  # Customize the options with defaults
2073
2092
  metadata = @config.rpcs.lease_tasks.metadata.to_h
2074
2093
 
2075
- # Set x-goog-api-client and x-goog-user-project headers
2094
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2076
2095
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2077
2096
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2078
2097
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
2098
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2079
2099
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2080
2100
 
2081
2101
  header_params = {}
@@ -2177,10 +2197,11 @@ module Google
2177
2197
  # Customize the options with defaults
2178
2198
  metadata = @config.rpcs.acknowledge_task.metadata.to_h
2179
2199
 
2180
- # Set x-goog-api-client and x-goog-user-project headers
2200
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2181
2201
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2182
2202
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2183
2203
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
2204
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2184
2205
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2185
2206
 
2186
2207
  header_params = {}
@@ -2294,10 +2315,11 @@ module Google
2294
2315
  # Customize the options with defaults
2295
2316
  metadata = @config.rpcs.renew_lease.metadata.to_h
2296
2317
 
2297
- # Set x-goog-api-client and x-goog-user-project headers
2318
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2298
2319
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2299
2320
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2300
2321
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
2322
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2301
2323
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2302
2324
 
2303
2325
  header_params = {}
@@ -2405,10 +2427,11 @@ module Google
2405
2427
  # Customize the options with defaults
2406
2428
  metadata = @config.rpcs.cancel_lease.metadata.to_h
2407
2429
 
2408
- # Set x-goog-api-client and x-goog-user-project headers
2430
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2409
2431
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2410
2432
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2411
2433
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
2434
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2412
2435
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2413
2436
 
2414
2437
  header_params = {}
@@ -2534,10 +2557,11 @@ module Google
2534
2557
  # Customize the options with defaults
2535
2558
  metadata = @config.rpcs.run_task.metadata.to_h
2536
2559
 
2537
- # Set x-goog-api-client and x-goog-user-project headers
2560
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2538
2561
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2539
2562
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2540
2563
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION
2564
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2541
2565
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2542
2566
 
2543
2567
  header_params = {}
@@ -34,6 +34,9 @@ module Google
34
34
  # work in their applications.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "cloudtasks.$UNIVERSE_DOMAIN$"
39
42
 
@@ -330,12 +333,13 @@ module Google
330
333
  # Customize the options with defaults
331
334
  call_metadata = @config.rpcs.list_queues.metadata.to_h
332
335
 
333
- # Set x-goog-api-client and x-goog-user-project headers
336
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
334
337
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
335
338
  lib_name: @config.lib_name, lib_version: @config.lib_version,
336
339
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
337
340
  transports_version_send: [:rest]
338
341
 
342
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
339
343
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
340
344
 
341
345
  options.apply_defaults timeout: @config.rpcs.list_queues.timeout,
@@ -415,12 +419,13 @@ module Google
415
419
  # Customize the options with defaults
416
420
  call_metadata = @config.rpcs.get_queue.metadata.to_h
417
421
 
418
- # Set x-goog-api-client and x-goog-user-project headers
422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
419
423
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
420
424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
421
425
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
422
426
  transports_version_send: [:rest]
423
427
 
428
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
424
429
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
425
430
 
426
431
  options.apply_defaults timeout: @config.rpcs.get_queue.timeout,
@@ -514,12 +519,13 @@ module Google
514
519
  # Customize the options with defaults
515
520
  call_metadata = @config.rpcs.create_queue.metadata.to_h
516
521
 
517
- # Set x-goog-api-client and x-goog-user-project headers
522
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
518
523
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
519
524
  lib_name: @config.lib_name, lib_version: @config.lib_version,
520
525
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
521
526
  transports_version_send: [:rest]
522
527
 
528
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
523
529
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
524
530
 
525
531
  options.apply_defaults timeout: @config.rpcs.create_queue.timeout,
@@ -618,12 +624,13 @@ module Google
618
624
  # Customize the options with defaults
619
625
  call_metadata = @config.rpcs.update_queue.metadata.to_h
620
626
 
621
- # Set x-goog-api-client and x-goog-user-project headers
627
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
622
628
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
623
629
  lib_name: @config.lib_name, lib_version: @config.lib_version,
624
630
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
625
631
  transports_version_send: [:rest]
626
632
 
633
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
627
634
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
628
635
 
629
636
  options.apply_defaults timeout: @config.rpcs.update_queue.timeout,
@@ -709,12 +716,13 @@ module Google
709
716
  # Customize the options with defaults
710
717
  call_metadata = @config.rpcs.delete_queue.metadata.to_h
711
718
 
712
- # Set x-goog-api-client and x-goog-user-project headers
719
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
713
720
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
714
721
  lib_name: @config.lib_name, lib_version: @config.lib_version,
715
722
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
716
723
  transports_version_send: [:rest]
717
724
 
725
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
718
726
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
719
727
 
720
728
  options.apply_defaults timeout: @config.rpcs.delete_queue.timeout,
@@ -793,12 +801,13 @@ module Google
793
801
  # Customize the options with defaults
794
802
  call_metadata = @config.rpcs.purge_queue.metadata.to_h
795
803
 
796
- # Set x-goog-api-client and x-goog-user-project headers
804
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
797
805
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
798
806
  lib_name: @config.lib_name, lib_version: @config.lib_version,
799
807
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
800
808
  transports_version_send: [:rest]
801
809
 
810
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
802
811
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
803
812
 
804
813
  options.apply_defaults timeout: @config.rpcs.purge_queue.timeout,
@@ -879,12 +888,13 @@ module Google
879
888
  # Customize the options with defaults
880
889
  call_metadata = @config.rpcs.pause_queue.metadata.to_h
881
890
 
882
- # Set x-goog-api-client and x-goog-user-project headers
891
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
883
892
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
884
893
  lib_name: @config.lib_name, lib_version: @config.lib_version,
885
894
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
886
895
  transports_version_send: [:rest]
887
896
 
897
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
888
898
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
889
899
 
890
900
  options.apply_defaults timeout: @config.rpcs.pause_queue.timeout,
@@ -972,12 +982,13 @@ module Google
972
982
  # Customize the options with defaults
973
983
  call_metadata = @config.rpcs.resume_queue.metadata.to_h
974
984
 
975
- # Set x-goog-api-client and x-goog-user-project headers
985
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
976
986
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
977
987
  lib_name: @config.lib_name, lib_version: @config.lib_version,
978
988
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
979
989
  transports_version_send: [:rest]
980
990
 
991
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
981
992
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
982
993
 
983
994
  options.apply_defaults timeout: @config.rpcs.resume_queue.timeout,
@@ -1062,12 +1073,13 @@ module Google
1062
1073
  # Customize the options with defaults
1063
1074
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
1064
1075
 
1065
- # Set x-goog-api-client and x-goog-user-project headers
1076
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1066
1077
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1067
1078
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1068
1079
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
1069
1080
  transports_version_send: [:rest]
1070
1081
 
1082
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1071
1083
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1072
1084
 
1073
1085
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -1162,12 +1174,13 @@ module Google
1162
1174
  # Customize the options with defaults
1163
1175
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1164
1176
 
1165
- # Set x-goog-api-client and x-goog-user-project headers
1177
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1166
1178
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1167
1179
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1168
1180
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
1169
1181
  transports_version_send: [:rest]
1170
1182
 
1183
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1171
1184
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1172
1185
 
1173
1186
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1253,12 +1266,13 @@ module Google
1253
1266
  # Customize the options with defaults
1254
1267
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1255
1268
 
1256
- # Set x-goog-api-client and x-goog-user-project headers
1269
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1257
1270
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1258
1271
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1259
1272
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
1260
1273
  transports_version_send: [:rest]
1261
1274
 
1275
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1262
1276
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1263
1277
 
1264
1278
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -1377,12 +1391,13 @@ module Google
1377
1391
  # Customize the options with defaults
1378
1392
  call_metadata = @config.rpcs.list_tasks.metadata.to_h
1379
1393
 
1380
- # Set x-goog-api-client and x-goog-user-project headers
1394
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1381
1395
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1382
1396
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1383
1397
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
1384
1398
  transports_version_send: [:rest]
1385
1399
 
1400
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1386
1401
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1387
1402
 
1388
1403
  options.apply_defaults timeout: @config.rpcs.list_tasks.timeout,
@@ -1471,12 +1486,13 @@ module Google
1471
1486
  # Customize the options with defaults
1472
1487
  call_metadata = @config.rpcs.get_task.metadata.to_h
1473
1488
 
1474
- # Set x-goog-api-client and x-goog-user-project headers
1489
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1475
1490
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1476
1491
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1477
1492
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
1478
1493
  transports_version_send: [:rest]
1479
1494
 
1495
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1480
1496
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1481
1497
 
1482
1498
  options.apply_defaults timeout: @config.rpcs.get_task.timeout,
@@ -1608,12 +1624,13 @@ module Google
1608
1624
  # Customize the options with defaults
1609
1625
  call_metadata = @config.rpcs.create_task.metadata.to_h
1610
1626
 
1611
- # Set x-goog-api-client and x-goog-user-project headers
1627
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1612
1628
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1613
1629
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1614
1630
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
1615
1631
  transports_version_send: [:rest]
1616
1632
 
1633
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1617
1634
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1618
1635
 
1619
1636
  options.apply_defaults timeout: @config.rpcs.create_task.timeout,
@@ -1691,12 +1708,13 @@ module Google
1691
1708
  # Customize the options with defaults
1692
1709
  call_metadata = @config.rpcs.delete_task.metadata.to_h
1693
1710
 
1694
- # Set x-goog-api-client and x-goog-user-project headers
1711
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1695
1712
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1696
1713
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1697
1714
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
1698
1715
  transports_version_send: [:rest]
1699
1716
 
1717
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1700
1718
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1701
1719
 
1702
1720
  options.apply_defaults timeout: @config.rpcs.delete_task.timeout,
@@ -1873,12 +1891,13 @@ module Google
1873
1891
  # Customize the options with defaults
1874
1892
  call_metadata = @config.rpcs.lease_tasks.metadata.to_h
1875
1893
 
1876
- # Set x-goog-api-client and x-goog-user-project headers
1894
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1877
1895
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1878
1896
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1879
1897
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
1880
1898
  transports_version_send: [:rest]
1881
1899
 
1900
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1882
1901
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1883
1902
 
1884
1903
  options.apply_defaults timeout: @config.rpcs.lease_tasks.timeout,
@@ -1971,12 +1990,13 @@ module Google
1971
1990
  # Customize the options with defaults
1972
1991
  call_metadata = @config.rpcs.acknowledge_task.metadata.to_h
1973
1992
 
1974
- # Set x-goog-api-client and x-goog-user-project headers
1993
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1975
1994
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1976
1995
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1977
1996
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
1978
1997
  transports_version_send: [:rest]
1979
1998
 
1999
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1980
2000
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1981
2001
 
1982
2002
  options.apply_defaults timeout: @config.rpcs.acknowledge_task.timeout,
@@ -2081,12 +2101,13 @@ module Google
2081
2101
  # Customize the options with defaults
2082
2102
  call_metadata = @config.rpcs.renew_lease.metadata.to_h
2083
2103
 
2084
- # Set x-goog-api-client and x-goog-user-project headers
2104
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2085
2105
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2086
2106
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2087
2107
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
2088
2108
  transports_version_send: [:rest]
2089
2109
 
2110
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2090
2111
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2091
2112
 
2092
2113
  options.apply_defaults timeout: @config.rpcs.renew_lease.timeout,
@@ -2185,12 +2206,13 @@ module Google
2185
2206
  # Customize the options with defaults
2186
2207
  call_metadata = @config.rpcs.cancel_lease.metadata.to_h
2187
2208
 
2188
- # Set x-goog-api-client and x-goog-user-project headers
2209
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2189
2210
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2190
2211
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2191
2212
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
2192
2213
  transports_version_send: [:rest]
2193
2214
 
2215
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2194
2216
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2195
2217
 
2196
2218
  options.apply_defaults timeout: @config.rpcs.cancel_lease.timeout,
@@ -2307,12 +2329,13 @@ module Google
2307
2329
  # Customize the options with defaults
2308
2330
  call_metadata = @config.rpcs.run_task.metadata.to_h
2309
2331
 
2310
- # Set x-goog-api-client and x-goog-user-project headers
2332
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2311
2333
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2312
2334
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2313
2335
  gapic_version: ::Google::Cloud::Tasks::V2beta2::VERSION,
2314
2336
  transports_version_send: [:rest]
2315
2337
 
2338
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2316
2339
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2317
2340
 
2318
2341
  options.apply_defaults timeout: @config.rpcs.run_task.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tasks
23
23
  module V2beta2
24
- VERSION = "0.12.0"
24
+ VERSION = "0.12.1"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks-v2beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common