#[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>);Trait Implementations§
impl StructuralPartialEq for SACRealm
Auto Trait Implementations§
impl Freeze for SACRealm
impl RefUnwindSafe for SACRealm
impl Send for SACRealm
impl Sync for SACRealm
impl Unpin for SACRealm
impl UnsafeUnpin for SACRealm
impl UnwindSafe for SACRealm
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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