Class OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance (1.6.0)

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

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(OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance)

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

Properties

ComplianceState

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

The compliance state of the resource.

Property Value
TypeDescription
OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.Types.ComplianceState

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
RepeatedField<OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.Types.OSPolicyResourceConfigStep>

ExecResourceOutput

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

ExecResource specific output.

Property Value
TypeDescription
OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.Types.ExecResourceOutput

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
OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.OutputOneofCase