google-cloud-secret_manager-v1beta1 0.15.0 → 0.15.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: 22743a2ec018f7b2dcd852abca99465492c01971b495c8e17e494aa19e403ad0
4
- data.tar.gz: 93dc94222203bdceffc0112d080f2b6395b6334860230b4013571a757de20f10
3
+ metadata.gz: 235899af41445cde03889ed86f457fd0316c17245802f30d7a575b3bf821b04e
4
+ data.tar.gz: eb1e006a6588d02669975026abb7a7e356995cb1c06a9952540e9f1ac2f80256
5
5
  SHA512:
6
- metadata.gz: 51918677d332c685f62450ac8a7de562dda9951c6a03c2e9742eeefa1e2e9478961790825e1e710c27048b026911eb7b15dc3af778b167261f19ce736c8af9ce
7
- data.tar.gz: 7c27e0d308e192a7c09cc1c67d859db9a09dbf2082198814d6d911b72415620cf9b7e7cd98935448d4853f491c06b51a002d146aff1ba4e2f4f4c9690d9acacb
6
+ metadata.gz: c5b2eb84acb63dbcbba0543885d35b2ad2df5f997b7f4869ddf88218a7de401eeb6a8a6ebcbe7bbadef721150f94536c8ce4ecf7dbef75c39cdfef01bf0b12b0
7
+ data.tar.gz: a03e87bbc6a649db29f3253e33926fc59ecbdddea37ce69af1c4681def2df8fa327974b24ae8b8ffe736a54129a99f1bb5c6a822778effe92e9a978205366755
@@ -36,6 +36,9 @@ module Google
36
36
  # * {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "secretmanager.$UNIVERSE_DOMAIN$"
41
44
 
@@ -266,10 +269,11 @@ module Google
266
269
  # Customize the options with defaults
267
270
  metadata = @config.rpcs.list_secrets.metadata.to_h
268
271
 
269
- # Set x-goog-api-client and x-goog-user-project headers
272
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
270
273
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
271
274
  lib_name: @config.lib_name, lib_version: @config.lib_version,
272
275
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
276
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
273
277
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
274
278
 
275
279
  header_params = {}
@@ -361,10 +365,11 @@ module Google
361
365
  # Customize the options with defaults
362
366
  metadata = @config.rpcs.create_secret.metadata.to_h
363
367
 
364
- # Set x-goog-api-client and x-goog-user-project headers
368
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
365
369
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
366
370
  lib_name: @config.lib_name, lib_version: @config.lib_version,
367
371
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
372
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
368
373
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
369
374
 
370
375
  header_params = {}
@@ -450,10 +455,11 @@ module Google
450
455
  # Customize the options with defaults
451
456
  metadata = @config.rpcs.add_secret_version.metadata.to_h
452
457
 
453
- # Set x-goog-api-client and x-goog-user-project headers
458
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
454
459
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
455
460
  lib_name: @config.lib_name, lib_version: @config.lib_version,
456
461
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
462
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
457
463
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
458
464
 
459
465
  header_params = {}
@@ -535,10 +541,11 @@ module Google
535
541
  # Customize the options with defaults
536
542
  metadata = @config.rpcs.get_secret.metadata.to_h
537
543
 
538
- # Set x-goog-api-client and x-goog-user-project headers
544
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
539
545
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
540
546
  lib_name: @config.lib_name, lib_version: @config.lib_version,
541
547
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
548
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
542
549
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
543
550
 
544
551
  header_params = {}
@@ -622,10 +629,11 @@ module Google
622
629
  # Customize the options with defaults
623
630
  metadata = @config.rpcs.update_secret.metadata.to_h
624
631
 
625
- # Set x-goog-api-client and x-goog-user-project headers
632
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
626
633
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
627
634
  lib_name: @config.lib_name, lib_version: @config.lib_version,
628
635
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
636
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
629
637
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
630
638
 
631
639
  header_params = {}
@@ -708,10 +716,11 @@ module Google
708
716
  # Customize the options with defaults
709
717
  metadata = @config.rpcs.delete_secret.metadata.to_h
