Reference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::InstanceOSPoliciesCompliance::OSPolicyCompliance.
Compliance data for an OS policy
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#os_policy_assignment
def os_policy_assignment() -> ::String
-
(::String) — Reference to the
OSPolicyAssignment
API resource that theOSPolicy
belongs to.Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
#os_policy_assignment=
def os_policy_assignment=(value) -> ::String
-
value (::String) — Reference to the
OSPolicyAssignment
API resource that theOSPolicy
belongs to.Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
-
(::String) — Reference to the
OSPolicyAssignment
API resource that theOSPolicy
belongs to.Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
#os_policy_id
def os_policy_id() -> ::String
- (::String) — The OS policy id
#os_policy_id=
def os_policy_id=(value) -> ::String
- value (::String) — The OS policy id
- (::String) — The OS policy id
#os_policy_resource_compliances
def os_policy_resource_compliances() -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance>
-
(::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance>) — Compliance data for each
OSPolicyResource
that is applied to the VM.
#os_policy_resource_compliances=
def os_policy_resource_compliances=(value) -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance>
-
value (::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance>) — Compliance data for each
OSPolicyResource
that is applied to the VM.
-
(::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance>) — Compliance data for each
OSPolicyResource
that is applied to the VM.
#state
def state() -> ::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState
- (::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState) — Compliance state of the OS policy.
#state=
def state=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState
- value (::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState) — Compliance state of the OS policy.
- (::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState) — Compliance state of the OS policy.