alien_core/import/data/gcp/key.rs
1use serde::{Deserialize, Serialize};
2
3/// GCP Cloud KMS key created by the customer-installed setup stack.
4#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
5#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
6#[cfg_attr(feature = "jsonschema", derive(schemars::JsonSchema))]
7#[serde(rename_all = "camelCase")]
8pub struct GcpKeyImportData {
9 /// Full CryptoKey resource name, without a CryptoKeyVersion.
10 pub crypto_key_name: String,
11 /// Full primary CryptoKeyVersion resource name used for new wrapping operations.
12 pub primary_version: String,
13}