Class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1alpha/classes.rb,
lib/google/apis/osconfig_v1alpha/representations.rb,
lib/google/apis/osconfig_v1alpha/representations.rb

Overview

Compliance data for an OS policy resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance

Returns a new instance of OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceCompliance.



1500
1501
1502
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1500

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#compliance_stateString

The compliance state of the resource. Corresponds to the JSON property complianceState

Returns:

  • (String)


1467
1468
1469
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1467

def compliance_state
  @compliance_state
end

#compliance_state_reasonString

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

Returns:

  • (String)


1482
1483
1484
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1482

def compliance_state_reason
  @compliance_state_reason
end

#config_stepsArray<Google::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceOsPolicyResourceConfigStep>

Ordered list of configuration completed by the agent for the OS policy resource. Corresponds to the JSON property configSteps



1488
1489
1490
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1488

def config_steps
  @config_steps
end

#exec_resource_outputGoogle::Apis::OsconfigV1alpha::OsPolicyAssignmentReportOsPolicyComplianceOsPolicyResourceComplianceExecResourceOutput

ExecResource specific output. Corresponds to the JSON property execResourceOutput



1493
1494
1495
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1493

def exec_resource_output
  @exec_resource_output
end

#os_policy_resource_idString

The ID of the OS policy resource. Corresponds to the JSON property osPolicyResourceId

Returns:

  • (String)


1498
1499
1500
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1498

def os_policy_resource_id
  @os_policy_resource_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1505
1506
1507
1508
1509
1510
1511
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1505

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