Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceCompliance

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) ⇒ OsPolicyResourceCompliance

Returns a new instance of OsPolicyResourceCompliance.



1695
1696
1697
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1695

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

Instance Attribute Details

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

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



1678
1679
1680
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1678

def config_steps
  @config_steps
end

#exec_resource_outputGoogle::Apis::OsconfigV1alpha::OsPolicyResourceComplianceExecResourceOutput

ExecResource specific output. Corresponds to the JSON property execResourceOutput



1683
1684
1685
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1683

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)


1688
1689
1690
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1688

def os_policy_resource_id
  @os_policy_resource_id
end

#stateString

Compliance state of the OS policy resource. Corresponds to the JSON property state

Returns:

  • (String)


1693
1694
1695
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1693

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1700
1701
1702
1703
1704
1705
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1700

def update!(**args)
  @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)
  @state = args[:state] if args.key?(:state)
end