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.OSPolicyResourceComplianceImplements
IMessage<OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance>, IEquatable<OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance>, IDeepCloneable<OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance>, IBufferMessage, IMessageNamespace
Google.Cloud.OsConfig.V1AlphaAssembly
Google.Cloud.OsConfig.V1Alpha.dll
Constructors
OSPolicyResourceCompliance()
public OSPolicyResourceCompliance()
OSPolicyResourceCompliance(OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance)
public OSPolicyResourceCompliance(OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance other)
Parameter | |
---|---|
Name | Description |
other | OSPolicyAssignmentReport.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 | |
---|---|
Type | Description |
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 | |
---|---|
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 |
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 | |
---|---|
Type | Description |
OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.Types.ExecResourceOutput |
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 |
OSPolicyAssignmentReport.Types.OSPolicyCompliance.Types.OSPolicyResourceCompliance.OutputOneofCase |