NAME

Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs - Compiled Protocol Buffers messages for google/cloud/osconfig/agentendpoint/v1beta/patch_jobs.proto

SYNOPSIS

use Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs;

my $msg = Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::PatchConfig->new({
    reboot_config => $reboot_config,
    retry_strategy => $retry_strategy,
    apt => $apt,
    yum => $yum,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::PatchConfig->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/osconfig/agentendpoint/v1beta/patch_jobs.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::PatchJobs::PatchConfig

Patch configuration specifications. Contains details on how to apply patches to a VM instance.

Inherits from Protobuf::Message.

Accessors

Enum: PatchConfig::RebootConfig

  • REBOOT_CONFIG_UNSPECIFIED => 0

  • DEFAULT => 1

  • ALWAYS => 2

  • NEVER => 3

Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::AptSettings

Apt patching will be performed by executing `apt-get update && apt-get upgrade`. Additional options can be set to control how this is executed.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Osconfig::Agentendpoint::V1beta::AptSettings::Type)

    By changing the type to DIST, the patching will be performed using `apt-get dist-upgrade` instead.

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

    Type: String

    List of packages to exclude from update.

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

    Type: String

    An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.

Enum: AptSettings::Type

  • TYPE_UNSPECIFIED => 0

  • DIST => 1

  • UPGRADE => 2

Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::YumSettings

Yum patching will be performed by executing `yum update`. Additional options can be set to control how this is executed.

Note that not all settings are supported on all platforms.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Adds the `--security` flag to `yum update`. Not supported on all platforms.

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

    Type: Bool

    Will cause patch to run `yum update-minimal` instead.

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

    Type: String

    List of packages to exclude from update. These packages will be excluded by using the yum `--exclude` flag.

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

    Type: String

    An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field must not be specified with any other patch configuration fields.

Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::GooSettings

Googet patching is performed by running `googet update`.

Inherits from Protobuf::Message.

Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::ZypperSettings

Zypper patching is performed by running `zypper patch`. See also https://en.opensuse.org/SDB:Zypper_manual.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Adds the `--with-optional` flag to `zypper patch`.

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

    Type: Bool

    Adds the `--with-update` flag, to `zypper patch`.

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

    Type: String

    Install only patches with these categories. Common categories include security, recommended, and feature.

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

    Type: String

    Install only patches with these severities. Common severities include critical, important, moderate, and low.

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

    Type: String

    List of patches to exclude from update.

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

    Type: String

    An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:<patch_name>' command. This field must not be used with any other patch configuration fields.

Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::WindowsUpdateSettings

Windows patching is performed using the Windows Update Agent.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Osconfig::Agentendpoint::V1beta::WindowsUpdateSettings::Classification)

    Only apply updates of these windows update classifications. If empty, all updates will be applied.

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

    Type: String

    List of KBs to exclude from update.

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

    Type: String

    An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.

Enum: WindowsUpdateSettings::Classification

  • CLASSIFICATION_UNSPECIFIED => 0

  • CRITICAL => 1

  • SECURITY => 2

  • DEFINITION => 3

  • DRIVER => 4

  • FEATURE_PACK => 5

  • SERVICE_PACK => 6

  • TOOL => 7

  • UPDATE_ROLLUP => 8

  • UPDATE => 9

Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::RetryStrategy

The strategy for retrying failed patches during the patch window.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    If true, the agent will continue to try and patch until the window has ended.

Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::ExecStep

A step that runs an executable for a PatchJob.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::ExecStepConfig

Common configurations for an ExecStep.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    An absolute path to the executable on the VM.

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

    Type: Message (Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::GcsObject)

    A GCS object containing the executable.

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

    Type: Int32

    Defaults to [0]. A list of possible return values that the execution can return to indicate a success.

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

    Type: Enum (Google::Cloud::Osconfig::Agentendpoint::V1beta::ExecStepConfig::Interpreter)

    The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with shebang lines. [Wikipedia shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)).

Enum: ExecStepConfig::Interpreter

  • INTERPRETER_UNSPECIFIED => 0

  • NONE => 3

  • SHELL => 1

  • POWERSHELL => 2

Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::GcsObject

GCS object representation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Bucket of the GCS object.

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

    Type: String

    Name of the GCS object.

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

    Type: Int64

    Generation number of the GCS object. This is used to ensure that the ExecStep specified by this PatchJob does not change.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Osconfig::Agentendpoint::V1beta::PatchJobs::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.