Struct google_api_proto::google::cloud::cloudcontrolspartner::v1::Violation
source · pub struct Violation {
pub name: String,
pub description: String,
pub begin_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub resolve_time: Option<Timestamp>,
pub category: String,
pub state: i32,
pub non_compliant_org_policy: String,
pub folder_id: i64,
pub remediation: Option<Remediation>,
}
Expand description
Details of resource Violation
Fields§
§name: String
Identifier. Format:
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
description: String
Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.
begin_time: Option<Timestamp>
Output only. Time of the event which triggered the Violation.
update_time: Option<Timestamp>
Output only. The last time when the Violation record was updated.
resolve_time: Option<Timestamp>
Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty.
category: String
Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.
state: i32
Output only. State of the violation
non_compliant_org_policy: String
Output only. Immutable. Name of the OrgPolicy which was modified with
non-compliant change and resulted this violation. Format:
projects/{project_number}/policies/{constraint_name}
folders/{folder_id}/policies/{constraint_name}
organizations/{organization_id}/policies/{constraint_name}
folder_id: i64
The folder_id of the violation
remediation: Option<Remediation>
Output only. Compliance violation remediation
Implementations§
Trait Implementations§
source§impl Message for Violation
impl Message for Violation
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 Violation
impl PartialEq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnwindSafe for Violation
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