#[non_exhaustive]pub struct CloudArmor {
pub security_policy: Option<SecurityPolicy>,
pub requests: Option<Requests>,
pub adaptive_protection: Option<AdaptiveProtection>,
pub attack: Option<Attack>,
pub threat_vector: String,
pub duration: Option<Duration>,
/* private fields */
}Expand description
Fields related to Google Cloud Armor findings.
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.security_policy: Option<SecurityPolicy>Information about the Google Cloud Armor security policy relevant to the finding.
requests: Option<Requests>Information about incoming requests evaluated by Google Cloud Armor security policies.
adaptive_protection: Option<AdaptiveProtection>Information about potential Layer 7 DDoS attacks identified by Google Cloud Armor Adaptive Protection.
attack: Option<Attack>Information about DDoS attack volume and classification.
threat_vector: StringDistinguish between volumetric & protocol DDoS attack and application layer attacks. For example, “L3_4” for Layer 3 and Layer 4 DDoS attacks, or “L_7” for Layer 7 DDoS attacks.
duration: Option<Duration>Duration of attack from the start until the current moment (updated every 5 minutes).
Implementations§
Source§impl CloudArmor
impl CloudArmor
Sourcepub fn set_security_policy<T>(self, v: T) -> Selfwhere
T: Into<SecurityPolicy>,
pub fn set_security_policy<T>(self, v: T) -> Selfwhere
T: Into<SecurityPolicy>,
Sets the value of security_policy.
§Example
use google_cloud_securitycenter_v2::model::SecurityPolicy;
let x = CloudArmor::new().set_security_policy(SecurityPolicy::default()/* use setters */);Sourcepub fn set_or_clear_security_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<SecurityPolicy>,
pub fn set_or_clear_security_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<SecurityPolicy>,
Sets or clears the value of security_policy.
§Example
use google_cloud_securitycenter_v2::model::SecurityPolicy;
let x = CloudArmor::new().set_or_clear_security_policy(Some(SecurityPolicy::default()/* use setters */));
let x = CloudArmor::new().set_or_clear_security_policy(None::<SecurityPolicy>);Sourcepub fn set_requests<T>(self, v: T) -> Self
pub fn set_requests<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_requests<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_requests<T>(self, v: Option<T>) -> Self
Sourcepub fn set_adaptive_protection<T>(self, v: T) -> Selfwhere
T: Into<AdaptiveProtection>,
pub fn set_adaptive_protection<T>(self, v: T) -> Selfwhere
T: Into<AdaptiveProtection>,
Sets the value of adaptive_protection.
§Example
use google_cloud_securitycenter_v2::model::AdaptiveProtection;
let x = CloudArmor::new().set_adaptive_protection(AdaptiveProtection::default()/* use setters */);Sourcepub fn set_or_clear_adaptive_protection<T>(self, v: Option<T>) -> Selfwhere
T: Into<AdaptiveProtection>,
pub fn set_or_clear_adaptive_protection<T>(self, v: Option<T>) -> Selfwhere
T: Into<AdaptiveProtection>,
Sets or clears the value of adaptive_protection.
§Example
use google_cloud_securitycenter_v2::model::AdaptiveProtection;
let x = CloudArmor::new().set_or_clear_adaptive_protection(Some(AdaptiveProtection::default()/* use setters */));
let x = CloudArmor::new().set_or_clear_adaptive_protection(None::<AdaptiveProtection>);Sourcepub fn set_attack<T>(self, v: T) -> Self
pub fn set_attack<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_attack<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_attack<T>(self, v: Option<T>) -> Self
Sourcepub fn set_threat_vector<T: Into<String>>(self, v: T) -> Self
pub fn set_threat_vector<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_duration<T>(self, v: T) -> Self
pub fn set_duration<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_duration<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CloudArmor
impl Clone for CloudArmor
Source§fn clone(&self) -> CloudArmor
fn clone(&self) -> CloudArmor
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 CloudArmor
impl Debug for CloudArmor
Source§impl Default for CloudArmor
impl Default for CloudArmor
Source§fn default() -> CloudArmor
fn default() -> CloudArmor
Source§impl PartialEq for CloudArmor
impl PartialEq for CloudArmor
impl StructuralPartialEq for CloudArmor
Auto Trait Implementations§
impl Freeze for CloudArmor
impl RefUnwindSafe for CloudArmor
impl Send for CloudArmor
impl Sync for CloudArmor
impl Unpin for CloudArmor
impl UnsafeUnpin for CloudArmor
impl UnwindSafe for CloudArmor
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