NAME
Google::Cloud::Osconfig::V1alpha::InstanceOsPoliciesCompliance - Compiled Protocol Buffers messages for google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto
SYNOPSIS
use Google::Cloud::Osconfig::V1alpha::InstanceOsPoliciesCompliance;
my $msg = Google::Cloud::Osconfig::V1alpha::InstanceOsPoliciesCompliance::InstanceOSPoliciesCompliance->new({
name => $name,
instance => $instance,
state => $state,
detailed_state => $detailed_state,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Osconfig::V1alpha::InstanceOsPoliciesCompliance::InstanceOSPoliciesCompliance->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/osconfig/v1alpha/instance_os_policies_compliance.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::V1alpha::InstanceOsPoliciesCompliance::InstanceOSPoliciesCompliance
This API resource represents the OS policies compliance data for a Compute Engine virtual machine (VM) instance at a given point in time.
A Compute Engine VM can have multiple OS policy assignments, and each assignment can have multiple OS policies. As a result, multiple OS policies could be applied to a single VM.
You can use this API resource to determine both the compliance state of your VM as well as the compliance state of an individual OS policy.
For more information, see [View compliance](https://cloud.google.com/compute/docs/os-configuration-management/view-compliance).
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The `InstanceOSPoliciesCompliance` API resource name.
Format: `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`
$msg->instance()/$msg->instance($value)Type:
StringOutput only. The Compute Engine VM instance name.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Osconfig::V1alpha::OSPolicyComplianceState)Output only. Compliance state of the VM.
$msg->detailed_state()/$msg->detailed_state($value)Type:
StringOutput only. Detailed compliance state of the VM. This field is populated only when compliance state is `UNKNOWN`.
It may contain one of the following values:
* `no-compliance-data`: Compliance data is not available for this VM. * `no-agent-detected`: OS Config agent is not detected for this VM. * `config-not-supported-by-agent`: The version of the OS Config agent running on this VM does not support configuration management. * `inactive`: VM is not running. * `internal-service-errors`: There were internal service errors encountered while enforcing compliance. * `agent-errors`: OS config agent encountered errors while enforcing compliance.
$msg->detailed_state_reason()/$msg->detailed_state_reason($value)Type:
StringOutput only. The reason for the `detailed_state` of the VM (if any).
$msg->os_policy_compliances()/$msg->os_policy_compliances($value)Type:
Message(Google::Cloud::Osconfig::V1alpha::InstanceOsPoliciesCompliance::InstanceOSPoliciesCompliance::OSPolicyCompliance)Output only. Compliance data for each `OSPolicy` that is applied to the VM.
$msg->last_compliance_check_time()/$msg->last_compliance_check_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp of the last compliance check for the VM.
$msg->last_compliance_run_id()/$msg->last_compliance_run_id($value)Type:
StringOutput only. Unique identifier for the last compliance run. This id will be logged by the OS config agent during a compliance run and can be used for debugging and tracing purpose.
Google::Cloud::Osconfig::V1alpha::InstanceOsPoliciesCompliance::GetInstanceOSPoliciesComplianceRequest
A request message for getting OS policies compliance data for the given Compute Engine VM instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. API resource name for instance OS policies compliance resource.
Format: `projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}`
For `{project}`, either Compute Engine project-number or project-id can be provided. For `{instance}`, either Compute Engine VM instance-id or instance-name can be provided.
Google::Cloud::Osconfig::V1alpha::InstanceOsPoliciesCompliance::ListInstanceOSPoliciesCompliancesRequest
A request message for listing OS policies compliance data for all Compute Engine VMs in the given location.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
Format: `projects/{project}/locations/{location}`
For `{project}`, either Compute Engine project-number or project-id can be provided.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of results to return.
$msg->page_token()/$msg->page_token($value)Type:
StringA pagination token returned from a previous call to `ListInstanceOSPoliciesCompliances` that indicates where this listing should continue from.
$msg->filter()/$msg->filter($value)Type:
StringIf provided, this field specifies the criteria that must be met by a `InstanceOSPoliciesCompliance` API resource to be included in the response.
Google::Cloud::Osconfig::V1alpha::InstanceOsPoliciesCompliance::ListInstanceOSPoliciesCompliancesResponse
A response message for listing OS policies compliance data for all Compute Engine VMs in the given location.
Inherits from Protobuf::Message.
Accessors
$msg->instance_os_policies_compliances()/$msg->instance_os_policies_compliances($value)Type:
Message(Google::Cloud::Osconfig::V1alpha::InstanceOsPoliciesCompliance::InstanceOSPoliciesCompliance)List of instance OS policies compliance objects.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe pagination token to retrieve the next page of instance OS policies compliance objects.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Osconfig::V1alpha::InstanceOsPoliciesCompliance::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.