Google Cloud OS Config v1 API - Class OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance (2.3.0)

public sealed class OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance : IMessage<OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance>, IEquatable<OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance>, IDeepCloneable<OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud OS Config v1 API class OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.

Compliance data for an OS policy resource.

Inheritance

object > OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance

Namespace

Google.Cloud.OsConfig.V1

Assembly

Google.Cloud.OsConfig.V1.dll

Constructors

OSPolicyResourceCompliance()

public OSPolicyResourceCompliance()

OSPolicyResourceCompliance(OSPolicyResourceCompliance)

public OSPolicyResourceCompliance(OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance other)
Parameter
Name Description
other OSPolicyAssignmentReportTypesOSPolicyComplianceTypesOSPolicyResourceCompliance

Properties

ComplianceState

public OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.Types.ComplianceState ComplianceState { get; set; }

The compliance state of the resource.

Property Value
Type Description
OSPolicyAssignmentReportTypesOSPolicyComplianceTypesOSPolicyResourceComplianceTypesComplianceState

ComplianceStateReason

public string ComplianceStateReason { get; set; }

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.
Property Value
Type Description
string

ConfigSteps

public RepeatedField<OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.Types.OSPolicyResourceConfigStep> ConfigSteps { get; }

Ordered list of configuration completed by the agent for the OS policy resource.

Property Value
Type Description
RepeatedFieldOSPolicyAssignmentReportTypesOSPolicyComplianceTypesOSPolicyResourceComplianceTypesOSPolicyResourceConfigStep

ExecResourceOutput

public OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.Types.ExecResourceOutput ExecResourceOutput { get; set; }

ExecResource specific output.

Property Value
Type Description
OSPolicyAssignmentReportTypesOSPolicyComplianceTypesOSPolicyResourceComplianceTypesExecResourceOutput

OsPolicyResourceId

public string OsPolicyResourceId { get; set; }

The ID of the OS policy resource.

Property Value
Type Description
string

OutputCase

public OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.OutputOneofCase OutputCase { get; }
Property Value
Type Description
OSPolicyAssignmentReportTypesOSPolicyComplianceTypesOSPolicyResourceComplianceOutputOneofCase