710
718
 
711
- # 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
712
720
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
713
721
  lib_name: @config.lib_name, lib_version: @config.lib_version,
714
722
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
723
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
715
724
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
716
725
 
717
726
  header_params = {}
@@ -807,10 +816,11 @@ module Google
807
816
  # Customize the options with defaults
808
817
  metadata = @config.rpcs.list_secret_versions.metadata.to_h
809
818
 
810
- # Set x-goog-api-client and x-goog-user-project headers
819
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
811
820
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
812
821
  lib_name: @config.lib_name, lib_version: @config.lib_version,
813
822
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
823
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
814
824
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
815
825
 
816
826
  header_params = {}
@@ -899,10 +909,11 @@ module Google
899
909
  # Customize the options with defaults
900
910
  metadata = @config.rpcs.get_secret_version.metadata.to_h
901
911
 
902
- # Set x-goog-api-client and x-goog-user-project headers
912
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
903
913
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
904
914
  lib_name: @config.lib_name, lib_version: @config.lib_version,
905
915
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
916
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
906
917
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
907
918
 
908
919
  header_params = {}
@@ -988,10 +999,11 @@ module Google
988
999
  # Customize the options with defaults
989
1000
  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
  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::V1beta1::VERSION
1006
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
995
1007
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
996
1008
 
997
1009
  header_params = {}
@@ -1077,10 +1089,11 @@ module Google
1077
1089
  # Customize the options with defaults
1078
1090
  metadata = @config.rpcs.disable_secret_version.metadata.to_h
1079
1091
 
1080
- # Set x-goog-api-client and x-goog-user-project headers
1092
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1081
1093
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1082
1094
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1083
1095
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1096
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1084
1097
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1085
1098
 
1086
1099
  header_params = {}
@@ -1166,10 +1179,11 @@ module Google
1166
1179
  # Customize the options with defaults
1167
1180
  metadata = @config.rpcs.enable_secret_version.metadata.to_h
1168
1181
 
1169
- # Set x-goog-api-client and x-goog-user-project headers
1182
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1170
1183
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1171
1184
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1172
1185
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1186
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1173
1187
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1174
1188
 
1175
1189
  header_params = {}
@@ -1256,10 +1270,11 @@ module Google
1256
1270
  # Customize the options with defaults
1257
1271
  metadata = @config.rpcs.destroy_secret_version.metadata.to_h
1258
1272
 
1259
- # Set x-goog-api-client and x-goog-user-project headers
1273
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1260
1274
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1261
1275
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1262
1276
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1277
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1263
1278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1264
1279
 
1265
1280
  header_params = {}
@@ -1357,10 +1372,11 @@ module Google
1357
1372
  # Customize the options with defaults
1358
1373
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1359
1374
 
1360
- # Set x-goog-api-client and x-goog-user-project headers
1375
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1361
1376
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1362
1377
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1363
1378
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1379
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1364
1380
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1365
1381
 
1366
1382
  header_params = {}
@@ -1447,10 +1463,11 @@ module Google
1447
1463
  # Customize the options with defaults
1448
1464
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1449
1465
 
1450
- # Set x-goog-api-client and x-goog-user-project headers
1466
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1451
1467
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1452
1468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1453
1469
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1470
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1454
1471
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1455
1472
 
1456
1473
  header_params = {}
@@ -1544,10 +1561,11 @@ module Google
1544
1561
  # Customize the options with defaults
1545
1562
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1546
1563
 
1547
- # Set x-goog-api-client and x-goog-user-project headers
1564
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1548
1565
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1549
1566
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1550
1567
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1568
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1551
1569
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1552
1570
 
1553
1571
  header_params = {}
@@ -38,6 +38,9 @@ module Google
38
38
  # * {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}
39
39
  #
40
40
  class Client
41
+ # @private
42
+ API_VERSION = ""
43
+
41
44
  # @private
42
45
  DEFAULT_ENDPOINT_TEMPLATE = "secretmanager.$UNIVERSE_DOMAIN$"
43
46
 
