Reference documentation and code samples for the Cloud OS Config V1alpha API module Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport::OSPolicyCompliance::ComplianceState.
Possible compliance states for an os policy.
Constants
UNKNOWN
value: 0 The policy is in an unknown compliance state.
Refer to the field compliance_state_reason to learn the exact reason
for the policy to be in this compliance state.
COMPLIANT
value: 1 Policy is compliant.
The policy is compliant if all the underlying resources are also
compliant.
NON_COMPLIANT
value: 2 Policy is non-compliant.
The policy is non-compliant if one or more underlying resources are
non-compliant.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud OS Config V1alpha API - Module Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport::OSPolicyCompliance::ComplianceState (v0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState)\n- [0.11.1](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.11.1/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.10.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.9.1/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState)\n- [0.8.2](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.8.2/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState)\n- [0.7.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.7.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState)\n- [0.6.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.6.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState)\n- [0.5.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.5.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState)\n- [0.4.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.4.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState)\n- [0.3.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.3.0/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState)\n- [0.2.2](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.2.2/Google-Cloud-OsConfig-V1alpha-OSPolicyAssignmentReport-OSPolicyCompliance-ComplianceState) \nReference documentation and code samples for the Cloud OS Config V1alpha API module Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport::OSPolicyCompliance::ComplianceState.\n\nPossible compliance states for an os policy.\n\nConstants\n---------\n\n### UNKNOWN\n\n**value:** 0 \nThe policy is in an unknown compliance state.\n\n\n\u003cbr /\u003e\n\nRefer to the field `compliance_state_reason` to learn the exact reason\nfor the policy to be in this compliance state.\n\n### COMPLIANT\n\n**value:** 1 \nPolicy is compliant.\n\n\n\u003cbr /\u003e\n\nThe policy is compliant if all the underlying resources are also\ncompliant.\n\n### NON_COMPLIANT\n\n**value:** 2 \nPolicy is non-compliant.\n\n\n\u003cbr /\u003e\n\nThe policy is non-compliant if one or more underlying resources are\nnon-compliant."]]