google-cloud-secret_manager-v1beta2 0.1.0 → 0.1.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: '08bbd9841c94370763d21364b8bb1e8dc282de2ee5800982bec18e24a2e54d9f'
4
- data.tar.gz: dfdff56d64c18ed1c5c5314e21301c43b1a28058a178fdbb432ecfcafa86a10f
3
+ metadata.gz: 36a4e02b234039223ef1e12e664f52203e7b26cd34ceba6bdb66ed3d488df6e4
4
+ data.tar.gz: '0655509406ff2f78da83cb1dc1bc99dd0a4b475a30f4978fc53fb2fb2cd2f892'
5
5
  SHA512:
6
- metadata.gz: 1b737c61a86284f65628196aba6c5210379d31197c005fcca4adb6bc6dd96470021de678e61a3aa5a14db76e1200da06cebbe104cd98222b64d6433f005fff04
7
- data.tar.gz: 8ea346614e8c389030bb741c1877494a370f1582c08af7475a050c737e6aeb54f5c5eba78265f6e3e28f4b87f23f27b64a87550034d71c25e9a216072b5f7640
6
+ metadata.gz: 0b20585beb16243148f9aefc8df438bc3a063bab3dad7068cbc30faf46cd6a7bd1272fe3a302f5cfed15b9526df20b727116bdf939f32222f942d78fab57e69f
7
+ data.tar.gz: cba09c8b9a37e06633c6447300a004f743f908cd2972214e4a349c59e31eafbd320190df6edb067458f20a2386727d346a82382e927b3795f5a146e7282751b2
@@ -37,6 +37,9 @@ module Google
37
37
  # * {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion}
38
38
  #
39
39
  class Client
40
+ # @private
41
+ API_VERSION = ""
42
+
40
43
  # @private
41
44
  DEFAULT_ENDPOINT_TEMPLATE = "secretmanager.$UNIVERSE_DOMAIN$"
42
45
 
@@ -288,10 +291,11 @@ module Google
288
291
  # Customize the options with defaults
289
292
  metadata = @config.rpcs.list_secrets.metadata.to_h
290
293
 
291
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
292
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
293
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
294
297
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
295
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
296
300
 
297
301
  header_params = {}
@@ -387,10 +391,11 @@ module Google
387
391
  # Customize the options with defaults
388
392
  metadata = @config.rpcs.create_secret.metadata.to_h
389
393
 
390
- # Set x-goog-api-client and x-goog-user-project headers
394
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
391
395
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
392
396
  lib_name: @config.lib_name, lib_version: @config.lib_version,
393
397
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
398
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
394
399
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
395
400
 
396
401
  header_params = {}
@@ -481,10 +486,11 @@ module Google
481
486
  # Customize the options with defaults
482
487
  metadata = @config.rpcs.add_secret_version.metadata.to_h
483
488
 
484
- # Set x-goog-api-client and x-goog-user-project headers
489
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
485
490
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
486
491
  lib_name: @config.lib_name, lib_version: @config.lib_version,
487
492
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
493
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
488
494
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
489
495
 
490
496
  header_params = {}
@@ -569,10 +575,11 @@ module Google
569
575
  # Customize the options with defaults
570
576
  metadata = @config.rpcs.get_secret.metadata.to_h
571
577
 
572
- # Set x-goog-api-client and x-goog-user-project headers
578
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
573
579
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
574
580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
575
581
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
582
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
576
583
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
577
584
 
578
585
  header_params = {}
@@ -658,10 +665,11 @@ module Google
658
665
  # Customize the options with defaults
659
666
  metadata = @config.rpcs.update_secret.metadata.to_h
660
667
 
661
- # Set x-goog-api-client and x-goog-user-project headers
668
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
662
669
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
663
670
  lib_name: @config.lib_name, lib_version: @config.lib_version,
664
671
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
672
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
665
673
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
666
674
 
667
675
  header_params = {}
@@ -749,10 +757,11 @@ module Google
749
757
  # Customize the options with defaults
750
758
  metadata = @config.rpcs.delete_secret.metadata.to_h
751
759
 
752
- # Set x-goog-api-client and x-goog-user-project headers
760
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
753
761
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
754
762
  lib_name: @config.lib_name, lib_version: @config.lib_version,
755
763
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
764
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
756
765
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
757
766
 
758
767
  header_params = {}
@@ -855,10 +864,11 @@ module Google
855
864
  # Customize the options with defaults
856
865
  metadata = @config.rpcs.list_secret_versions.metadata.to_h
857
866
 
