google-cloud-kms-v1 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +3 -3
  4. data/lib/google/cloud/kms/v1/autokey/client.rb +713 -0
  5. data/lib/google/cloud/kms/v1/autokey/credentials.rb +52 -0
  6. data/lib/google/cloud/kms/v1/autokey/operations.rb +809 -0
  7. data/lib/google/cloud/kms/v1/autokey/paths.rb +90 -0
  8. data/lib/google/cloud/kms/v1/autokey/rest/client.rb +675 -0
  9. data/lib/google/cloud/kms/v1/autokey/rest/operations.rb +902 -0
  10. data/lib/google/cloud/kms/v1/autokey/rest/service_stub.rb +247 -0
  11. data/lib/google/cloud/kms/v1/autokey/rest.rb +70 -0
  12. data/lib/google/cloud/kms/v1/autokey.rb +72 -0
  13. data/lib/google/cloud/kms/v1/autokey_admin/client.rb +677 -0
  14. data/lib/google/cloud/kms/v1/autokey_admin/credentials.rb +52 -0
  15. data/lib/google/cloud/kms/v1/autokey_admin/paths.rb +61 -0
  16. data/lib/google/cloud/kms/v1/autokey_admin/rest/client.rb +639 -0
  17. data/lib/google/cloud/kms/v1/autokey_admin/rest/service_stub.rb +247 -0
  18. data/lib/google/cloud/kms/v1/autokey_admin/rest.rb +59 -0
  19. data/lib/google/cloud/kms/v1/autokey_admin.rb +61 -0
  20. data/lib/google/cloud/kms/v1/autokey_admin_pb.rb +53 -0
  21. data/lib/google/cloud/kms/v1/autokey_admin_services_pb.rb +62 -0
  22. data/lib/google/cloud/kms/v1/autokey_pb.rb +53 -0
  23. data/lib/google/cloud/kms/v1/autokey_services_pb.rb +71 -0
  24. data/lib/google/cloud/kms/v1/bindings_override.rb +1 -1
  25. data/lib/google/cloud/kms/v1/ekm_service/client.rb +17 -7
  26. data/lib/google/cloud/kms/v1/ekm_service/rest/client.rb +17 -7
  27. data/lib/google/cloud/kms/v1/key_management_service/client.rb +59 -28
  28. data/lib/google/cloud/kms/v1/key_management_service/rest/client.rb +59 -28
  29. data/lib/google/cloud/kms/v1/resources_pb.rb +1 -1
  30. data/lib/google/cloud/kms/v1/rest.rb +3 -1
  31. data/lib/google/cloud/kms/v1/version.rb +1 -1
  32. data/lib/google/cloud/kms/v1.rb +4 -2
  33. data/proto_docs/google/api/client.rb +4 -0
  34. data/proto_docs/google/cloud/kms/v1/autokey.rb +123 -0
  35. data/proto_docs/google/cloud/kms/v1/autokey_admin.rb +99 -0
  36. data/proto_docs/google/cloud/kms/v1/resources.rb +9 -10
  37. data/proto_docs/google/longrunning/operations.rb +164 -0
  38. data/proto_docs/google/protobuf/empty.rb +34 -0
  39. data/proto_docs/google/rpc/status.rb +48 -0
  40. metadata +27 -2
@@ -36,6 +36,9 @@ module Google
36
36
  # * {::Google::Cloud::Kms::V1::EkmConnection EkmConnection}
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "cloudkms.$UNIVERSE_DOMAIN$"
41
44
 
@@ -296,10 +299,11 @@ module Google
296
299
  # Customize the options with defaults
297
300
  metadata = @config.rpcs.list_ekm_connections.metadata.to_h
298
301
 
299
- # Set x-goog-api-client and x-goog-user-project headers
302
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
300
303
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
301
304
  lib_name: @config.lib_name, lib_version: @config.lib_version,
302
305
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
306
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
303
307
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
304
308
 
305
309
  header_params = {}
