Struct google_api_proto::google::cloud::compute::v1::CustomerEncryptionKey
source · pub struct CustomerEncryptionKey {
pub kms_key_name: Option<String>,
pub kms_key_service_account: Option<String>,
pub raw_key: Option<String>,
pub rsa_encrypted_key: Option<String>,
pub sha256: Option<String>,
}
Expand description
Fields§
§kms_key_name: Option<String>
The name of the encryption key that is stored in Google Cloud KMS. For example: “kmsKeyName”: “projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: “kmsKeyName”: “projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1
kms_key_service_account: Option<String>
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. For example: “kmsKeyServiceAccount”: “name@project_id.iam.gserviceaccount.com/
raw_key: Option<String>
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: “rawKey”: “SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=”
rsa_encrypted_key: Option<String>
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: “rsaEncryptedKey”: “ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==” The key must meet the following requirements before you can provide it to Compute Engine: 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Gets the RSA public key certificate provided by Google at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
sha256: Option<String>
[Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
Implementations§
source§impl CustomerEncryptionKey
impl CustomerEncryptionKey
sourcepub fn sha256(&self) -> &str
pub fn sha256(&self) -> &str
Returns the value of sha256
, or the default value if sha256
is unset.
sourcepub fn kms_key_service_account(&self) -> &str
pub fn kms_key_service_account(&self) -> &str
Returns the value of kms_key_service_account
, or the default value if kms_key_service_account
is unset.
sourcepub fn rsa_encrypted_key(&self) -> &str
pub fn rsa_encrypted_key(&self) -> &str
Returns the value of rsa_encrypted_key
, or the default value if rsa_encrypted_key
is unset.
sourcepub fn raw_key(&self) -> &str
pub fn raw_key(&self) -> &str
Returns the value of raw_key
, or the default value if raw_key
is unset.
sourcepub fn kms_key_name(&self) -> &str
pub fn kms_key_name(&self) -> &str
Returns the value of kms_key_name
, or the default value if kms_key_name
is unset.
Trait Implementations§
source§impl Clone for CustomerEncryptionKey
impl Clone for CustomerEncryptionKey
source§fn clone(&self) -> CustomerEncryptionKey
fn clone(&self) -> CustomerEncryptionKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomerEncryptionKey
impl Debug for CustomerEncryptionKey
source§impl Default for CustomerEncryptionKey
impl Default for CustomerEncryptionKey
source§impl Message for CustomerEncryptionKey
impl Message for CustomerEncryptionKey
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CustomerEncryptionKey
impl PartialEq for CustomerEncryptionKey
source§fn eq(&self, other: &CustomerEncryptionKey) -> bool
fn eq(&self, other: &CustomerEncryptionKey) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomerEncryptionKey
Auto Trait Implementations§
impl Freeze for CustomerEncryptionKey
impl RefUnwindSafe for CustomerEncryptionKey
impl Send for CustomerEncryptionKey
impl Sync for CustomerEncryptionKey
impl Unpin for CustomerEncryptionKey
impl UnwindSafe for CustomerEncryptionKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request