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.



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

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)


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

def os_policy_assignment
  @os_policy_assignment
end

#os_policy_idString

The OS policy id Corresponds to the JSON property osPolicyId

Returns:

  • (String)


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

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



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

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)


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

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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