Struct gapi_grpc::google::cloud::osconfig::v1alpha::InstanceOsPoliciesCompliance[][src]

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,
}

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:

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

impl InstanceOsPoliciesCompliance[src]

pub fn state(&self) -> OsPolicyComplianceState[src]

Returns the enum value of state, or the default if the field is set to an invalid enum value.

pub fn set_state(&mut self, value: OsPolicyComplianceState)[src]

Sets state to the provided enum value.

Trait Implementations

impl Clone for InstanceOsPoliciesCompliance[src]

impl Debug for InstanceOsPoliciesCompliance[src]

impl Default for InstanceOsPoliciesCompliance[src]

impl Message for InstanceOsPoliciesCompliance[src]

impl PartialEq<InstanceOsPoliciesCompliance> for InstanceOsPoliciesCompliance[src]

impl StructuralPartialEq for InstanceOsPoliciesCompliance[src]

Auto Trait Implementations

impl RefUnwindSafe for InstanceOsPoliciesCompliance

impl Send for InstanceOsPoliciesCompliance

impl Sync for InstanceOsPoliciesCompliance

impl Unpin for InstanceOsPoliciesCompliance

impl UnwindSafe for InstanceOsPoliciesCompliance

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]