google-cloud-kms-v1 1.14.0 → 1.15.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/lib/google/cloud/kms/v1/hsm_management_pb.rb +2 -1
- data/lib/google/cloud/kms/v1/key_management_service/client.rb +270 -2
- data/lib/google/cloud/kms/v1/key_management_service/rest/client.rb +256 -2
- data/lib/google/cloud/kms/v1/key_management_service/rest/service_stub.rb +123 -0
- data/lib/google/cloud/kms/v1/resources_pb.rb +1 -1
- data/lib/google/cloud/kms/v1/service_pb.rb +4 -1
- data/lib/google/cloud/kms/v1/service_services_pb.rb +25 -0
- data/lib/google/cloud/kms/v1/version.rb +1 -1
- data/proto_docs/google/cloud/kms/v1/hsm_management.rb +33 -8
- data/proto_docs/google/cloud/kms/v1/resources.rb +26 -0
- data/proto_docs/google/cloud/kms/v1/service.rb +116 -0
- metadata +1 -1
|
@@ -1516,7 +1516,7 @@ module Google
|
|
|
1516
1516
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1517
1517
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1518
1518
|
#
|
|
1519
|
-
# @overload create_crypto_key(parent: nil, crypto_key_id: nil, crypto_key: nil, skip_initial_version_creation: nil)
|
|
1519
|
+
# @overload create_crypto_key(parent: nil, crypto_key_id: nil, crypto_key: nil, skip_initial_version_creation: nil, trusted_wrapping_enabled: nil)
|
|
1520
1520
|
# Pass arguments to `create_crypto_key` via keyword arguments. Note that at
|
|
1521
1521
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1522
1522
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -1539,6 +1539,16 @@ module Google
|
|
|
1539
1539
|
# or
|
|
1540
1540
|
# {::Google::Cloud::Kms::V1::KeyManagementService::Rest::Client#import_crypto_key_version ImportCryptoKeyVersion}
|
|
1541
1541
|
# before you can use this {::Google::Cloud::Kms::V1::CryptoKey CryptoKey}.
|
|
1542
|
+
# @param trusted_wrapping_enabled [::Boolean]
|
|
1543
|
+
# Optional. Whether trusted wrapping will be enabled on the first
|
|
1544
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersions} created for this
|
|
1545
|
+
# {::Google::Cloud::Kms::V1::CryptoKey CryptoKey}. This field is only supported
|
|
1546
|
+
# for keys with
|
|
1547
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersionTemplate#protection_level CryptoKeyVersionTemplate.protection_level}
|
|
1548
|
+
# {::Google::Cloud::Kms::V1::ProtectionLevel::HSM_SINGLE_TENANT HSM_SINGLE_TENANT}.
|
|
1549
|
+
# This field is supported for all
|
|
1550
|
+
# {::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose CryptoKeyPurposes} except
|
|
1551
|
+
# {::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose::ENCRYPT_DECRYPT ENCRYPT_DECRYPT}.
|
|
1542
1552
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1543
1553
|
# @yieldparam result [::Google::Cloud::Kms::V1::CryptoKey]
|
|
1544
1554
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1896,7 +1906,7 @@ module Google
|
|
|
1896
1906
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1897
1907
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1898
1908
|
#
|
|
1899
|
-
# @overload import_crypto_key_version(parent: nil, crypto_key_version: nil, algorithm: nil, import_job: nil, wrapped_key: nil, rsa_aes_wrapped_key: nil)
|
|
1909
|
+
# @overload import_crypto_key_version(parent: nil, crypto_key_version: nil, algorithm: nil, import_job: nil, wrapped_key: nil, rsa_aes_wrapped_key: nil, trusted_wrapping_enabled: nil)
|
|
1900
1910
|
# Pass arguments to `import_crypto_key_version` via keyword arguments. Note that at
|
|
1901
1911
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1902
1912
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -1985,6 +1995,14 @@ module Google
|
|
|
1985
1995
|
# {::Google::Cloud::Kms::V1::ImportCryptoKeyVersionRequest#wrapped_key wrapped_key}.
|
|
1986
1996
|
# Prefer to use that field in new work. Either that field or this field
|
|
1987
1997
|
# (but not both) must be specified.
|
|
1998
|
+
# @param trusted_wrapping_enabled [::Boolean]
|
|
1999
|
+
# Optional. Whether trusted wrapping will be enabled on the imported
|
|
2000
|
+
# [CryptoKeyVersion]. This field is only supported for keys with
|
|
2001
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersionTemplate#protection_level CryptoKeyVersionTemplate.protection_level}
|
|
2002
|
+
# {::Google::Cloud::Kms::V1::ProtectionLevel::HSM_SINGLE_TENANT HSM_SINGLE_TENANT}.
|
|
2003
|
+
# This field is supported for all
|
|
2004
|
+
# {::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose CryptoKeyPurposes} besides
|
|
2005
|
+
# {::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose::ENCRYPT_DECRYPT ENCRYPT_DECRYPT}.
|
|
1988
2006
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1989
2007
|
# @yieldparam result [::Google::Cloud::Kms::V1::CryptoKeyVersion]
|
|
1990
2008
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -2043,6 +2061,228 @@ module Google
|
|
|
2043
2061
|
raise ::Google::Cloud::Error.from_error(e)
|
|
2044
2062
|
end
|
|
2045
2063
|
|
|
2064
|
+
##
|
|
2065
|
+
# Import wrapped key material into a
|
|
2066
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} with a trusted
|
|
2067
|
+
# key.
|
|
2068
|
+
#
|
|
2069
|
+
# All requests must specify a {::Google::Cloud::Kms::V1::CryptoKey CryptoKey}. If
|
|
2070
|
+
# a {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} is additionally
|
|
2071
|
+
# specified in the request, key material will be reimported into that
|
|
2072
|
+
# version. Otherwise, a new version will be created, and will be assigned the
|
|
2073
|
+
# next sequential id within the {::Google::Cloud::Kms::V1::CryptoKey CryptoKey}.
|
|
2074
|
+
#
|
|
2075
|
+
# The {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} will have
|
|
2076
|
+
# trusted_wrapping_enabled set to true.
|
|
2077
|
+
#
|
|
2078
|
+
# @overload import_trusted_key_wrapped_crypto_key_version(request, options = nil)
|
|
2079
|
+
# Pass arguments to `import_trusted_key_wrapped_crypto_key_version` via a request object, either of type
|
|
2080
|
+
# {::Google::Cloud::Kms::V1::ImportTrustedKeyWrappedCryptoKeyVersionRequest} or an equivalent Hash.
|
|
2081
|
+
#
|
|
2082
|
+
# @param request [::Google::Cloud::Kms::V1::ImportTrustedKeyWrappedCryptoKeyVersionRequest, ::Hash]
|
|
2083
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2084
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2085
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2086
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2087
|
+
#
|
|
2088
|
+
# @overload import_trusted_key_wrapped_crypto_key_version(parent: nil, importing_key: nil, crypto_key_version: nil, wrapped_key: nil, algorithm: nil)
|
|
2089
|
+
# Pass arguments to `import_trusted_key_wrapped_crypto_key_version` via keyword arguments. Note that at
|
|
2090
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2091
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2092
|
+
#
|
|
2093
|
+
# @param parent [::String]
|
|
2094
|
+
# Required. The {::Google::Cloud::Kms::V1::CryptoKey#name name} of the
|
|
2095
|
+
# {::Google::Cloud::Kms::V1::CryptoKey CryptoKey} to be imported into.
|
|
2096
|
+
# @param importing_key [::String]
|
|
2097
|
+
# Required. Required - the CKV of the trusted key used to import.
|
|
2098
|
+
# This can be the name of a CryptoKeyVersion or a CryptoKey.
|
|
2099
|
+
# @param crypto_key_version [::String]
|
|
2100
|
+
# Optional. The optional {::Google::Cloud::Kms::V1::CryptoKeyVersion#name name} of
|
|
2101
|
+
# an existing {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} to
|
|
2102
|
+
# target for an import operation. If this field is not present, a new
|
|
2103
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} containing the
|
|
2104
|
+
# supplied key material is created.
|
|
2105
|
+
#
|
|
2106
|
+
# If this field is present, the supplied key material is imported into
|
|
2107
|
+
# the existing {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion}. To
|
|
2108
|
+
# import into an existing
|
|
2109
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion}, the
|
|
2110
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} must be a child of
|
|
2111
|
+
# {::Google::Cloud::Kms::V1::ImportTrustedKeyWrappedCryptoKeyVersionRequest#parent ImportTrustedKeyWrappedCryptoKeyVersionRequest.parent},
|
|
2112
|
+
# have been previously created via
|
|
2113
|
+
# {::Google::Cloud::Kms::V1::KeyManagementService::Rest::Client#import_trusted_key_wrapped_crypto_key_version ImportTrustedKeyWrappedCryptoKeyVersion},
|
|
2114
|
+
# and be in
|
|
2115
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionState::DESTROYED DESTROYED}
|
|
2116
|
+
# or
|
|
2117
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionState::IMPORT_FAILED IMPORT_FAILED}
|
|
2118
|
+
# state. The key material and algorithm must match the previous
|
|
2119
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} exactly if the
|
|
2120
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} has ever contained
|
|
2121
|
+
# key material
|
|
2122
|
+
# @param wrapped_key [::String]
|
|
2123
|
+
# Required. The target key pre-wrapped on premises.
|
|
2124
|
+
# @param algorithm [::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionAlgorithm]
|
|
2125
|
+
# Required. Required - The
|
|
2126
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionAlgorithm algorithm}
|
|
2127
|
+
# of the key being imported. This does not need to match the
|
|
2128
|
+
# {::Google::Cloud::Kms::V1::CryptoKey#version_template version_template} of the
|
|
2129
|
+
# {::Google::Cloud::Kms::V1::CryptoKey CryptoKey} this version imports into.
|
|
2130
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2131
|
+
# @yieldparam result [::Google::Cloud::Kms::V1::CryptoKeyVersion]
|
|
2132
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2133
|
+
#
|
|
2134
|
+
# @return [::Google::Cloud::Kms::V1::CryptoKeyVersion]
|
|
2135
|
+
#
|
|
2136
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2137
|
+
#
|
|
2138
|
+
# @example Basic example
|
|
2139
|
+
# require "google/cloud/kms/v1"
|
|
2140
|
+
#
|
|
2141
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2142
|
+
# client = Google::Cloud::Kms::V1::KeyManagementService::Rest::Client.new
|
|
2143
|
+
#
|
|
2144
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2145
|
+
# request = Google::Cloud::Kms::V1::ImportTrustedKeyWrappedCryptoKeyVersionRequest.new
|
|
2146
|
+
#
|
|
2147
|
+
# # Call the import_trusted_key_wrapped_crypto_key_version method.
|
|
2148
|
+
# result = client.import_trusted_key_wrapped_crypto_key_version request
|
|
2149
|
+
#
|
|
2150
|
+
# # The returned object is of type Google::Cloud::Kms::V1::CryptoKeyVersion.
|
|
2151
|
+
# p result
|
|
2152
|
+
#
|
|
2153
|
+
def import_trusted_key_wrapped_crypto_key_version request, options = nil
|
|
2154
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2155
|
+
|
|
2156
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Kms::V1::ImportTrustedKeyWrappedCryptoKeyVersionRequest
|
|
2157
|
+
|
|
2158
|
+
# Converts hash and nil to an options object
|
|
2159
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2160
|
+
|
|
2161
|
+
# Customize the options with defaults
|
|
2162
|
+
call_metadata = @config.rpcs.import_trusted_key_wrapped_crypto_key_version.metadata.to_h
|
|
2163
|
+
|
|
2164
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2165
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2166
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2167
|
+
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
|
2168
|
+
transports_version_send: [:rest]
|
|
2169
|
+
|
|
2170
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2171
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2172
|
+
|
|
2173
|
+
options.apply_defaults timeout: @config.rpcs.import_trusted_key_wrapped_crypto_key_version.timeout,
|
|
2174
|
+
metadata: call_metadata,
|
|
2175
|
+
retry_policy: @config.rpcs.import_trusted_key_wrapped_crypto_key_version.retry_policy
|
|
2176
|
+
|
|
2177
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2178
|
+
metadata: @config.metadata,
|
|
2179
|
+
retry_policy: @config.retry_policy
|
|
2180
|
+
|
|
2181
|
+
@key_management_service_stub.import_trusted_key_wrapped_crypto_key_version request, options do |result, operation|
|
|
2182
|
+
yield result, operation if block_given?
|
|
2183
|
+
end
|
|
2184
|
+
rescue ::Gapic::Rest::Error => e
|
|
2185
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2186
|
+
end
|
|
2187
|
+
|
|
2188
|
+
##
|
|
2189
|
+
# Exports a {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} with a
|
|
2190
|
+
# trusted key.
|
|
2191
|
+
#
|
|
2192
|
+
# The {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} must have
|
|
2193
|
+
# trusted_wrapping_enabled set to true. The
|
|
2194
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} of the
|
|
2195
|
+
# [wrapping_key] must have the
|
|
2196
|
+
# {::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose::AES_WRAPPING AES_WRAPPING}
|
|
2197
|
+
# purpose. The [wrapping_key] must have the
|
|
2198
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion::CryptoKeyVersionAlgorithm::AES_256_KWP AES_256_KWP}
|
|
2199
|
+
# algorithm.
|
|
2200
|
+
#
|
|
2201
|
+
# @overload export_trusted_key_wrapped_crypto_key_version(request, options = nil)
|
|
2202
|
+
# Pass arguments to `export_trusted_key_wrapped_crypto_key_version` via a request object, either of type
|
|
2203
|
+
# {::Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionRequest} or an equivalent Hash.
|
|
2204
|
+
#
|
|
2205
|
+
# @param request [::Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionRequest, ::Hash]
|
|
2206
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2207
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2208
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2209
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2210
|
+
#
|
|
2211
|
+
# @overload export_trusted_key_wrapped_crypto_key_version(name: nil, wrapping_key: nil)
|
|
2212
|
+
# Pass arguments to `export_trusted_key_wrapped_crypto_key_version` via keyword arguments. Note that at
|
|
2213
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2214
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2215
|
+
#
|
|
2216
|
+
# @param name [::String]
|
|
2217
|
+
# Required. The {::Google::Cloud::Kms::V1::CryptoKeyVersion#name name} of the
|
|
2218
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} to export. The
|
|
2219
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} must have
|
|
2220
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion#trusted_wrapping_enabled trusted_wrapping_enabled}
|
|
2221
|
+
# set to true.
|
|
2222
|
+
# @param wrapping_key [::String]
|
|
2223
|
+
# Required. The {::Google::Cloud::Kms::V1::CryptoKeyVersion#name name} of the
|
|
2224
|
+
# {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion} to use as a
|
|
2225
|
+
# wrapping key. The {::Google::Cloud::Kms::V1::CryptoKeyVersion CryptoKeyVersion}
|
|
2226
|
+
# must have {::Google::Cloud::Kms::V1::CryptoKeyVersion#hsm_trusted hsm_trusted}
|
|
2227
|
+
# set to true.
|
|
2228
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2229
|
+
# @yieldparam result [::Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionResponse]
|
|
2230
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2231
|
+
#
|
|
2232
|
+
# @return [::Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionResponse]
|
|
2233
|
+
#
|
|
2234
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2235
|
+
#
|
|
2236
|
+
# @example Basic example
|
|
2237
|
+
# require "google/cloud/kms/v1"
|
|
2238
|
+
#
|
|
2239
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2240
|
+
# client = Google::Cloud::Kms::V1::KeyManagementService::Rest::Client.new
|
|
2241
|
+
#
|
|
2242
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2243
|
+
# request = Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionRequest.new
|
|
2244
|
+
#
|
|
2245
|
+
# # Call the export_trusted_key_wrapped_crypto_key_version method.
|
|
2246
|
+
# result = client.export_trusted_key_wrapped_crypto_key_version request
|
|
2247
|
+
#
|
|
2248
|
+
# # The returned object is of type Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionResponse.
|
|
2249
|
+
# p result
|
|
2250
|
+
#
|
|
2251
|
+
def export_trusted_key_wrapped_crypto_key_version request, options = nil
|
|
2252
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2253
|
+
|
|
2254
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionRequest
|
|
2255
|
+
|
|
2256
|
+
# Converts hash and nil to an options object
|
|
2257
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2258
|
+
|
|
2259
|
+
# Customize the options with defaults
|
|
2260
|
+
call_metadata = @config.rpcs.export_trusted_key_wrapped_crypto_key_version.metadata.to_h
|
|
2261
|
+
|
|
2262
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2263
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2264
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2265
|
+
gapic_version: ::Google::Cloud::Kms::V1::VERSION,
|
|
2266
|
+
transports_version_send: [:rest]
|
|
2267
|
+
|
|
2268
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2269
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2270
|
+
|
|
2271
|
+
options.apply_defaults timeout: @config.rpcs.export_trusted_key_wrapped_crypto_key_version.timeout,
|
|
2272
|
+
metadata: call_metadata,
|
|
2273
|
+
retry_policy: @config.rpcs.export_trusted_key_wrapped_crypto_key_version.retry_policy
|
|
2274
|
+
|
|
2275
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2276
|
+
metadata: @config.metadata,
|
|
2277
|
+
retry_policy: @config.retry_policy
|
|
2278
|
+
|
|
2279
|
+
@key_management_service_stub.export_trusted_key_wrapped_crypto_key_version request, options do |result, operation|
|
|
2280
|
+
yield result, operation if block_given?
|
|
2281
|
+
end
|
|
2282
|
+
rescue ::Gapic::Rest::Error => e
|
|
2283
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2284
|
+
end
|
|
2285
|
+
|
|
2046
2286
|
##
|
|
2047
2287
|
# Create a new {::Google::Cloud::Kms::V1::ImportJob ImportJob} within a
|
|
2048
2288
|
# {::Google::Cloud::Kms::V1::KeyRing KeyRing}.
|
|
@@ -4083,6 +4323,16 @@ module Google
|
|
|
4083
4323
|
#
|
|
4084
4324
|
attr_reader :import_crypto_key_version
|
|
4085
4325
|
##
|
|
4326
|
+
# RPC-specific configuration for `import_trusted_key_wrapped_crypto_key_version`
|
|
4327
|
+
# @return [::Gapic::Config::Method]
|
|
4328
|
+
#
|
|
4329
|
+
attr_reader :import_trusted_key_wrapped_crypto_key_version
|
|
4330
|
+
##
|
|
4331
|
+
# RPC-specific configuration for `export_trusted_key_wrapped_crypto_key_version`
|
|
4332
|
+
# @return [::Gapic::Config::Method]
|
|
4333
|
+
#
|
|
4334
|
+
attr_reader :export_trusted_key_wrapped_crypto_key_version
|
|
4335
|
+
##
|
|
4086
4336
|
# RPC-specific configuration for `create_import_job`
|
|
4087
4337
|
# @return [::Gapic::Config::Method]
|
|
4088
4338
|
#
|
|
@@ -4199,6 +4449,10 @@ module Google
|
|
|
4199
4449
|
@delete_crypto_key_version = ::Gapic::Config::Method.new delete_crypto_key_version_config
|
|
4200
4450
|
import_crypto_key_version_config = parent_rpcs.import_crypto_key_version if parent_rpcs.respond_to? :import_crypto_key_version
|
|
4201
4451
|
@import_crypto_key_version = ::Gapic::Config::Method.new import_crypto_key_version_config
|
|
4452
|
+
import_trusted_key_wrapped_crypto_key_version_config = parent_rpcs.import_trusted_key_wrapped_crypto_key_version if parent_rpcs.respond_to? :import_trusted_key_wrapped_crypto_key_version
|
|
4453
|
+
@import_trusted_key_wrapped_crypto_key_version = ::Gapic::Config::Method.new import_trusted_key_wrapped_crypto_key_version_config
|
|
4454
|
+
export_trusted_key_wrapped_crypto_key_version_config = parent_rpcs.export_trusted_key_wrapped_crypto_key_version if parent_rpcs.respond_to? :export_trusted_key_wrapped_crypto_key_version
|
|
4455
|
+
@export_trusted_key_wrapped_crypto_key_version = ::Gapic::Config::Method.new export_trusted_key_wrapped_crypto_key_version_config
|
|
4202
4456
|
create_import_job_config = parent_rpcs.create_import_job if parent_rpcs.respond_to? :create_import_job
|
|
4203
4457
|
@create_import_job = ::Gapic::Config::Method.new create_import_job_config
|
|
4204
4458
|
update_crypto_key_config = parent_rpcs.update_crypto_key if parent_rpcs.respond_to? :update_crypto_key
|
|
@@ -753,6 +753,86 @@ module Google
|
|
|
753
753
|
end
|
|
754
754
|
end
|
|
755
755
|
|
|
756
|
+
##
|
|
757
|
+
# Baseline implementation for the import_trusted_key_wrapped_crypto_key_version REST call
|
|
758
|
+
#
|
|
759
|
+
# @param request_pb [::Google::Cloud::Kms::V1::ImportTrustedKeyWrappedCryptoKeyVersionRequest]
|
|
760
|
+
# A request object representing the call parameters. Required.
|
|
761
|
+
# @param options [::Gapic::CallOptions]
|
|
762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
763
|
+
#
|
|
764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
765
|
+
# @yieldparam result [::Google::Cloud::Kms::V1::CryptoKeyVersion]
|
|
766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
767
|
+
#
|
|
768
|
+
# @return [::Google::Cloud::Kms::V1::CryptoKeyVersion]
|
|
769
|
+
# A result object deserialized from the server's reply
|
|
770
|
+
def import_trusted_key_wrapped_crypto_key_version request_pb, options = nil
|
|
771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
772
|
+
|
|
773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_import_trusted_key_wrapped_crypto_key_version_request request_pb
|
|
774
|
+
query_string_params = if query_string_params.any?
|
|
775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
776
|
+
else
|
|
777
|
+
{}
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
response = @client_stub.make_http_request(
|
|
781
|
+
verb,
|
|
782
|
+
uri: uri,
|
|
783
|
+
body: body || "",
|
|
784
|
+
params: query_string_params,
|
|
785
|
+
method_name: "import_trusted_key_wrapped_crypto_key_version",
|
|
786
|
+
options: options
|
|
787
|
+
)
|
|
788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
789
|
+
result = ::Google::Cloud::Kms::V1::CryptoKeyVersion.decode_json response.body, ignore_unknown_fields: true
|
|
790
|
+
catch :response do
|
|
791
|
+
yield result, operation if block_given?
|
|
792
|
+
result
|
|
793
|
+
end
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
##
|
|
797
|
+
# Baseline implementation for the export_trusted_key_wrapped_crypto_key_version REST call
|
|
798
|
+
#
|
|
799
|
+
# @param request_pb [::Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionRequest]
|
|
800
|
+
# A request object representing the call parameters. Required.
|
|
801
|
+
# @param options [::Gapic::CallOptions]
|
|
802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
803
|
+
#
|
|
804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
805
|
+
# @yieldparam result [::Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionResponse]
|
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
807
|
+
#
|
|
808
|
+
# @return [::Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionResponse]
|
|
809
|
+
# A result object deserialized from the server's reply
|
|
810
|
+
def export_trusted_key_wrapped_crypto_key_version request_pb, options = nil
|
|
811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
812
|
+
|
|
813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_trusted_key_wrapped_crypto_key_version_request request_pb
|
|
814
|
+
query_string_params = if query_string_params.any?
|
|
815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
816
|
+
else
|
|
817
|
+
{}
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
response = @client_stub.make_http_request(
|
|
821
|
+
verb,
|
|
822
|
+
uri: uri,
|
|
823
|
+
body: body || "",
|
|
824
|
+
params: query_string_params,
|
|
825
|
+
method_name: "export_trusted_key_wrapped_crypto_key_version",
|
|
826
|
+
options: options
|
|
827
|
+
)
|
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
829
|
+
result = ::Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionResponse.decode_json response.body, ignore_unknown_fields: true
|
|
830
|
+
catch :response do
|
|
831
|
+
yield result, operation if block_given?
|
|
832
|
+
result
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
756
836
|
##
|
|
757
837
|
# Baseline implementation for the create_import_job REST call
|
|
758
838
|
#
|
|
@@ -1754,6 +1834,49 @@ module Google
|
|
|
1754
1834
|
transcoder.transcode request_pb
|
|
1755
1835
|
end
|
|
1756
1836
|
|
|
1837
|
+
##
|
|
1838
|
+
# @private
|
|
1839
|
+
#
|
|
1840
|
+
# GRPC transcoding helper method for the import_trusted_key_wrapped_crypto_key_version REST call
|
|
1841
|
+
#
|
|
1842
|
+
# @param request_pb [::Google::Cloud::Kms::V1::ImportTrustedKeyWrappedCryptoKeyVersionRequest]
|
|
1843
|
+
# A request object representing the call parameters. Required.
|
|
1844
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1845
|
+
# Uri, Body, Query string parameters
|
|
1846
|
+
def self.transcode_import_trusted_key_wrapped_crypto_key_version_request request_pb
|
|
1847
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1848
|
+
.with_bindings(
|
|
1849
|
+
uri_method: :post,
|
|
1850
|
+
uri_template: "/v1/{parent}/cryptoKeyVersions:importTrustedKeyWrappedCryptoKeyVersion",
|
|
1851
|
+
body: "*",
|
|
1852
|
+
matches: [
|
|
1853
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+/?$}, false]
|
|
1854
|
+
]
|
|
1855
|
+
)
|
|
1856
|
+
transcoder.transcode request_pb
|
|
1857
|
+
end
|
|
1858
|
+
|
|
1859
|
+
##
|
|
1860
|
+
# @private
|
|
1861
|
+
#
|
|
1862
|
+
# GRPC transcoding helper method for the export_trusted_key_wrapped_crypto_key_version REST call
|
|
1863
|
+
#
|
|
1864
|
+
# @param request_pb [::Google::Cloud::Kms::V1::ExportTrustedKeyWrappedCryptoKeyVersionRequest]
|
|
1865
|
+
# A request object representing the call parameters. Required.
|
|
1866
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1867
|
+
# Uri, Body, Query string parameters
|
|
1868
|
+
def self.transcode_export_trusted_key_wrapped_crypto_key_version_request request_pb
|
|
1869
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1870
|
+
.with_bindings(
|
|
1871
|
+
uri_method: :get,
|
|
1872
|
+
uri_template: "/v1/{name}:exportTrustedKeyWrappedCryptoKeyVersion",
|
|
1873
|
+
matches: [
|
|
1874
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+/cryptoKeyVersions/[^/]+/?$}, false]
|
|
1875
|
+
]
|
|
1876
|
+
)
|
|
1877
|
+
transcoder.transcode request_pb
|
|
1878
|
+
end
|
|
1879
|
+
|
|
1757
1880
|
##
|
|
1758
1881
|
# @private
|
|
1759
1882
|
#
|
|
@@ -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}\"\xa8\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\"\xb1\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\x12\x15\n\x11KEY_ENCAPSULATION\x10\n:{\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\"\xa9\x15\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\"\x8a\n\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\x12\x0e\n\nML_KEM_768\x10/\x12\x0f\n\x0bML_KEM_1024\x10\x30\x12\r\n\tKEM_XWING\x10?\x12\x15\n\x11PQ_SIGN_ML_DSA_44\x10\x44\x12\x15\n\x11PQ_SIGN_ML_DSA_65\x10\x38\x12\x15\n\x11PQ_SIGN_ML_DSA_87\x10\x45\x12\x1d\n\x19PQ_SIGN_SLH_DSA_SHA2_128S\x10\x39\x12)\n%PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256\x10<\x12!\n\x1dPQ_SIGN_ML_DSA_44_EXTERNAL_MU\x10\x46\x12!\n\x1dPQ_SIGN_ML_DSA_65_EXTERNAL_MU\x10\x43\x12!\n\x1dPQ_SIGN_ML_DSA_87_EXTERNAL_MU\x10G\"\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}\"U\n\x0f\x43hecksummedData\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x34\n\x0f\x63rc32c_checksum\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x8c\x05\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\x12I\n\x11public_key_format\x18\x07 \x01(\x0e\x32..google.cloud.kms.v1.PublicKey.PublicKeyFormat\x12\x38\n\npublic_key\x18\x08 \x01(\x0b\x32$.google.cloud.kms.v1.ChecksummedData\"i\n\x0fPublicKeyFormat\x12!\n\x1dPUBLIC_KEY_FORMAT_UNSPECIFIED\x10\x00\x12\x07\n\x03PEM\x10\x01\x12\x07\n\x03\x44\x45R\x10\x02\x12\x0c\n\x08NIST_PQC\x10\x03\x12\x13\n\x0fXWING_RAW_BYTES\x10\x04:\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\"\xed\n\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\x12N\n\x11public_key_format\x18\x0c \x01(\x0e\x32..google.cloud.kms.v1.PublicKey.PublicKeyFormatB\x03\xe0\x41\x03\x12\x46\n\x0b\x61ttestation\x18\x08 \x01(\x0b\x32,.google.cloud.kms.v1.KeyOperationAttestationB\x03\xe0\x41\x03\x12%\n\x12\x63rypto_key_backend\x18\x0b \x01(\tB\t\xe0\x41\x05\xfa\x41\x03\n\x01*\x1a\x33\n\x11WrappingPublicKey\x12\x0b\n\x03pem\x18\x01 \x01(\t\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x03\"\xf4\x02\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\x12/\n+HPKE_KEM_ML_KEM_768_HKDF_SHA256_AES_256_GCM\x10\x08\x12\x30\n,HPKE_KEM_ML_KEM_1024_HKDF_SHA256_AES_256_GCM\x10\t\x12*\n&HPKE_KEM_XWING_HKDF_SHA256_AES_256_GCM\x10\n\"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\"\xb9\x02\n\x0fRetiredResource\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x08\x12\x1e\n\x11original_resource\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rresource_type\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x9d\x01\xea\x41\x99\x01\n\'cloudkms.googleapis.com/RetiredResource\x12Kprojects/{project}/locations/{location}/retiredResources/{retired_resource}*\x10retiredResources2\x0fretiredResource*\x81\x01\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\x12\x15\n\x11HSM_SINGLE_TENANT\x10\x05*\xb3\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\x1a\x02\x08\x01\x12\x32\n*MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION\x10\t\x1a\x02\x08\x01\x12\'\n#GOOGLE_RESPONSE_TO_PRODUCTION_ALERT\x10\n\x12*\n&CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING\x10\x0b\x42\x85\x01\n\x17\x63om.google.cloud.kms.v1B\x11KmsResourcesProtoP\x01Z)cloud.google.com/go/kms/apiv1/kmspb;kmspb\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}\"\xba\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\"\xc3\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\x12\x15\n\x11KEY_ENCAPSULATION\x10\n\x12\x10\n\x0c\x41\x45S_WRAPPING\x10\x0b:{\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\"\xfb\x15\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\x12%\n\x18trusted_wrapping_enabled\x18\x15 \x01(\x08\x42\x03\xe0\x41\x05\x12\x18\n\x0bhsm_trusted\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03\"\x9b\n\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\x12\x0e\n\nML_KEM_768\x10/\x12\x0f\n\x0bML_KEM_1024\x10\x30\x12\r\n\tKEM_XWING\x10?\x12\x15\n\x11PQ_SIGN_ML_DSA_44\x10\x44\x12\x15\n\x11PQ_SIGN_ML_DSA_65\x10\x38\x12\x15\n\x11PQ_SIGN_ML_DSA_87\x10\x45\x12\x1d\n\x19PQ_SIGN_SLH_DSA_SHA2_128S\x10\x39\x12)\n%PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256\x10<\x12!\n\x1dPQ_SIGN_ML_DSA_44_EXTERNAL_MU\x10\x46\x12!\n\x1dPQ_SIGN_ML_DSA_65_EXTERNAL_MU\x10\x43\x12!\n\x1dPQ_SIGN_ML_DSA_87_EXTERNAL_MU\x10G\x12\x0f\n\x0b\x41\x45S_256_KWP\x10I\"\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}\"U\n\x0f\x43hecksummedData\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x34\n\x0f\x63rc32c_checksum\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x8c\x05\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\x12I\n\x11public_key_format\x18\x07 \x01(\x0e\x32..google.cloud.kms.v1.PublicKey.PublicKeyFormat\x12\x38\n\npublic_key\x18\x08 \x01(\x0b\x32$.google.cloud.kms.v1.ChecksummedData\"i\n\x0fPublicKeyFormat\x12!\n\x1dPUBLIC_KEY_FORMAT_UNSPECIFIED\x10\x00\x12\x07\n\x03PEM\x10\x01\x12\x07\n\x03\x44\x45R\x10\x02\x12\x0c\n\x08NIST_PQC\x10\x03\x12\x13\n\x0fXWING_RAW_BYTES\x10\x04:\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\"\xed\n\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\x12N\n\x11public_key_format\x18\x0c \x01(\x0e\x32..google.cloud.kms.v1.PublicKey.PublicKeyFormatB\x03\xe0\x41\x03\x12\x46\n\x0b\x61ttestation\x18\x08 \x01(\x0b\x32,.google.cloud.kms.v1.KeyOperationAttestationB\x03\xe0\x41\x03\x12%\n\x12\x63rypto_key_backend\x18\x0b \x01(\tB\t\xe0\x41\x05\xfa\x41\x03\n\x01*\x1a\x33\n\x11WrappingPublicKey\x12\x0b\n\x03pem\x18\x01 \x01(\t\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x03\"\xf4\x02\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\x12/\n+HPKE_KEM_ML_KEM_768_HKDF_SHA256_AES_256_GCM\x10\x08\x12\x30\n,HPKE_KEM_ML_KEM_1024_HKDF_SHA256_AES_256_GCM\x10\t\x12*\n&HPKE_KEM_XWING_HKDF_SHA256_AES_256_GCM\x10\n\"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\"\xb9\x02\n\x0fRetiredResource\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x08\x12\x1e\n\x11original_resource\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rresource_type\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x9d\x01\xea\x41\x99\x01\n\'cloudkms.googleapis.com/RetiredResource\x12Kprojects/{project}/locations/{location}/retiredResources/{retired_resource}*\x10retiredResources2\x0fretiredResource*\x81\x01\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\x12\x15\n\x11HSM_SINGLE_TENANT\x10\x05*\xb3\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\x1a\x02\x08\x01\x12\x32\n*MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION\x10\t\x1a\x02\x08\x01\x12\'\n#GOOGLE_RESPONSE_TO_PRODUCTION_ALERT\x10\n\x12*\n&CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING\x10\x0b\x42\x85\x01\n\x17\x63om.google.cloud.kms.v1B\x11KmsResourcesProtoP\x01Z)cloud.google.com/go/kms/apiv1/kmspb;kmspb\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
|
pool.add_serialized_file(descriptor_data)
|