Struct google_api_proto::google::cloud::securitycenter::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
Represents an instance of an Event Threat Detection custom module, including its full module name, display name, enablement state, and last updated time. You can create a custom module at the organization, folder, or project level. Custom modules that you create at the organization or folder level are inherited by child folders and projects.
Fields§
§name: String
Immutable. The resource name of the Event Threat Detection custom module.
Its format is:
organizations/{organization}/eventThreatDetectionSettings/customModules/{module}
.folders/{folder}/eventThreatDetectionSettings/customModules/{module}
.projects/{project}/eventThreatDetectionSettings/customModules/{module}
.
config: Option<Struct>
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. The format is the same as the EventThreatDetectionCustomModule resource name.
enablement_state: i32
The state of enablement for the module at the given level of the hierarchy.
type: String
Type for the module. e.g. CONFIGURABLE_BAD_IP.
display_name: String
The human readable name to be displayed for the module.
description: String
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