Class: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyCompliance
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyCompliance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb
Overview
Compliance data for an OS policy
Instance Attribute Summary collapse
-
#compliance_state ⇒ String
The compliance state of the OS policy.
-
#compliance_state_reason ⇒ String
The reason for the OS policy to be in an unknown compliance state.
-
#os_policy_id ⇒ String
The OS policy id Corresponds to the JSON property
osPolicyId
. -
#os_policy_resource_compliances ⇒ Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance>
Compliance data for each resource within the policy that is applied to the VM.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyAssignmentReportOsPolicyCompliance
constructor
A new instance of OsPolicyAssignmentReportOsPolicyCompliance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyAssignmentReportOsPolicyCompliance
Returns a new instance of OsPolicyAssignmentReportOsPolicyCompliance.
1618 1619 1620 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1618 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compliance_state ⇒ String
The compliance state of the OS policy.
Corresponds to the JSON property complianceState
1585 1586 1587 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1585 def compliance_state @compliance_state end |
#compliance_state_reason ⇒ String
The reason for the OS policy to be in an unknown compliance state. This field
is always populated when compliance_state
is UNKNOWN
. If populated, the
field can contain one of the following values: * vm-not-running
: The VM was
not running. * os-policies-not-supported-by-agent
: The version of the OS
Config agent running on the VM does not support running OS policies. * no-
agent-detected
: The OS Config agent is not detected for the VM. * resource-
execution-errors
: The OS Config agent encountered errors while executing one
or more resources in the policy. See os_policy_resource_compliances
for
details. * task-timeout
: The task sent to the agent to apply the policy
timed out. * unexpected-agent-state
: The OS Config agent did not report the
final status of the task that attempted to apply the policy. Instead, the
agent unexpectedly started working on a different task. This mostly happens
when the agent or VM unexpectedly restarts while applying OS policies. *
internal-service-errors
: Internal service errors were encountered while
attempting to apply the policy. * os-policy-execution-pending
: OS policy was
assigned to the given VM, but was not executed yet. Typically this is a
transient condition that will go away after the next policy execution cycle.
Corresponds to the JSON property complianceStateReason
1606 1607 1608 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1606 def compliance_state_reason @compliance_state_reason end |
#os_policy_id ⇒ String
The OS policy id
Corresponds to the JSON property osPolicyId
1611 1612 1613 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1611 def os_policy_id @os_policy_id end |
#os_policy_resource_compliances ⇒ Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance>
Compliance data for each resource within the policy that is applied to the VM.
Corresponds to the JSON property osPolicyResourceCompliances
1616 1617 1618 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1616 def os_policy_resource_compliances @os_policy_resource_compliances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1623 1624 1625 1626 1627 1628 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1623 def update!(**args) @compliance_state = args[:compliance_state] if args.key?(:compliance_state) @compliance_state_reason = args[:compliance_state_reason] if args.key?(:compliance_state_reason) @os_policy_id = args[:os_policy_id] if args.key?(:os_policy_id) @os_policy_resource_compliances = args[:os_policy_resource_compliances] if args.key?(:os_policy_resource_compliances) end |