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.
1677 1678 1679 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1677 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
1644 1645 1646 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1644 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
1665 1666 1667 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1665 def compliance_state_reason @compliance_state_reason end |
#os_policy_id ⇒ String
The OS policy id
Corresponds to the JSON property osPolicyId
1670 1671 1672 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1670 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
1675 1676 1677 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1675 def os_policy_resource_compliances @os_policy_resource_compliances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1682 1683 1684 1685 1686 1687 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1682 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 |