google-cloud-kms-v1 0.25.1 → 0.27.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/kms/v1/autokey/client.rb +713 -0
- data/lib/google/cloud/kms/v1/autokey/credentials.rb +52 -0
- data/lib/google/cloud/kms/v1/autokey/operations.rb +809 -0
- data/lib/google/cloud/kms/v1/autokey/paths.rb +90 -0
- data/lib/google/cloud/kms/v1/autokey/rest/client.rb +675 -0
- data/lib/google/cloud/kms/v1/autokey/rest/operations.rb +902 -0
- data/lib/google/cloud/kms/v1/autokey/rest/service_stub.rb +247 -0
- data/lib/google/cloud/kms/v1/autokey/rest.rb +70 -0
- data/lib/google/cloud/kms/v1/autokey.rb +72 -0
- data/lib/google/cloud/kms/v1/autokey_admin/client.rb +677 -0
- data/lib/google/cloud/kms/v1/autokey_admin/credentials.rb +52 -0
- data/lib/google/cloud/kms/v1/autokey_admin/paths.rb +61 -0
- data/lib/google/cloud/kms/v1/autokey_admin/rest/client.rb +639 -0
- data/lib/google/cloud/kms/v1/autokey_admin/rest/service_stub.rb +247 -0
- data/lib/google/cloud/kms/v1/autokey_admin/rest.rb +59 -0
- data/lib/google/cloud/kms/v1/autokey_admin.rb +61 -0
- data/lib/google/cloud/kms/v1/autokey_admin_pb.rb +53 -0
- data/lib/google/cloud/kms/v1/autokey_admin_services_pb.rb +62 -0
- data/lib/google/cloud/kms/v1/autokey_pb.rb +53 -0
- data/lib/google/cloud/kms/v1/autokey_services_pb.rb +71 -0
- data/lib/google/cloud/kms/v1/bindings_override.rb +1 -1
- data/lib/google/cloud/kms/v1/ekm_service/client.rb +17 -7
- data/lib/google/cloud/kms/v1/ekm_service/rest/client.rb +17 -7
- data/lib/google/cloud/kms/v1/key_management_service/client.rb +59 -28
- data/lib/google/cloud/kms/v1/key_management_service/rest/client.rb +59 -28
- data/lib/google/cloud/kms/v1/resources_pb.rb +3 -1
- data/lib/google/cloud/kms/v1/rest.rb +3 -1
- data/lib/google/cloud/kms/v1/version.rb +1 -1
- data/lib/google/cloud/kms/v1.rb +4 -2
- data/proto_docs/google/cloud/kms/v1/autokey.rb +123 -0
- data/proto_docs/google/cloud/kms/v1/autokey_admin.rb +99 -0
- data/proto_docs/google/cloud/kms/v1/resources.rb +97 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +27 -2
@@ -45,6 +45,9 @@ module Google
|
|
45
45
|
# [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
|
46
46
|
#
|
47
47
|
class Client
|
48
|
+
# @private
|
49
|
+
API_VERSION = ""
|
50
|
+
|
48
51
|
# @private
|
49
52
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudkms.$UNIVERSE_DOMAIN$"
|
50
53
|
|
@@ -401,12 +404,13 @@ module Google
|
|
401
404
|
# Customize the options with defaults
|
402
405
|
call_metadata = @config.rpcs.list_key_rings.metadata.to_h
|
403
406
|
|
404
|
-
# Set x-goog-api-client
|
407
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
405
408
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
406
409
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
407
410
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
408
411
|
transports_version_send: [:rest]
|
409
412
|
|
413
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
410
414
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
411
415
|
|
412
416
|
options.apply_defaults timeout: @config.rpcs.list_key_rings.timeout,
|
@@ -508,12 +512,13 @@ module Google
|
|
508
512
|
# Customize the options with defaults
|
509
513
|
call_metadata = @config.rpcs.list_crypto_keys.metadata.to_h
|
510
514
|
|
511
|
-
# Set x-goog-api-client
|
515
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
512
516
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
513
517
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
514
518
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
515
519
|
transports_version_send: [:rest]
|
516
520
|
|
521
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
517
522
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
518
523
|
|
519
524
|
options.apply_defaults timeout: @config.rpcs.list_crypto_keys.timeout,
|
@@ -616,12 +621,13 @@ module Google
|
|
616
621
|
# Customize the options with defaults
|
617
622
|
call_metadata = @config.rpcs.list_crypto_key_versions.metadata.to_h
|
618
623
|
|
619
|
-
# Set x-goog-api-client
|
624
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
620
625
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
621
626
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
622
627
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
623
628
|
transports_version_send: [:rest]
|
624
629
|
|
630
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
625
631
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
626
632
|
|
627
633
|
options.apply_defaults timeout: @config.rpcs.list_crypto_key_versions.timeout,
|
@@ -721,12 +727,13 @@ module Google
|
|
721
727
|
# Customize the options with defaults
|
722
728
|
call_metadata = @config.rpcs.list_import_jobs.metadata.to_h
|
723
729
|
|
724
|
-
# Set x-goog-api-client
|
730
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
725
731
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
726
732
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
727
733
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
728
734
|
transports_version_send: [:rest]
|
729
735
|
|
736
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
730
737
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
731
738
|
|
732
739
|
options.apply_defaults timeout: @config.rpcs.list_import_jobs.timeout,
|
@@ -801,12 +808,13 @@ module Google
|
|
801
808
|
# Customize the options with defaults
|
802
809
|
call_metadata = @config.rpcs.get_key_ring.metadata.to_h
|
803
810
|
|
804
|
-
# Set x-goog-api-client
|
811
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
805
812
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
806
813
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
807
814
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
808
815
|
transports_version_send: [:rest]
|
809
816
|
|
817
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
810
818
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
811
819
|
|
812
820
|
options.apply_defaults timeout: @config.rpcs.get_key_ring.timeout,
|
@@ -882,12 +890,13 @@ module Google
|
|
882
890
|
# Customize the options with defaults
|
883
891
|
call_metadata = @config.rpcs.get_crypto_key.metadata.to_h
|
884
892
|
|
885
|
-
# Set x-goog-api-client
|
893
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
886
894
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
887
895
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
888
896
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
889
897
|
transports_version_send: [:rest]
|
890
898
|
|
899
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
891
900
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
892
901
|
|
893
902
|
options.apply_defaults timeout: @config.rpcs.get_crypto_key.timeout,
|
@@ -962,12 +971,13 @@ module Google
|
|
962
971
|
# Customize the options with defaults
|
963
972
|
call_metadata = @config.rpcs.get_crypto_key_version.metadata.to_h
|
964
973
|
|
965
|
-
# Set x-goog-api-client
|
974
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
966
975
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
967
976
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
968
977
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
969
978
|
transports_version_send: [:rest]
|
970
979
|
|
980
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
971
981
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
972
982
|
|
973
983
|
options.apply_defaults timeout: @config.rpcs.get_crypto_key_version.timeout,
|
@@ -1046,12 +1056,13 @@ module Google
|
|
1046
1056
|
# Customize the options with defaults
|
1047
1057
|
call_metadata = @config.rpcs.get_public_key.metadata.to_h
|
1048
1058
|
|
1049
|
-
# Set x-goog-api-client
|
1059
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1050
1060
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1051
1061
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1052
1062
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
1053
1063
|
transports_version_send: [:rest]
|
1054
1064
|
|
1065
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1055
1066
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1056
1067
|
|
1057
1068
|
options.apply_defaults timeout: @config.rpcs.get_public_key.timeout,
|
@@ -1125,12 +1136,13 @@ module Google
|
|
1125
1136
|
# Customize the options with defaults
|
1126
1137
|
call_metadata = @config.rpcs.get_import_job.metadata.to_h
|
1127
1138
|
|
1128
|
-
# Set x-goog-api-client
|
1139
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1129
1140
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1130
1141
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1131
1142
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
1132
1143
|
transports_version_send: [:rest]
|
1133
1144
|
|
1145
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1134
1146
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1135
1147
|
|
1136
1148
|
options.apply_defaults timeout: @config.rpcs.get_import_job.timeout,
|
@@ -1212,12 +1224,13 @@ module Google
|
|
1212
1224
|
# Customize the options with defaults
|
1213
1225
|
call_metadata = @config.rpcs.create_key_ring.metadata.to_h
|
1214
1226
|
|
1215
|
-
# Set x-goog-api-client
|
1227
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1216
1228
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1217
1229
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1218
1230
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
1219
1231
|
transports_version_send: [:rest]
|
1220
1232
|
|
1233
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1221
1234
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1222
1235
|
|
1223
1236
|
options.apply_defaults timeout: @config.rpcs.create_key_ring.timeout,
|
@@ -1311,12 +1324,13 @@ module Google
|
|
1311
1324
|
# Customize the options with defaults
|
1312
1325
|
call_metadata = @config.rpcs.create_crypto_key.metadata.to_h
|
1313
1326
|
|
1314
|
-
# Set x-goog-api-client
|
1327
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1315
1328
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1316
1329
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1317
1330
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
1318
1331
|
transports_version_send: [:rest]
|
1319
1332
|
|
1333
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1320
1334
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1321
1335
|
|
1322
1336
|
options.apply_defaults timeout: @config.rpcs.create_crypto_key.timeout,
|
@@ -1399,12 +1413,13 @@ module Google
|
|
1399
1413
|
# Customize the options with defaults
|
1400
1414
|
call_metadata = @config.rpcs.create_crypto_key_version.metadata.to_h
|
1401
1415
|
|
1402
|
-
# Set x-goog-api-client
|
1416
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1403
1417
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1404
1418
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1405
1419
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
1406
1420
|
transports_version_send: [:rest]
|
1407
1421
|
|
1422
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1408
1423
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1409
1424
|
|
1410
1425
|
options.apply_defaults timeout: @config.rpcs.create_crypto_key_version.timeout,
|
@@ -1564,12 +1579,13 @@ module Google
|
|
1564
1579
|
# Customize the options with defaults
|
1565
1580
|
call_metadata = @config.rpcs.import_crypto_key_version.metadata.to_h
|
1566
1581
|
|
1567
|
-
# Set x-goog-api-client
|
1582
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1568
1583
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1569
1584
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1570
1585
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
1571
1586
|
transports_version_send: [:rest]
|
1572
1587
|
|
1588
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1573
1589
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1574
1590
|
|
1575
1591
|
options.apply_defaults timeout: @config.rpcs.import_crypto_key_version.timeout,
|
@@ -1654,12 +1670,13 @@ module Google
|
|
1654
1670
|
# Customize the options with defaults
|
1655
1671
|
call_metadata = @config.rpcs.create_import_job.metadata.to_h
|
1656
1672
|
|
1657
|
-
# Set x-goog-api-client
|
1673
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1658
1674
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1659
1675
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1660
1676
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
1661
1677
|
transports_version_send: [:rest]
|
1662
1678
|
|
1679
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1663
1680
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1664
1681
|
|
1665
1682
|
options.apply_defaults timeout: @config.rpcs.create_import_job.timeout,
|
@@ -1734,12 +1751,13 @@ module Google
|
|
1734
1751
|
# Customize the options with defaults
|
1735
1752
|
call_metadata = @config.rpcs.update_crypto_key.metadata.to_h
|
1736
1753
|
|
1737
|
-
# Set x-goog-api-client
|
1754
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1738
1755
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1739
1756
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1740
1757
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
1741
1758
|
transports_version_send: [:rest]
|
1742
1759
|
|
1760
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1743
1761
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1744
1762
|
|
1745
1763
|
options.apply_defaults timeout: @config.rpcs.update_crypto_key.timeout,
|
@@ -1826,12 +1844,13 @@ module Google
|
|
1826
1844
|
# Customize the options with defaults
|
1827
1845
|
call_metadata = @config.rpcs.update_crypto_key_version.metadata.to_h
|
1828
1846
|
|
1829
|
-
# Set x-goog-api-client
|
1847
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1830
1848
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1831
1849
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1832
1850
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
1833
1851
|
transports_version_send: [:rest]
|
1834
1852
|
|
1853
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1835
1854
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1836
1855
|
|
1837
1856
|
options.apply_defaults timeout: @config.rpcs.update_crypto_key_version.timeout,
|
@@ -1913,12 +1932,13 @@ module Google
|
|
1913
1932
|
# Customize the options with defaults
|
1914
1933
|
call_metadata = @config.rpcs.update_crypto_key_primary_version.metadata.to_h
|
1915
1934
|
|
1916
|
-
# Set x-goog-api-client
|
1935
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1917
1936
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1918
1937
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1919
1938
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
1920
1939
|
transports_version_send: [:rest]
|
1921
1940
|
|
1941
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1922
1942
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1923
1943
|
|
1924
1944
|
options.apply_defaults timeout: @config.rpcs.update_crypto_key_primary_version.timeout,
|
@@ -2012,12 +2032,13 @@ module Google
|
|
2012
2032
|
# Customize the options with defaults
|
2013
2033
|
call_metadata = @config.rpcs.destroy_crypto_key_version.metadata.to_h
|
2014
2034
|
|
2015
|
-
# Set x-goog-api-client
|
2035
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2016
2036
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2017
2037
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2018
2038
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
2019
2039
|
transports_version_send: [:rest]
|
2020
2040
|
|
2041
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2021
2042
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2022
2043
|
|
2023
2044
|
options.apply_defaults timeout: @config.rpcs.destroy_crypto_key_version.timeout,
|
@@ -2099,12 +2120,13 @@ module Google
|
|
2099
2120
|
# Customize the options with defaults
|
2100
2121
|
call_metadata = @config.rpcs.restore_crypto_key_version.metadata.to_h
|
2101
2122
|
|
2102
|
-
# Set x-goog-api-client
|
2123
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2103
2124
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2104
2125
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2105
2126
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
2106
2127
|
transports_version_send: [:rest]
|
2107
2128
|
|
2129
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2108
2130
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2109
2131
|
|
2110
2132
|
options.apply_defaults timeout: @config.rpcs.restore_crypto_key_version.timeout,
|
@@ -2252,12 +2274,13 @@ module Google
|
|
2252
2274
|
# Customize the options with defaults
|
2253
2275
|
call_metadata = @config.rpcs.encrypt.metadata.to_h
|
2254
2276
|
|
2255
|
-
# Set x-goog-api-client
|
2277
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2256
2278
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2257
2279
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2258
2280
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
2259
2281
|
transports_version_send: [:rest]
|
2260
2282
|
|
2283
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2261
2284
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2262
2285
|
|
2263
2286
|
options.apply_defaults timeout: @config.rpcs.encrypt.timeout,
|
@@ -2381,12 +2404,13 @@ module Google
|
|
2381
2404
|
# Customize the options with defaults
|
2382
2405
|
call_metadata = @config.rpcs.decrypt.metadata.to_h
|
2383
2406
|
|
2384
|
-
# Set x-goog-api-client
|
2407
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2385
2408
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2386
2409
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2387
2410
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
2388
2411
|
transports_version_send: [:rest]
|
2389
2412
|
|
2413
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2390
2414
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2391
2415
|
|
2392
2416
|
options.apply_defaults timeout: @config.rpcs.decrypt.timeout,
|
@@ -2547,12 +2571,13 @@ module Google
|
|
2547
2571
|
# Customize the options with defaults
|
2548
2572
|
call_metadata = @config.rpcs.raw_encrypt.metadata.to_h
|
2549
2573
|
|
2550
|
-
# Set x-goog-api-client
|
2574
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2551
2575
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2552
2576
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2553
2577
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
2554
2578
|
transports_version_send: [:rest]
|
2555
2579
|
|
2580
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2556
2581
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2557
2582
|
|
2558
2583
|
options.apply_defaults timeout: @config.rpcs.raw_encrypt.timeout,
|
@@ -2693,12 +2718,13 @@ module Google
|
|
2693
2718
|
# Customize the options with defaults
|
2694
2719
|
call_metadata = @config.rpcs.raw_decrypt.metadata.to_h
|
2695
2720
|
|
2696
|
-
# Set x-goog-api-client
|
2721
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2697
2722
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2698
2723
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2699
2724
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
2700
2725
|
transports_version_send: [:rest]
|
2701
2726
|
|
2727
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2702
2728
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2703
2729
|
|
2704
2730
|
options.apply_defaults timeout: @config.rpcs.raw_decrypt.timeout,
|
@@ -2830,12 +2856,13 @@ module Google
|
|
2830
2856
|
# Customize the options with defaults
|
2831
2857
|
call_metadata = @config.rpcs.asymmetric_sign.metadata.to_h
|
2832
2858
|
|
2833
|
-
# Set x-goog-api-client
|
2859
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2834
2860
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2835
2861
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2836
2862
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
2837
2863
|
transports_version_send: [:rest]
|
2838
2864
|
|
2865
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2839
2866
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2840
2867
|
|
2841
2868
|
options.apply_defaults timeout: @config.rpcs.asymmetric_sign.timeout,
|
@@ -2938,12 +2965,13 @@ module Google
|
|
2938
2965
|
# Customize the options with defaults
|
2939
2966
|
call_metadata = @config.rpcs.asymmetric_decrypt.metadata.to_h
|
2940
2967
|
|
2941
|
-
# Set x-goog-api-client
|
2968
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2942
2969
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2943
2970
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2944
2971
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
2945
2972
|
transports_version_send: [:rest]
|
2946
2973
|
|
2974
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2947
2975
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2948
2976
|
|
2949
2977
|
options.apply_defaults timeout: @config.rpcs.asymmetric_decrypt.timeout,
|
@@ -3041,12 +3069,13 @@ module Google
|
|
3041
3069
|
# Customize the options with defaults
|
3042
3070
|
call_metadata = @config.rpcs.mac_sign.metadata.to_h
|
3043
3071
|
|
3044
|
-
# Set x-goog-api-client
|
3072
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3045
3073
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3046
3074
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3047
3075
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
3048
3076
|
transports_version_send: [:rest]
|
3049
3077
|
|
3078
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3050
3079
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3051
3080
|
|
3052
3081
|
options.apply_defaults timeout: @config.rpcs.mac_sign.timeout,
|
@@ -3166,12 +3195,13 @@ module Google
|
|
3166
3195
|
# Customize the options with defaults
|
3167
3196
|
call_metadata = @config.rpcs.mac_verify.metadata.to_h
|
3168
3197
|
|
3169
|
-
# Set x-goog-api-client
|
3198
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3170
3199
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3171
3200
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3172
3201
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
3173
3202
|
transports_version_send: [:rest]
|
3174
3203
|
|
3204
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3175
3205
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3176
3206
|
|
3177
3207
|
options.apply_defaults timeout: @config.rpcs.mac_verify.timeout,
|
@@ -3254,12 +3284,13 @@ module Google
|
|
3254
3284
|
# Customize the options with defaults
|
3255
3285
|
call_metadata = @config.rpcs.generate_random_bytes.metadata.to_h
|
3256
3286
|
|
3257
|
-
# Set x-goog-api-client
|
3287
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3258
3288
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3259
3289
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3260
3290
|
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
3261
3291
|
transports_version_send: [:rest]
|
3262
3292
|
|
3293
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3263
3294
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3264
3295
|
|
3265
3296
|
options.apply_defaults timeout: @config.rpcs.generate_random_bytes.timeout,
|
@@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb'
|
|
11
11
|
require 'google/protobuf/wrappers_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n#google/cloud/kms/v1/resources.proto\x12\x13google.cloud.kms.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xb5\x01\n\x07KeyRing\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:a\xea\x41^\n\x1f\x63loudkms.googleapis.com/KeyRing\x12;projects/{project}/locations/{location}/keyRings/{key_ring}\"\xae\x07\n\tCryptoKey\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12;\n\x07primary\x18\x02 \x01(\x0b\x32%.google.cloud.kms.v1.CryptoKeyVersionB\x03\xe0\x41\x03\x12\x45\n\x07purpose\x18\x03 \x01(\x0e\x32/.google.cloud.kms.v1.CryptoKey.CryptoKeyPurposeB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\x12next_rotation_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x0frotation_period\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12G\n\x10version_template\x18\x0b \x01(\x0b\x32-.google.cloud.kms.v1.CryptoKeyVersionTemplate\x12:\n\x06labels\x18\n \x03(\x0b\x32*.google.cloud.kms.v1.CryptoKey.LabelsEntry\x12\x18\n\x0bimport_only\x18\r \x01(\x08\x42\x03\xe0\x41\x05\x12\x42\n\x1a\x64\x65stroy_scheduled_duration\x18\x0e \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x05\x12%\n\x12\x63rypto_key_backend\x18\x0f \x01(\tB\t\xe0\x41\x05\xfa\x41\x03\n\x01*\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9a\x01\n\x10\x43ryptoKeyPurpose\x12\"\n\x1e\x43RYPTO_KEY_PURPOSE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x45NCRYPT_DECRYPT\x10\x01\x12\x13\n\x0f\x41SYMMETRIC_SIGN\x10\x05\x12\x16\n\x12\x41SYMMETRIC_DECRYPT\x10\x06\x12\x17\n\x13RAW_ENCRYPT_DECRYPT\x10\x07\x12\x07\n\x03MAC\x10\t:{\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}B\x13\n\x11rotation_schedule\"\xb3\x01\n\x18\x43ryptoKeyVersionTemplate\x12>\n\x10protection_level\x18\x01 \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevel\x12W\n\talgorithm\x18\x03 \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithmB\x03\xe0\x41\x02\"\xb1\x03\n\x17KeyOperationAttestation\x12S\n\x06\x66ormat\x18\x04 \x01(\x0e\x32>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormatB\x03\xe0\x41\x03\x12\x14\n\x07\x63ontent\x18\x05 \x01(\x0c\x42\x03\xe0\x41\x03\x12X\n\x0b\x63\x65rt_chains\x18\x06 \x01(\x0b\x32>.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsB\x03\xe0\x41\x03\x1a\x64\n\x11\x43\x65rtificateChains\x12\x14\n\x0c\x63\x61vium_certs\x18\x01 \x03(\t\x12\x19\n\x11google_card_certs\x18\x02 \x03(\t\x12\x1e\n\x16google_partition_certs\x18\x03 \x03(\t\"k\n\x11\x41ttestationFormat\x12\"\n\x1e\x41TTESTATION_FORMAT_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43\x41VIUM_V1_COMPRESSED\x10\x03\x12\x18\n\x14\x43\x41VIUM_V2_COMPRESSED\x10\x04\"\xec\x12\n\x10\x43ryptoKeyVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState\x12\x43\n\x10protection_level\x18\x07 \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevelB\x03\xe0\x41\x03\x12W\n\talgorithm\x18\n \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithmB\x03\xe0\x41\x03\x12\x46\n\x0b\x61ttestation\x18\x08 \x01(\x0b\x32,.google.cloud.kms.v1.KeyOperationAttestationB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rgenerate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0c\x64\x65stroy_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12;\n\x12\x64\x65stroy_event_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nimport_job\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0bimport_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\"\n\x15import_failure_reason\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12&\n\x19generation_failure_reason\x18\x13 \x01(\tB\x03\xe0\x41\x03\x12\x30\n#external_destruction_failure_reason\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12^\n!external_protection_level_options\x18\x11 \x01(\x0b\x32\x33.google.cloud.kms.v1.ExternalProtectionLevelOptions\x12\x1e\n\x11reimport_eligible\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\"\xcd\x07\n\x19\x43ryptoKeyVersionAlgorithm\x12,\n(CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED\x10\x00\x12\x1f\n\x1bGOOGLE_SYMMETRIC_ENCRYPTION\x10\x01\x12\x0f\n\x0b\x41\x45S_128_GCM\x10)\x12\x0f\n\x0b\x41\x45S_256_GCM\x10\x13\x12\x0f\n\x0b\x41\x45S_128_CBC\x10*\x12\x0f\n\x0b\x41\x45S_256_CBC\x10+\x12\x0f\n\x0b\x41\x45S_128_CTR\x10,\x12\x0f\n\x0b\x41\x45S_256_CTR\x10-\x12\x1c\n\x18RSA_SIGN_PSS_2048_SHA256\x10\x02\x12\x1c\n\x18RSA_SIGN_PSS_3072_SHA256\x10\x03\x12\x1c\n\x18RSA_SIGN_PSS_4096_SHA256\x10\x04\x12\x1c\n\x18RSA_SIGN_PSS_4096_SHA512\x10\x0f\x12\x1e\n\x1aRSA_SIGN_PKCS1_2048_SHA256\x10\x05\x12\x1e\n\x1aRSA_SIGN_PKCS1_3072_SHA256\x10\x06\x12\x1e\n\x1aRSA_SIGN_PKCS1_4096_SHA256\x10\x07\x12\x1e\n\x1aRSA_SIGN_PKCS1_4096_SHA512\x10\x10\x12\x1b\n\x17RSA_SIGN_RAW_PKCS1_2048\x10\x1c\x12\x1b\n\x17RSA_SIGN_RAW_PKCS1_3072\x10\x1d\x12\x1b\n\x17RSA_SIGN_RAW_PKCS1_4096\x10\x1e\x12 \n\x1cRSA_DECRYPT_OAEP_2048_SHA256\x10\x08\x12 \n\x1cRSA_DECRYPT_OAEP_3072_SHA256\x10\t\x12 \n\x1cRSA_DECRYPT_OAEP_4096_SHA256\x10\n\x12 \n\x1cRSA_DECRYPT_OAEP_4096_SHA512\x10\x11\x12\x1e\n\x1aRSA_DECRYPT_OAEP_2048_SHA1\x10%\x12\x1e\n\x1aRSA_DECRYPT_OAEP_3072_SHA1\x10&\x12\x1e\n\x1aRSA_DECRYPT_OAEP_4096_SHA1\x10\'\x12\x17\n\x13\x45\x43_SIGN_P256_SHA256\x10\x0c\x12\x17\n\x13\x45\x43_SIGN_P384_SHA384\x10\r\x12\x1c\n\x18\x45\x43_SIGN_SECP256K1_SHA256\x10\x1f\x12\x0f\n\x0bHMAC_SHA256\x10 \x12\r\n\tHMAC_SHA1\x10!\x12\x0f\n\x0bHMAC_SHA384\x10\"\x12\x0f\n\x0bHMAC_SHA512\x10#\x12\x0f\n\x0bHMAC_SHA224\x10$\x12!\n\x1d\x45XTERNAL_SYMMETRIC_ENCRYPTION\x10\x12\"\x9b\x02\n\x15\x43ryptoKeyVersionState\x12(\n$CRYPTO_KEY_VERSION_STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12PENDING_GENERATION\x10\x05\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\r\n\tDESTROYED\x10\x03\x12\x15\n\x11\x44\x45STROY_SCHEDULED\x10\x04\x12\x12\n\x0ePENDING_IMPORT\x10\x06\x12\x11\n\rIMPORT_FAILED\x10\x07\x12\x15\n\x11GENERATION_FAILED\x10\x08\x12 \n\x1cPENDING_EXTERNAL_DESTRUCTION\x10\t\x12\x1f\n\x1b\x45XTERNAL_DESTRUCTION_FAILED\x10\n\"I\n\x14\x43ryptoKeyVersionView\x12\'\n#CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01:\xaa\x01\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\"\x9c\x03\n\tPublicKey\x12\x0b\n\x03pem\x18\x01 \x01(\t\x12R\n\talgorithm\x18\x02 \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm\x12/\n\npem_crc32c\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x0c\n\x04name\x18\x04 \x01(\t\x12>\n\x10protection_level\x18\x05 \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevel:\xae\x01\xea\x41\xaa\x01\n!cloudkms.googleapis.com/PublicKey\x12\x84\x01projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}/publicKey\"\xd4\x08\n\tImportJob\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\rimport_method\x18\x02 \x01(\x0e\x32+.google.cloud.kms.v1.ImportJob.ImportMethodB\x06\xe0\x41\x02\xe0\x41\x05\x12\x46\n\x10protection_level\x18\t \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevelB\x06\xe0\x41\x02\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rgenerate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x11\x65xpire_event_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x06 \x01(\x0e\x32-.google.cloud.kms.v1.ImportJob.ImportJobStateB\x03\xe0\x41\x03\x12I\n\npublic_key\x18\x07 \x01(\x0b\x32\x30.google.cloud.kms.v1.ImportJob.WrappingPublicKeyB\x03\xe0\x41\x03\x12\x46\n\x0b\x61ttestation\x18\x08 \x01(\x0b\x32,.google.cloud.kms.v1.KeyOperationAttestationB\x03\xe0\x41\x03\x1a \n\x11WrappingPublicKey\x12\x0b\n\x03pem\x18\x01 \x01(\t\"\xe5\x01\n\x0cImportMethod\x12\x1d\n\x19IMPORT_METHOD_UNSPECIFIED\x10\x00\x12\x1e\n\x1aRSA_OAEP_3072_SHA1_AES_256\x10\x01\x12\x1e\n\x1aRSA_OAEP_4096_SHA1_AES_256\x10\x02\x12 \n\x1cRSA_OAEP_3072_SHA256_AES_256\x10\x03\x12 \n\x1cRSA_OAEP_4096_SHA256_AES_256\x10\x04\x12\x18\n\x14RSA_OAEP_3072_SHA256\x10\x05\x12\x18\n\x14RSA_OAEP_4096_SHA256\x10\x06\"c\n\x0eImportJobState\x12 \n\x1cIMPORT_JOB_STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12PENDING_GENERATION\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0b\n\x07\x45XPIRED\x10\x03:{\xea\x41x\n!cloudkms.googleapis.com/ImportJob\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/importJobs/{import_job}\"[\n\x1e\x45xternalProtectionLevelOptions\x12\x18\n\x10\x65xternal_key_uri\x18\x01 \x01(\t\x12\x1f\n\x17\x65km_connection_key_path\x18\x02 \x01(\t*j\n\x0fProtectionLevel\x12 \n\x1cPROTECTION_LEVEL_UNSPECIFIED\x10\x00\x12\x0c\n\x08SOFTWARE\x10\x01\x12\x07\n\x03HSM\x10\x02\x12\x0c\n\x08\x45XTERNAL\x10\x03\x12\x10\n\x0c\x45XTERNAL_VPC\x10\x04\x42\x88\x01\n\x17\x63om.google.cloud.kms.v1B\x11KmsResourcesProtoP\x01Z)cloud.google.com/go/kms/apiv1/kmspb;kmspb\xf8\x01\x01\xaa\x02\x13Google.Cloud.Kms.V1\xca\x02\x13Google\\Cloud\\Kms\\V1b\x06proto3"
|
14
|
+
descriptor_data = "\n#google/cloud/kms/v1/resources.proto\x12\x13google.cloud.kms.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xb5\x01\n\x07KeyRing\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:a\xea\x41^\n\x1f\x63loudkms.googleapis.com/KeyRing\x12;projects/{project}/locations/{location}/keyRings/{key_ring}\"\x91\x08\n\tCryptoKey\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12;\n\x07primary\x18\x02 \x01(\x0b\x32%.google.cloud.kms.v1.CryptoKeyVersionB\x03\xe0\x41\x03\x12\x45\n\x07purpose\x18\x03 \x01(\x0e\x32/.google.cloud.kms.v1.CryptoKey.CryptoKeyPurposeB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\x12next_rotation_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x0frotation_period\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12G\n\x10version_template\x18\x0b \x01(\x0b\x32-.google.cloud.kms.v1.CryptoKeyVersionTemplate\x12:\n\x06labels\x18\n \x03(\x0b\x32*.google.cloud.kms.v1.CryptoKey.LabelsEntry\x12\x18\n\x0bimport_only\x18\r \x01(\x08\x42\x03\xe0\x41\x05\x12\x42\n\x1a\x64\x65stroy_scheduled_duration\x18\x0e \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x05\x12%\n\x12\x63rypto_key_backend\x18\x0f \x01(\tB\t\xe0\x41\x05\xfa\x41\x03\n\x01*\x12\x61\n key_access_justifications_policy\x18\x11 \x01(\x0b\x32\x32.google.cloud.kms.v1.KeyAccessJustificationsPolicyB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9a\x01\n\x10\x43ryptoKeyPurpose\x12\"\n\x1e\x43RYPTO_KEY_PURPOSE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x45NCRYPT_DECRYPT\x10\x01\x12\x13\n\x0f\x41SYMMETRIC_SIGN\x10\x05\x12\x16\n\x12\x41SYMMETRIC_DECRYPT\x10\x06\x12\x17\n\x13RAW_ENCRYPT_DECRYPT\x10\x07\x12\x07\n\x03MAC\x10\t:{\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}B\x13\n\x11rotation_schedule\"\xb3\x01\n\x18\x43ryptoKeyVersionTemplate\x12>\n\x10protection_level\x18\x01 \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevel\x12W\n\talgorithm\x18\x03 \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithmB\x03\xe0\x41\x02\"\xb1\x03\n\x17KeyOperationAttestation\x12S\n\x06\x66ormat\x18\x04 \x01(\x0e\x32>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormatB\x03\xe0\x41\x03\x12\x14\n\x07\x63ontent\x18\x05 \x01(\x0c\x42\x03\xe0\x41\x03\x12X\n\x0b\x63\x65rt_chains\x18\x06 \x01(\x0b\x32>.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsB\x03\xe0\x41\x03\x1a\x64\n\x11\x43\x65rtificateChains\x12\x14\n\x0c\x63\x61vium_certs\x18\x01 \x03(\t\x12\x19\n\x11google_card_certs\x18\x02 \x03(\t\x12\x1e\n\x16google_partition_certs\x18\x03 \x03(\t\"k\n\x11\x41ttestationFormat\x12\"\n\x1e\x41TTESTATION_FORMAT_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43\x41VIUM_V1_COMPRESSED\x10\x03\x12\x18\n\x14\x43\x41VIUM_V2_COMPRESSED\x10\x04\"\x81\x13\n\x10\x43ryptoKeyVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x05state\x18\x03 \x01(\x0e\x32;.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState\x12\x43\n\x10protection_level\x18\x07 \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevelB\x03\xe0\x41\x03\x12W\n\talgorithm\x18\n \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithmB\x03\xe0\x41\x03\x12\x46\n\x0b\x61ttestation\x18\x08 \x01(\x0b\x32,.google.cloud.kms.v1.KeyOperationAttestationB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rgenerate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0c\x64\x65stroy_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12;\n\x12\x64\x65stroy_event_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nimport_job\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0bimport_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\"\n\x15import_failure_reason\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12&\n\x19generation_failure_reason\x18\x13 \x01(\tB\x03\xe0\x41\x03\x12\x30\n#external_destruction_failure_reason\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12^\n!external_protection_level_options\x18\x11 \x01(\x0b\x32\x33.google.cloud.kms.v1.ExternalProtectionLevelOptions\x12\x1e\n\x11reimport_eligible\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\"\xe2\x07\n\x19\x43ryptoKeyVersionAlgorithm\x12,\n(CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED\x10\x00\x12\x1f\n\x1bGOOGLE_SYMMETRIC_ENCRYPTION\x10\x01\x12\x0f\n\x0b\x41\x45S_128_GCM\x10)\x12\x0f\n\x0b\x41\x45S_256_GCM\x10\x13\x12\x0f\n\x0b\x41\x45S_128_CBC\x10*\x12\x0f\n\x0b\x41\x45S_256_CBC\x10+\x12\x0f\n\x0b\x41\x45S_128_CTR\x10,\x12\x0f\n\x0b\x41\x45S_256_CTR\x10-\x12\x1c\n\x18RSA_SIGN_PSS_2048_SHA256\x10\x02\x12\x1c\n\x18RSA_SIGN_PSS_3072_SHA256\x10\x03\x12\x1c\n\x18RSA_SIGN_PSS_4096_SHA256\x10\x04\x12\x1c\n\x18RSA_SIGN_PSS_4096_SHA512\x10\x0f\x12\x1e\n\x1aRSA_SIGN_PKCS1_2048_SHA256\x10\x05\x12\x1e\n\x1aRSA_SIGN_PKCS1_3072_SHA256\x10\x06\x12\x1e\n\x1aRSA_SIGN_PKCS1_4096_SHA256\x10\x07\x12\x1e\n\x1aRSA_SIGN_PKCS1_4096_SHA512\x10\x10\x12\x1b\n\x17RSA_SIGN_RAW_PKCS1_2048\x10\x1c\x12\x1b\n\x17RSA_SIGN_RAW_PKCS1_3072\x10\x1d\x12\x1b\n\x17RSA_SIGN_RAW_PKCS1_4096\x10\x1e\x12 \n\x1cRSA_DECRYPT_OAEP_2048_SHA256\x10\x08\x12 \n\x1cRSA_DECRYPT_OAEP_3072_SHA256\x10\t\x12 \n\x1cRSA_DECRYPT_OAEP_4096_SHA256\x10\n\x12 \n\x1cRSA_DECRYPT_OAEP_4096_SHA512\x10\x11\x12\x1e\n\x1aRSA_DECRYPT_OAEP_2048_SHA1\x10%\x12\x1e\n\x1aRSA_DECRYPT_OAEP_3072_SHA1\x10&\x12\x1e\n\x1aRSA_DECRYPT_OAEP_4096_SHA1\x10\'\x12\x17\n\x13\x45\x43_SIGN_P256_SHA256\x10\x0c\x12\x17\n\x13\x45\x43_SIGN_P384_SHA384\x10\r\x12\x1c\n\x18\x45\x43_SIGN_SECP256K1_SHA256\x10\x1f\x12\x13\n\x0f\x45\x43_SIGN_ED25519\x10(\x12\x0f\n\x0bHMAC_SHA256\x10 \x12\r\n\tHMAC_SHA1\x10!\x12\x0f\n\x0bHMAC_SHA384\x10\"\x12\x0f\n\x0bHMAC_SHA512\x10#\x12\x0f\n\x0bHMAC_SHA224\x10$\x12!\n\x1d\x45XTERNAL_SYMMETRIC_ENCRYPTION\x10\x12\"\x9b\x02\n\x15\x43ryptoKeyVersionState\x12(\n$CRYPTO_KEY_VERSION_STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12PENDING_GENERATION\x10\x05\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\r\n\tDESTROYED\x10\x03\x12\x15\n\x11\x44\x45STROY_SCHEDULED\x10\x04\x12\x12\n\x0ePENDING_IMPORT\x10\x06\x12\x11\n\rIMPORT_FAILED\x10\x07\x12\x15\n\x11GENERATION_FAILED\x10\x08\x12 \n\x1cPENDING_EXTERNAL_DESTRUCTION\x10\t\x12\x1f\n\x1b\x45XTERNAL_DESTRUCTION_FAILED\x10\n\"I\n\x14\x43ryptoKeyVersionView\x12\'\n#CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01:\xaa\x01\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\"\x9c\x03\n\tPublicKey\x12\x0b\n\x03pem\x18\x01 \x01(\t\x12R\n\talgorithm\x18\x02 \x01(\x0e\x32?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm\x12/\n\npem_crc32c\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x0c\n\x04name\x18\x04 \x01(\t\x12>\n\x10protection_level\x18\x05 \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevel:\xae\x01\xea\x41\xaa\x01\n!cloudkms.googleapis.com/PublicKey\x12\x84\x01projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}/publicKey\"\xd4\x08\n\tImportJob\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\rimport_method\x18\x02 \x01(\x0e\x32+.google.cloud.kms.v1.ImportJob.ImportMethodB\x06\xe0\x41\x02\xe0\x41\x05\x12\x46\n\x10protection_level\x18\t \x01(\x0e\x32$.google.cloud.kms.v1.ProtectionLevelB\x06\xe0\x41\x02\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rgenerate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x11\x65xpire_event_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x06 \x01(\x0e\x32-.google.cloud.kms.v1.ImportJob.ImportJobStateB\x03\xe0\x41\x03\x12I\n\npublic_key\x18\x07 \x01(\x0b\x32\x30.google.cloud.kms.v1.ImportJob.WrappingPublicKeyB\x03\xe0\x41\x03\x12\x46\n\x0b\x61ttestation\x18\x08 \x01(\x0b\x32,.google.cloud.kms.v1.KeyOperationAttestationB\x03\xe0\x41\x03\x1a \n\x11WrappingPublicKey\x12\x0b\n\x03pem\x18\x01 \x01(\t\"\xe5\x01\n\x0cImportMethod\x12\x1d\n\x19IMPORT_METHOD_UNSPECIFIED\x10\x00\x12\x1e\n\x1aRSA_OAEP_3072_SHA1_AES_256\x10\x01\x12\x1e\n\x1aRSA_OAEP_4096_SHA1_AES_256\x10\x02\x12 \n\x1cRSA_OAEP_3072_SHA256_AES_256\x10\x03\x12 \n\x1cRSA_OAEP_4096_SHA256_AES_256\x10\x04\x12\x18\n\x14RSA_OAEP_3072_SHA256\x10\x05\x12\x18\n\x14RSA_OAEP_4096_SHA256\x10\x06\"c\n\x0eImportJobState\x12 \n\x1cIMPORT_JOB_STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12PENDING_GENERATION\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0b\n\x07\x45XPIRED\x10\x03:{\xea\x41x\n!cloudkms.googleapis.com/ImportJob\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/importJobs/{import_job}\"[\n\x1e\x45xternalProtectionLevelOptions\x12\x18\n\x10\x65xternal_key_uri\x18\x01 \x01(\t\x12\x1f\n\x17\x65km_connection_key_path\x18\x02 \x01(\t\"b\n\x1dKeyAccessJustificationsPolicy\x12\x41\n\x16\x61llowed_access_reasons\x18\x01 \x03(\x0e\x32!.google.cloud.kms.v1.AccessReason*j\n\x0fProtectionLevel\x12 \n\x1cPROTECTION_LEVEL_UNSPECIFIED\x10\x00\x12\x0c\n\x08SOFTWARE\x10\x01\x12\x07\n\x03HSM\x10\x02\x12\x0c\n\x08\x45XTERNAL\x10\x03\x12\x10\n\x0c\x45XTERNAL_VPC\x10\x04*\xab\x03\n\x0c\x41\x63\x63\x65ssReason\x12\x16\n\x12REASON_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43USTOMER_INITIATED_SUPPORT\x10\x01\x12\x1c\n\x18GOOGLE_INITIATED_SERVICE\x10\x02\x12\x1c\n\x18THIRD_PARTY_DATA_REQUEST\x10\x03\x12\x1b\n\x17GOOGLE_INITIATED_REVIEW\x10\x04\x12\x1d\n\x19\x43USTOMER_INITIATED_ACCESS\x10\x05\x12%\n!GOOGLE_INITIATED_SYSTEM_OPERATION\x10\x06\x12\x17\n\x13REASON_NOT_EXPECTED\x10\x07\x12&\n\"MODIFIED_CUSTOMER_INITIATED_ACCESS\x10\x08\x12.\n*MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION\x10\t\x12\'\n#GOOGLE_RESPONSE_TO_PRODUCTION_ALERT\x10\n\x12*\n&CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING\x10\x0b\x42\x88\x01\n\x17\x63om.google.cloud.kms.v1B\x11KmsResourcesProtoP\x01Z)cloud.google.com/go/kms/apiv1/kmspb;kmspb\xf8\x01\x01\xaa\x02\x13Google.Cloud.Kms.V1\xca\x02\x13Google\\Cloud\\Kms\\V1b\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
@@ -61,7 +61,9 @@ module Google
|
|
61
61
|
ImportJob::ImportMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportJob.ImportMethod").enummodule
|
62
62
|
ImportJob::ImportJobState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportJob.ImportJobState").enummodule
|
63
63
|
ExternalProtectionLevelOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ExternalProtectionLevelOptions").msgclass
|
64
|
+
KeyAccessJustificationsPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.KeyAccessJustificationsPolicy").msgclass
|
64
65
|
ProtectionLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ProtectionLevel").enummodule
|
66
|
+
AccessReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.AccessReason").enummodule
|
65
67
|
end
|
66
68
|
end
|
67
69
|
end
|
@@ -16,6 +16,8 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
+
require "google/cloud/kms/v1/autokey/rest"
|
20
|
+
require "google/cloud/kms/v1/autokey_admin/rest"
|
19
21
|
require "google/cloud/kms/v1/ekm_service/rest"
|
20
22
|
require "google/cloud/kms/v1/key_management_service/rest"
|
21
23
|
require "google/cloud/kms/v1/bindings_override"
|
@@ -30,7 +32,7 @@ module Google
|
|
30
32
|
# @example
|
31
33
|
#
|
32
34
|
# require "google/cloud/kms/v1/rest"
|
33
|
-
# client = ::Google::Cloud::Kms::V1::
|
35
|
+
# client = ::Google::Cloud::Kms::V1::Autokey::Rest::Client.new
|
34
36
|
#
|
35
37
|
module V1
|
36
38
|
end
|
data/lib/google/cloud/kms/v1.rb
CHANGED
@@ -16,6 +16,8 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
+
require "google/cloud/kms/v1/autokey"
|
20
|
+
require "google/cloud/kms/v1/autokey_admin"
|
19
21
|
require "google/cloud/kms/v1/ekm_service"
|
20
22
|
require "google/cloud/kms/v1/key_management_service"
|
21
23
|
require "google/cloud/kms/v1/version"
|
@@ -29,12 +31,12 @@ module Google
|
|
29
31
|
# @example Load this package, including all its services, and instantiate a gRPC client
|
30
32
|
#
|
31
33
|
# require "google/cloud/kms/v1"
|
32
|
-
# client = ::Google::Cloud::Kms::V1::
|
34
|
+
# client = ::Google::Cloud::Kms::V1::Autokey::Client.new
|
33
35
|
#
|
34
36
|
# @example Load this package, including all its services, and instantiate a REST client
|
35
37
|
#
|
36
38
|
# require "google/cloud/kms/v1"
|
37
|
-
# client = ::Google::Cloud::Kms::V1::
|
39
|
+
# client = ::Google::Cloud::Kms::V1::Autokey::Rest::Client.new
|
38
40
|
#
|
39
41
|
module V1
|
40
42
|
end
|