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.



367
368
369
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 367

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)


350
351
352
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 350

def os_policy_assignment
  @os_policy_assignment
end

#os_policy_idString

The OS policy id Corresponds to the JSON property osPolicyId

Returns:

  • (String)


355
356
357
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 355

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



360
361
362
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 360

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)


365
366
367
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 365

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



372
373
374
375
376
377
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 372

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