Class PatchDeployment (1.16.0rc0)

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

NameDescription
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 google.cloud.osconfig_v1.types.PatchInstanceFilter
Required. VM instances to patch.
patch_config 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 google.cloud.osconfig_v1.types.OneTimeSchedule
Required. Schedule a one-time execution. This field is a member of oneof_ schedule.
recurring_schedule 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 google.cloud.osconfig_v1.types.PatchRollout
Optional. Rollout strategy of the patch job.
state google.cloud.osconfig_v1.types.PatchDeployment.State
Output only. Current state of the patch deployment.

Classes

State

State(value)

Represents state of patch peployment.

Values: STATE_UNSPECIFIED (0): The default value. This value is used if the state is omitted. ACTIVE (1): Active value means that patch deployment generates Patch Jobs. PAUSED (2): Paused value means that patch deployment does not generate Patch jobs. Requires user action to move in and out from this state.