858
- # Set x-goog-api-client and x-goog-user-project headers
867
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
859
868
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
860
869
  lib_name: @config.lib_name, lib_version: @config.lib_version,
861
870
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
871
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
862
872
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
863
873
 
864
874
  header_params = {}
@@ -953,10 +963,11 @@ module Google
953
963
  # Customize the options with defaults
954
964
  metadata = @config.rpcs.get_secret_version.metadata.to_h
955
965
 
956
- # Set x-goog-api-client and x-goog-user-project headers
966
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
957
967
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
958
968
  lib_name: @config.lib_name, lib_version: @config.lib_version,
959
969
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
970
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
960
971
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
961
972
 
962
973
  header_params = {}
@@ -1051,10 +1062,11 @@ module Google
1051
1062
  # Customize the options with defaults
1052
1063
  metadata = @config.rpcs.access_secret_version.metadata.to_h
1053
1064
 
1054
- # Set x-goog-api-client and x-goog-user-project headers
1065
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1055
1066
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1056
1067
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1057
1068
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
1069
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1058
1070
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1059
1071
 
1060
1072
  header_params = {}
@@ -1149,10 +1161,11 @@ module Google
1149
1161
  # Customize the options with defaults
1150
1162
  metadata = @config.rpcs.disable_secret_version.metadata.to_h
1151
1163
 
1152
- # Set x-goog-api-client and x-goog-user-project headers
1164
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1153
1165
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1154
1166
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1155
1167
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
1168
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1156
1169
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1157
1170
 
1158
1171
  header_params = {}
@@ -1247,10 +1260,11 @@ module Google
1247
1260
  # Customize the options with defaults
1248
1261
  metadata = @config.rpcs.enable_secret_version.metadata.to_h
1249
1262
 
1250
- # Set x-goog-api-client and x-goog-user-project headers
1263
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1251
1264
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1252
1265
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1253
1266
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
1267
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1254
1268
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1255
1269
 
1256
1270
  header_params = {}
@@ -1346,10 +1360,11 @@ module Google
1346
1360
  # Customize the options with defaults
1347
1361
  metadata = @config.rpcs.destroy_secret_version.metadata.to_h
1348
1362
 
1349
- # Set x-goog-api-client and x-goog-user-project headers
1363
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1350
1364
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1351
1365
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1352
1366
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
1367
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1353
1368
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1354
1369
 
1355
1370
  header_params = {}
@@ -1449,10 +1464,11 @@ module Google
1449
1464
  # Customize the options with defaults
1450
1465
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1451
1466
 
1452
- # Set x-goog-api-client and x-goog-user-project headers
1467
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1453
1468
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1454
1469
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1455
1470
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
1471
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1456
1472
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1457
1473
 
1458
1474
  header_params = {}
@@ -1539,10 +1555,11 @@ module Google
1539
1555
  # Customize the options with defaults
1540
1556
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1541
1557
 
1542
- # Set x-goog-api-client and x-goog-user-project headers
1558
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1543
1559
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1544
1560
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1545
1561
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
1562
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1546
1563
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1547
1564
 
1548
1565
  header_params = {}
@@ -1636,10 +1653,11 @@ module Google
1636
1653
  # Customize the options with defaults
1637
1654
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1638
1655
 
1639
- # Set x-goog-api-client and x-goog-user-project headers
1656
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1640
1657
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1641
1658
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1642
1659
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION
1660
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1643
1661
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1644
1662
 
1645
1663
  header_params = {}
@@ -39,6 +39,9 @@ module Google
39
39
  # * {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion}
40
40
  #
41
41
  class Client
42
+ # @private
43
+ API_VERSION = ""
44
+
42
45
  # @private
43
46
  DEFAULT_ENDPOINT_TEMPLATE = "secretmanager.$UNIVERSE_DOMAIN$"
44
47
 
@@ -281,12 +284,13 @@ module Google
281
284
  # Customize the options with defaults
282
285
  call_metadata = @config.rpcs.list_secrets.metadata.to_h
283
286
 
284
- # Set x-goog-api-client and x-goog-user-project headers
287
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
285
288
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
286
289
  lib_name: @config.lib_name, lib_version: @config.lib_version,
287
290
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
288
291
  transports_version_send: [:rest]
289
292
 
293
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
290
294
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
291
295
 
292
296
  options.apply_defaults timeout: @config.rpcs.list_secrets.timeout,
@@ -373,12 +377,13 @@ module Google
373
377
  # Customize the options with defaults
374
378
  call_metadata = @config.rpcs.create_secret.metadata.to_h
375
379
 
