NAME
Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies - Compiled Protocol Buffers messages for google/cloud/osconfig/agentendpoint/v1beta/guest_policies.proto
SYNOPSIS
use Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies;
my $msg = Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::Package->new({
name => $name,
desired_state => $desired_state,
manager => $manager,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::Package->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/osconfig/agentendpoint/v1beta/guest_policies.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::Agentendpoint::V1beta::GuestPolicies::Package
Package is a reference to the software package to be installed or removed. The agent on the VM instance uses the system package manager to apply the config.
These are the commands that the agent uses to install or remove packages.
Apt install: `apt-get update && apt-get -y install package1 package2 package3` remove: `apt-get -y remove package1 package2 package3`
Yum install: `yum -y install package1 package2 package3` remove: `yum -y remove package1 package2 package3`
Zypper install: `zypper install package1 package2 package3` remove: `zypper rm package1 package2`
Googet install: `googet -noconfirm install package1 package2 package3` remove: `googet -noconfirm remove package1 package2 package3`
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the package. A package is uniquely identified for conflict validation by checking the package name and the manager(s) that the package targets.
$msg->desired_state()/$msg->desired_state($value)Type:
Enum(Google::Cloud::Osconfig::Agentendpoint::V1beta::DesiredState)The desired_state the agent should maintain for this package. The default is to ensure the package is installed.
$msg->manager()/$msg->manager($value)Type:
Enum(Google::Cloud::Osconfig::Agentendpoint::V1beta::Package::Manager)Type of package manager that can be used to install this package. If a system does not have the package manager, the package is not installed or removed no error message is returned. By default, or if you specify `ANY`, the agent attempts to install and remove this package using the default package manager. This is useful when creating a policy that applies to different types of systems.
The default behavior is ANY.
Enum: Package::Manager
MANAGER_UNSPECIFIED=>0ANY=>1APT=>2YUM=>3ZYPPER=>4GOO=>5
Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::AptRepository
Represents a single Apt package repository. This repository is added to a repo file that is stored at `/etc/apt/sources.list.d/google_osconfig.list`.
Inherits from Protobuf::Message.
Accessors
$msg->archive_type()/$msg->archive_type($value)Type:
Enum(Google::Cloud::Osconfig::Agentendpoint::V1beta::AptRepository::ArchiveType)Type of archive files in this repository. The default behavior is DEB.
$msg->uri()/$msg->uri($value)Type:
StringURI for this repository.
$msg->distribution()/$msg->distribution($value)Type:
StringDistribution of this repository.
$msg->components()/$msg->components($value)Type:
StringList of components for this repository. Must contain at least one item.
$msg->gpg_key()/$msg->gpg_key($value)Type:
StringURI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg` containing all the keys in any applied guest policy.
Enum: AptRepository::ArchiveType
ARCHIVE_TYPE_UNSPECIFIED=>0DEB=>1DEB_SRC=>2
Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::YumRepository
Represents a single Yum package repository. This repository is added to a repo file that is stored at `/etc/yum.repos.d/google_osconfig.repo`.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringA one word, unique name for this repository. This is the `repo id` in the Yum config file and also the `display_name` if `display_name` is omitted. This id is also used as the unique identifier when checking for guest policy conflicts.
$msg->display_name()/$msg->display_name($value)Type:
StringThe display name of the repository.
$msg->base_url()/$msg->base_url($value)Type:
StringThe location of the repository directory.
$msg->gpg_keys()/$msg->gpg_keys($value)Type:
StringURIs of GPG keys.
Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::ZypperRepository
Represents a single Zypper package repository. This repository is added to a repo file that is stored at `/etc/zypp/repos.d/google_osconfig.repo`.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringA one word, unique name for this repository. This is the `repo id` in the zypper config file and also the `display_name` if `display_name` is omitted. This id is also used as the unique identifier when checking for guest policy conflicts.
$msg->display_name()/$msg->display_name($value)Type:
StringThe display name of the repository.
$msg->base_url()/$msg->base_url($value)Type:
StringThe location of the repository directory.
$msg->gpg_keys()/$msg->gpg_keys($value)Type:
StringURIs of GPG keys.
Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::GooRepository
Represents a Goo package repository. These is added to a repo file that is stored at C:/ProgramData/GooGet/repos/google_osconfig.repo.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the repository.
$msg->url()/$msg->url($value)Type:
StringThe url of the repository.
Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::PackageRepository
A package repository.
Inherits from Protobuf::Message.
Accessors
$msg->apt()/$msg->apt($value)Type:
Message(Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::AptRepository)An Apt Repository.
$msg->yum()/$msg->yum($value)Type:
Message(Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::YumRepository)A Yum Repository.
$msg->zypper()/$msg->zypper($value)Type:
Message(Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::ZypperRepository)A Zypper Repository.
$msg->goo()/$msg->goo($value)Type:
Message(Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::GooRepository)A Goo Repository.
Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::SoftwareRecipe
A software recipe is a set of instructions for installing and configuring a piece of software. It consists of a set of artifacts that are downloaded, and a set of steps that install, configure, and/or update the software.
Recipes support installing and updating software from artifacts in the following formats: Zip archive, Tar archive, Windows MSI, Debian package, and RPM package.
Additionally, recipes support executing a script (either defined in a file or directly in this api) in bash, sh, cmd, and powershell.
Updating a software recipe
If a recipe is assigned to an instance and there is a recipe with the same name but a lower version already installed and the assigned state of the recipe is `INSTALLED_KEEP_UPDATED`, then the recipe is updated to the new version.
Script Working Directories
Each script or execution step is run in its own temporary directory which is deleted after completing the step.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringUnique identifier for the recipe. Only one recipe with a given name is installed on an instance.
Names are also used to identify resources which helps to determine whether guest policies have conflicts. This means that requests to create multiple recipes with the same name and version are rejected since they could potentially have conflicting assignments.
$msg->version()/$msg->version($value)Type:
StringThe version of this software recipe. Version can be up to 4 period separated numbers (e.g. 12.34.56.78).
$msg->artifacts()/$msg->artifacts($value)Type:
Message(Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::SoftwareRecipe::Artifact)Resources available to be used in the steps in the recipe.
$msg->install_steps()/$msg->install_steps($value)Type:
Message(Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::SoftwareRecipe::Step)Actions to be taken for installing this recipe. On failure it stops executing steps and does not attempt another installation. Any steps taken (including partially completed steps) are not rolled back. Install steps must be specified and are used on first installation.
$msg->update_steps()/$msg->update_steps($value)Type:
Message(Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::SoftwareRecipe::Step)Actions to be taken for updating this recipe. On failure it stops executing steps and does not attempt another update for this recipe. Any steps taken (including partially completed steps) are not rolled back. Upgrade steps are not mandatory and are only used when upgrading.
$msg->desired_state()/$msg->desired_state($value)Type:
Enum(Google::Cloud::Osconfig::Agentendpoint::V1beta::DesiredState)Default is INSTALLED. The desired state the agent should maintain for this recipe.
INSTALLED: The software recipe is installed on the instance but won't be updated to new versions. UPDATED: The software recipe is installed on the instance. The recipe is updated to a higher version, if a higher version of the recipe is assigned to this instance. REMOVE: Remove is unsupported for software recipes and attempts to create or update a recipe to the REMOVE state is rejected.
Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::LookupEffectiveGuestPolicyRequest
A request message for getting effective policy assigned to the instance.
Inherits from Protobuf::Message.
Accessors
$msg->instance_id_token()/$msg->instance_id_token($value)Type:
StringRequired. This is the GCE instance identity token described in https://cloud.google.com/compute/docs/instances/verifying-instance-identity where the audience is 'osconfig.googleapis.com' and the format is 'full'.
$msg->os_short_name()/$msg->os_short_name($value)Type:
StringShort name of the OS running on the instance. The OS Config agent only provideS this field for targeting if OS Inventory is enabled for that instance.
$msg->os_version()/$msg->os_version($value)Type:
StringVersion of the OS running on the instance. The OS Config agent only provide this field for targeting if OS Inventory is enabled for that VM instance.
$msg->os_architecture()/$msg->os_architecture($value)Type:
StringArchitecture of OS running on the instance. The OS Config agent only provide this field for targeting if OS Inventory is enabled for that instance.
Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::EffectiveGuestPolicy
The effective guest policy assigned to the instance.
Inherits from Protobuf::Message.
Accessors
$msg->packages()/$msg->packages($value)Type:
Message(Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::EffectiveGuestPolicy::SourcedPackage)List of package configurations assigned to the VM instance.
$msg->package_repositories()/$msg->package_repositories($value)Type:
Message(Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::EffectiveGuestPolicy::SourcedPackageRepository)List of package repository configurations assigned to the VM instance.
$msg->software_recipes()/$msg->software_recipes($value)Type:
Message(Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::EffectiveGuestPolicy::SourcedSoftwareRecipe)List of recipes assigned to the VM instance.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Osconfig::Agentendpoint::V1beta::GuestPolicies::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.