@@ -258,12 +261,13 @@ module Google
258
261
  # Customize the options with defaults
259
262
  call_metadata = @config.rpcs.list_secrets.metadata.to_h
260
263
 
261
- # Set x-goog-api-client and x-goog-user-project headers
264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
262
265
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
263
266
  lib_name: @config.lib_name, lib_version: @config.lib_version,
264
267
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
265
268
  transports_version_send: [:rest]
266
269
 
270
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
271
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
272
 
269
273
  options.apply_defaults timeout: @config.rpcs.list_secrets.timeout,
@@ -346,12 +350,13 @@ module Google
346
350
  # Customize the options with defaults
347
351
  call_metadata = @config.rpcs.create_secret.metadata.to_h
348
352
 
349
- # Set x-goog-api-client and x-goog-user-project headers
353
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
350
354
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
351
355
  lib_name: @config.lib_name, lib_version: @config.lib_version,
352
356
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
353
357
  transports_version_send: [:rest]
354
358
 
359
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
355
360
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
356
361
 
357
362
  options.apply_defaults timeout: @config.rpcs.create_secret.timeout,
@@ -428,12 +433,13 @@ module Google
428
433
  # Customize the options with defaults
429
434
  call_metadata = @config.rpcs.add_secret_version.metadata.to_h
430
435
 
431
- # Set x-goog-api-client and x-goog-user-project headers
436
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
432
437
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
433
438
  lib_name: @config.lib_name, lib_version: @config.lib_version,
434
439
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
435
440
  transports_version_send: [:rest]
436
441
 
442
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
437
443
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
438
444
 
439
445
  options.apply_defaults timeout: @config.rpcs.add_secret_version.timeout,
@@ -506,12 +512,13 @@ module Google
506
512
  # Customize the options with defaults
507
513
  call_metadata = @config.rpcs.get_secret.metadata.to_h
508
514
 
509
- # Set x-goog-api-client and x-goog-user-project headers
515
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
510
516
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
511
517
  lib_name: @config.lib_name, lib_version: @config.lib_version,
512
518
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
513
519
  transports_version_send: [:rest]
514
520
 
521
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
515
522
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
516
523
 
517
524
  options.apply_defaults timeout: @config.rpcs.get_secret.timeout,
@@ -586,12 +593,13 @@ module Google
586
593
  # Customize the options with defaults
587
594
  call_metadata = @config.rpcs.update_secret.metadata.to_h
588
595
 
589
- # Set x-goog-api-client and x-goog-user-project headers
596
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
590
597
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
591
598
  lib_name: @config.lib_name, lib_version: @config.lib_version,
592
599
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
593
600
  transports_version_send: [:rest]
594
601
 
602
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
595
603
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
596
604
 
597
605
  options.apply_defaults timeout: @config.rpcs.update_secret.timeout,
@@ -665,12 +673,13 @@ module Google
665
673
  # Customize the options with defaults
666
674
  call_metadata = @config.rpcs.delete_secret.metadata.to_h
667
675
 
668
- # Set x-goog-api-client and x-goog-user-project headers
676
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
669
677
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
670
678
  lib_name: @config.lib_name, lib_version: @config.lib_version,
671
679
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
672
680
  transports_version_send: [:rest]
673
681
 
682
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
674
683
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
675
684
 
676
685
  options.apply_defaults timeout: @config.rpcs.delete_secret.timeout,
@@ -757,12 +766,13 @@ module Google
757
766
  # Customize the options with defaults
758
767
  call_metadata = @config.rpcs.list_secret_versions.metadata.to_h
759
768
 
760
- # Set x-goog-api-client and x-goog-user-project headers
769
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
761
770
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
762
771
  lib_name: @config.lib_name, lib_version: @config.lib_version,
763
772
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
764
773
  transports_version_send: [:rest]
765
774
 
775
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
766
776
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
767
777
 
768
778
  options.apply_defaults timeout: @config.rpcs.list_secret_versions.timeout,
@@ -842,12 +852,13 @@ module Google
842
852
  # Customize the options with defaults
