Struct google_api_proto::google::cloud::securityposture::v1::SecurityHealthAnalyticsCustomModule
source · pub struct SecurityHealthAnalyticsCustomModule {
pub id: String,
pub display_name: String,
pub config: Option<CustomConfig>,
pub module_enablement_state: i32,
}
Expand description
Message for SHA Custom Module
Fields§
§id: String
Output only. Immutable. The id of the custom module. The id is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.
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.
config: Option<CustomConfig>
Required. custom module details
module_enablement_state: i32
The state of enablement for the module at its level of the resource hierarchy.
Implementations§
source§impl SecurityHealthAnalyticsCustomModule
impl SecurityHealthAnalyticsCustomModule
sourcepub fn module_enablement_state(&self) -> EnablementState
pub fn module_enablement_state(&self) -> EnablementState
Returns the enum value of module_enablement_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_module_enablement_state(&mut self, value: EnablementState)
pub fn set_module_enablement_state(&mut self, value: EnablementState)
Sets module_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