@@ -384,10 +388,11 @@ module Google
384
388
  # Customize the options with defaults
385
389
  metadata = @config.rpcs.get_ekm_connection.metadata.to_h
386
390
 
387
- # Set x-goog-api-client and x-goog-user-project headers
391
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
388
392
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
389
393
  lib_name: @config.lib_name, lib_version: @config.lib_version,
390
394
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
395
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
391
396
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
392
397
 
393
398
  header_params = {}
@@ -478,10 +483,11 @@ module Google
478
483
  # Customize the options with defaults
479
484
  metadata = @config.rpcs.create_ekm_connection.metadata.to_h
480
485
 
481
- # Set x-goog-api-client and x-goog-user-project headers
486
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
482
487
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
483
488
  lib_name: @config.lib_name, lib_version: @config.lib_version,
484
489
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
490
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
485
491
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
486
492
 
487
493
  header_params = {}
@@ -566,10 +572,11 @@ module Google
566
572
  # Customize the options with defaults
567
573
  metadata = @config.rpcs.update_ekm_connection.metadata.to_h
568
574
 
569
- # Set x-goog-api-client and x-goog-user-project headers
575
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
570
576
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
577
  lib_name: @config.lib_name, lib_version: @config.lib_version,
572
578
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
579
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
573
580
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
574
581
 
575
582
  header_params = {}
@@ -653,10 +660,11 @@ module Google
653
660
  # Customize the options with defaults
654
661
  metadata = @config.rpcs.get_ekm_config.metadata.to_h
655
662
 
656
- # Set x-goog-api-client and x-goog-user-project headers
663
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
657
664
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
658
665
  lib_name: @config.lib_name, lib_version: @config.lib_version,
659
666
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
667
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
660
668
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
661
669
 
662
670
  header_params = {}
@@ -741,10 +749,11 @@ module Google
741
749
  # Customize the options with defaults
742
750
  metadata = @config.rpcs.update_ekm_config.metadata.to_h
743
751
 
744
- # Set x-goog-api-client and x-goog-user-project headers
752
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
745
753
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
746
754
  lib_name: @config.lib_name, lib_version: @config.lib_version,
747
755
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
756
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
748
757
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
749
758
 
750
759
  header_params = {}
@@ -831,10 +840,11 @@ module Google
831
840
  # Customize the options with defaults
832
841
  metadata = @config.rpcs.verify_connectivity.metadata.to_h
833
842
 
834
- # Set x-goog-api-client and x-goog-user-project headers
843
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
835
844
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
836
845
  lib_name: @config.lib_name, lib_version: @config.lib_version,
837
846
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
847
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
838
848
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
839
849
 
840
850
  header_params = {}
@@ -38,6 +38,9 @@ module Google
38
38
  # * {::Google::Cloud::Kms::V1::EkmConnection EkmConnection}
39
39
  #
40
40
  class Client
41
+ # @private
42
+ API_VERSION = ""
43
+
41
44
  # @private
42
45
  DEFAULT_ENDPOINT_TEMPLATE = "cloudkms.$UNIVERSE_DOMAIN$"
43
46
 
@@ -290,12 +293,13 @@ module Google
290
293
  # Customize the options with defaults
291
294
  call_metadata = @config.rpcs.list_ekm_connections.metadata.to_h
292
295
 
293
- # Set x-goog-api-client and x-goog-user-project headers
296
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
294
297
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
295
298
  lib_name: @config.lib_name, lib_version: @config.lib_version,
296
299
  gapic_version: ::Google::Cloud::Kms::V1::VERSION,
297
300
  transports_version_send: [:rest]
298
301
 
302
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
299
303
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
300
304
 
301
305
  options.apply_defaults timeout: @config.rpcs.list_ekm_connections.timeout,
@@ -371,12 +375,13 @@ module Google
371
375
  # Customize the options with defaults
372
376
  call_metadata = @config.rpcs.get_ekm_connection.metadata.to_h
373
377
 