843
853
  call_metadata = @config.rpcs.get_secret_version.metadata.to_h
844
854
 
845
- # Set x-goog-api-client and x-goog-user-project headers
855
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
846
856
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
847
857
  lib_name: @config.lib_name, lib_version: @config.lib_version,
848
858
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
849
859
  transports_version_send: [:rest]
850
860
 
861
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
851
862
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
852
863
 
853
864
  options.apply_defaults timeout: @config.rpcs.get_secret_version.timeout,
@@ -924,12 +935,13 @@ module Google
924
935
  # Customize the options with defaults
925
936
  call_metadata = @config.rpcs.access_secret_version.metadata.to_h
926
937
 
927
- # Set x-goog-api-client and x-goog-user-project headers
938
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
928
939
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
929
940
  lib_name: @config.lib_name, lib_version: @config.lib_version,
930
941
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
931
942
  transports_version_send: [:rest]
932
943
 
944
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
933
945
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
934
946
 
935
947
  options.apply_defaults timeout: @config.rpcs.access_secret_version.timeout,
@@ -1006,12 +1018,13 @@ module Google
1006
1018
  # Customize the options with defaults
1007
1019
  call_metadata = @config.rpcs.disable_secret_version.metadata.to_h
1008
1020
 
1009
- # Set x-goog-api-client and x-goog-user-project headers
1021
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1010
1022
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1011
1023
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1012
1024
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
1013
1025
  transports_version_send: [:rest]
1014
1026
 
1027
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1015
1028
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1016
1029
 
1017
1030
  options.apply_defaults timeout: @config.rpcs.disable_secret_version.timeout,
@@ -1088,12 +1101,13 @@ module Google
1088
1101
  # Customize the options with defaults
1089
1102
  call_metadata = @config.rpcs.enable_secret_version.metadata.to_h
1090
1103
 
1091
- # Set x-goog-api-client and x-goog-user-project headers
1104
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1092
1105
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1093
1106
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1094
1107
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
1095
1108
  transports_version_send: [:rest]
1096
1109
 
1110
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1097
1111
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1098
1112
 
1099
1113
  options.apply_defaults timeout: @config.rpcs.enable_secret_version.timeout,
@@ -1171,12 +1185,13 @@ module Google
1171
1185
  # Customize the options with defaults
1172
1186
  call_metadata = @config.rpcs.destroy_secret_version.metadata.to_h
1173
1187
 
1174
- # Set x-goog-api-client and x-goog-user-project headers
1188
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1175
1189
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1176
1190
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1177
1191
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
1178
1192
  transports_version_send: [:rest]
1179
1193
 
1194
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1180
1195
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1181
1196
 
1182
1197
  options.apply_defaults timeout: @config.rpcs.destroy_secret_version.timeout,
@@ -1265,12 +1280,13 @@ module Google
1265
1280
  # Customize the options with defaults
1266
1281
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1267
1282
 
1268
- # Set x-goog-api-client and x-goog-user-project headers
1283
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1269
1284
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1270
1285
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1271
1286
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
1272
1287
  transports_version_send: [:rest]
1273
1288
 
1289
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1274
1290
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1275
1291
 
1276
1292
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1348,12 +1364,13 @@ module Google
1348
1364
  # Customize the options with defaults
1349
1365
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
1350
1366
 
1351
- # Set x-goog-api-client and x-goog-user-project headers
1367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1352
1368
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1353
1369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1354
1370
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
1355
1371
  transports_version_send: [:rest]
1356
1372
 
1373
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1357
1374
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1358
1375
 
1359
1376
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -1438,12 +1455,13 @@ module Google
1438
1455
  # Customize the options with defaults
1439
1456
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1440
1457
 
1441
- # Set x-goog-api-client and x-goog-user-project headers
1458
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1442
1459
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1443
1460
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1444
1461
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION,
1445
1462
  transports_version_send: [:rest]
1446
1463
 
1464
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1447
1465
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1448
1466
 
1449
1467
  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 V1beta1
24
- VERSION = "0.15.0"
24
+ VERSION = "0.15.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-secret_manager-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.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