Interface OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceComplianceOrBuilder (2.51.0)

public static interface OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceComplianceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getComplianceState()

public abstract OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState getComplianceState()

The compliance state of the resource.

.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;

Returns
Type Description
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState

The complianceState.

getComplianceStateReason()

public abstract String getComplianceStateReason()

A reason for the resource to be in the given compliance state. This field is always populated when compliance_state is UNKNOWN.

The following values are supported when compliance_state == UNKNOWN

  • execution-errors: Errors were encountered by the agent while executing the resource and the compliance state couldn't be determined.
  • execution-skipped-by-agent: Resource execution was skipped by the agent because errors were encountered while executing prior resources in the OS policy.
  • os-policy-execution-attempt-failed: The execution of the OS policy containing this resource failed and the compliance state couldn't be determined.

string compliance_state_reason = 4;

Returns
Type Description
String

The complianceStateReason.

getComplianceStateReasonBytes()

public abstract ByteString getComplianceStateReasonBytes