NAME

Google::Cloud::Osconfig::V1::OsPolicyAssignmentReports - Compiled Protocol Buffers messages for google/cloud/osconfig/v1/os_policy_assignment_reports.proto

SYNOPSIS

use Google::Cloud::Osconfig::V1::OsPolicyAssignmentReports;

my $msg = Google::Cloud::Osconfig::V1::OsPolicyAssignmentReports::GetOSPolicyAssignmentReportRequest->new({
    name => $name,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Osconfig::V1::OsPolicyAssignmentReports::GetOSPolicyAssignmentReportRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/osconfig/v1/os_policy_assignment_reports.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Osconfig::V1::OsPolicyAssignmentReports::GetOSPolicyAssignmentReportRequest

Get a report of the OS policy assignment for a VM instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. API resource name for OS policy assignment report.

    Format: `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`

    For `{project}`, either `project-number` or `project-id` can be provided. For `{instance_id}`, either Compute Engine `instance-id` or `instance-name` can be provided. For `{assignment_id}`, the OSPolicyAssignment id must be provided.

Google::Cloud::Osconfig::V1::OsPolicyAssignmentReports::ListOSPolicyAssignmentReportsRequest

List the OS policy assignment reports for VM instances.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource name.

    Format: `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`

    For `{project}`, either `project-number` or `project-id` can be provided. For `{instance}`, either `instance-name`, `instance-id`, or `-` can be provided. If '-' is provided, the response will include OSPolicyAssignmentReports for all instances in the project/location. For `{assignment}`, either `assignment-id` or `-` can be provided. If '-' is provided, the response will include OSPolicyAssignmentReports for all OSPolicyAssignments in the project/location. Either {instance} or {assignment} must be `-`.

    For example: `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports` returns all reports for the instance `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports` returns all the reports for the given assignment across all instances. `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports` returns all the reports for all assignments across all instances.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of results to return.

  • $msg->filter() / $msg->filter($value)

    Type: String

    If provided, this field specifies the criteria that must be met by the `OSPolicyAssignmentReport` API resource that is included in the response.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    A pagination token returned from a previous call to the `ListOSPolicyAssignmentReports` method that indicates where this listing should continue from.

Google::Cloud::Osconfig::V1::OsPolicyAssignmentReports::ListOSPolicyAssignmentReportsResponse

A response message for listing OS Policy assignment reports including the page of results and page token.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Osconfig::V1::OsPolicyAssignmentReports::OSPolicyAssignmentReport

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

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The `OSPolicyAssignmentReport` API resource name.

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

  • $msg->instance() / $msg->instance($value)

    Type: String

    The Compute Engine VM instance name.

  • $msg->os_policy_assignment() / $msg->os_policy_assignment($value)

    Type: 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}`

  • $msg->os_policy_compliances() / $msg->os_policy_compliances($value)

    Type: Message (Google::Cloud::Osconfig::V1::OsPolicyAssignmentReports::OSPolicyAssignmentReport::OSPolicyCompliance)

    Compliance data for each `OSPolicy` that is applied to the VM.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Timestamp for when the report was last generated.

  • $msg->last_run_id() / $msg->last_run_id($value)

    Type: 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.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Osconfig::V1::OsPolicyAssignmentReports::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.