374
- # Set x-goog-api-client and x-goog-user-project headers
378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
375
379
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
376
380
  lib_name: @config.lib_name, lib_version: @config.lib_version,
377
381
  gapic_version: ::Google::Cloud::Kms::V1::VERSION,
378
382
  transports_version_send: [:rest]
379
383
 
384
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
380
385
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
381
386
 
382
387
  options.apply_defaults timeout: @config.rpcs.get_ekm_connection.timeout,
@@ -458,12 +463,13 @@ module Google
458
463
  # Customize the options with defaults
459
464
  call_metadata = @config.rpcs.create_ekm_connection.metadata.to_h
460
465
 
461
- # Set x-goog-api-client and x-goog-user-project headers
466
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
462
467
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
463
468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
464
469
  gapic_version: ::Google::Cloud::Kms::V1::VERSION,
465
470
  transports_version_send: [:rest]
466
471
 
472
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
467
473
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
468
474
 
469
475
  options.apply_defaults timeout: @config.rpcs.create_ekm_connection.timeout,
@@ -539,12 +545,13 @@ module Google
539
545
  # Customize the options with defaults
540
546
  call_metadata = @config.rpcs.update_ekm_connection.metadata.to_h
541
547
 
542
- # Set x-goog-api-client and x-goog-user-project headers
548
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
543
549
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
544
550
  lib_name: @config.lib_name, lib_version: @config.lib_version,
545
551
  gapic_version: ::Google::Cloud::Kms::V1::VERSION,
546
552
  transports_version_send: [:rest]
547
553
 
554
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
548
555
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
549
556
 
550
557
  options.apply_defaults timeout: @config.rpcs.update_ekm_connection.timeout,
@@ -619,12 +626,13 @@ module Google
619
626
  # Customize the options with defaults
620
627
  call_metadata = @config.rpcs.get_ekm_config.metadata.to_h
621
628
 
622
- # Set x-goog-api-client and x-goog-user-project headers
629
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
623
630
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
624
631
  lib_name: @config.lib_name, lib_version: @config.lib_version,
625
632
  gapic_version: ::Google::Cloud::Kms::V1::VERSION,
626
633
  transports_version_send: [:rest]
627
634
 
635
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
628
636
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
629
637
 
630
638
  options.apply_defaults timeout: @config.rpcs.get_ekm_config.timeout,
@@ -700,12 +708,13 @@ module Google
700
708
  # Customize the options with defaults
701
709
  call_metadata = @config.rpcs.update_ekm_config.metadata.to_h
702
710
 
703
- # 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
704
712
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
705
713
  lib_name: @config.lib_name, lib_version: @config.lib_version,
706
714
  gapic_version: ::Google::Cloud::Kms::V1::VERSION,
707
715
  transports_version_send: [:rest]
708
716
 
717
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
709
718
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
710
719
 
711
720
  options.apply_defaults timeout: @config.rpcs.update_ekm_config.timeout,
@@ -783,12 +792,13 @@ module Google
783
792
  # Customize the options with defaults
784
793
  call_metadata = @config.rpcs.verify_connectivity.metadata.to_h
785
794
 
786
- # Set x-goog-api-client and x-goog-user-project headers
795
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
787
796
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
788
797
  lib_name: @config.lib_name, lib_version: @config.lib_version,
789
798
  gapic_version: ::Google::Cloud::Kms::V1::VERSION,
790
799
  transports_version_send: [:rest]
791
800
 
801
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
792
802
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
793
803
 
794
804
  options.apply_defaults timeout: @config.rpcs.verify_connectivity.timeout,
@@ -43,6 +43,9 @@ module Google
43
43
  # [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
44
44
  #
45
45
  class Client
46
+ # @private
47
+ API_VERSION = ""
48
+
46
49
  # @private
47
50
  DEFAULT_ENDPOINT_TEMPLATE = "cloudkms.$UNIVERSE_DOMAIN$"
48
51
 
@@ -407,10 +410,11 @@ module Google
407
410
  # Customize the options with defaults
