public sealed class PatchDeployment : IMessage<PatchDeployment>, IEquatable<PatchDeployment>, IDeepCloneable<PatchDeployment>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Config v1 API class 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.
Unique 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-12 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003ePatchDeployment\u003c/code\u003e class within the Google Cloud OS Config v1 API, detailing its purpose in managing configurations for patch jobs, including instance filters, repository settings, and scheduling.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePatchDeployment\u003c/code\u003e class, which is part of the \u003ccode\u003eGoogle.Cloud.OsConfig.V1\u003c/code\u003e namespace, allows you to configure and manage the settings of individual patch jobs within your environment.\u003c/p\u003e\n"],["\u003cp\u003ePatch deployments, through the properties within this class, can be configured with various settings such as a description, duration, the filtering of target instances, and recurring or one-time execution schedules.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the base object class, such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides a list of versions of the PatchDeployment starting from 1.3.0 to 2.4.0 with 2.4.0 being the latest version.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class PatchDeployment (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.PatchDeployment)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.PatchDeployment) \n\n public sealed class PatchDeployment : IMessage\u003cPatchDeployment\u003e, IEquatable\u003cPatchDeployment\u003e, IDeepCloneable\u003cPatchDeployment\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class PatchDeployment.\n\nPatch deployments are configurations that individual patch jobs use to\ncomplete a patch. These configurations include instance filter, package\nrepository settings, and a schedule. For more information about creating and\nmanaging patch deployments, see [Scheduling patch\njobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PatchDeployment \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PatchDeployment](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PatchDeployment](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PatchDeployment](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.OsConfig.V1](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.OsConfig.V1.dll\n\nConstructors\n------------\n\n### PatchDeployment()\n\n public PatchDeployment()\n\n### PatchDeployment(PatchDeployment)\n\n public PatchDeployment(PatchDeployment other)\n\nProperties\n----------\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Time the patch deployment was created. Timestamp is in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.\n\n### Description\n\n public string Description { get; set; }\n\nOptional. Description of the patch deployment. Length of the description is\nlimited to 1024 characters.\n\n### Duration\n\n public Duration Duration { get; set; }\n\nOptional. Duration of the patch. After the duration ends, the patch times\nout.\n\n### InstanceFilter\n\n public PatchInstanceFilter InstanceFilter { get; set; }\n\nRequired. VM instances to patch.\n\n### LastExecuteTime\n\n public Timestamp LastExecuteTime { get; set; }\n\nOutput only. The last time a patch job was started by this deployment.\nTimestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text\nformat.\n\n### Name\n\n public string Name { get; set; }\n\nUnique name for the patch deployment resource in a project. The patch\ndeployment name is in the form:\n`projects/{project_id}/patchDeployments/{patch_deployment_id}`.\nThis field is ignored when you create a new patch deployment.\n\n### OneTimeSchedule\n\n public OneTimeSchedule OneTimeSchedule { get; set; }\n\nRequired. Schedule a one-time execution.\n\n### PatchConfig\n\n public PatchConfig PatchConfig { get; set; }\n\nOptional. Patch configuration that is applied.\n\n### PatchDeploymentName\n\n public PatchDeploymentName PatchDeploymentName { get; set; }\n\n[PatchDeploymentName](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeploymentName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment#Google_Cloud_OsConfig_V1_PatchDeployment_Name) resource name property.\n\n### RecurringSchedule\n\n public RecurringSchedule RecurringSchedule { get; set; }\n\nRequired. Schedule recurring executions.\n\n### Rollout\n\n public PatchRollout Rollout { get; set; }\n\nOptional. Rollout strategy of the patch job.\n\n### ScheduleCase\n\n public PatchDeployment.ScheduleOneofCase ScheduleCase { get; }\n\n### State\n\n public PatchDeployment.Types.State State { get; set; }\n\nOutput only. Current state of the patch deployment.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. Time the patch deployment was last updated. Timestamp is in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format."]]