google-cloud-tasks-v2beta3 0.13.0 → 0.13.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: dbc9906f9fceab3e3cd337f8ac25e49ad3773d0c248dbcaf9e89aa46a3110b5f
4
- data.tar.gz: 18744ba896b8e7ba950eefec091544563c1a427af4d92c6a92cf0912149a9c54
3
+ metadata.gz: 3b705ea949378c5bc1a0ce8c4abc16b868533d8a5012ac5f5bb152ce654f5b3f
4
+ data.tar.gz: 1682daeaddacd480109703bae0908e4d8dd67d97daadaeac75e3dcc27a6077f7
5
5
  SHA512:
6
- metadata.gz: 8953e4ea66d7272da5bab4292bf6a12dbd6cf197745112782a199984a21f0820e002ee09d947dceb4e29b58a81bf0f6f7319fd8e13906e381e73740e31bc1af5
7
- data.tar.gz: 25bbaa8eb296a1ecc80cdd47231a76c53769c4cb5df5b3ad8f3accf49c5f375389a689c21f585ddc00aeac42db1d62002cb158119e9b9861a761fbb8a716a356
6
+ metadata.gz: edac64f49b39052a899d793060691b43ce407d4875288ce849d6bb4d11206f965b0d567a839c0a750202889a6ca1ae1e11c200cd4c30fbd4fca38627ac82ebeb
7
+ data.tar.gz: e4ac9f75c76f5c2aa9d9eb26ef4cb030a0e8f865212fb704188bf2db70c49dc2ebb4d3ee60f1950020e45f87e89c34323d9f04a2ed73e11164dc783cc0ebf8fe
@@ -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
 
@@ -329,10 +332,11 @@ module Google
329
332
  # Customize the options with defaults
330
333
  metadata = @config.rpcs.list_queues.metadata.to_h
331
334
 
332
- # Set x-goog-api-client and x-goog-user-project headers
335
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
333
336
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
334
337
  lib_name: @config.lib_name, lib_version: @config.lib_version,
335
338
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
339
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
336
340
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
337
341
 
338
342
  header_params = {}
@@ -421,10 +425,11 @@ module Google
421
425
  # Customize the options with defaults
422
426
  metadata = @config.rpcs.get_queue.metadata.to_h
423
427
 
424
- # Set x-goog-api-client and x-goog-user-project headers
428
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
425
429
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
426
430
  lib_name: @config.lib_name, lib_version: @config.lib_version,
427
431
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
432
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
428
433
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
429
434
 
430
435
  header_params = {}
@@ -527,10 +532,11 @@ module Google
527
532
  # Customize the options with defaults
528
533
  metadata = @config.rpcs.create_queue.metadata.to_h
529
534
 
530
- # Set x-goog-api-client and x-goog-user-project headers
535
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
531
536
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
532
537
  lib_name: @config.lib_name, lib_version: @config.lib_version,
533
538
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
539
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
534
540
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
535
541
 
536
542
  header_params = {}
@@ -638,10 +644,11 @@ module Google
638
644
  # Customize the options with defaults
639
645
  metadata = @config.rpcs.update_queue.metadata.to_h
640
646
 
641
- # Set x-goog-api-client and x-goog-user-project headers
647
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
642
648
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
643
649
  lib_name: @config.lib_name, lib_version: @config.lib_version,
644
650
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
651
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
645
652
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
646
653
 
647
654
  header_params = {}
@@ -736,10 +743,11 @@ module Google
736
743
  # Customize the options with defaults
737
744
  metadata = @config.rpcs.delete_queue.metadata.to_h
738
745
 
739
- # Set x-goog-api-client and x-goog-user-project headers
746
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
740
747
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
741
748
  lib_name: @config.lib_name, lib_version: @config.lib_version,
742
749
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
750
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
743
751
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
744
752
 
745
753
  header_params = {}
@@ -827,10 +835,11 @@ module Google
827
835
  # Customize the options with defaults
828
836
  metadata = @config.rpcs.purge_queue.metadata.to_h
829
837
 
830
- # Set x-goog-api-client and x-goog-user-project headers
838
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
831
839
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
832
840
  lib_name: @config.lib_name, lib_version: @config.lib_version,
833
841
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
842
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
834
843
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
835
844
 
836
845
  header_params = {}
@@ -920,10 +929,11 @@ module Google
920
929
  # Customize the options with defaults
921
930
  metadata = @config.rpcs.pause_queue.metadata.to_h
922
931
 
923
- # Set x-goog-api-client and x-goog-user-project headers
932
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
924
933
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
925
934
  lib_name: @config.lib_name, lib_version: @config.lib_version,
926
935
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
936
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
927
937
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
928
938
 
929
939
  header_params = {}
@@ -1020,10 +1030,11 @@ module Google
1020
1030
  # Customize the options with defaults
1021
1031
  metadata = @config.rpcs.resume_queue.metadata.to_h
1022
1032
 
1023
- # Set x-goog-api-client and x-goog-user-project headers
1033
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1024
1034
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1025
1035
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1026
1036
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1037
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1027
1038
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1028
1039
 
1029
1040
  header_params = {}
@@ -1117,10 +1128,11 @@ module Google
1117
1128
  # Customize the options with defaults
1118
1129
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1119
1130
 
1120
- # Set x-goog-api-client and x-goog-user-project headers
1131
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1121
1132
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1122
1133
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1123
1134
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1135
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1124
1136
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1125
1137
 
1126
1138
  header_params = {}
@@ -1224,10 +1236,11 @@ module Google
1224
1236
  # Customize the options with defaults
1225
1237
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1226
1238
 
1227
- # Set x-goog-api-client and x-goog-user-project headers
1239
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1228
1240
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1229
1241
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1230
1242
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1243
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1231
1244
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1232
1245
 
1233
1246
  header_params = {}
@@ -1322,10 +1335,11 @@ module Google
1322
1335
  # Customize the options with defaults
1323
1336
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1324
1337
 
1325
- # Set x-goog-api-client and x-goog-user-project headers
1338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1326
1339
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1327
1340
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1328
1341
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1342
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1329
1343
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1330
1344
 
1331
1345
  header_params = {}
@@ -1453,10 +1467,11 @@ module Google
1453
1467
  # Customize the options with defaults
1454
1468
  metadata = @config.rpcs.list_tasks.metadata.to_h
1455
1469
 
1456
- # Set x-goog-api-client and x-goog-user-project headers
1470
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1457
1471
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1458
1472
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1459
1473
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1474
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1460
1475
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1461
1476
 
1462
1477
  header_params = {}
@@ -1554,10 +1569,11 @@ module Google
1554
1569
  # Customize the options with defaults
1555
1570
  metadata = @config.rpcs.get_task.metadata.to_h
1556
1571
 
1557
- # Set x-goog-api-client and x-goog-user-project headers
1572
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1558
1573
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1559
1574
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1560
1575
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1576
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1561
1577
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1562
1578
 
1563
1579
  header_params = {}
@@ -1694,10 +1710,11 @@ module Google
1694
1710
  # Customize the options with defaults
1695
1711
  metadata = @config.rpcs.create_task.metadata.to_h
1696
1712
 
1697
- # Set x-goog-api-client and x-goog-user-project headers
1713
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1698
1714
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1699
1715
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1700
1716
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1717
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1701
1718
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1702
1719
 
1703
1720
  header_params = {}
@@ -1784,10 +1801,11 @@ module Google
1784
1801
  # Customize the options with defaults
1785
1802
  metadata = @config.rpcs.delete_task.metadata.to_h
1786
1803
 
1787
- # Set x-goog-api-client and x-goog-user-project headers
1804
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1788
1805
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1789
1806
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1790
1807
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1808
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1791
1809
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1792
1810
 
1793
1811
  header_params = {}
@@ -1910,10 +1928,11 @@ module Google
1910
1928
  # Customize the options with defaults
1911
1929
  metadata = @config.rpcs.run_task.metadata.to_h
1912
1930
 
1913
- # Set x-goog-api-client and x-goog-user-project headers
1931
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1914
1932
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1915
1933
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1916
1934
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
1935
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1917
1936
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1918
1937
 
1919
1938
  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
 
@@ -322,12 +325,13 @@ module Google
322
325
  # Customize the options with defaults