408
411
  metadata = @config.rpcs.list_key_rings.metadata.to_h
409
412
 
410
- # Set x-goog-api-client and x-goog-user-project headers
413
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
411
414
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
412
415
  lib_name: @config.lib_name, lib_version: @config.lib_version,
413
416
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
417
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
414
418
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
415
419
 
416
420
  header_params = {}
@@ -521,10 +525,11 @@ module Google
521
525
  # Customize the options with defaults
522
526
  metadata = @config.rpcs.list_crypto_keys.metadata.to_h
523
527
 
524
- # Set x-goog-api-client and x-goog-user-project headers
528
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
525
529
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
526
530
  lib_name: @config.lib_name, lib_version: @config.lib_version,
527
531
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
532
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
528
533
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
529
534
 
530
535
  header_params = {}
@@ -636,10 +641,11 @@ module Google
636
641
  # Customize the options with defaults
637
642
  metadata = @config.rpcs.list_crypto_key_versions.metadata.to_h
638
643
 
639
- # Set x-goog-api-client and x-goog-user-project headers
644
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
640
645
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
641
646
  lib_name: @config.lib_name, lib_version: @config.lib_version,
642
647
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
648
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
643
649
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
644
650
 
645
651
  header_params = {}
@@ -748,10 +754,11 @@ module Google
748
754
  # Customize the options with defaults
749
755
  metadata = @config.rpcs.list_import_jobs.metadata.to_h
750
756
 
751
- # Set x-goog-api-client and x-goog-user-project headers
757
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
752
758
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
753
759
  lib_name: @config.lib_name, lib_version: @config.lib_version,
754
760
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
761
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
755
762
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
756
763
 
757
764
  header_params = {}
@@ -835,10 +842,11 @@ module Google
835
842
  # Customize the options with defaults
836
843
  metadata = @config.rpcs.get_key_ring.metadata.to_h
837
844
 
838
- # Set x-goog-api-client and x-goog-user-project headers
845
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
839
846
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
840
847
  lib_name: @config.lib_name, lib_version: @config.lib_version,
841
848
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
849
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
842
850
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
843
851
 
844
852
  header_params = {}
@@ -923,10 +931,11 @@ module Google
923
931
  # Customize the options with defaults
924
932
  metadata = @config.rpcs.get_crypto_key.metadata.to_h
925
933
 
926
- # Set x-goog-api-client and x-goog-user-project headers
934
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
927
935
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
928
936
  lib_name: @config.lib_name, lib_version: @config.lib_version,
929
937
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
938
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
930
939
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
931
940
 
932
941
  header_params = {}
@@ -1010,10 +1019,11 @@ module Google
1010
1019
  # Customize the options with defaults
1011
1020
  metadata = @config.rpcs.get_crypto_key_version.metadata.to_h
1012
1021
 
1013
- # Set x-goog-api-client and x-goog-user-project headers
1022
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1014
1023
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1015
1024
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1016
1025
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1026
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1017
1027
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1018
1028
 
1019
1029
  header_params = {}
@@ -1101,10 +1111,11 @@ module Google
1101
1111
  # Customize the options with defaults
1102
1112
  metadata = @config.rpcs.get_public_key.metadata.to_h
1103
1113
 
1104
- # Set x-goog-api-client and x-goog-user-project headers
1114
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1105
1115
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1106
1116
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1107
1117
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1118
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1108
1119
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1109
1120
 
1110
1121
  header_params = {}
@@ -1187,10 +1198,11 @@ module Google
1187
1198
  # Customize the options with defaults
1188
1199
  metadata = @config.rpcs.get_import_job.metadata.to_h
1189
1200
 
1190
- # Set x-goog-api-client and x-goog-user-project headers
1201
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1191
1202
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1192
1203
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1193
1204
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1205
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1194
1206
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1195
1207
 
1196
1208
  header_params = {}
@@ -1281,10 +1293,11 @@ module Google
1281
1293
  # Customize the options with defaults
