Struct google_api_proto::google::cloud::securitycentermanagement::v1::EffectiveEventThreatDetectionCustomModule
source · pub struct EffectiveEventThreatDetectionCustomModule {
pub name: String,
pub config: Option<Struct>,
pub enablement_state: i32,
pub type: String,
pub display_name: String,
pub description: String,
}
Expand description
An EffectiveEventThreatDetectionCustomModule is the representation of EventThreatDetectionCustomModule at a given level taking hierarchy into account and resolving various fields accordingly. e.g. if the module is enabled at the ancestor level, effective modules at all descendant levels will have enablement_state set to ENABLED. Similarly, if module.inherited is set, then effective module’s config will contain the ancestor’s config details. EffectiveEventThreatDetectionCustomModule is read-only.
Fields§
§name: String
Identifier. The resource name of the ETD custom module.
Its format is:
organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}
.folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}
.projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}
.
config: Option<Struct>
Output only. Config for the effective module.
enablement_state: i32
Output only. The effective state of enablement for the module at the given level of the hierarchy.
type: String
Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.
display_name: String
Output only. The human readable name to be displayed for the module.
description: String
Output only. The description for the module.
Implementations§
source§impl EffectiveEventThreatDetectionCustomModule
impl EffectiveEventThreatDetectionCustomModule
sourcepub fn enablement_state(&self) -> EnablementState
pub fn enablement_state(&self) -> EnablementState
Returns the enum value of enablement_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_enablement_state(&mut self, value: EnablementState)
pub fn set_enablement_state(&mut self, value: EnablementState)
Sets enablement_state
to the provided enum value.
Trait Implementations§
source§impl Clone for EffectiveEventThreatDetectionCustomModule
impl Clone for EffectiveEventThreatDetectionCustomModule
source§fn clone(&self) -> EffectiveEventThreatDetectionCustomModule
fn clone(&self) -> EffectiveEventThreatDetectionCustomModule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for EffectiveEventThreatDetectionCustomModule
impl Message for EffectiveEventThreatDetectionCustomModule
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for EffectiveEventThreatDetectionCustomModule
impl PartialEq for EffectiveEventThreatDetectionCustomModule
source§fn eq(&self, other: &EffectiveEventThreatDetectionCustomModule) -> bool
fn eq(&self, other: &EffectiveEventThreatDetectionCustomModule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EffectiveEventThreatDetectionCustomModule
Auto Trait Implementations§
impl Freeze for EffectiveEventThreatDetectionCustomModule
impl RefUnwindSafe for EffectiveEventThreatDetectionCustomModule
impl Send for EffectiveEventThreatDetectionCustomModule
impl Sync for EffectiveEventThreatDetectionCustomModule
impl Unpin for EffectiveEventThreatDetectionCustomModule
impl UnwindSafe for EffectiveEventThreatDetectionCustomModule
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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