# Class PatchDeployment (1.25.0)

1.25.0 (latest) 1.24.0 1.23.0 1.22.0 1.21.0 1.20.2 1.19.0 1.18.1 1.17.5 1.16.0 1.15.3 1.14.1 1.13.0 1.12.4 1.11.2 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.2 1.4.0 1.3.2 1.2.0 1.1.0 1.0.0 0.1.2

    PatchDeployment(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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>`__.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` 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. |
| `description` | `str` Optional. Description of the patch deployment. Length of the description is limited to 1024 characters. |
| `instance_filter` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1.types.PatchInstanceFilter` Required. VM instances to patch. |
| `patch_config` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1.types.PatchConfig` Optional. Patch configuration that is applied. |
| `duration` | `google.protobuf.duration_pb2.Duration` Optional. Duration of the patch. After the duration ends, the patch times out. |
| `one_time_schedule` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1.types.OneTimeSchedule` Required. Schedule a one-time execution. This field is a member of `oneof`_ `schedule`. |
| `recurring_schedule` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1.types.RecurringSchedule` Required. Schedule recurring executions. This field is a member of `oneof`_ `schedule`. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Time the patch deployment was created. Timestamp is in `RFC3339 `__ text format. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Time the patch deployment was last updated. Timestamp is in `RFC3339 `__ text format. |
| `last_execute_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The last time a patch job was started by this deployment. Timestamp is in `RFC3339 `__ text format. |
| `rollout` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1.types.PatchRollout` Optional. Rollout strategy of the patch job. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1.types.PatchDeployment.State` Output only. Current state of the patch deployment. |

## Classes

### State

    State(value)

Represents state of patch peployment.