323
326
  call_metadata = @config.rpcs.list_queues.metadata.to_h
324
327
 
325
- # Set x-goog-api-client and x-goog-user-project headers
328
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
326
329
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
327
330
  lib_name: @config.lib_name, lib_version: @config.lib_version,
328
331
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
329
332
  transports_version_send: [:rest]
330
333
 
334
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
331
335
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
332
336
 
333
337
  options.apply_defaults timeout: @config.rpcs.list_queues.timeout,
@@ -407,12 +411,13 @@ module Google
407
411
  # Customize the options with defaults
408
412
  call_metadata = @config.rpcs.get_queue.metadata.to_h
409
413
 
410
- # Set x-goog-api-client and x-goog-user-project headers
414
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
411
415
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
412
416
  lib_name: @config.lib_name, lib_version: @config.lib_version,
413
417
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
414
418
  transports_version_send: [:rest]
415
419
 
420
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
416
421
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
417
422
 
418
423
  options.apply_defaults timeout: @config.rpcs.get_queue.timeout,
@@ -506,12 +511,13 @@ module Google
506
511
  # Customize the options with defaults
507
512
  call_metadata = @config.rpcs.create_queue.metadata.to_h
508
513
 
509
- # Set x-goog-api-client and x-goog-user-project headers
514
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
510
515
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
511
516
  lib_name: @config.lib_name, lib_version: @config.lib_version,
512
517
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
513
518
  transports_version_send: [:rest]
514
519
 
520
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
515
521
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
516
522
 
517
523
  options.apply_defaults timeout: @config.rpcs.create_queue.timeout,
@@ -610,12 +616,13 @@ module Google
610
616
  # Customize the options with defaults
611
617
  call_metadata = @config.rpcs.update_queue.metadata.to_h
612
618
 
613
- # Set x-goog-api-client and x-goog-user-project headers
619
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
614
620
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
615
621
  lib_name: @config.lib_name, lib_version: @config.lib_version,
616
622
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
617
623
  transports_version_send: [:rest]
618
624
 
625
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
619
626
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
620
627
 
621
628
  options.apply_defaults timeout: @config.rpcs.update_queue.timeout,
@@ -701,12 +708,13 @@ module Google
701
708
  # Customize the options with defaults
702
709
  call_metadata = @config.rpcs.delete_queue.metadata.to_h
703
710
 
704
- # Set x-goog-api-client and x-goog-user-project headers
711
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
705
712
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
706
713
  lib_name: @config.lib_name, lib_version: @config.lib_version,
707
714
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
708
715
  transports_version_send: [:rest]
709
716
 
717
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
710
718
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
711
719
 
712
720
  options.apply_defaults timeout: @config.rpcs.delete_queue.timeout,
@@ -785,12 +793,13 @@ module Google
785
793
  # Customize the options with defaults
786
794
  call_metadata = @config.rpcs.purge_queue.metadata.to_h
787
795
 
788
- # Set x-goog-api-client and x-goog-user-project headers
796
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
789
797
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
790
798
  lib_name: @config.lib_name, lib_version: @config.lib_version,
791
799
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
792
800
  transports_version_send: [:rest]
793
801
 
802
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
794
803
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
795
804
 
796
805
  options.apply_defaults timeout: @config.rpcs.purge_queue.timeout,
@@ -871,12 +880,13 @@ module Google
871
880
  # Customize the options with defaults
872
881
  call_metadata = @config.rpcs.pause_queue.metadata.to_h
873
882
 
874
- # Set x-goog-api-client and x-goog-user-project headers
883
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
875
884
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
876
885
  lib_name: @config.lib_name, lib_version: @config.lib_version,
877
886
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
878
887
  transports_version_send: [:rest]
879
888
 
889
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
880
890
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
881
891
 
882
892
  options.apply_defaults timeout: @config.rpcs.pause_queue.timeout,
@@ -964,12 +974,13 @@ module Google
964
974
  # Customize the options with defaults
965
975
  call_metadata = @config.rpcs.resume_queue.metadata.to_h
966
976
 
967
- # Set x-goog-api-client and x-goog-user-project headers
977
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
968
978
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
969
979
  lib_name: @config.lib_name, lib_version: @config.lib_version,
