Class: Google::Apis::OsconfigV1alpha::InstanceOsPoliciesComplianceOsPolicyCompliance

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceOsPoliciesComplianceOsPolicyCompliance

Returns a new instance of InstanceOsPoliciesComplianceOsPolicyCompliance.



321
322
323
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 321

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

Instance Attribute Details

#os_policy_assignmentString

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 propertyosPolicyAssignment`

Returns:

  • (String)


304
305
306
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 304

def os_policy_assignment
  @os_policy_assignment
end

#os_policy_idString

The OS policy id Corresponds to the JSON property osPolicyId

Returns:

  • (String)


309
310
311
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 309

def os_policy_id
  @os_policy_id
end

#os_policy_resource_compliancesArray<Google::Apis::OsconfigV1alpha::OsPolicyResourceCompliance>

Compliance data for each OSPolicyResource that is applied to the VM. Corresponds to the JSON property osPolicyResourceCompliances



314
315
316
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 314

def os_policy_resource_compliances
  @os_policy_resource_compliances
end

#stateString

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

Returns:

  • (String)


319
320
321
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 319

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



326
327
328
329
330
331
# 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