Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::InstanceOSPoliciesCompliance::OSPolicyCompliance (v0.9.1)

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
Returns
  • (::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}

#os_policy_assignment=

def os_policy_assignment=(value) -> ::String
Parameter
  • value (::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}

Returns
  • (::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}

#os_policy_id

def os_policy_id() -> ::String
Returns
  • (::String) — The OS policy id

#os_policy_id=

def os_policy_id=(value) -> ::String
Parameter
  • value (::String) — The OS policy id
Returns
  • (::String) — The OS policy id

#os_policy_resource_compliances

def os_policy_resource_compliances() -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance>
Returns

#os_policy_resource_compliances=

def os_policy_resource_compliances=(value) -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceCompliance>
Parameter
Returns

#state

def state() -> ::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState
Returns

#state=

def state=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicyComplianceState
Parameter
Returns