#[non_exhaustive]pub struct SACRealm {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub security_service: SecurityService,
pub pairing_key: Option<PairingKey>,
pub state: State,
/* private fields */
}Expand description
Represents a Secure Access Connect (SAC) realm resource.
A Secure Access Connect realm establishes a connection between your Google Cloud project and an SSE service.
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.name: StringIdentifier. Resource name, in the form
projects/{project}/locations/global/sacRealms/{sacRealm}.
create_time: Option<Timestamp>Output only. Timestamp when the realm was created.
update_time: Option<Timestamp>Output only. Timestamp when the realm was last updated.
labels: HashMap<String, String>Optional. Optional list of labels applied to the resource.
security_service: SecurityServiceImmutable. SSE service provider associated with the realm.
pairing_key: Option<PairingKey>Output only. Key to be shared with SSE service provider during pairing.
state: StateOutput only. State of the realm.
Implementations§
Source§impl SACRealm
impl SACRealm
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = SACRealm::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = SACRealm::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = SACRealm::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = SACRealm::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = SACRealm::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = SACRealm::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_security_service<T: Into<SecurityService>>(self, v: T) -> Self
pub fn set_security_service<T: Into<SecurityService>>(self, v: T) -> Self
Sets the value of security_service.
§Example
use google_cloud_networksecurity_v1::model::sac_realm::SecurityService;
let x0 = SACRealm::new().set_security_service(SecurityService::PaloAltoPrismaAccess);Sourcepub fn set_pairing_key<T>(self, v: T) -> Selfwhere
T: Into<PairingKey>,
pub fn set_pairing_key<T>(self, v: T) -> Selfwhere
T: Into<PairingKey>,
Sets the value of pairing_key.
§Example
use google_cloud_networksecurity_v1::model::sac_realm::PairingKey;
let x = SACRealm::new().set_pairing_key(PairingKey::default()/* use setters */);Sourcepub fn set_or_clear_pairing_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<PairingKey>,
pub fn set_or_clear_pairing_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<PairingKey>,
Sets or clears the value of pairing_key.
§Example
use google_cloud_networksecurity_v1::model::sac_realm::PairingKey;
let x = SACRealm::new().set_or_clear_pairing_key(Some(PairingKey::default()/* use setters */));
let x = SACRealm::new().set_or_clear_pairing_key(None::<PairingKey>);