970
980
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
971
981
  transports_version_send: [:rest]
972
982
 
983
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
973
984
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
974
985
 
975
986
  options.apply_defaults timeout: @config.rpcs.resume_queue.timeout,
@@ -1054,12 +1065,13 @@ module Google
1054
1065
  # Customize the options with defaults
1055
1066
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
1056
1067
 
1057
- # Set x-goog-api-client and x-goog-user-project headers
1068
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1058
1069
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1059
1070
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1060
1071
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
1061
1072
  transports_version_send: [:rest]
1062
1073
 
1074
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1063
1075
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1064
1076
 
1065
1077
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -1154,12 +1166,13 @@ module Google
1154
1166
  # Customize the options with defaults
1155
1167
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1156
1168
 
1157
- # Set x-goog-api-client and x-goog-user-project headers
1169
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1158
1170
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1159
1171
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1160
1172
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
1161
1173
  transports_version_send: [:rest]
1162
1174
 
1175
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1163
1176
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1164
1177
 
1165
1178
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1245,12 +1258,13 @@ module Google
1245
1258
  # Customize the options with defaults
1246
1259
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1247
1260
 
1248
- # Set x-goog-api-client and x-goog-user-project headers
1261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1249
1262
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1250
1263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1251
1264
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
1252
1265
  transports_version_send: [:rest]
1253
1266
 
1267
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1254
1268
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1255
1269
 
1256
1270
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -1369,12 +1383,13 @@ module Google
1369
1383
  # Customize the options with defaults
1370
1384
  call_metadata = @config.rpcs.list_tasks.metadata.to_h
1371
1385
 
1372
- # Set x-goog-api-client and x-goog-user-project headers
1386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1373
1387
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1374
1388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1375
1389
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
1376
1390
  transports_version_send: [:rest]
1377
1391
 
1392
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1378
1393
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1379
1394
 
1380
1395
  options.apply_defaults timeout: @config.rpcs.list_tasks.timeout,
@@ -1463,12 +1478,13 @@ module Google
1463
1478
  # Customize the options with defaults
1464
1479
  call_metadata = @config.rpcs.get_task.metadata.to_h
1465
1480
 
1466
- # Set x-goog-api-client and x-goog-user-project headers
1481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1467
1482
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1468
1483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1469
1484
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
1470
1485
  transports_version_send: [:rest]
1471
1486
 
1487
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1472
1488
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1473
1489
 
1474
1490
  options.apply_defaults timeout: @config.rpcs.get_task.timeout,
@@ -1596,12 +1612,13 @@ module Google
1596
1612
  # Customize the options with defaults
1597
1613
  call_metadata = @config.rpcs.create_task.metadata.to_h
1598
1614
 
1599
- # Set x-goog-api-client and x-goog-user-project headers
1615
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1600
1616
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1601
1617
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1602
1618
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
1603
1619
  transports_version_send: [:rest]
1604
1620
 
1621
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1605
1622
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1606
1623
 
1607
1624
  options.apply_defaults timeout: @config.rpcs.create_task.timeout,
@@ -1679,12 +1696,13 @@ module Google
1679
1696
  # Customize the options with defaults
1680
1697
  call_metadata = @config.rpcs.delete_task.metadata.to_h
1681
1698
 
1682
- # Set x-goog-api-client and x-goog-user-project headers
1699
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1683
1700
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1684
1701
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1685
1702
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
1686
1703
  transports_version_send: [:rest]
1687
1704
 
1705
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1688
1706
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1689
1707
 
1690
1708
  options.apply_defaults timeout: @config.rpcs.delete_task.timeout,
@@ -1798,12 +1816,13 @@ module Google
1798
1816
  # Customize the options with defaults
1799
1817
  call_metadata = @config.rpcs.run_task.metadata.to_h
1800
1818
 
1801
- # Set x-goog-api-client and x-goog-user-project headers
1819
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1802
1820
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1803
1821
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1804
1822
  gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
1805
1823
  transports_version_send: [:rest]
1806
1824
 
1825
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1807
1826
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1808
1827
 
1809
1828
  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 V2beta3
24
- VERSION = "0.13.0"
24
+ VERSION = "0.13.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-v2beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.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