Class PatchJob (0.1.2)

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

A high level representation of a patch job that is either in progress or has completed.

Instances details are not included in the job. To paginate through instance details, use ListPatchJobInstanceDetails.

For more information about patch jobs, see Creating patch jobs <https://cloud.google.com/compute/docs/os-patch-management/create-patch-job>__.

Attributes

NameDescription
name str
Unique identifier for this patch job in the form projects/*/patchJobs/*
display_name str
Display name for this patch job. This is not a unique identifier.
description str
Description of the patch job. Length of the description is limited to 1024 characters.
create_time .timestamp.Timestamp
Time this patch job was created.
update_time .timestamp.Timestamp
Last time this patch job was updated.
state .gco_patch_jobs.PatchJob.State
The current state of the PatchJob .
instance_filter .gco_patch_jobs.PatchInstanceFilter
Instances to patch.
patch_config .gco_patch_jobs.PatchConfig
Patch configuration being applied.
duration .gp_duration.Duration
Duration of the patch job. After the duration ends, the patch job times out.
instance_details_summary .gco_patch_jobs.PatchJob.InstanceDetailsSummary
Summary of instance details.
dry_run bool
If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance.
error_message str
If this patch job failed, this message provides information about the failure.
percent_complete float
Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete.
patch_deployment str
Output only. Name of the patch deployment that created this patch job.

Classes

InstanceDetailsSummary

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

A summary of the current patch state across all instances that this patch job affects. Contains counts of instances in different states. These states map to InstancePatchState. List patch job instance details to see the specific states of each instance.

State

State(value)

Enumeration of the various states a patch job passes through as it executes.

Methods

__delattr__

__delattr__(key)

Delete the value on the given field.

This is generally equivalent to setting a falsy value.

__eq__

__eq__(other)

Return True if the messages are equal, False otherwise.

__ne__

__ne__(other)

Return True if the messages are unequal, False otherwise.

__setattr__

__setattr__(key, value)

Set the value on the given field.

For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted.