Struct google_api_proto::google::cloud::osconfig::v1alpha::InstanceOsPoliciesCompliance
source · pub struct InstanceOsPoliciesCompliance {
pub name: String,
pub instance: String,
pub state: i32,
pub detailed_state: String,
pub detailed_state_reason: String,
pub os_policy_compliances: Vec<OsPolicyCompliance>,
pub last_compliance_check_time: Option<Timestamp>,
pub last_compliance_run_id: String,
}
Expand description
This API resource represents the OS policies compliance data for a Compute Engine virtual machine (VM) instance at a given point in time.
A Compute Engine VM can have multiple OS policy assignments, and each assignment can have multiple OS policies. As a result, multiple OS policies could be applied to a single VM.
You can use this API resource to determine both the compliance state of your VM as well as the compliance state of an individual OS policy.
For more information, see View compliance.
Fields§
§name: String
Output only. The InstanceOSPoliciesCompliance
API resource name.
Format:
projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}
instance: String
Output only. The Compute Engine VM instance name.
state: i32
Output only. Compliance state of the VM.
detailed_state: String
Output only. Detailed compliance state of the VM.
This field is populated only when compliance state is UNKNOWN
.
It may contain one of the following values:
no-compliance-data
: Compliance data is not available for this VM.no-agent-detected
: OS Config agent is not detected for this VM.config-not-supported-by-agent
: The version of the OS Config agent running on this VM does not support configuration management.inactive
: VM is not running.internal-service-errors
: There were internal service errors encountered while enforcing compliance.agent-errors
: OS config agent encountered errors while enforcing compliance.
detailed_state_reason: String
Output only. The reason for the detailed_state
of the VM (if any).
os_policy_compliances: Vec<OsPolicyCompliance>
Output only. Compliance data for each OSPolicy
that is applied to the VM.
last_compliance_check_time: Option<Timestamp>
Output only. Timestamp of the last compliance check for the VM.
last_compliance_run_id: String
Output only. Unique identifier for the last compliance run. This id will be logged by the OS config agent during a compliance run and can be used for debugging and tracing purpose.
Implementations§
source§impl InstanceOsPoliciesCompliance
impl InstanceOsPoliciesCompliance
sourcepub fn state(&self) -> OsPolicyComplianceState
pub fn state(&self) -> OsPolicyComplianceState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_state(&mut self, value: OsPolicyComplianceState)
pub fn set_state(&mut self, value: OsPolicyComplianceState)
Sets state
to the provided enum value.
Trait Implementations§
source§impl Clone for InstanceOsPoliciesCompliance
impl Clone for InstanceOsPoliciesCompliance
source§fn clone(&self) -> InstanceOsPoliciesCompliance
fn clone(&self) -> InstanceOsPoliciesCompliance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceOsPoliciesCompliance
impl Debug for InstanceOsPoliciesCompliance
source§impl Message for InstanceOsPoliciesCompliance
impl Message for InstanceOsPoliciesCompliance
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 InstanceOsPoliciesCompliance
impl PartialEq for InstanceOsPoliciesCompliance
source§fn eq(&self, other: &InstanceOsPoliciesCompliance) -> bool
fn eq(&self, other: &InstanceOsPoliciesCompliance) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceOsPoliciesCompliance
Auto Trait Implementations§
impl Freeze for InstanceOsPoliciesCompliance
impl RefUnwindSafe for InstanceOsPoliciesCompliance
impl Send for InstanceOsPoliciesCompliance
impl Sync for InstanceOsPoliciesCompliance
impl Unpin for InstanceOsPoliciesCompliance
impl UnwindSafe for InstanceOsPoliciesCompliance
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