Google Cloud OS Config v1alpha API - Class OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance (2.0.0-alpha03)

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 v1alpha 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.V1Alpha

Assembly

Google.Cloud.OsConfig.V1Alpha.dll

Constructors

OSPolicyResourceCompliance()

public OSPolicyResourceCompliance()

OSPolicyResourceCompliance(OSPolicyResourceCompliance)

public OSPolicyResourceCompliance(OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance other)
Parameter
NameDescription
otherOSPolicyAssignmentReportTypesOSPolicyComplianceTypesOSPolicyResourceCompliance

Properties

ComplianceState

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

The compliance state of the resource.

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
RepeatedFieldOSPolicyAssignmentReportTypesOSPolicyComplianceTypesOSPolicyResourceComplianceTypesOSPolicyResourceConfigStep

ExecResourceOutput

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

ExecResource specific output.

Property Value
TypeDescription
OSPolicyAssignmentReportTypesOSPolicyComplianceTypesOSPolicyResourceComplianceTypesExecResourceOutput

OsPolicyResourceId

public string OsPolicyResourceId { get; set; }

The ID of the OS policy resource.

Property Value
TypeDescription
string

OutputCase

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