1282
1294
  metadata = @config.rpcs.create_key_ring.metadata.to_h
1283
1295
 
1284
- # Set x-goog-api-client and x-goog-user-project headers
1296
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1285
1297
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1286
1298
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1287
1299
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1300
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1288
1301
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1289
1302
 
1290
1303
  header_params = {}
@@ -1387,10 +1400,11 @@ module Google
1387
1400
  # Customize the options with defaults
1388
1401
  metadata = @config.rpcs.create_crypto_key.metadata.to_h
1389
1402
 
1390
- # Set x-goog-api-client and x-goog-user-project headers
1403
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1391
1404
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1392
1405
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1393
1406
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1407
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1394
1408
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1395
1409
 
1396
1410
  header_params = {}
@@ -1482,10 +1496,11 @@ module Google
1482
1496
  # Customize the options with defaults
1483
1497
  metadata = @config.rpcs.create_crypto_key_version.metadata.to_h
1484
1498
 
1485
- # Set x-goog-api-client and x-goog-user-project headers
1499
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1486
1500
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1487
1501
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1488
1502
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1503
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1489
1504
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1490
1505
 
1491
1506
  header_params = {}
@@ -1654,10 +1669,11 @@ module Google
1654
1669
  # Customize the options with defaults
1655
1670
  metadata = @config.rpcs.import_crypto_key_version.metadata.to_h
1656
1671
 
1657
- # Set x-goog-api-client and x-goog-user-project headers
1672
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1658
1673
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1659
1674
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1660
1675
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1676
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1661
1677
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1662
1678
 
1663
1679
  header_params = {}
@@ -1751,10 +1767,11 @@ module Google
1751
1767
  # Customize the options with defaults
1752
1768
  metadata = @config.rpcs.create_import_job.metadata.to_h
1753
1769
 
1754
- # Set x-goog-api-client and x-goog-user-project headers
1770
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1755
1771
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1756
1772
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1757
1773
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1774
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1758
1775
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1759
1776
 
1760
1777
  header_params = {}
@@ -1838,10 +1855,11 @@ module Google
1838
1855
  # Customize the options with defaults
1839
1856
  metadata = @config.rpcs.update_crypto_key.metadata.to_h
1840
1857
 
1841
- # Set x-goog-api-client and x-goog-user-project headers
1858
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1842
1859
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1843
1860
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1844
1861
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1862
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1845
1863
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1846
1864
 
1847
1865
  header_params = {}
@@ -1937,10 +1955,11 @@ module Google
1937
1955
  # Customize the options with defaults
1938
1956
  metadata = @config.rpcs.update_crypto_key_version.metadata.to_h
1939
1957
 
1940
- # Set x-goog-api-client and x-goog-user-project headers
1958
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1941
1959
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1942
1960
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1943
1961
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1962
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1944
1963
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1945
1964
 
1946
1965
  header_params = {}
@@ -2031,10 +2050,11 @@ module Google
2031
2050
  # Customize the options with defaults
2032
2051
  metadata = @config.rpcs.update_crypto_key_primary_version.metadata.to_h
2033
2052
 
2034
- # Set x-goog-api-client and x-goog-user-project headers
2053
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2035
2054
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2036
2055
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2037
2056
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2057
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2038
2058
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2039
2059
 
2040
2060
  header_params = {}
@@ -2137,10 +2157,11 @@ module Google
2137
2157
  # Customize the options with defaults
2138
2158
  metadata = @config.rpcs.destroy_crypto_key_version.metadata.to_h
2139
2159
 
2140
- # Set x-goog-api-client and x-goog-user-project headers
2160
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2141
2161
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2142
2162
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2143
2163
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2164
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2144
2165
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2145
2166
 
2146
2167
  header_params = {}
@@ -2231,10 +2252,11 @@ module Google
2231
2252
  # Customize the options with defaults
2232
2253
  metadata = @config.rpcs.restore_crypto_key_version.metadata.to_h
2233
2254
 