376
- # Set x-goog-api-client and x-goog-user-project headers
380
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
377
381
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
378
382
  lib_name: @config.lib_name, lib_version: @config.lib_version,
379
383
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
380
384
  transports_version_send: [:rest]
381
385
 
386
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
382
387
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
388
 
384
389
  options.apply_defaults timeout: @config.rpcs.create_secret.timeout,
@@ -460,12 +465,13 @@ module Google
460
465
  # Customize the options with defaults
461
466
  call_metadata = @config.rpcs.add_secret_version.metadata.to_h
462
467
 
463
- # Set x-goog-api-client and x-goog-user-project headers
468
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
464
469
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
465
470
  lib_name: @config.lib_name, lib_version: @config.lib_version,
466
471
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
467
472
  transports_version_send: [:rest]
468
473
 
474
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
469
475
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
470
476
 
471
477
  options.apply_defaults timeout: @config.rpcs.add_secret_version.timeout,
@@ -541,12 +547,13 @@ module Google
541
547
  # Customize the options with defaults
542
548
  call_metadata = @config.rpcs.get_secret.metadata.to_h
543
549
 
544
- # Set x-goog-api-client and x-goog-user-project headers
550
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
545
551
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
546
552
  lib_name: @config.lib_name, lib_version: @config.lib_version,
547
553
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
548
554
  transports_version_send: [:rest]
549
555
 
556
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
550
557
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
551
558
 
552
559
  options.apply_defaults timeout: @config.rpcs.get_secret.timeout,
@@ -623,12 +630,13 @@ module Google
623
630
  # Customize the options with defaults
624
631
  call_metadata = @config.rpcs.update_secret.metadata.to_h
625
632
 
626
- # Set x-goog-api-client and x-goog-user-project headers
633
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
627
634
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
628
635
  lib_name: @config.lib_name, lib_version: @config.lib_version,
629
636
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
630
637
  transports_version_send: [:rest]
631
638
 
639
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
632
640
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
633
641
 
634
642
  options.apply_defaults timeout: @config.rpcs.update_secret.timeout,
@@ -707,12 +715,13 @@ module Google
707
715
  # Customize the options with defaults
708
716
  call_metadata = @config.rpcs.delete_secret.metadata.to_h
709
717
 
710
- # Set x-goog-api-client and x-goog-user-project headers
718
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
711
719
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
712
720
  lib_name: @config.lib_name, lib_version: @config.lib_version,
713
721
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
714
722
  transports_version_send: [:rest]
715
723
 
724
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
716
725
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
717
726
 
718
727
  options.apply_defaults timeout: @config.rpcs.delete_secret.timeout,
@@ -806,12 +815,13 @@ module Google
806
815
  # Customize the options with defaults
807
816
  call_metadata = @config.rpcs.list_secret_versions.metadata.to_h
808
817
 
809
- # Set x-goog-api-client and x-goog-user-project headers
818
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
810
819
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
811
820
  lib_name: @config.lib_name, lib_version: @config.lib_version,
812
821
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
813
822
  transports_version_send: [:rest]
814
823
 
824
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
815
825
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
816
826
 
817
827
  options.apply_defaults timeout: @config.rpcs.list_secret_versions.timeout,
@@ -897,12 +907,13 @@ module Google
897
907
  # Customize the options with defaults
898
908
  call_metadata = @config.rpcs.get_secret_version.metadata.to_h
899
909
 
900
- # Set x-goog-api-client and x-goog-user-project headers
910
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
901
911
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
902
912
  lib_name: @config.lib_name, lib_version: @config.lib_version,
903
913
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
904
914
  transports_version_send: [:rest]
905
915
 
916
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
906
917
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
907
918
 
908
919
  options.apply_defaults timeout: @config.rpcs.get_secret_version.timeout,
@@ -988,12 +999,13 @@ module Google
988
999
  # Customize the options with defaults
989
1000
  call_metadata = @config.rpcs.access_secret_version.metadata.to_h
990
1001
 
991
- # Set x-goog-api-client and x-goog-user-project headers
1002
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
992
1003
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
993
1004
  lib_name: @config.lib_name, lib_version: @config.lib_version,
994
1005
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
995
1006
  transports_version_send: [:rest]
996
1007
 
1008
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
997
1009
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
998
1010
 
999
1011
  options.apply_defaults timeout: @config.rpcs.access_secret_version.timeout,
@@ -1079,12 +1091,13 @@ module Google
1079
1091
  # Customize the options with defaults
1080
1092
  call_metadata = @config.rpcs.disable_secret_version.metadata.to_h
