Struct google_api_proto::google::cloud::securitycentermanagement::v1::SecurityHealthAnalyticsCustomModule
source · pub struct SecurityHealthAnalyticsCustomModule {
pub name: String,
pub display_name: String,
pub enablement_state: i32,
pub update_time: Option<Timestamp>,
pub last_editor: String,
pub ancestor_module: String,
pub custom_config: Option<CustomConfig>,
}
Expand description
Represents an instance of a Security Health Analytics 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 the child folders and projects.
Fields§
§name: String
Identifier. The full resource name of the custom module, specified in one of the following formats:
organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}
folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}
projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}
display_name: String
Optional. The display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
enablement_state: i32
Optional. The enablement state of the custom module.
update_time: Option<Timestamp>
Output only. The time at which the custom module was last updated.
last_editor: String
Output only. The editor that last updated the custom module.
ancestor_module: String
Output only. Specifies the organization or folder from which the custom module is inherited. If empty, indicates that the custom module was created in the organization, folder, or project in which you are viewing the custom module.
custom_config: Option<CustomConfig>
Optional. The user specified custom configuration for the module.
Implementations§
source§impl SecurityHealthAnalyticsCustomModule
impl SecurityHealthAnalyticsCustomModule
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 SecurityHealthAnalyticsCustomModule
impl Clone for SecurityHealthAnalyticsCustomModule
source§fn clone(&self) -> SecurityHealthAnalyticsCustomModule
fn clone(&self) -> SecurityHealthAnalyticsCustomModule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for SecurityHealthAnalyticsCustomModule
impl Message for SecurityHealthAnalyticsCustomModule
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 SecurityHealthAnalyticsCustomModule
impl PartialEq for SecurityHealthAnalyticsCustomModule
source§fn eq(&self, other: &SecurityHealthAnalyticsCustomModule) -> bool
fn eq(&self, other: &SecurityHealthAnalyticsCustomModule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecurityHealthAnalyticsCustomModule
Auto Trait Implementations§
impl Freeze for SecurityHealthAnalyticsCustomModule
impl RefUnwindSafe for SecurityHealthAnalyticsCustomModule
impl Send for SecurityHealthAnalyticsCustomModule
impl Sync for SecurityHealthAnalyticsCustomModule
impl Unpin for SecurityHealthAnalyticsCustomModule
impl UnwindSafe for SecurityHealthAnalyticsCustomModule
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