google-cloud-kms 1.5.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +203 -0
- data/MIGRATING.md +326 -0
- data/README.md +92 -44
- data/lib/{google/cloud/kms/v1/doc/google/iam/v1/iam_policy.rb → google-cloud-kms.rb} +4 -6
- data/lib/google/cloud/kms.rb +92 -122
- data/lib/google/cloud/kms/version.rb +6 -2
- metadata +51 -64
- data/LICENSE +0 -201
- data/lib/google/cloud/kms/v1.rb +0 -159
- data/lib/google/cloud/kms/v1/credentials.rb +0 -42
- data/lib/google/cloud/kms/v1/doc/google/cloud/kms/v1/resources.rb +0 -524
- data/lib/google/cloud/kms/v1/doc/google/cloud/kms/v1/service.rb +0 -486
- data/lib/google/cloud/kms/v1/doc/google/iam/v1/options.rb +0 -21
- data/lib/google/cloud/kms/v1/doc/google/iam/v1/policy.rb +0 -21
- data/lib/google/cloud/kms/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/kms/v1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/kms/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/kms/v1/doc/google/type/expr.rb +0 -19
- data/lib/google/cloud/kms/v1/helpers.rb +0 -80
- data/lib/google/cloud/kms/v1/key_management_service_client.rb +0 -1813
- data/lib/google/cloud/kms/v1/key_management_service_client_config.json +0 -162
- data/lib/google/cloud/kms/v1/resources_pb.rb +0 -155
- data/lib/google/cloud/kms/v1/service_pb.rb +0 -208
- data/lib/google/cloud/kms/v1/service_services_pb.rb +0 -151
@@ -1,162 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.cloud.kms.v1.KeyManagementService": {
|
4
|
-
"retry_codes": {
|
5
|
-
"retryable": [
|
6
|
-
"DEADLINE_EXCEEDED",
|
7
|
-
"INTERNAL",
|
8
|
-
"UNAVAILABLE"
|
9
|
-
],
|
10
|
-
"idempotent": [
|
11
|
-
"DEADLINE_EXCEEDED",
|
12
|
-
"UNAVAILABLE"
|
13
|
-
],
|
14
|
-
"non_idempotent": [],
|
15
|
-
"non_retryable": []
|
16
|
-
},
|
17
|
-
"retry_params": {
|
18
|
-
"default": {
|
19
|
-
"initial_retry_delay_millis": 100,
|
20
|
-
"retry_delay_multiplier": 1.3,
|
21
|
-
"max_retry_delay_millis": 60000,
|
22
|
-
"initial_rpc_timeout_millis": 20000,
|
23
|
-
"rpc_timeout_multiplier": 1.0,
|
24
|
-
"max_rpc_timeout_millis": 20000,
|
25
|
-
"total_timeout_millis": 600000
|
26
|
-
}
|
27
|
-
},
|
28
|
-
"methods": {
|
29
|
-
"ListKeyRings": {
|
30
|
-
"timeout_millis": 60000,
|
31
|
-
"retry_codes_name": "retryable",
|
32
|
-
"retry_params_name": "default"
|
33
|
-
},
|
34
|
-
"ListImportJobs": {
|
35
|
-
"timeout_millis": 60000,
|
36
|
-
"retry_codes_name": "retryable",
|
37
|
-
"retry_params_name": "default"
|
38
|
-
},
|
39
|
-
"ListCryptoKeys": {
|
40
|
-
"timeout_millis": 60000,
|
41
|
-
"retry_codes_name": "retryable",
|
42
|
-
"retry_params_name": "default"
|
43
|
-
},
|
44
|
-
"ListCryptoKeyVersions": {
|
45
|
-
"timeout_millis": 60000,
|
46
|
-
"retry_codes_name": "retryable",
|
47
|
-
"retry_params_name": "default"
|
48
|
-
},
|
49
|
-
"GetKeyRing": {
|
50
|
-
"timeout_millis": 60000,
|
51
|
-
"retry_codes_name": "retryable",
|
52
|
-
"retry_params_name": "default"
|
53
|
-
},
|
54
|
-
"GetImportJob": {
|
55
|
-
"timeout_millis": 60000,
|
56
|
-
"retry_codes_name": "retryable",
|
57
|
-
"retry_params_name": "default"
|
58
|
-
},
|
59
|
-
"GetCryptoKey": {
|
60
|
-
"timeout_millis": 60000,
|
61
|
-
"retry_codes_name": "retryable",
|
62
|
-
"retry_params_name": "default"
|
63
|
-
},
|
64
|
-
"GetCryptoKeyVersion": {
|
65
|
-
"timeout_millis": 60000,
|
66
|
-
"retry_codes_name": "retryable",
|
67
|
-
"retry_params_name": "default"
|
68
|
-
},
|
69
|
-
"CreateKeyRing": {
|
70
|
-
"timeout_millis": 60000,
|
71
|
-
"retry_codes_name": "retryable",
|
72
|
-
"retry_params_name": "default"
|
73
|
-
},
|
74
|
-
"CreateImportJob": {
|
75
|
-
"timeout_millis": 60000,
|
76
|
-
"retry_codes_name": "retryable",
|
77
|
-
"retry_params_name": "default"
|
78
|
-
},
|
79
|
-
"CreateCryptoKey": {
|
80
|
-
"timeout_millis": 60000,
|
81
|
-
"retry_codes_name": "retryable",
|
82
|
-
"retry_params_name": "default"
|
83
|
-
},
|
84
|
-
"CreateCryptoKeyVersion": {
|
85
|
-
"timeout_millis": 60000,
|
86
|
-
"retry_codes_name": "non_retryable",
|
87
|
-
"retry_params_name": "default"
|
88
|
-
},
|
89
|
-
"ImportCryptoKeyVersion": {
|
90
|
-
"timeout_millis": 60000,
|
91
|
-
"retry_codes_name": "non_retryable",
|
92
|
-
"retry_params_name": "default"
|
93
|
-
},
|
94
|
-
"UpdateCryptoKey": {
|
95
|
-
"timeout_millis": 60000,
|
96
|
-
"retry_codes_name": "retryable",
|
97
|
-
"retry_params_name": "default"
|
98
|
-
},
|
99
|
-
"UpdateCryptoKeyVersion": {
|
100
|
-
"timeout_millis": 60000,
|
101
|
-
"retry_codes_name": "retryable",
|
102
|
-
"retry_params_name": "default"
|
103
|
-
},
|
104
|
-
"Encrypt": {
|
105
|
-
"timeout_millis": 60000,
|
106
|
-
"retry_codes_name": "retryable",
|
107
|
-
"retry_params_name": "default"
|
108
|
-
},
|
109
|
-
"Decrypt": {
|
110
|
-
"timeout_millis": 60000,
|
111
|
-
"retry_codes_name": "retryable",
|
112
|
-
"retry_params_name": "default"
|
113
|
-
},
|
114
|
-
"UpdateCryptoKeyPrimaryVersion": {
|
115
|
-
"timeout_millis": 60000,
|
116
|
-
"retry_codes_name": "retryable",
|
117
|
-
"retry_params_name": "default"
|
118
|
-
},
|
119
|
-
"DestroyCryptoKeyVersion": {
|
120
|
-
"timeout_millis": 60000,
|
121
|
-
"retry_codes_name": "retryable",
|
122
|
-
"retry_params_name": "default"
|
123
|
-
},
|
124
|
-
"RestoreCryptoKeyVersion": {
|
125
|
-
"timeout_millis": 60000,
|
126
|
-
"retry_codes_name": "retryable",
|
127
|
-
"retry_params_name": "default"
|
128
|
-
},
|
129
|
-
"GetPublicKey": {
|
130
|
-
"timeout_millis": 60000,
|
131
|
-
"retry_codes_name": "retryable",
|
132
|
-
"retry_params_name": "default"
|
133
|
-
},
|
134
|
-
"AsymmetricDecrypt": {
|
135
|
-
"timeout_millis": 60000,
|
136
|
-
"retry_codes_name": "retryable",
|
137
|
-
"retry_params_name": "default"
|
138
|
-
},
|
139
|
-
"AsymmetricSign": {
|
140
|
-
"timeout_millis": 60000,
|
141
|
-
"retry_codes_name": "retryable",
|
142
|
-
"retry_params_name": "default"
|
143
|
-
},
|
144
|
-
"SetIamPolicy": {
|
145
|
-
"timeout_millis": 60000,
|
146
|
-
"retry_codes_name": "retryable",
|
147
|
-
"retry_params_name": "default"
|
148
|
-
},
|
149
|
-
"GetIamPolicy": {
|
150
|
-
"timeout_millis": 60000,
|
151
|
-
"retry_codes_name": "retryable",
|
152
|
-
"retry_params_name": "default"
|
153
|
-
},
|
154
|
-
"TestIamPermissions": {
|
155
|
-
"timeout_millis": 60000,
|
156
|
-
"retry_codes_name": "retryable",
|
157
|
-
"retry_params_name": "default"
|
158
|
-
}
|
159
|
-
}
|
160
|
-
}
|
161
|
-
}
|
162
|
-
}
|
@@ -1,155 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/kms/v1/resources.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/field_behavior_pb'
|
9
|
-
require 'google/api/resource_pb'
|
10
|
-
require 'google/protobuf/duration_pb'
|
11
|
-
require 'google/protobuf/timestamp_pb'
|
12
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
-
add_message "google.cloud.kms.v1.KeyRing" do
|
14
|
-
optional :name, :string, 1
|
15
|
-
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
16
|
-
end
|
17
|
-
add_message "google.cloud.kms.v1.CryptoKey" do
|
18
|
-
optional :name, :string, 1
|
19
|
-
optional :primary, :message, 2, "google.cloud.kms.v1.CryptoKeyVersion"
|
20
|
-
optional :purpose, :enum, 3, "google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose"
|
21
|
-
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
22
|
-
optional :next_rotation_time, :message, 7, "google.protobuf.Timestamp"
|
23
|
-
optional :version_template, :message, 11, "google.cloud.kms.v1.CryptoKeyVersionTemplate"
|
24
|
-
map :labels, :string, :string, 10
|
25
|
-
oneof :rotation_schedule do
|
26
|
-
optional :rotation_period, :message, 8, "google.protobuf.Duration"
|
27
|
-
end
|
28
|
-
end
|
29
|
-
add_enum "google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose" do
|
30
|
-
value :CRYPTO_KEY_PURPOSE_UNSPECIFIED, 0
|
31
|
-
value :ENCRYPT_DECRYPT, 1
|
32
|
-
value :ASYMMETRIC_SIGN, 5
|
33
|
-
value :ASYMMETRIC_DECRYPT, 6
|
34
|
-
end
|
35
|
-
add_message "google.cloud.kms.v1.CryptoKeyVersionTemplate" do
|
36
|
-
optional :protection_level, :enum, 1, "google.cloud.kms.v1.ProtectionLevel"
|
37
|
-
optional :algorithm, :enum, 3, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm"
|
38
|
-
end
|
39
|
-
add_message "google.cloud.kms.v1.KeyOperationAttestation" do
|
40
|
-
optional :format, :enum, 4, "google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat"
|
41
|
-
optional :content, :bytes, 5
|
42
|
-
end
|
43
|
-
add_enum "google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat" do
|
44
|
-
value :ATTESTATION_FORMAT_UNSPECIFIED, 0
|
45
|
-
value :CAVIUM_V1_COMPRESSED, 3
|
46
|
-
value :CAVIUM_V2_COMPRESSED, 4
|
47
|
-
end
|
48
|
-
add_message "google.cloud.kms.v1.CryptoKeyVersion" do
|
49
|
-
optional :name, :string, 1
|
50
|
-
optional :state, :enum, 3, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState"
|
51
|
-
optional :protection_level, :enum, 7, "google.cloud.kms.v1.ProtectionLevel"
|
52
|
-
optional :algorithm, :enum, 10, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm"
|
53
|
-
optional :attestation, :message, 8, "google.cloud.kms.v1.KeyOperationAttestation"
|
54
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
55
|
-
optional :generate_time, :message, 11, "google.protobuf.Timestamp"
|
56
|
-
optional :destroy_time, :message, 5, "google.protobuf.Timestamp"
|
57
|
-
optional :destroy_event_time, :message, 6, "google.protobuf.Timestamp"
|
58
|
-
optional :import_job, :string, 14
|
59
|
-
optional :import_time, :message, 15, "google.protobuf.Timestamp"
|
60
|
-
optional :import_failure_reason, :string, 16
|
61
|
-
end
|
62
|
-
add_enum "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm" do
|
63
|
-
value :CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED, 0
|
64
|
-
value :GOOGLE_SYMMETRIC_ENCRYPTION, 1
|
65
|
-
value :RSA_SIGN_PSS_2048_SHA256, 2
|
66
|
-
value :RSA_SIGN_PSS_3072_SHA256, 3
|
67
|
-
value :RSA_SIGN_PSS_4096_SHA256, 4
|
68
|
-
value :RSA_SIGN_PSS_4096_SHA512, 15
|
69
|
-
value :RSA_SIGN_PKCS1_2048_SHA256, 5
|
70
|
-
value :RSA_SIGN_PKCS1_3072_SHA256, 6
|
71
|
-
value :RSA_SIGN_PKCS1_4096_SHA256, 7
|
72
|
-
value :RSA_SIGN_PKCS1_4096_SHA512, 16
|
73
|
-
value :RSA_DECRYPT_OAEP_2048_SHA256, 8
|
74
|
-
value :RSA_DECRYPT_OAEP_3072_SHA256, 9
|
75
|
-
value :RSA_DECRYPT_OAEP_4096_SHA256, 10
|
76
|
-
value :RSA_DECRYPT_OAEP_4096_SHA512, 17
|
77
|
-
value :EC_SIGN_P256_SHA256, 12
|
78
|
-
value :EC_SIGN_P384_SHA384, 13
|
79
|
-
end
|
80
|
-
add_enum "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState" do
|
81
|
-
value :CRYPTO_KEY_VERSION_STATE_UNSPECIFIED, 0
|
82
|
-
value :PENDING_GENERATION, 5
|
83
|
-
value :ENABLED, 1
|
84
|
-
value :DISABLED, 2
|
85
|
-
value :DESTROYED, 3
|
86
|
-
value :DESTROY_SCHEDULED, 4
|
87
|
-
value :PENDING_IMPORT, 6
|
88
|
-
value :IMPORT_FAILED, 7
|
89
|
-
end
|
90
|
-
add_enum "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView" do
|
91
|
-
value :CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED, 0
|
92
|
-
value :FULL, 1
|
93
|
-
end
|
94
|
-
add_message "google.cloud.kms.v1.PublicKey" do
|
95
|
-
optional :pem, :string, 1
|
96
|
-
optional :algorithm, :enum, 2, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm"
|
97
|
-
end
|
98
|
-
add_message "google.cloud.kms.v1.ImportJob" do
|
99
|
-
optional :name, :string, 1
|
100
|
-
optional :import_method, :enum, 2, "google.cloud.kms.v1.ImportJob.ImportMethod"
|
101
|
-
optional :protection_level, :enum, 9, "google.cloud.kms.v1.ProtectionLevel"
|
102
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
103
|
-
optional :generate_time, :message, 4, "google.protobuf.Timestamp"
|
104
|
-
optional :expire_time, :message, 5, "google.protobuf.Timestamp"
|
105
|
-
optional :expire_event_time, :message, 10, "google.protobuf.Timestamp"
|
106
|
-
optional :state, :enum, 6, "google.cloud.kms.v1.ImportJob.ImportJobState"
|
107
|
-
optional :public_key, :message, 7, "google.cloud.kms.v1.ImportJob.WrappingPublicKey"
|
108
|
-
optional :attestation, :message, 8, "google.cloud.kms.v1.KeyOperationAttestation"
|
109
|
-
end
|
110
|
-
add_message "google.cloud.kms.v1.ImportJob.WrappingPublicKey" do
|
111
|
-
optional :pem, :string, 1
|
112
|
-
end
|
113
|
-
add_enum "google.cloud.kms.v1.ImportJob.ImportMethod" do
|
114
|
-
value :IMPORT_METHOD_UNSPECIFIED, 0
|
115
|
-
value :RSA_OAEP_3072_SHA1_AES_256, 1
|
116
|
-
value :RSA_OAEP_4096_SHA1_AES_256, 2
|
117
|
-
end
|
118
|
-
add_enum "google.cloud.kms.v1.ImportJob.ImportJobState" do
|
119
|
-
value :IMPORT_JOB_STATE_UNSPECIFIED, 0
|
120
|
-
value :PENDING_GENERATION, 1
|
121
|
-
value :ACTIVE, 2
|
122
|
-
value :EXPIRED, 3
|
123
|
-
end
|
124
|
-
add_enum "google.cloud.kms.v1.ProtectionLevel" do
|
125
|
-
value :PROTECTION_LEVEL_UNSPECIFIED, 0
|
126
|
-
value :SOFTWARE, 1
|
127
|
-
value :HSM, 2
|
128
|
-
value :EXTERNAL, 3
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
module Google
|
133
|
-
module Cloud
|
134
|
-
module Kms
|
135
|
-
module V1
|
136
|
-
KeyRing = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.KeyRing").msgclass
|
137
|
-
CryptoKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKey").msgclass
|
138
|
-
CryptoKey::CryptoKeyPurpose = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose").enummodule
|
139
|
-
CryptoKeyVersionTemplate = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKeyVersionTemplate").msgclass
|
140
|
-
KeyOperationAttestation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.KeyOperationAttestation").msgclass
|
141
|
-
KeyOperationAttestation::AttestationFormat = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat").enummodule
|
142
|
-
CryptoKeyVersion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKeyVersion").msgclass
|
143
|
-
CryptoKeyVersion::CryptoKeyVersionAlgorithm = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm").enummodule
|
144
|
-
CryptoKeyVersion::CryptoKeyVersionState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState").enummodule
|
145
|
-
CryptoKeyVersion::CryptoKeyVersionView = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView").enummodule
|
146
|
-
PublicKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.PublicKey").msgclass
|
147
|
-
ImportJob = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportJob").msgclass
|
148
|
-
ImportJob::WrappingPublicKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportJob.WrappingPublicKey").msgclass
|
149
|
-
ImportJob::ImportMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportJob.ImportMethod").enummodule
|
150
|
-
ImportJob::ImportJobState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportJob.ImportJobState").enummodule
|
151
|
-
ProtectionLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ProtectionLevel").enummodule
|
152
|
-
end
|
153
|
-
end
|
154
|
-
end
|
155
|
-
end
|
@@ -1,208 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/kms/v1/service.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/api/resource_pb'
|
11
|
-
require 'google/cloud/kms/v1/resources_pb'
|
12
|
-
require 'google/protobuf/field_mask_pb'
|
13
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
-
add_message "google.cloud.kms.v1.ListKeyRingsRequest" do
|
15
|
-
optional :parent, :string, 1
|
16
|
-
optional :page_size, :int32, 2
|
17
|
-
optional :page_token, :string, 3
|
18
|
-
optional :filter, :string, 4
|
19
|
-
optional :order_by, :string, 5
|
20
|
-
end
|
21
|
-
add_message "google.cloud.kms.v1.ListCryptoKeysRequest" do
|
22
|
-
optional :parent, :string, 1
|
23
|
-
optional :page_size, :int32, 2
|
24
|
-
optional :page_token, :string, 3
|
25
|
-
optional :version_view, :enum, 4, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView"
|
26
|
-
optional :filter, :string, 5
|
27
|
-
optional :order_by, :string, 6
|
28
|
-
end
|
29
|
-
add_message "google.cloud.kms.v1.ListCryptoKeyVersionsRequest" do
|
30
|
-
optional :parent, :string, 1
|
31
|
-
optional :page_size, :int32, 2
|
32
|
-
optional :page_token, :string, 3
|
33
|
-
optional :view, :enum, 4, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView"
|
34
|
-
optional :filter, :string, 5
|
35
|
-
optional :order_by, :string, 6
|
36
|
-
end
|
37
|
-
add_message "google.cloud.kms.v1.ListImportJobsRequest" do
|
38
|
-
optional :parent, :string, 1
|
39
|
-
optional :page_size, :int32, 2
|
40
|
-
optional :page_token, :string, 3
|
41
|
-
optional :filter, :string, 4
|
42
|
-
optional :order_by, :string, 5
|
43
|
-
end
|
44
|
-
add_message "google.cloud.kms.v1.ListKeyRingsResponse" do
|
45
|
-
repeated :key_rings, :message, 1, "google.cloud.kms.v1.KeyRing"
|
46
|
-
optional :next_page_token, :string, 2
|
47
|
-
optional :total_size, :int32, 3
|
48
|
-
end
|
49
|
-
add_message "google.cloud.kms.v1.ListCryptoKeysResponse" do
|
50
|
-
repeated :crypto_keys, :message, 1, "google.cloud.kms.v1.CryptoKey"
|
51
|
-
optional :next_page_token, :string, 2
|
52
|
-
optional :total_size, :int32, 3
|
53
|
-
end
|
54
|
-
add_message "google.cloud.kms.v1.ListCryptoKeyVersionsResponse" do
|
55
|
-
repeated :crypto_key_versions, :message, 1, "google.cloud.kms.v1.CryptoKeyVersion"
|
56
|
-
optional :next_page_token, :string, 2
|
57
|
-
optional :total_size, :int32, 3
|
58
|
-
end
|
59
|
-
add_message "google.cloud.kms.v1.ListImportJobsResponse" do
|
60
|
-
repeated :import_jobs, :message, 1, "google.cloud.kms.v1.ImportJob"
|
61
|
-
optional :next_page_token, :string, 2
|
62
|
-
optional :total_size, :int32, 3
|
63
|
-
end
|
64
|
-
add_message "google.cloud.kms.v1.GetKeyRingRequest" do
|
65
|
-
optional :name, :string, 1
|
66
|
-
end
|
67
|
-
add_message "google.cloud.kms.v1.GetCryptoKeyRequest" do
|
68
|
-
optional :name, :string, 1
|
69
|
-
end
|
70
|
-
add_message "google.cloud.kms.v1.GetCryptoKeyVersionRequest" do
|
71
|
-
optional :name, :string, 1
|
72
|
-
end
|
73
|
-
add_message "google.cloud.kms.v1.GetPublicKeyRequest" do
|
74
|
-
optional :name, :string, 1
|
75
|
-
end
|
76
|
-
add_message "google.cloud.kms.v1.GetImportJobRequest" do
|
77
|
-
optional :name, :string, 1
|
78
|
-
end
|
79
|
-
add_message "google.cloud.kms.v1.CreateKeyRingRequest" do
|
80
|
-
optional :parent, :string, 1
|
81
|
-
optional :key_ring_id, :string, 2
|
82
|
-
optional :key_ring, :message, 3, "google.cloud.kms.v1.KeyRing"
|
83
|
-
end
|
84
|
-
add_message "google.cloud.kms.v1.CreateCryptoKeyRequest" do
|
85
|
-
optional :parent, :string, 1
|
86
|
-
optional :crypto_key_id, :string, 2
|
87
|
-
optional :crypto_key, :message, 3, "google.cloud.kms.v1.CryptoKey"
|
88
|
-
optional :skip_initial_version_creation, :bool, 5
|
89
|
-
end
|
90
|
-
add_message "google.cloud.kms.v1.CreateCryptoKeyVersionRequest" do
|
91
|
-
optional :parent, :string, 1
|
92
|
-
optional :crypto_key_version, :message, 2, "google.cloud.kms.v1.CryptoKeyVersion"
|
93
|
-
end
|
94
|
-
add_message "google.cloud.kms.v1.ImportCryptoKeyVersionRequest" do
|
95
|
-
optional :parent, :string, 1
|
96
|
-
optional :algorithm, :enum, 2, "google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm"
|
97
|
-
optional :import_job, :string, 4
|
98
|
-
oneof :wrapped_key_material do
|
99
|
-
optional :rsa_aes_wrapped_key, :bytes, 5
|
100
|
-
end
|
101
|
-
end
|
102
|
-
add_message "google.cloud.kms.v1.CreateImportJobRequest" do
|
103
|
-
optional :parent, :string, 1
|
104
|
-
optional :import_job_id, :string, 2
|
105
|
-
optional :import_job, :message, 3, "google.cloud.kms.v1.ImportJob"
|
106
|
-
end
|
107
|
-
add_message "google.cloud.kms.v1.UpdateCryptoKeyRequest" do
|
108
|
-
optional :crypto_key, :message, 1, "google.cloud.kms.v1.CryptoKey"
|
109
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
110
|
-
end
|
111
|
-
add_message "google.cloud.kms.v1.UpdateCryptoKeyVersionRequest" do
|
112
|
-
optional :crypto_key_version, :message, 1, "google.cloud.kms.v1.CryptoKeyVersion"
|
113
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
114
|
-
end
|
115
|
-
add_message "google.cloud.kms.v1.EncryptRequest" do
|
116
|
-
optional :name, :string, 1
|
117
|
-
optional :plaintext, :bytes, 2
|
118
|
-
optional :additional_authenticated_data, :bytes, 3
|
119
|
-
end
|
120
|
-
add_message "google.cloud.kms.v1.DecryptRequest" do
|
121
|
-
optional :name, :string, 1
|
122
|
-
optional :ciphertext, :bytes, 2
|
123
|
-
optional :additional_authenticated_data, :bytes, 3
|
124
|
-
end
|
125
|
-
add_message "google.cloud.kms.v1.AsymmetricSignRequest" do
|
126
|
-
optional :name, :string, 1
|
127
|
-
optional :digest, :message, 3, "google.cloud.kms.v1.Digest"
|
128
|
-
end
|
129
|
-
add_message "google.cloud.kms.v1.AsymmetricDecryptRequest" do
|
130
|
-
optional :name, :string, 1
|
131
|
-
optional :ciphertext, :bytes, 3
|
132
|
-
end
|
133
|
-
add_message "google.cloud.kms.v1.DecryptResponse" do
|
134
|
-
optional :plaintext, :bytes, 1
|
135
|
-
end
|
136
|
-
add_message "google.cloud.kms.v1.EncryptResponse" do
|
137
|
-
optional :name, :string, 1
|
138
|
-
optional :ciphertext, :bytes, 2
|
139
|
-
end
|
140
|
-
add_message "google.cloud.kms.v1.AsymmetricSignResponse" do
|
141
|
-
optional :signature, :bytes, 1
|
142
|
-
end
|
143
|
-
add_message "google.cloud.kms.v1.AsymmetricDecryptResponse" do
|
144
|
-
optional :plaintext, :bytes, 1
|
145
|
-
end
|
146
|
-
add_message "google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest" do
|
147
|
-
optional :name, :string, 1
|
148
|
-
optional :crypto_key_version_id, :string, 2
|
149
|
-
end
|
150
|
-
add_message "google.cloud.kms.v1.DestroyCryptoKeyVersionRequest" do
|
151
|
-
optional :name, :string, 1
|
152
|
-
end
|
153
|
-
add_message "google.cloud.kms.v1.RestoreCryptoKeyVersionRequest" do
|
154
|
-
optional :name, :string, 1
|
155
|
-
end
|
156
|
-
add_message "google.cloud.kms.v1.Digest" do
|
157
|
-
oneof :digest do
|
158
|
-
optional :sha256, :bytes, 1
|
159
|
-
optional :sha384, :bytes, 2
|
160
|
-
optional :sha512, :bytes, 3
|
161
|
-
end
|
162
|
-
end
|
163
|
-
add_message "google.cloud.kms.v1.LocationMetadata" do
|
164
|
-
optional :hsm_available, :bool, 1
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
|
-
module Google
|
169
|
-
module Cloud
|
170
|
-
module Kms
|
171
|
-
module V1
|
172
|
-
ListKeyRingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ListKeyRingsRequest").msgclass
|
173
|
-
ListCryptoKeysRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ListCryptoKeysRequest").msgclass
|
174
|
-
ListCryptoKeyVersionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ListCryptoKeyVersionsRequest").msgclass
|
175
|
-
ListImportJobsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ListImportJobsRequest").msgclass
|
176
|
-
ListKeyRingsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ListKeyRingsResponse").msgclass
|
177
|
-
ListCryptoKeysResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ListCryptoKeysResponse").msgclass
|
178
|
-
ListCryptoKeyVersionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ListCryptoKeyVersionsResponse").msgclass
|
179
|
-
ListImportJobsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ListImportJobsResponse").msgclass
|
180
|
-
GetKeyRingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.GetKeyRingRequest").msgclass
|
181
|
-
GetCryptoKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.GetCryptoKeyRequest").msgclass
|
182
|
-
GetCryptoKeyVersionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.GetCryptoKeyVersionRequest").msgclass
|
183
|
-
GetPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.GetPublicKeyRequest").msgclass
|
184
|
-
GetImportJobRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.GetImportJobRequest").msgclass
|
185
|
-
CreateKeyRingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CreateKeyRingRequest").msgclass
|
186
|
-
CreateCryptoKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CreateCryptoKeyRequest").msgclass
|
187
|
-
CreateCryptoKeyVersionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CreateCryptoKeyVersionRequest").msgclass
|
188
|
-
ImportCryptoKeyVersionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.ImportCryptoKeyVersionRequest").msgclass
|
189
|
-
CreateImportJobRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.CreateImportJobRequest").msgclass
|
190
|
-
UpdateCryptoKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.UpdateCryptoKeyRequest").msgclass
|
191
|
-
UpdateCryptoKeyVersionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.UpdateCryptoKeyVersionRequest").msgclass
|
192
|
-
EncryptRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.EncryptRequest").msgclass
|
193
|
-
DecryptRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.DecryptRequest").msgclass
|
194
|
-
AsymmetricSignRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.AsymmetricSignRequest").msgclass
|
195
|
-
AsymmetricDecryptRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.AsymmetricDecryptRequest").msgclass
|
196
|
-
DecryptResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.DecryptResponse").msgclass
|
197
|
-
EncryptResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.EncryptResponse").msgclass
|
198
|
-
AsymmetricSignResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.AsymmetricSignResponse").msgclass
|
199
|
-
AsymmetricDecryptResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.AsymmetricDecryptResponse").msgclass
|
200
|
-
UpdateCryptoKeyPrimaryVersionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest").msgclass
|
201
|
-
DestroyCryptoKeyVersionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.DestroyCryptoKeyVersionRequest").msgclass
|
202
|
-
RestoreCryptoKeyVersionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.RestoreCryptoKeyVersionRequest").msgclass
|
203
|
-
Digest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.Digest").msgclass
|
204
|
-
LocationMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.kms.v1.LocationMetadata").msgclass
|
205
|
-
end
|
206
|
-
end
|
207
|
-
end
|
208
|
-
end
|