1081
1093
 
1082
- # Set x-goog-api-client and x-goog-user-project headers
1094
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1083
1095
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1084
1096
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1085
1097
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
1086
1098
  transports_version_send: [:rest]
1087
1099
 
1100
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1088
1101
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1089
1102
 
1090
1103
  options.apply_defaults timeout: @config.rpcs.disable_secret_version.timeout,
@@ -1170,12 +1183,13 @@ module Google
1170
1183
  # Customize the options with defaults
1171
1184
  call_metadata = @config.rpcs.enable_secret_version.metadata.to_h
1172
1185
 
1173
- # Set x-goog-api-client and x-goog-user-project headers
1186
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1174
1187
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1175
1188
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1176
1189
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
1177
1190
  transports_version_send: [:rest]
1178
1191
 
1192
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1179
1193
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1180
1194
 
1181
1195
  options.apply_defaults timeout: @config.rpcs.enable_secret_version.timeout,
@@ -1262,12 +1276,13 @@ module Google
1262
1276
  # Customize the options with defaults
1263
1277
  call_metadata = @config.rpcs.destroy_secret_version.metadata.to_h
1264
1278
 
1265
- # Set x-goog-api-client and x-goog-user-project headers
1279
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1266
1280
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1267
1281
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1268
1282
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
1269
1283
  transports_version_send: [:rest]
1270
1284
 
1285
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1271
1286
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1272
1287
 
1273
1288
  options.apply_defaults timeout: @config.rpcs.destroy_secret_version.timeout,
@@ -1358,12 +1373,13 @@ module Google
1358
1373
  # Customize the options with defaults
1359
1374
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1360
1375
 
1361
- # Set x-goog-api-client and x-goog-user-project headers
1376
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1362
1377
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1363
1378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1364
1379
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
1365
1380
  transports_version_send: [:rest]
1366
1381
 
1382
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1367
1383
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1368
1384
 
1369
1385
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1441,12 +1457,13 @@ module Google
1441
1457
  # Customize the options with defaults
1442
1458
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
1443
1459
 
1444
- # Set x-goog-api-client and x-goog-user-project headers
1460
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1445
1461
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1446
1462
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1447
1463
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
1448
1464
  transports_version_send: [:rest]
1449
1465
 
1466
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1450
1467
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1451
1468
 
1452
1469
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -1531,12 +1548,13 @@ module Google
1531
1548
  # Customize the options with defaults
1532
1549
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1533
1550
 
1534
- # Set x-goog-api-client and x-goog-user-project headers
1551
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1535
1552
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1536
1553
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1537
1554
  gapic_version: ::Google::Cloud::SecretManager::V1beta2::VERSION,
1538
1555
  transports_version_send: [:rest]
1539
1556
 
1557
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1540
1558
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1541
1559
 
1542
1560
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1beta2
24
- VERSION = "0.1.0"
24
+ VERSION = "0.1.1"
25
25
  end
26
26
  end
27
27
  end
@@ -196,9 +196,26 @@ module Google
196
196
  # @!attribute [rw] common
197
197
  # @return [::Google::Api::CommonLanguageSettings]
198
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
199
202
  class PythonSettings
200
203
  include ::Google::Protobuf::MessageExts
201
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
202
219
  end
203
220
 
204
221
  # Settings for Node client libraries.
@@ -290,6 +307,13 @@ module Google
290
307
  # @return [::String]
291
308
  # The fully qualified name of the method, for which the options below apply.
292
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...
293
317
  # @!attribute [rw] long_running
294
318
  # @return [::Google::Api::MethodSettings::LongRunning]
295
319
  # Describes settings to use for long-running operations when generating
@@ -298,17 +322,14 @@ module Google
298
322
  #
299
323
  # Example of a YAML configuration::
300
324
  #
301
- # publishing:
302
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
303
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
304
328
  # long_running:
305
- # initial_poll_delay:
306
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
307
330
  # poll_delay_multiplier: 1.5
308
- # max_poll_delay:
309
- # seconds: 360 # 6 minutes
310
- # total_poll_timeout:
311
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
312
333
  # @!attribute [rw] auto_populated_fields
313
334
  # @return [::Array<::String>]
314
335
  # List of top-level fields of the request message, that should be
@@ -317,8 +338,8 @@ module Google
317
338
  #
318
339
  # Example of a YAML configuration:
319
340
  #
320
- # publishing:
321
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
322
343
  # - selector: google.example.v1.ExampleService.CreateExample
323
344
  # auto_populated_fields:
324
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-secret_manager-v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.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-03-25 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