#[non_exhaustive]pub struct SACAttachment {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub sac_realm: String,
pub ncc_gateway: String,
pub state: State,
/* private fields */
}Expand description
Represents a Secure Access Connect (SAC) attachment resource.
A Secure Access Connect attachment enables NCC Gateway to process traffic with an SSE product.
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/{location}/sacAttachments/{sac_attachment}.
create_time: Option<Timestamp>Output only. Timestamp when the attachment was created.
update_time: Option<Timestamp>Output only. Timestamp when the attachment was last updated.
labels: HashMap<String, String>Optional. Optional list of labels applied to the resource.
sac_realm: StringRequired. SAC Realm which owns the attachment. This can be input as an ID
or a full resource name. The output always has the form
projects/{project_number}/locations/{location}/sacRealms/{sac_realm}.
ncc_gateway: StringRequired. NCC Gateway associated with the attachment. This can be input as
an ID or a full resource name. The output always has the form
projects/{project_number}/locations/{location}/spokes/{ncc_gateway}.
state: StateOutput only. State of the attachment.
Implementations§
Source§impl SACAttachment
impl SACAttachment
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 = SACAttachment::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 = SACAttachment::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = SACAttachment::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 = SACAttachment::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 = SACAttachment::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = SACAttachment::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_sac_realm<T: Into<String>>(self, v: T) -> Self
pub fn set_sac_realm<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_ncc_gateway<T: Into<String>>(self, v: T) -> Self
pub fn set_ncc_gateway<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_state<T: Into<State>>(self, v: T) -> Self
pub fn set_state<T: Into<State>>(self, v: T) -> Self
Sets the value of state.
§Example
use google_cloud_networksecurity_v1::model::sac_attachment::State;
let x0 = SACAttachment::new().set_state(State::PendingPartnerAttachment);
let x1 = SACAttachment::new().set_state(State::PartnerAttached);
let x2 = SACAttachment::new().set_state(State::PartnerDetached);Trait Implementations§
Source§impl Clone for SACAttachment
impl Clone for SACAttachment
Source§fn clone(&self) -> SACAttachment
fn clone(&self) -> SACAttachment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SACAttachment
impl Debug for SACAttachment
Source§impl Default for SACAttachment
impl Default for SACAttachment
Source§fn default() -> SACAttachment
fn default() -> SACAttachment
Source§impl Message for SACAttachment
impl Message for SACAttachment
Source§impl PartialEq for SACAttachment
impl PartialEq for SACAttachment
impl StructuralPartialEq for SACAttachment
Auto Trait Implementations§
impl Freeze for SACAttachment
impl RefUnwindSafe for SACAttachment
impl Send for SACAttachment
impl Sync for SACAttachment
impl Unpin for SACAttachment
impl UnsafeUnpin for SACAttachment
impl UnwindSafe for SACAttachment
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