# Class OSPolicyResourceCompliance (1.25.0)

1.25.0 (latest) 1.24.0 1.23.0 1.22.0 1.21.0 1.20.2 1.19.0 1.18.1 1.17.5 1.16.0 1.15.3 1.14.1 1.13.0 1.12.4 1.11.2 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.2 1.4.0 1.3.2 1.2.0 1.1.0 1.0.0 0.1.2

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

Compliance data for an OS policy resource.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `os_policy_resource_id` | `str` The ID of the OS policy resource. |
| `config_steps` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1alpha.types.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep]` Ordered list of configuration completed by the agent for the OS policy resource. |
| `compliance_state` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1alpha.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` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1alpha.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.

        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.