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
OSPolicyAssignmentAPI resource that theOSPolicybelongs 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
OSPolicyResourcethat 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.
367 368 369 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 367 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 propertyosPolicyAssignment`
350 351 352 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 350 def os_policy_assignment @os_policy_assignment end |
#os_policy_id ⇒ String
The OS policy id
Corresponds to the JSON property osPolicyId
355 356 357 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 355 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
360 361 362 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 360 def os_policy_resource_compliances @os_policy_resource_compliances end |
#state ⇒ String
Compliance state of the OS policy.
Corresponds to the JSON property state
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 |