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
$msg->name()/$msg->name($value)Type:
StringUnique name for the patch deployment resource in a project. The patch deployment name is in the form: `projects/{project_id}/patchDeployments/{patch_deployment_id}`. This field is ignored when you create a new patch deployment.
$msg->description()/$msg->description($value)Type:
StringOptional. Description of the patch deployment. Length of the description is limited to 1024 characters.
$msg->instance_filter()/$msg->instance_filter($value)Type:
Message(Google::Cloud::Osconfig::V1::PatchJobs::PatchInstanceFilter)Required. VM instances to patch.
$msg->patch_config()/$msg->patch_config($value)Type:
Message(Google::Cloud::Osconfig::V1::PatchJobs::PatchConfig)Optional. Patch configuration that is applied.
$msg->duration()/$msg->duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. Duration of the patch. After the duration ends, the patch times out.
$msg->one_time_schedule()/$msg->one_time_schedule($value)Type:
Message(Google::Cloud::Osconfig::V1::PatchDeployments::OneTimeSchedule)Required. Schedule a one-time execution.
$msg->recurring_schedule()/$msg->recurring_schedule($value)Type:
Message(Google::Cloud::Osconfig::V1::PatchDeployments::RecurringSchedule)Required. Schedule recurring executions.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time the patch deployment was created. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time the patch deployment was last updated. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
$msg->last_execute_time()/$msg->last_execute_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The last time a patch job was started by this deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
$msg->rollout()/$msg->rollout($value)Type:
Message(Google::Cloud::Osconfig::V1::PatchJobs::PatchRollout)Optional. Rollout strategy of the patch job.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Osconfig::V1::PatchDeployment::State)Output only. Current state of the patch deployment.
Enum: PatchDeployment::State
STATE_UNSPECIFIED=>0ACTIVE=>1PAUSED=>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
$msg->execute_time()/$msg->execute_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Required. The desired patch job execution time.
Google::Cloud::Osconfig::V1::PatchDeployments::RecurringSchedule
Sets the time for recurring patch deployments.
Inherits from Protobuf::Message.
Accessors
$msg->time_zone()/$msg->time_zone($value)Type:
Message(Google::Type::Datetime::TimeZone)Required. Defines the time zone that `time_of_day` is relative to. The rules for daylight saving time are determined by the chosen time zone.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. The end time at which a recurring patch deployment schedule is no longer active.
$msg->time_of_day()/$msg->time_of_day($value)Type:
Message(Google::Type::Timeofday::TimeOfDay)Required. Time of the day to run a recurring deployment.
$msg->frequency()/$msg->frequency($value)Type:
Enum(Google::Cloud::Osconfig::V1::RecurringSchedule::Frequency)Required. The frequency unit of this recurring schedule.
$msg->weekly()/$msg->weekly($value)Type:
Message(Google::Cloud::Osconfig::V1::PatchDeployments::WeeklySchedule)Required. Schedule with weekly executions.
$msg->monthly()/$msg->monthly($value)Type:
Message(Google::Cloud::Osconfig::V1::PatchDeployments::MonthlySchedule)Required. Schedule with monthly executions.
$msg->last_execute_time()/$msg->last_execute_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the last patch job ran successfully.
$msg->next_execute_time()/$msg->next_execute_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the next patch job is scheduled to run.
Enum: RecurringSchedule::Frequency
FREQUENCY_UNSPECIFIED=>0WEEKLY=>1MONTHLY=>2DAILY=>3
Google::Cloud::Osconfig::V1::PatchDeployments::WeeklySchedule
Represents a weekly schedule.
Inherits from Protobuf::Message.
Accessors
$msg->day_of_week()/$msg->day_of_week($value)Type:
Enum(Google::Type::DayOfWeek)Required. Day of the week.
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:
Int32Required. 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:
Int32Required. 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:
Int32Optional. 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:
StringRequired. The project to apply this patch deployment to in the form `projects/*`.
$msg->patch_deployment_id()/$msg->patch_deployment_id($value)Type:
StringRequired. 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:
StringRequired. 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:
StringRequired. The resource name of the parent in the form `projects/*`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of patch deployments to return. Default is 100.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. 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:
StringA 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:
StringRequired. 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
$msg->patch_deployment()/$msg->patch_deployment($value)Type:
Message(Google::Cloud::Osconfig::V1::PatchDeployments::PatchDeployment)Required. The patch deployment to Update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. Field mask that controls which fields of the patch deployment should be updated.
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:
StringRequired. 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:
StringRequired. 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.