#[non_exhaustive]pub struct SecurityPolicyAdaptiveProtectionConfig {
pub layer_7_ddos_defense_config: Option<SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig>,
/* private fields */
}Available on crate features
organization-security-policies or region-security-policies or security-policies only.Expand description
Configuration options for Cloud Armor Adaptive Protection (CAAP).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.layer_7_ddos_defense_config: Option<SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig>If set to true, enables Cloud Armor Machine Learning.
Implementations§
Source§impl SecurityPolicyAdaptiveProtectionConfig
impl SecurityPolicyAdaptiveProtectionConfig
pub fn new() -> Self
Sourcepub fn set_layer_7_ddos_defense_config<T>(self, v: T) -> Self
pub fn set_layer_7_ddos_defense_config<T>(self, v: T) -> Self
Sets the value of layer_7_ddos_defense_config.
§Example
ⓘ
use google_cloud_compute_v1::model::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig;
let x = SecurityPolicyAdaptiveProtectionConfig::new().set_layer_7_ddos_defense_config(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig::default()/* use setters */);Sourcepub fn set_or_clear_layer_7_ddos_defense_config<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_layer_7_ddos_defense_config<T>(self, v: Option<T>) -> Self
Sets or clears the value of layer_7_ddos_defense_config.
§Example
ⓘ
use google_cloud_compute_v1::model::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig;
let x = SecurityPolicyAdaptiveProtectionConfig::new().set_or_clear_layer_7_ddos_defense_config(Some(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig::default()/* use setters */));
let x = SecurityPolicyAdaptiveProtectionConfig::new().set_or_clear_layer_7_ddos_defense_config(None::<SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig>);Trait Implementations§
Source§impl Clone for SecurityPolicyAdaptiveProtectionConfig
impl Clone for SecurityPolicyAdaptiveProtectionConfig
Source§fn clone(&self) -> SecurityPolicyAdaptiveProtectionConfig
fn clone(&self) -> SecurityPolicyAdaptiveProtectionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SecurityPolicyAdaptiveProtectionConfig
impl Default for SecurityPolicyAdaptiveProtectionConfig
Source§fn default() -> SecurityPolicyAdaptiveProtectionConfig
fn default() -> SecurityPolicyAdaptiveProtectionConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityPolicyAdaptiveProtectionConfig
impl PartialEq for SecurityPolicyAdaptiveProtectionConfig
Source§fn eq(&self, other: &SecurityPolicyAdaptiveProtectionConfig) -> bool
fn eq(&self, other: &SecurityPolicyAdaptiveProtectionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityPolicyAdaptiveProtectionConfig
Auto Trait Implementations§
impl Freeze for SecurityPolicyAdaptiveProtectionConfig
impl RefUnwindSafe for SecurityPolicyAdaptiveProtectionConfig
impl Send for SecurityPolicyAdaptiveProtectionConfig
impl Sync for SecurityPolicyAdaptiveProtectionConfig
impl Unpin for SecurityPolicyAdaptiveProtectionConfig
impl UnwindSafe for SecurityPolicyAdaptiveProtectionConfig
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
Mutably borrows from an owned value. Read more