# Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance (v0.17.0)

0.17.0 (latest) 0.16.1 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.1 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance.

Compliance data for an OS policy resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #config_steps

    def config_steps() -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceConfigStep>

**Returns**

- (::Array\<[::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceConfigStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyResourceConfigStep)\>) --- Ordered list of configuration steps taken by the agent for the OS policy resource.

### #config_steps=

    def config_steps=(value) -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceConfigStep>

**Parameter**

- **value** (::Array\<[::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceConfigStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyResourceConfigStep)\>) --- Ordered list of configuration steps taken by the agent for the OS policy resource.
**Returns**

- (::Array\<[::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceConfigStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyResourceConfigStep)\>) --- Ordered list of configuration steps taken by the agent for the OS policy resource.

### #exec_resource_output

    def exec_resource_output() -> ::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance::ExecResourceOutput

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance::ExecResourceOutput](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyResourceCompliance-ExecResourceOutput)) --- ExecResource specific output.

### #exec_resource_output=

    def exec_resource_output=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance::ExecResourceOutput

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance::ExecResourceOutput](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyResourceCompliance-ExecResourceOutput)) --- ExecResource specific output.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance::ExecResourceOutput](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyResourceCompliance-ExecResourceOutput)) --- ExecResource specific output.

### #os_policy_resource_id

    def os_policy_resource_id() -> ::String

**Returns**

- (::String) --- The id of the OS policy resource.

### #os_policy_resource_id=

    def os_policy_resource_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The id of the OS policy resource.
**Returns**

- (::String) --- The id of the OS policy resource.

### #state

    def state() -> ::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyComplianceState)) --- Compliance state of the OS policy resource.

### #state=

    def state=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyComplianceState)) --- Compliance state of the OS policy resource.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicyComplianceState)) --- Compliance state of the OS policy resource.