Struct google_api_proto::google::cloud::securityposture::v1::Posture
source · pub struct Posture {
pub name: String,
pub state: i32,
pub revision_id: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub description: String,
pub policy_sets: Vec<PolicySet>,
pub etag: String,
pub annotations: BTreeMap<String, String>,
pub reconciling: bool,
}
Expand description
Postures Definition of a Posture.
Fields§
§name: String
Required. Identifier. The name of this Posture resource, in the format of organizations/{org_id}/locations/{location_id}/postures/{posture}.
state: i32
Required. State of Posture resource.
revision_id: String
Output only. Immutable. The revision ID of the posture. The format is an 8-character hexadecimal string. https://google.aip.dev/162
create_time: Option<Timestamp>
Output only. The timestamp that the posture was created.
update_time: Option<Timestamp>
Output only. The timestamp that the posture was updated.
description: String
Optional. User provided description of the posture.
policy_sets: Vec<PolicySet>
Required. List of Policy sets.
etag: String
Optional. An opaque tag indicating the current version of the Posture, used
for concurrency control. When the Posture
is returned from either a
GetPosture
or a ListPostures
request, this etag
indicates the version
of the current Posture
to use when executing a read-modify-write loop.
When the Posture
is used in a UpdatePosture
method, use the etag
value that was returned from a GetPosture
request as part of a
read-modify-write loop for concurrency control. Not setting the etag
in a
UpdatePosture
request will result in an unconditional write of the
Posture
.
annotations: BTreeMap<String, String>
Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .
reconciling: bool
Output only. Whether or not this Posture is in the process of being updated.
Implementations§
Trait Implementations§
source§impl Message for Posture
impl Message for Posture
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 Posture
impl PartialEq for Posture
impl StructuralPartialEq for Posture
Auto Trait Implementations§
impl Freeze for Posture
impl RefUnwindSafe for Posture
impl Send for Posture
impl Sync for Posture
impl Unpin for Posture
impl UnwindSafe for Posture
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