Class: Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
- 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 resource.
Instance Attribute Summary collapse
-
#compliance_state ⇒ String
The compliance state of the resource.
-
#compliance_state_reason ⇒ String
A reason for the resource to be in the given compliance state.
-
#config_steps ⇒ Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep>
Ordered list of configuration completed by the agent for the OS policy resource.
-
#exec_resource_output ⇒ Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
ExecResource specific output.
-
#os_policy_resource_id ⇒ String
The ID of the OS policy resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
constructor
A new instance of OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance
Returns a new instance of OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance.
1671 1672 1673 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1671 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compliance_state ⇒ String
The compliance state of the resource.
Corresponds to the JSON property complianceState
1638 1639 1640 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1638 def compliance_state @compliance_state end |
#compliance_state_reason ⇒ String
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. * os-policy-execution-pending
:
OS policy that owns this resource was assigned to the given VM, but was not
executed yet.
Corresponds to the JSON property complianceStateReason
1653 1654 1655 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1653 def compliance_state_reason @compliance_state_reason end |
#config_steps ⇒ Array<Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep>
Ordered list of configuration completed by the agent for the OS policy
resource.
Corresponds to the JSON property configSteps
1659 1660 1661 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1659 def config_steps @config_steps end |
#exec_resource_output ⇒ Google::Apis::OsconfigV1::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput
ExecResource specific output.
Corresponds to the JSON property execResourceOutput
1664 1665 1666 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1664 def exec_resource_output @exec_resource_output end |
#os_policy_resource_id ⇒ String
The ID of the OS policy resource.
Corresponds to the JSON property osPolicyResourceId
1669 1670 1671 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1669 def os_policy_resource_id @os_policy_resource_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1676 1677 1678 1679 1680 1681 1682 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1676 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) @config_steps = args[:config_steps] if args.key?(:config_steps) @exec_resource_output = args[:exec_resource_output] if args.key?(:exec_resource_output) @os_policy_resource_id = args[:os_policy_resource_id] if args.key?(:os_policy_resource_id) end |