2234
- # Set x-goog-api-client and x-goog-user-project headers
2255
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2235
2256
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2236
2257
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2237
2258
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2259
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2238
2260
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2239
2261
 
2240
2262
  header_params = {}
@@ -2391,10 +2413,11 @@ module Google
2391
2413
  # Customize the options with defaults
2392
2414
  metadata = @config.rpcs.encrypt.metadata.to_h
2393
2415
 
2394
- # Set x-goog-api-client and x-goog-user-project headers
2416
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2395
2417
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2396
2418
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2397
2419
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2420
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2398
2421
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2399
2422
 
2400
2423
  header_params = {}
@@ -2527,10 +2550,11 @@ module Google
2527
2550
  # Customize the options with defaults
2528
2551
  metadata = @config.rpcs.decrypt.metadata.to_h
2529
2552
 
2530
- # Set x-goog-api-client and x-goog-user-project headers
2553
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2531
2554
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2532
2555
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2533
2556
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2557
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2534
2558
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2535
2559
 
2536
2560
  header_params = {}
@@ -2700,10 +2724,11 @@ module Google
2700
2724
  # Customize the options with defaults
2701
2725
  metadata = @config.rpcs.raw_encrypt.metadata.to_h
2702
2726
 
2703
- # Set x-goog-api-client and x-goog-user-project headers
2727
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2704
2728
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2705
2729
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2706
2730
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2731
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2707
2732
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2708
2733
 
2709
2734
  header_params = {}
@@ -2853,10 +2878,11 @@ module Google
2853
2878
  # Customize the options with defaults
2854
2879
  metadata = @config.rpcs.raw_decrypt.metadata.to_h
2855
2880
 
2856
- # Set x-goog-api-client and x-goog-user-project headers
2881
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2857
2882
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2858
2883
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2859
2884
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2885
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2860
2886
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2861
2887
 
2862
2888
  header_params = {}
@@ -2997,10 +3023,11 @@ module Google
2997
3023
  # Customize the options with defaults
2998
3024
  metadata = @config.rpcs.asymmetric_sign.metadata.to_h
2999
3025
 
3000
- # Set x-goog-api-client and x-goog-user-project headers
3026
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3001
3027
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3002
3028
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3003
3029
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
3030
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3004
3031
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3005
3032
 
3006
3033
  header_params = {}
@@ -3112,10 +3139,11 @@ module Google
3112
3139
  # Customize the options with defaults
3113
3140
  metadata = @config.rpcs.asymmetric_decrypt.metadata.to_h
3114
3141
 
3115
- # Set x-goog-api-client and x-goog-user-project headers
3142
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3116
3143
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3117
3144
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3118
3145
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
3146
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3119
3147
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3120
3148
 
3121
3149
  header_params = {}
@@ -3222,10 +3250,11 @@ module Google
3222
3250
  # Customize the options with defaults
3223
3251
  metadata = @config.rpcs.mac_sign.metadata.to_h
3224
3252
 
3225
- # Set x-goog-api-client and x-goog-user-project headers
3253
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3226
3254
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3227
3255
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3228
3256
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
3257
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3229
3258
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3230
3259
 
3231
3260
  header_params = {}
@@ -3354,10 +3383,11 @@ module Google
3354
3383
  # Customize the options with defaults
3355
3384
  metadata = @config.rpcs.mac_verify.metadata.to_h
3356
3385
 
3357
- # Set x-goog-api-client and x-goog-user-project headers
3386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3358
3387
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3359
3388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3360
3389
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
3390
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3361
3391
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3362
3392
 
3363
3393
  header_params = {}
@@ -3449,10 +3479,11 @@ module Google
3449
3479
  # Customize the options with defaults
3450
3480
  metadata = @config.rpcs.generate_random_bytes.metadata.to_h
3451
3481
 
3452
- # Set x-goog-api-client and x-goog-user-project headers
3482
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3453
3483
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3454
3484
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3455
3485
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
3486
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3456
3487
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3457
3488
 
3458
3489
  header_params = {}