class Google::Apis::OsconfigV1alpha::InstanceOsPoliciesComplianceOsPolicyCompliance
Compliance data for an OS policy
Attributes
os_policy_assignment[RW]
Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs to. Format: `projects/`project_number`/locations/`location`/ osPolicyAssignments/`os_policy_assignment_id@revision_id“ Corresponds to the JSON property `osPolicyAssignment` @return [String]
os_policy_id[RW]
The OS policy id Corresponds to the JSON property `osPolicyId` @return [String]
os_policy_resource_compliances[RW]
Compliance data for each `OSPolicyResource` that is applied to the VM. Corresponds to the JSON property `osPolicyResourceCompliances` @return [Array<Google::Apis::OsconfigV1alpha::OsPolicyResourceCompliance>]
state[RW]
Compliance state of the OS policy. Corresponds to the JSON property `state` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 321 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 326 def update!(**args) @os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment) @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) @state = args[:state] if args.key?(:state) end