Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::OSPolicyAssignmentReport (v1.6.1)

Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::OSPolicyAssignmentReport.

A report of the OS policy assignment status for a given instance.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#instance

definstance()->::String
Returns
  • (::String) — The Compute Engine VM instance name.

#instance=

definstance=(value)->::String
Parameter
  • value (::String) — The Compute Engine VM instance name.
Returns
  • (::String) — The Compute Engine VM instance name.

#last_run_id

deflast_run_id()->::String
Returns
  • (::String) — Unique identifier of the last attempted run to apply the OS policies associated with this assignment on the VM.

    This ID is logged by the OS Config agent while applying the OS policies associated with this assignment on the VM. NOTE: If the service is unable to successfully connect to the agent for this run, then this id will not be available in the agent logs.

#last_run_id=

deflast_run_id=(value)->::String
Parameter
  • value (::String) — Unique identifier of the last attempted run to apply the OS policies associated with this assignment on the VM.

    This ID is logged by the OS Config agent while applying the OS policies associated with this assignment on the VM. NOTE: If the service is unable to successfully connect to the agent for this run, then this id will not be available in the agent logs.

Returns
  • (::String) — Unique identifier of the last attempted run to apply the OS policies associated with this assignment on the VM.

    This ID is logged by the OS Config agent while applying the OS policies associated with this assignment on the VM. NOTE: If the service is unable to successfully connect to the agent for this run, then this id will not be available in the agent logs.

#name

defname()->::String
Returns
  • (::String) — The OSPolicyAssignmentReport API resource name.

    Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report

#name=

defname=(value)->::String
Parameter
  • value (::String) — The OSPolicyAssignmentReport API resource name.

    Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report

Returns
  • (::String) — The OSPolicyAssignmentReport API resource name.

    Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report

#os_policy_assignment

defos_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=

defos_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_compliances

defos_policy_compliances()->::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignmentReport::OSPolicyCompliance>
Returns

#os_policy_compliances=

defos_policy_compliances=(value)->::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignmentReport::OSPolicyCompliance>
Parameter
Returns

#update_time

defupdate_time()->::Google::Protobuf::Timestamp
Returns

#update_time=

defupdate_time=(value)->::Google::Protobuf::Timestamp
Parameter
Returns

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.