Class: Google::Apis::OsconfigV1alpha::InstanceOsPoliciesComplianceOsPolicyCompliance
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1alpha::InstanceOsPoliciesComplianceOsPolicyCompliance
- 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
-
#os_policy_assignment ⇒ String
Reference to the
OSPolicyAssignment
API resource that theOSPolicy
belongs to. -
#os_policy_id ⇒ String
The OS policy id Corresponds to the JSON property
osPolicyId
. -
#os_policy_resource_compliances ⇒ Array<Google::Apis::OsconfigV1alpha::OsPolicyResourceCompliance>
Compliance data for each
OSPolicyResource
that is applied to the VM. -
#state ⇒ String
Compliance state of the OS policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceOsPoliciesComplianceOsPolicyCompliance
constructor
A new instance of InstanceOsPoliciesComplianceOsPolicyCompliance.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_assignment ⇒ String
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`
349 350 351 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 349 def os_policy_assignment @os_policy_assignment end |
#os_policy_id ⇒ String
The OS policy id
Corresponds to the JSON property osPolicyId
354 355 356 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 354 def os_policy_id @os_policy_id end |
#os_policy_resource_compliances ⇒ Array<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 |
#state ⇒ String
Compliance state of the OS policy.
Corresponds to the JSON property state
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 |