#[non_exhaustive]pub struct FirewallEndpointAssociation {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub state: State,
pub network: String,
pub firewall_endpoint: String,
pub tls_inspection_policy: String,
pub reconciling: bool,
pub disabled: bool,
/* private fields */
}Expand description
Message describing Association object
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: StringImmutable. Identifier. name of resource
create_time: Option<Timestamp>Output only. Create time stamp
update_time: Option<Timestamp>Output only. Update time stamp
labels: HashMap<String, String>Optional. Labels as key value pairs
state: StateOutput only. Current state of the association.
network: StringRequired. The URL of the network that is being associated.
firewall_endpoint: StringRequired. The URL of the FirewallEndpoint that is being associated.
tls_inspection_policy: StringOptional. The URL of the TlsInspectionPolicy that is being associated.
reconciling: boolOutput only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
disabled: boolOptional. Whether the association is disabled. True indicates that traffic won’t be intercepted
Implementations§
Source§impl FirewallEndpointAssociation
impl FirewallEndpointAssociation
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 = FirewallEndpointAssociation::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 = FirewallEndpointAssociation::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = FirewallEndpointAssociation::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 = FirewallEndpointAssociation::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 = FirewallEndpointAssociation::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = FirewallEndpointAssociation::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_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::firewall_endpoint_association::State;
let x0 = FirewallEndpointAssociation::new().set_state(State::Creating);
let x1 = FirewallEndpointAssociation::new().set_state(State::Active);
let x2 = FirewallEndpointAssociation::new().set_state(State::Deleting);Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_firewall_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_firewall_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of firewall_endpoint.
§Example
let x = FirewallEndpointAssociation::new().set_firewall_endpoint("example");Sourcepub fn set_tls_inspection_policy<T: Into<String>>(self, v: T) -> Self
pub fn set_tls_inspection_policy<T: Into<String>>(self, v: T) -> Self
Sets the value of tls_inspection_policy.
§Example
let x = FirewallEndpointAssociation::new().set_tls_inspection_policy(format!("projects/{project_id}/locations/{location_id}/tlsInspectionPolicies/{tls_inspection_policy_id}"));Sourcepub fn set_reconciling<T: Into<bool>>(self, v: T) -> Self
pub fn set_reconciling<T: Into<bool>>(self, v: T) -> Self
Sets the value of reconciling.
§Example
let x = FirewallEndpointAssociation::new().set_reconciling(true);Trait Implementations§
Source§impl Clone for FirewallEndpointAssociation
impl Clone for FirewallEndpointAssociation
Source§fn clone(&self) -> FirewallEndpointAssociation
fn clone(&self) -> FirewallEndpointAssociation
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 FirewallEndpointAssociation
impl Debug for FirewallEndpointAssociation
Source§impl Default for FirewallEndpointAssociation
impl Default for FirewallEndpointAssociation
Source§fn default() -> FirewallEndpointAssociation
fn default() -> FirewallEndpointAssociation
impl StructuralPartialEq for FirewallEndpointAssociation
Auto Trait Implementations§
impl Freeze for FirewallEndpointAssociation
impl RefUnwindSafe for FirewallEndpointAssociation
impl Send for FirewallEndpointAssociation
impl Sync for FirewallEndpointAssociation
impl Unpin for FirewallEndpointAssociation
impl UnsafeUnpin for FirewallEndpointAssociation
impl UnwindSafe for FirewallEndpointAssociation
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