Struct google_api_proto::google::cloud::securitycentermanagement::v1::SimulatedFinding
source · pub struct SimulatedFinding {
pub name: String,
pub parent: String,
pub resource_name: String,
pub category: String,
pub state: i32,
pub source_properties: BTreeMap<String, Value>,
pub event_time: Option<Timestamp>,
pub severity: i32,
pub finding_class: i32,
}
Expand description
A subset of the fields of the Security Center Finding proto. The minimum set of fields needed to represent a simulated finding from a SHA custom module.
Fields§
§name: String
Identifier. The relative resource
name
of the finding. Example:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
,
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
,
projects/{project_id}/sources/{source_id}/findings/{finding_id}
.
parent: String
The relative resource name of the source the finding belongs to. See:
https://cloud.google.com/apis/design/resource_names#relative_resource_name
This field is immutable after creation time.
For example:
organizations/{organization_id}/sources/{source_id}
resource_name: String
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
category: String
The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: “XSS_FLASH_INJECTION”
state: i32
Output only. The state of the finding.
source_properties: BTreeMap<String, Value>
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
event_time: Option<Timestamp>
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.
severity: i32
The severity of the finding. This field is managed by the source that writes the finding.
finding_class: i32
The class of the finding.
Implementations§
source§impl SimulatedFinding
impl SimulatedFinding
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn severity(&self) -> Severity
pub fn severity(&self) -> Severity
Returns the enum value of severity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_severity(&mut self, value: Severity)
pub fn set_severity(&mut self, value: Severity)
Sets severity
to the provided enum value.
sourcepub fn finding_class(&self) -> FindingClass
pub fn finding_class(&self) -> FindingClass
Returns the enum value of finding_class
, or the default if the field is set to an invalid enum value.
sourcepub fn set_finding_class(&mut self, value: FindingClass)
pub fn set_finding_class(&mut self, value: FindingClass)
Sets finding_class
to the provided enum value.
Trait Implementations§
source§impl Clone for SimulatedFinding
impl Clone for SimulatedFinding
source§fn clone(&self) -> SimulatedFinding
fn clone(&self) -> SimulatedFinding
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SimulatedFinding
impl Debug for SimulatedFinding
source§impl Default for SimulatedFinding
impl Default for SimulatedFinding
source§impl Message for SimulatedFinding
impl Message for SimulatedFinding
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 SimulatedFinding
impl PartialEq for SimulatedFinding
source§fn eq(&self, other: &SimulatedFinding) -> bool
fn eq(&self, other: &SimulatedFinding) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SimulatedFinding
Auto Trait Implementations§
impl Freeze for SimulatedFinding
impl RefUnwindSafe for SimulatedFinding
impl Send for SimulatedFinding
impl Sync for SimulatedFinding
impl Unpin for SimulatedFinding
impl UnwindSafe for SimulatedFinding
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