Class OSPolicyResourceCompliance (1.16.0)

OSPolicyResourceCompliance(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

NameDescription
os_policy_resource_id str
The ID of the OS policy resource.
config_steps MutableSequence[google.cloud.osconfig_v1.types.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep]
Ordered list of configuration completed by the agent for the OS policy resource.
compliance_state google.cloud.osconfig_v1.types.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState
The compliance state of the resource.
compliance_state_reason str
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.
exec_resource_output google.cloud.osconfig_v1.types.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput
ExecResource specific output. This field is a member of oneof_ output.

Classes

ComplianceState

ComplianceState(value)

Possible compliance states for a resource.

Values: UNKNOWN (0): The resource is in an unknown compliance state.

    To get more details about why the policy is in this state,
    review the output of the `compliance_state_reason` field.
COMPLIANT (1):
    Resource is compliant.
NON_COMPLIANT (2):
    Resource is non-compliant.

ExecResourceOutput

ExecResourceOutput(mapping=None, *, ignore_unknown_fields=False, **kwargs)

ExecResource specific output.

OSPolicyResourceConfigStep

OSPolicyResourceConfigStep(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Step performed by the OS Config agent for configuring an OSPolicy resource to its desired state.