Struct google_api_proto::google::cloud::securitycentermanagement::v1::EventThreatDetectionCustomModule
source · pub struct EventThreatDetectionCustomModule {
pub name: String,
pub config: Option<Struct>,
pub ancestor_module: String,
pub enablement_state: i32,
pub type: String,
pub display_name: String,
pub description: String,
pub update_time: Option<Timestamp>,
pub last_editor: String,
}
Expand description
An event threat detection custom module is a Cloud SCC resource that contains the configuration and enablement state of a custom module, which enables ETD to write certain findings to Cloud SCC.
Fields§
§name: String
Identifier. The resource name of the ETD custom module.
Its format is:
organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}
.folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}
.projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}
.
config: Option<Struct>
Optional. Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
ancestor_module: String
Output only. The closest ancestor module that this module inherits the enablement state from. If empty, indicates that the custom module was created in the requesting parent organization, folder, or project. The format is the same as the EventThreatDetectionCustomModule resource name.
enablement_state: i32
Optional. The state of enablement for the module at the given level of the hierarchy.
type: String
Optional. Type for the module. e.g. CONFIGURABLE_BAD_IP.
display_name: String
Optional. The human readable name to be displayed for the module.
description: String
Optional. The description for the module.
update_time: Option<Timestamp>
Output only. The time the module was last updated.
last_editor: String
Output only. The editor the module was last updated by.
Implementations§
source§impl EventThreatDetectionCustomModule
impl EventThreatDetectionCustomModule
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 EventThreatDetectionCustomModule
impl Clone for EventThreatDetectionCustomModule
source§fn clone(&self) -> EventThreatDetectionCustomModule
fn clone(&self) -> EventThreatDetectionCustomModule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for EventThreatDetectionCustomModule
impl Message for EventThreatDetectionCustomModule
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 EventThreatDetectionCustomModule
impl PartialEq for EventThreatDetectionCustomModule
source§fn eq(&self, other: &EventThreatDetectionCustomModule) -> bool
fn eq(&self, other: &EventThreatDetectionCustomModule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EventThreatDetectionCustomModule
Auto Trait Implementations§
impl Freeze for EventThreatDetectionCustomModule
impl RefUnwindSafe for EventThreatDetectionCustomModule
impl Send for EventThreatDetectionCustomModule
impl Sync for EventThreatDetectionCustomModule
impl Unpin for EventThreatDetectionCustomModule
impl UnwindSafe for EventThreatDetectionCustomModule
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