#[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
Source§fn eq(&self, other: &SACAttachment) -> bool
fn eq(&self, other: &SACAttachment) -> bool
self and other values to be equal, and is used by ==.