NAME

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

SYNOPSIS

use Google::Cloud::Osconfig::V1::PatchDeployments;

my $msg = Google::Cloud::Osconfig::V1::PatchDeployments::PatchDeployment->new({
    name => $name,
    description => $description,
    instance_filter => $instance_filter,
    patch_config => $patch_config,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/osconfig/v1/patch_deployments.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::PatchDeployments::PatchDeployment

Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package repository settings, and a schedule. For more information about creating and managing patch deployments, see [Scheduling patch jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).

Inherits from Protobuf::Message.

Accessors

Enum: PatchDeployment::State

  • STATE_UNSPECIFIED => 0

  • ACTIVE => 1

  • PAUSED => 2

Google::Cloud::Osconfig::V1::PatchDeployments::OneTimeSchedule

Sets the time for a one time patch deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Osconfig::V1::PatchDeployments::RecurringSchedule

Sets the time for recurring patch deployments.

Inherits from Protobuf::Message.

Accessors

Enum: RecurringSchedule::Frequency

  • FREQUENCY_UNSPECIFIED => 0

  • WEEKLY => 1

  • MONTHLY => 2

  • DAILY => 3

Google::Cloud::Osconfig::V1::PatchDeployments::WeeklySchedule

Represents a weekly schedule.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Osconfig::V1::PatchDeployments::MonthlySchedule

Represents a monthly schedule. An example of a valid monthly schedule is "on the third Tuesday of the month" or "on the 15th of the month".

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Osconfig::V1::PatchDeployments::WeekDayOfMonth)

    Required. Week day in a month.

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

    Type: Int32

    Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.

Google::Cloud::Osconfig::V1::PatchDeployments::WeekDayOfMonth

Represents one week day in a month. An example is "the 4th Sunday".

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.

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

    Type: Enum (Google::Type::DayOfWeek)

    Required. A day of the week.

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

    Type: Int32

    Optional. Represents the number of days before or after the given week day of month that the patch deployment is scheduled for. For example if `week_ordinal` and `day_of_week` values point to the second day of the month and this `day_offset` value is set to `3`, the patch deployment takes place three days after the second Tuesday of the month. If this value is negative, for example -5, the patches are deployed five days before before the second Tuesday of the month. Allowed values are in range [-30, 30].

Google::Cloud::Osconfig::V1::PatchDeployments::CreatePatchDeploymentRequest

A request message for creating a patch deployment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project to apply this patch deployment to in the form `projects/*`.

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

    Type: String

    Required. A name for the patch deployment in the project. When creating a name the following rules apply: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.

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

    Type: Message (Google::Cloud::Osconfig::V1::PatchDeployments::PatchDeployment)

    Required. The patch deployment to create.

Google::Cloud::Osconfig::V1::PatchDeployments::GetPatchDeploymentRequest

A request message for retrieving a patch deployment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the patch deployment in the form `projects/*/patchDeployments/*`.

Google::Cloud::Osconfig::V1::PatchDeployments::ListPatchDeploymentsRequest

A request message for listing patch deployments.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the parent in the form `projects/*`.

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

    Type: Int32

    Optional. The maximum number of patch deployments to return. Default is 100.

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

    Type: String

    Optional. A pagination token returned from a previous call to ListPatchDeployments that indicates where this listing should continue from.

Google::Cloud::Osconfig::V1::PatchDeployments::ListPatchDeploymentsResponse

A response message for listing patch deployments.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Osconfig::V1::PatchDeployments::PatchDeployment)

    The list of patch deployments.

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

    Type: String

    A pagination token that can be used to get the next page of patch deployments.

Google::Cloud::Osconfig::V1::PatchDeployments::DeletePatchDeploymentRequest

A request message for deleting a patch deployment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the patch deployment in the form `projects/*/patchDeployments/*`.

Google::Cloud::Osconfig::V1::PatchDeployments::UpdatePatchDeploymentRequest

A request message for updating a patch deployment.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Osconfig::V1::PatchDeployments::PausePatchDeploymentRequest

A request message for pausing a patch deployment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the patch deployment in the form `projects/*/patchDeployments/*`.

Google::Cloud::Osconfig::V1::PatchDeployments::ResumePatchDeploymentRequest

A request message for resuming a patch deployment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the patch deployment in the form `projects/*/patchDeployments/*`.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.