#[non_exhaustive]pub struct SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig {
pub auto_deploy_confidence_threshold: Option<f32>,
pub auto_deploy_expiration_sec: Option<i32>,
pub auto_deploy_impacted_baseline_threshold: Option<f32>,
pub auto_deploy_load_threshold: Option<f32>,
pub detection_absolute_qps: Option<f32>,
pub detection_load_threshold: Option<f32>,
pub detection_relative_to_baseline_qps: Option<f32>,
pub name: Option<String>,
pub traffic_granularity_configs: Vec<SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig>,
/* private fields */
}organization-security-policies or region-security-policies or security-policies only.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.auto_deploy_confidence_threshold: Option<f32>§auto_deploy_expiration_sec: Option<i32>§auto_deploy_impacted_baseline_threshold: Option<f32>§auto_deploy_load_threshold: Option<f32>§detection_absolute_qps: Option<f32>§detection_load_threshold: Option<f32>§detection_relative_to_baseline_qps: Option<f32>§name: Option<String>The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within the security policy.
traffic_granularity_configs: Vec<SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig>Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
Implementations§
Source§impl SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
Sourcepub fn set_auto_deploy_confidence_threshold<T>(self, v: T) -> Self
pub fn set_auto_deploy_confidence_threshold<T>(self, v: T) -> Self
Sets the value of auto_deploy_confidence_threshold.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_auto_deploy_confidence_threshold(42.0);Sourcepub fn set_or_clear_auto_deploy_confidence_threshold<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_auto_deploy_confidence_threshold<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of auto_deploy_confidence_threshold.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_auto_deploy_confidence_threshold(Some(42.0));
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_auto_deploy_confidence_threshold(None::<f32>);Sourcepub fn set_auto_deploy_expiration_sec<T>(self, v: T) -> Self
pub fn set_auto_deploy_expiration_sec<T>(self, v: T) -> Self
Sets the value of auto_deploy_expiration_sec.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_auto_deploy_expiration_sec(42);Sourcepub fn set_or_clear_auto_deploy_expiration_sec<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_auto_deploy_expiration_sec<T>(self, v: Option<T>) -> Self
Sets or clears the value of auto_deploy_expiration_sec.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_auto_deploy_expiration_sec(Some(42));
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_auto_deploy_expiration_sec(None::<i32>);Sourcepub fn set_auto_deploy_impacted_baseline_threshold<T>(self, v: T) -> Self
pub fn set_auto_deploy_impacted_baseline_threshold<T>(self, v: T) -> Self
Sets the value of auto_deploy_impacted_baseline_threshold.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_auto_deploy_impacted_baseline_threshold(42.0);Sourcepub fn set_or_clear_auto_deploy_impacted_baseline_threshold<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_auto_deploy_impacted_baseline_threshold<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of auto_deploy_impacted_baseline_threshold.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_auto_deploy_impacted_baseline_threshold(Some(42.0));
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_auto_deploy_impacted_baseline_threshold(None::<f32>);Sourcepub fn set_auto_deploy_load_threshold<T>(self, v: T) -> Self
pub fn set_auto_deploy_load_threshold<T>(self, v: T) -> Self
Sets the value of auto_deploy_load_threshold.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_auto_deploy_load_threshold(42.0);Sourcepub fn set_or_clear_auto_deploy_load_threshold<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_auto_deploy_load_threshold<T>(self, v: Option<T>) -> Self
Sets or clears the value of auto_deploy_load_threshold.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_auto_deploy_load_threshold(Some(42.0));
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_auto_deploy_load_threshold(None::<f32>);Sourcepub fn set_detection_absolute_qps<T>(self, v: T) -> Self
pub fn set_detection_absolute_qps<T>(self, v: T) -> Self
Sets the value of detection_absolute_qps.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_detection_absolute_qps(42.0);Sourcepub fn set_or_clear_detection_absolute_qps<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_detection_absolute_qps<T>(self, v: Option<T>) -> Self
Sets or clears the value of detection_absolute_qps.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_detection_absolute_qps(Some(42.0));
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_detection_absolute_qps(None::<f32>);Sourcepub fn set_detection_load_threshold<T>(self, v: T) -> Self
pub fn set_detection_load_threshold<T>(self, v: T) -> Self
Sets the value of detection_load_threshold.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_detection_load_threshold(42.0);Sourcepub fn set_or_clear_detection_load_threshold<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_detection_load_threshold<T>(self, v: Option<T>) -> Self
Sets or clears the value of detection_load_threshold.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_detection_load_threshold(Some(42.0));
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_detection_load_threshold(None::<f32>);Sourcepub fn set_detection_relative_to_baseline_qps<T>(self, v: T) -> Self
pub fn set_detection_relative_to_baseline_qps<T>(self, v: T) -> Self
Sets the value of detection_relative_to_baseline_qps.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_detection_relative_to_baseline_qps(42.0);Sourcepub fn set_or_clear_detection_relative_to_baseline_qps<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_detection_relative_to_baseline_qps<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of detection_relative_to_baseline_qps.
§Example
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_detection_relative_to_baseline_qps(Some(42.0));
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new().set_or_clear_detection_relative_to_baseline_qps(None::<f32>);Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_traffic_granularity_configs<T, V>(self, v: T) -> Self
pub fn set_traffic_granularity_configs<T, V>(self, v: T) -> Self
Sets the value of traffic_granularity_configs.
§Example
use google_cloud_compute_v1::model::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig;
let x = SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig::new()
.set_traffic_granularity_configs([
SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig::default()/* use setters */,
SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl Clone for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
Source§fn clone(
&self,
) -> SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
fn clone( &self, ) -> SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl Default for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
Source§fn default() -> SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
fn default() -> SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
Source§impl Message for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl Message for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
Source§impl PartialEq for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl PartialEq for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl StructuralPartialEq for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
Auto Trait Implementations§
impl Freeze for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl RefUnwindSafe for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl Send for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl Sync for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl Unpin for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl UnsafeUnpin for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
impl UnwindSafe for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
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