#[non_exhaustive]pub struct ShieldedInstanceIdentity {
pub ecc_p_256_encryption_key: Option<ShieldedInstanceIdentityEntry>,
pub ecc_p_256_signing_key: Option<ShieldedInstanceIdentityEntry>,
pub encryption_key: Option<ShieldedInstanceIdentityEntry>,
pub kind: Option<String>,
pub signing_key: Option<ShieldedInstanceIdentityEntry>,
/* private fields */
}instances only.Expand description
A Shielded Instance Identity.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ecc_p_256_encryption_key: Option<ShieldedInstanceIdentityEntry>An Endorsement Key (EK) made by the ECC P256 algorithm issued to the Shielded Instance’s vTPM.
ecc_p_256_signing_key: Option<ShieldedInstanceIdentityEntry>An Attestation Key (AK) made by the ECC P256 algorithm issued to the Shielded Instance’s vTPM.
encryption_key: Option<ShieldedInstanceIdentityEntry>An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance’s vTPM.
kind: Option<String>Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded Instance identity entry.
signing_key: Option<ShieldedInstanceIdentityEntry>An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance’s vTPM.
Implementations§
Source§impl ShieldedInstanceIdentity
impl ShieldedInstanceIdentity
pub fn new() -> Self
Sourcepub fn set_ecc_p_256_encryption_key<T>(self, v: T) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
pub fn set_ecc_p_256_encryption_key<T>(self, v: T) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
Sets the value of ecc_p_256_encryption_key.
§Example
use google_cloud_compute_v1::model::ShieldedInstanceIdentityEntry;
let x = ShieldedInstanceIdentity::new().set_ecc_p_256_encryption_key(ShieldedInstanceIdentityEntry::default()/* use setters */);Sourcepub fn set_or_clear_ecc_p_256_encryption_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
pub fn set_or_clear_ecc_p_256_encryption_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
Sets or clears the value of ecc_p_256_encryption_key.
§Example
use google_cloud_compute_v1::model::ShieldedInstanceIdentityEntry;
let x = ShieldedInstanceIdentity::new().set_or_clear_ecc_p_256_encryption_key(Some(ShieldedInstanceIdentityEntry::default()/* use setters */));
let x = ShieldedInstanceIdentity::new().set_or_clear_ecc_p_256_encryption_key(None::<ShieldedInstanceIdentityEntry>);Sourcepub fn set_ecc_p_256_signing_key<T>(self, v: T) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
pub fn set_ecc_p_256_signing_key<T>(self, v: T) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
Sets the value of ecc_p_256_signing_key.
§Example
use google_cloud_compute_v1::model::ShieldedInstanceIdentityEntry;
let x = ShieldedInstanceIdentity::new().set_ecc_p_256_signing_key(ShieldedInstanceIdentityEntry::default()/* use setters */);Sourcepub fn set_or_clear_ecc_p_256_signing_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
pub fn set_or_clear_ecc_p_256_signing_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
Sets or clears the value of ecc_p_256_signing_key.
§Example
use google_cloud_compute_v1::model::ShieldedInstanceIdentityEntry;
let x = ShieldedInstanceIdentity::new().set_or_clear_ecc_p_256_signing_key(Some(ShieldedInstanceIdentityEntry::default()/* use setters */));
let x = ShieldedInstanceIdentity::new().set_or_clear_ecc_p_256_signing_key(None::<ShieldedInstanceIdentityEntry>);Sourcepub fn set_encryption_key<T>(self, v: T) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
pub fn set_encryption_key<T>(self, v: T) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
Sets the value of encryption_key.
§Example
use google_cloud_compute_v1::model::ShieldedInstanceIdentityEntry;
let x = ShieldedInstanceIdentity::new().set_encryption_key(ShieldedInstanceIdentityEntry::default()/* use setters */);Sourcepub fn set_or_clear_encryption_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
pub fn set_or_clear_encryption_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
Sets or clears the value of encryption_key.
§Example
use google_cloud_compute_v1::model::ShieldedInstanceIdentityEntry;
let x = ShieldedInstanceIdentity::new().set_or_clear_encryption_key(Some(ShieldedInstanceIdentityEntry::default()/* use setters */));
let x = ShieldedInstanceIdentity::new().set_or_clear_encryption_key(None::<ShieldedInstanceIdentityEntry>);Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_signing_key<T>(self, v: T) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
pub fn set_signing_key<T>(self, v: T) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
Sets the value of signing_key.
§Example
use google_cloud_compute_v1::model::ShieldedInstanceIdentityEntry;
let x = ShieldedInstanceIdentity::new().set_signing_key(ShieldedInstanceIdentityEntry::default()/* use setters */);Sourcepub fn set_or_clear_signing_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
pub fn set_or_clear_signing_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShieldedInstanceIdentityEntry>,
Sets or clears the value of signing_key.
§Example
use google_cloud_compute_v1::model::ShieldedInstanceIdentityEntry;
let x = ShieldedInstanceIdentity::new().set_or_clear_signing_key(Some(ShieldedInstanceIdentityEntry::default()/* use setters */));
let x = ShieldedInstanceIdentity::new().set_or_clear_signing_key(None::<ShieldedInstanceIdentityEntry>);Trait Implementations§
Source§impl Clone for ShieldedInstanceIdentity
impl Clone for ShieldedInstanceIdentity
Source§fn clone(&self) -> ShieldedInstanceIdentity
fn clone(&self) -> ShieldedInstanceIdentity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more