# Google Cloud OS Config v1 API - Class PatchDeployment (2.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.5.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [1.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.PatchDeployment)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.PatchDeployment)

    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](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PatchDeployment

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PatchDeployment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PatchDeployment](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.OsConfig.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1)

## Assembly

Google.Cloud.OsConfig.V1.dll

## Constructors

### PatchDeployment()

    public PatchDeployment()

### PatchDeployment(PatchDeployment)

    public PatchDeployment(PatchDeployment other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Time the patch deployment was created. Timestamp is in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Description

    public string Description { get; set; }

Optional. Description of the patch deployment. Length of the description is
limited to 1024 characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Duration

    public Duration Duration { get; set; }

Optional. Duration of the patch. After the duration ends, the patch times
out.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |

### InstanceFilter

    public PatchInstanceFilter InstanceFilter { get; set; }

Required. VM instances to patch.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchInstanceFilter` |   |

### LastExecuteTime

    public Timestamp LastExecuteTime { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Name

    public string Name { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### OneTimeSchedule

    public OneTimeSchedule OneTimeSchedule { get; set; }

Required. Schedule a one-time execution.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OneTimeSchedule` |   |

### PatchConfig

    public PatchConfig PatchConfig { get; set; }

Optional. Patch configuration that is applied.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchConfig` |   |

### PatchDeploymentName

    public PatchDeploymentName PatchDeploymentName { get; set; }

[PatchDeploymentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeploymentName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment#Google_Cloud_OsConfig_V1_PatchDeployment_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeploymentName` |   |

### RecurringSchedule

    public RecurringSchedule RecurringSchedule { get; set; }

Required. Schedule recurring executions.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.RecurringSchedule` |   |

### Rollout

    public PatchRollout Rollout { get; set; }

Optional. Rollout strategy of the patch job.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchRollout` |   |

### ScheduleCase

    public PatchDeployment.ScheduleOneofCase ScheduleCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeploymenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment.ScheduleOneofCase` |   |

### State

    public PatchDeployment.Types.State State { get; set; }

Output only. Current state of the patch deployment.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeploymenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.PatchDeployment.Types.State` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Time the patch deployment was last updated. Timestamp is in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |