blob: 6b1799bada0de119f8cebc7e287e45c3d437cfaa [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="osconfig_v1beta.html">Cloud OS Config API</a> . <a href="osconfig_v1beta.projects.html">projects</a> . <a href="osconfig_v1beta.projects.patchJobs.html">patchJobs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="osconfig_v1beta.projects.patchJobs.instanceDetails.html">instanceDetails()</a></code>
79</p>
80<p class="firstline">Returns the instanceDetails Resource.</p>
81
82<p class="toc_element">
83 <code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
84<p class="firstline">Cancel a patch job. The patch job must be active. Canceled patch jobs</p>
85<p class="toc_element">
86 <code><a href="#execute">execute(parent, body=None, x__xgafv=None)</a></code></p>
87<p class="firstline">Patch VM instances by creating and running a patch job.</p>
88<p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Get the patch job. This can be used to track the progress of an</p>
91<p class="toc_element">
92 <code><a href="#list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Get a list of patch jobs.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<h3>Method Details</h3>
98<div class="method">
99 <code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code>
100 <pre>Cancel a patch job. The patch job must be active. Canceled patch jobs
101cannot be restarted.
102
103Args:
104 name: string, Required. Name of the patch in the form `projects/*/patchJobs/*` (required)
105 body: object, The request body.
106 The object takes the form of:
107
108{ # Message for canceling a patch job.
109 }
110
111 x__xgafv: string, V1 error format.
112 Allowed values
113 1 - v1 error format
114 2 - v2 error format
115
116Returns:
117 An object of the form:
118
119 { # A high level representation of a patch job that is either in progress
120 # or has completed.
121 #
122 # Instances details are not included in the job. To paginate through instance
123 # details, use ListPatchJobInstanceDetails.
124 #
125 # For more information about patch jobs, see
126 # [Creating patch
127 # jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
128 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
129 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
130 # finished without running any updates on the VM instance.
131 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
132 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
133 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
134 # failure.
135 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
136 # patch(es) to a VM instance.
137 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
138 # patch rules.
139 # See also https://en.opensuse.org/SDB:Zypper_manual.
140 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
141 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
142 # This field must not be used with any other patch configuration fields.
143 &quot;A String&quot;,
144 ],
145 &quot;excludes&quot;: [ # List of patches to exclude from update.
146 &quot;A String&quot;,
147 ],
148 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
149 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
150 &quot;severities&quot;: [ # Install only patches with these severities.
151 # Common severities include critical, important, moderate, and low.
152 &quot;A String&quot;,
153 ],
154 &quot;categories&quot;: [ # Install only patches with these categories.
155 # Common categories include security, recommended, and feature.
156 &quot;A String&quot;,
157 ],
158 },
159 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
160 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
161 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
162 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
163 # execution can return to indicate a success.
164 42,
165 ],
166 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
167 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
168 # ensure that the ExecStep specified by this PatchJob does not change.
169 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
170 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
171 },
172 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
173 # specified the script will be executed directly, which will likely
174 # only succeed for scripts with [shebang lines]
175 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
176 },
177 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
178 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
179 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
180 # execution can return to indicate a success.
181 42,
182 ],
183 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
184 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
185 # ensure that the ExecStep specified by this PatchJob does not change.
186 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
187 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
188 },
189 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
190 # specified the script will be executed directly, which will likely
191 # only succeed for scripts with [shebang lines]
192 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
193 },
194 },
195 &quot;apt&quot;: { # Apt patching is completed by executing `apt-get update &amp;&amp; apt-get # Apt update settings. Use this setting to override the default `apt` patch
196 # rules.
197 # upgrade`. Additional options can be set to control how this is executed.
198 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
199 &quot;A String&quot;,
200 ],
201 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
202 # that will be updated. If these packages are not installed, they will be
203 # ignored. This field cannot be specified with any other patch configuration
204 # fields.
205 &quot;A String&quot;,
206 ],
207 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
208 # using `apt-get dist-upgrade` instead.
209 },
210 &quot;yum&quot;: { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch
211 # rules.
212 # can be set to control how this is executed.
213 #
214 # Note that not all settings are supported on all platforms.
215 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
216 # using the yum `--exclude` flag.
217 &quot;A String&quot;,
218 ],
219 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
220 # that will be updated. If these packages are not installed, they will be
221 # ignored. This field must not be specified with any other patch
222 # configuration fields.
223 &quot;A String&quot;,
224 ],
225 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
226 # all platforms.
227 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
228 },
229 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
230 # rules.
231 },
232 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
233 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
234 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
235 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
236 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
237 # execution can return to indicate a success.
238 42,
239 ],
240 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
241 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
242 # ensure that the ExecStep specified by this PatchJob does not change.
243 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
244 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
245 },
246 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
247 # specified the script will be executed directly, which will likely
248 # only succeed for scripts with [shebang lines]
249 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
250 },
251 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
252 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
253 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
254 # execution can return to indicate a success.
255 42,
256 ],
257 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
258 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
259 # ensure that the ExecStep specified by this PatchJob does not change.
260 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
261 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
262 },
263 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
264 # specified the script will be executed directly, which will likely
265 # only succeed for scripts with [shebang lines]
266 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
267 },
268 },
269 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
270 &quot;excludes&quot;: [ # List of KBs to exclude from update.
271 &quot;A String&quot;,
272 ],
273 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
274 # that will be updated. This field must not be used with other
275 # patch configurations.
276 &quot;A String&quot;,
277 ],
278 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
279 # updates are applied.
280 &quot;A String&quot;,
281 ],
282 },
283 },
284 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
285 # patch job times out.
286 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
287 # VMs must meet all criteria specified. So if both labels and zones are
288 # specified, the patch job targets only VMs with those labels and in those
289 # zones.
290 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
291 # instances in any zone.
292 &quot;A String&quot;,
293 ],
294 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
295 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
296 { # Represents a group of VMs that can be identified as having all these
297 # labels, for example &quot;env=prod and app=web&quot;.
298 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
299 # instance to be targeted by this filter.
300 &quot;a_key&quot;: &quot;A String&quot;,
301 },
302 },
303 ],
304 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
305 # permitted.
306 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
307 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
308 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
309 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
310 &quot;A String&quot;,
311 ],
312 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
313 # labels, this is another way to group VMs when targeting configs, for
314 # example prefix=&quot;prod-&quot;.
315 &quot;A String&quot;,
316 ],
317 },
318 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
319 # job affects. Contains counts of instances in different states. These states
320 # map to `InstancePatchState`. List patch job instance details to see the
321 # specific states of each instance.
322 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
323 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
324 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
325 # ensure that the agent is installed, running, and able to communicate with
326 # the service.
327 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
328 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
329 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
330 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
331 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
332 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
333 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
334 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
335 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
336 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
337 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
338 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
339 },
340 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
341 # to 1024 characters.
342 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
343 # 0.0 being no progress to 100.0 being complete.
344 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob .
345 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
346 # `projects/*/patchJobs/*`
347 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
348 }</pre>
349</div>
350
351<div class="method">
352 <code class="details" id="execute">execute(parent, body=None, x__xgafv=None)</code>
353 <pre>Patch VM instances by creating and running a patch job.
354
355Args:
356 parent: string, Required. The project in which to run this patch in the form `projects/*` (required)
357 body: object, The request body.
358 The object takes the form of:
359
360{ # A request message to initiate patching across Google Compute Engine
361 # instances.
362 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Required. Instances to patch, either explicitly or filtered by some criteria such
363 # as zone or labels.
364 # VMs must meet all criteria specified. So if both labels and zones are
365 # specified, the patch job targets only VMs with those labels and in those
366 # zones.
367 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
368 # instances in any zone.
369 &quot;A String&quot;,
370 ],
371 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
372 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
373 { # Represents a group of VMs that can be identified as having all these
374 # labels, for example &quot;env=prod and app=web&quot;.
375 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
376 # instance to be targeted by this filter.
377 &quot;a_key&quot;: &quot;A String&quot;,
378 },
379 },
380 ],
381 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
382 # permitted.
383 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
384 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
385 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
386 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
387 &quot;A String&quot;,
388 ],
389 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
390 # labels, this is another way to group VMs when targeting configs, for
391 # example prefix=&quot;prod-&quot;.
392 &quot;A String&quot;,
393 ],
394 },
395 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the patch job
396 # times out.
397 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This does not have to be unique.
398 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
399 # to 1024 characters.
400 &quot;dryRun&quot;: True or False, # If this patch is a dry-run only, instances are contacted but
401 # will do nothing.
402 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied. If omitted, instances are
403 # patched using the default configurations.
404 # patch(es) to a VM instance.
405 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
406 # patch rules.
407 # See also https://en.opensuse.org/SDB:Zypper_manual.
408 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
409 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
410 # This field must not be used with any other patch configuration fields.
411 &quot;A String&quot;,
412 ],
413 &quot;excludes&quot;: [ # List of patches to exclude from update.
414 &quot;A String&quot;,
415 ],
416 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
417 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
418 &quot;severities&quot;: [ # Install only patches with these severities.
419 # Common severities include critical, important, moderate, and low.
420 &quot;A String&quot;,
421 ],
422 &quot;categories&quot;: [ # Install only patches with these categories.
423 # Common categories include security, recommended, and feature.
424 &quot;A String&quot;,
425 ],
426 },
427 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
428 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
429 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
430 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
431 # execution can return to indicate a success.
432 42,
433 ],
434 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
435 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
436 # ensure that the ExecStep specified by this PatchJob does not change.
437 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
438 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
439 },
440 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
441 # specified the script will be executed directly, which will likely
442 # only succeed for scripts with [shebang lines]
443 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
444 },
445 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
446 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
447 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
448 # execution can return to indicate a success.
449 42,
450 ],
451 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
452 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
453 # ensure that the ExecStep specified by this PatchJob does not change.
454 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
455 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
456 },
457 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
458 # specified the script will be executed directly, which will likely
459 # only succeed for scripts with [shebang lines]
460 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
461 },
462 },
463 &quot;apt&quot;: { # Apt patching is completed by executing `apt-get update &amp;&amp; apt-get # Apt update settings. Use this setting to override the default `apt` patch
464 # rules.
465 # upgrade`. Additional options can be set to control how this is executed.
466 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
467 &quot;A String&quot;,
468 ],
469 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
470 # that will be updated. If these packages are not installed, they will be
471 # ignored. This field cannot be specified with any other patch configuration
472 # fields.
473 &quot;A String&quot;,
474 ],
475 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
476 # using `apt-get dist-upgrade` instead.
477 },
478 &quot;yum&quot;: { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch
479 # rules.
480 # can be set to control how this is executed.
481 #
482 # Note that not all settings are supported on all platforms.
483 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
484 # using the yum `--exclude` flag.
485 &quot;A String&quot;,
486 ],
487 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
488 # that will be updated. If these packages are not installed, they will be
489 # ignored. This field must not be specified with any other patch
490 # configuration fields.
491 &quot;A String&quot;,
492 ],
493 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
494 # all platforms.
495 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
496 },
497 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
498 # rules.
499 },
500 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
501 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
502 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
503 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
504 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
505 # execution can return to indicate a success.
506 42,
507 ],
508 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
509 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
510 # ensure that the ExecStep specified by this PatchJob does not change.
511 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
512 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
513 },
514 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
515 # specified the script will be executed directly, which will likely
516 # only succeed for scripts with [shebang lines]
517 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
518 },
519 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
520 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
521 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
522 # execution can return to indicate a success.
523 42,
524 ],
525 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
526 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
527 # ensure that the ExecStep specified by this PatchJob does not change.
528 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
529 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
530 },
531 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
532 # specified the script will be executed directly, which will likely
533 # only succeed for scripts with [shebang lines]
534 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
535 },
536 },
537 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
538 &quot;excludes&quot;: [ # List of KBs to exclude from update.
539 &quot;A String&quot;,
540 ],
541 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
542 # that will be updated. This field must not be used with other
543 # patch configurations.
544 &quot;A String&quot;,
545 ],
546 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
547 # updates are applied.
548 &quot;A String&quot;,
549 ],
550 },
551 },
552 }
553
554 x__xgafv: string, V1 error format.
555 Allowed values
556 1 - v1 error format
557 2 - v2 error format
558
559Returns:
560 An object of the form:
561
562 { # A high level representation of a patch job that is either in progress
563 # or has completed.
564 #
565 # Instances details are not included in the job. To paginate through instance
566 # details, use ListPatchJobInstanceDetails.
567 #
568 # For more information about patch jobs, see
569 # [Creating patch
570 # jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
571 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
572 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
573 # finished without running any updates on the VM instance.
574 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
575 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
576 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
577 # failure.
578 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
579 # patch(es) to a VM instance.
580 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
581 # patch rules.
582 # See also https://en.opensuse.org/SDB:Zypper_manual.
583 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
584 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
585 # This field must not be used with any other patch configuration fields.
586 &quot;A String&quot;,
587 ],
588 &quot;excludes&quot;: [ # List of patches to exclude from update.
589 &quot;A String&quot;,
590 ],
591 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
592 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
593 &quot;severities&quot;: [ # Install only patches with these severities.
594 # Common severities include critical, important, moderate, and low.
595 &quot;A String&quot;,
596 ],
597 &quot;categories&quot;: [ # Install only patches with these categories.
598 # Common categories include security, recommended, and feature.
599 &quot;A String&quot;,
600 ],
601 },
602 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
603 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
604 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
605 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
606 # execution can return to indicate a success.
607 42,
608 ],
609 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
610 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
611 # ensure that the ExecStep specified by this PatchJob does not change.
612 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
613 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
614 },
615 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
616 # specified the script will be executed directly, which will likely
617 # only succeed for scripts with [shebang lines]
618 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
619 },
620 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
621 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
622 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
623 # execution can return to indicate a success.
624 42,
625 ],
626 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
627 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
628 # ensure that the ExecStep specified by this PatchJob does not change.
629 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
630 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
631 },
632 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
633 # specified the script will be executed directly, which will likely
634 # only succeed for scripts with [shebang lines]
635 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
636 },
637 },
638 &quot;apt&quot;: { # Apt patching is completed by executing `apt-get update &amp;&amp; apt-get # Apt update settings. Use this setting to override the default `apt` patch
639 # rules.
640 # upgrade`. Additional options can be set to control how this is executed.
641 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
642 &quot;A String&quot;,
643 ],
644 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
645 # that will be updated. If these packages are not installed, they will be
646 # ignored. This field cannot be specified with any other patch configuration
647 # fields.
648 &quot;A String&quot;,
649 ],
650 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
651 # using `apt-get dist-upgrade` instead.
652 },
653 &quot;yum&quot;: { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch
654 # rules.
655 # can be set to control how this is executed.
656 #
657 # Note that not all settings are supported on all platforms.
658 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
659 # using the yum `--exclude` flag.
660 &quot;A String&quot;,
661 ],
662 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
663 # that will be updated. If these packages are not installed, they will be
664 # ignored. This field must not be specified with any other patch
665 # configuration fields.
666 &quot;A String&quot;,
667 ],
668 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
669 # all platforms.
670 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
671 },
672 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
673 # rules.
674 },
675 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
676 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
677 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
678 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
679 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
680 # execution can return to indicate a success.
681 42,
682 ],
683 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
684 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
685 # ensure that the ExecStep specified by this PatchJob does not change.
686 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
687 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
688 },
689 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
690 # specified the script will be executed directly, which will likely
691 # only succeed for scripts with [shebang lines]
692 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
693 },
694 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
695 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
696 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
697 # execution can return to indicate a success.
698 42,
699 ],
700 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
701 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
702 # ensure that the ExecStep specified by this PatchJob does not change.
703 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
704 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
705 },
706 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
707 # specified the script will be executed directly, which will likely
708 # only succeed for scripts with [shebang lines]
709 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
710 },
711 },
712 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
713 &quot;excludes&quot;: [ # List of KBs to exclude from update.
714 &quot;A String&quot;,
715 ],
716 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
717 # that will be updated. This field must not be used with other
718 # patch configurations.
719 &quot;A String&quot;,
720 ],
721 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
722 # updates are applied.
723 &quot;A String&quot;,
724 ],
725 },
726 },
727 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
728 # patch job times out.
729 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
730 # VMs must meet all criteria specified. So if both labels and zones are
731 # specified, the patch job targets only VMs with those labels and in those
732 # zones.
733 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
734 # instances in any zone.
735 &quot;A String&quot;,
736 ],
737 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
738 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
739 { # Represents a group of VMs that can be identified as having all these
740 # labels, for example &quot;env=prod and app=web&quot;.
741 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
742 # instance to be targeted by this filter.
743 &quot;a_key&quot;: &quot;A String&quot;,
744 },
745 },
746 ],
747 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
748 # permitted.
749 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
750 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
751 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
752 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
753 &quot;A String&quot;,
754 ],
755 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
756 # labels, this is another way to group VMs when targeting configs, for
757 # example prefix=&quot;prod-&quot;.
758 &quot;A String&quot;,
759 ],
760 },
761 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
762 # job affects. Contains counts of instances in different states. These states
763 # map to `InstancePatchState`. List patch job instance details to see the
764 # specific states of each instance.
765 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
766 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
767 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
768 # ensure that the agent is installed, running, and able to communicate with
769 # the service.
770 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
771 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
772 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
773 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
774 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
775 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
776 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
777 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
778 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
779 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
780 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
781 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
782 },
783 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
784 # to 1024 characters.
785 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
786 # 0.0 being no progress to 100.0 being complete.
787 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob .
788 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
789 # `projects/*/patchJobs/*`
790 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
791 }</pre>
792</div>
793
794<div class="method">
795 <code class="details" id="get">get(name, x__xgafv=None)</code>
796 <pre>Get the patch job. This can be used to track the progress of an
797ongoing patch job or review the details of completed jobs.
798
799Args:
800 name: string, Required. Name of the patch in the form `projects/*/patchJobs/*` (required)
801 x__xgafv: string, V1 error format.
802 Allowed values
803 1 - v1 error format
804 2 - v2 error format
805
806Returns:
807 An object of the form:
808
809 { # A high level representation of a patch job that is either in progress
810 # or has completed.
811 #
812 # Instances details are not included in the job. To paginate through instance
813 # details, use ListPatchJobInstanceDetails.
814 #
815 # For more information about patch jobs, see
816 # [Creating patch
817 # jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
818 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
819 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
820 # finished without running any updates on the VM instance.
821 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
822 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
823 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
824 # failure.
825 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
826 # patch(es) to a VM instance.
827 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
828 # patch rules.
829 # See also https://en.opensuse.org/SDB:Zypper_manual.
830 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
831 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
832 # This field must not be used with any other patch configuration fields.
833 &quot;A String&quot;,
834 ],
835 &quot;excludes&quot;: [ # List of patches to exclude from update.
836 &quot;A String&quot;,
837 ],
838 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
839 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
840 &quot;severities&quot;: [ # Install only patches with these severities.
841 # Common severities include critical, important, moderate, and low.
842 &quot;A String&quot;,
843 ],
844 &quot;categories&quot;: [ # Install only patches with these categories.
845 # Common categories include security, recommended, and feature.
846 &quot;A String&quot;,
847 ],
848 },
849 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
850 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
851 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
852 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
853 # execution can return to indicate a success.
854 42,
855 ],
856 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
857 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
858 # ensure that the ExecStep specified by this PatchJob does not change.
859 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
860 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
861 },
862 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
863 # specified the script will be executed directly, which will likely
864 # only succeed for scripts with [shebang lines]
865 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
866 },
867 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
868 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
869 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
870 # execution can return to indicate a success.
871 42,
872 ],
873 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
874 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
875 # ensure that the ExecStep specified by this PatchJob does not change.
876 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
877 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
878 },
879 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
880 # specified the script will be executed directly, which will likely
881 # only succeed for scripts with [shebang lines]
882 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
883 },
884 },
885 &quot;apt&quot;: { # Apt patching is completed by executing `apt-get update &amp;&amp; apt-get # Apt update settings. Use this setting to override the default `apt` patch
886 # rules.
887 # upgrade`. Additional options can be set to control how this is executed.
888 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
889 &quot;A String&quot;,
890 ],
891 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
892 # that will be updated. If these packages are not installed, they will be
893 # ignored. This field cannot be specified with any other patch configuration
894 # fields.
895 &quot;A String&quot;,
896 ],
897 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
898 # using `apt-get dist-upgrade` instead.
899 },
900 &quot;yum&quot;: { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch
901 # rules.
902 # can be set to control how this is executed.
903 #
904 # Note that not all settings are supported on all platforms.
905 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
906 # using the yum `--exclude` flag.
907 &quot;A String&quot;,
908 ],
909 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
910 # that will be updated. If these packages are not installed, they will be
911 # ignored. This field must not be specified with any other patch
912 # configuration fields.
913 &quot;A String&quot;,
914 ],
915 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
916 # all platforms.
917 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
918 },
919 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
920 # rules.
921 },
922 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
923 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
924 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
925 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
926 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
927 # execution can return to indicate a success.
928 42,
929 ],
930 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
931 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
932 # ensure that the ExecStep specified by this PatchJob does not change.
933 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
934 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
935 },
936 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
937 # specified the script will be executed directly, which will likely
938 # only succeed for scripts with [shebang lines]
939 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
940 },
941 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
942 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
943 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
944 # execution can return to indicate a success.
945 42,
946 ],
947 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
948 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
949 # ensure that the ExecStep specified by this PatchJob does not change.
950 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
951 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
952 },
953 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
954 # specified the script will be executed directly, which will likely
955 # only succeed for scripts with [shebang lines]
956 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
957 },
958 },
959 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
960 &quot;excludes&quot;: [ # List of KBs to exclude from update.
961 &quot;A String&quot;,
962 ],
963 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
964 # that will be updated. This field must not be used with other
965 # patch configurations.
966 &quot;A String&quot;,
967 ],
968 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
969 # updates are applied.
970 &quot;A String&quot;,
971 ],
972 },
973 },
974 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
975 # patch job times out.
976 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
977 # VMs must meet all criteria specified. So if both labels and zones are
978 # specified, the patch job targets only VMs with those labels and in those
979 # zones.
980 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
981 # instances in any zone.
982 &quot;A String&quot;,
983 ],
984 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
985 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
986 { # Represents a group of VMs that can be identified as having all these
987 # labels, for example &quot;env=prod and app=web&quot;.
988 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
989 # instance to be targeted by this filter.
990 &quot;a_key&quot;: &quot;A String&quot;,
991 },
992 },
993 ],
994 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
995 # permitted.
996 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
997 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
998 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
999 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
1000 &quot;A String&quot;,
1001 ],
1002 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
1003 # labels, this is another way to group VMs when targeting configs, for
1004 # example prefix=&quot;prod-&quot;.
1005 &quot;A String&quot;,
1006 ],
1007 },
1008 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
1009 # job affects. Contains counts of instances in different states. These states
1010 # map to `InstancePatchState`. List patch job instance details to see the
1011 # specific states of each instance.
1012 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
1013 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
1014 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
1015 # ensure that the agent is installed, running, and able to communicate with
1016 # the service.
1017 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
1018 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
1019 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
1020 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
1021 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
1022 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
1023 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
1024 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
1025 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
1026 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
1027 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
1028 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
1029 },
1030 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
1031 # to 1024 characters.
1032 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
1033 # 0.0 being no progress to 100.0 being complete.
1034 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob .
1035 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
1036 # `projects/*/patchJobs/*`
1037 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
1038 }</pre>
1039</div>
1040
1041<div class="method">
1042 <code class="details" id="list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
1043 <pre>Get a list of patch jobs.
1044
1045Args:
1046 parent: string, Required. In the form of `projects/*` (required)
1047 filter: string, If provided, this field specifies the criteria that must be met by patch
1048jobs to be included in the response.
1049Currently, filtering is only available on the patch_deployment field.
1050 pageToken: string, A pagination token returned from a previous call
1051that indicates where this listing should continue from.
1052 pageSize: integer, The maximum number of instance status to return.
1053 x__xgafv: string, V1 error format.
1054 Allowed values
1055 1 - v1 error format
1056 2 - v2 error format
1057
1058Returns:
1059 An object of the form:
1060
1061 { # A response message for listing patch jobs.
1062 &quot;patchJobs&quot;: [ # The list of patch jobs.
1063 { # A high level representation of a patch job that is either in progress
1064 # or has completed.
1065 #
1066 # Instances details are not included in the job. To paginate through instance
1067 # details, use ListPatchJobInstanceDetails.
1068 #
1069 # For more information about patch jobs, see
1070 # [Creating patch
1071 # jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
1072 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
1073 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
1074 # finished without running any updates on the VM instance.
1075 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
1076 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
1077 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
1078 # failure.
1079 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
1080 # patch(es) to a VM instance.
1081 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
1082 # patch rules.
1083 # See also https://en.opensuse.org/SDB:Zypper_manual.
1084 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
1085 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
1086 # This field must not be used with any other patch configuration fields.
1087 &quot;A String&quot;,
1088 ],
1089 &quot;excludes&quot;: [ # List of patches to exclude from update.
1090 &quot;A String&quot;,
1091 ],
1092 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
1093 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
1094 &quot;severities&quot;: [ # Install only patches with these severities.
1095 # Common severities include critical, important, moderate, and low.
1096 &quot;A String&quot;,
1097 ],
1098 &quot;categories&quot;: [ # Install only patches with these categories.
1099 # Common categories include security, recommended, and feature.
1100 &quot;A String&quot;,
1101 ],
1102 },
1103 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
1104 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
1105 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1106 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1107 # execution can return to indicate a success.
1108 42,
1109 ],
1110 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1111 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1112 # ensure that the ExecStep specified by this PatchJob does not change.
1113 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1114 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1115 },
1116 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1117 # specified the script will be executed directly, which will likely
1118 # only succeed for scripts with [shebang lines]
1119 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1120 },
1121 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
1122 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1123 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1124 # execution can return to indicate a success.
1125 42,
1126 ],
1127 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1128 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1129 # ensure that the ExecStep specified by this PatchJob does not change.
1130 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1131 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1132 },
1133 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1134 # specified the script will be executed directly, which will likely
1135 # only succeed for scripts with [shebang lines]
1136 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1137 },
1138 },
1139 &quot;apt&quot;: { # Apt patching is completed by executing `apt-get update &amp;&amp; apt-get # Apt update settings. Use this setting to override the default `apt` patch
1140 # rules.
1141 # upgrade`. Additional options can be set to control how this is executed.
1142 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
1143 &quot;A String&quot;,
1144 ],
1145 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1146 # that will be updated. If these packages are not installed, they will be
1147 # ignored. This field cannot be specified with any other patch configuration
1148 # fields.
1149 &quot;A String&quot;,
1150 ],
1151 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
1152 # using `apt-get dist-upgrade` instead.
1153 },
1154 &quot;yum&quot;: { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch
1155 # rules.
1156 # can be set to control how this is executed.
1157 #
1158 # Note that not all settings are supported on all platforms.
1159 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
1160 # using the yum `--exclude` flag.
1161 &quot;A String&quot;,
1162 ],
1163 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1164 # that will be updated. If these packages are not installed, they will be
1165 # ignored. This field must not be specified with any other patch
1166 # configuration fields.
1167 &quot;A String&quot;,
1168 ],
1169 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
1170 # all platforms.
1171 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
1172 },
1173 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
1174 # rules.
1175 },
1176 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
1177 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
1178 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
1179 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1180 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1181 # execution can return to indicate a success.
1182 42,
1183 ],
1184 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1185 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1186 # ensure that the ExecStep specified by this PatchJob does not change.
1187 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1188 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1189 },
1190 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1191 # specified the script will be executed directly, which will likely
1192 # only succeed for scripts with [shebang lines]
1193 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1194 },
1195 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
1196 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1197 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1198 # execution can return to indicate a success.
1199 42,
1200 ],
1201 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1202 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1203 # ensure that the ExecStep specified by this PatchJob does not change.
1204 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1205 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1206 },
1207 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1208 # specified the script will be executed directly, which will likely
1209 # only succeed for scripts with [shebang lines]
1210 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1211 },
1212 },
1213 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
1214 &quot;excludes&quot;: [ # List of KBs to exclude from update.
1215 &quot;A String&quot;,
1216 ],
1217 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
1218 # that will be updated. This field must not be used with other
1219 # patch configurations.
1220 &quot;A String&quot;,
1221 ],
1222 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
1223 # updates are applied.
1224 &quot;A String&quot;,
1225 ],
1226 },
1227 },
1228 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
1229 # patch job times out.
1230 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
1231 # VMs must meet all criteria specified. So if both labels and zones are
1232 # specified, the patch job targets only VMs with those labels and in those
1233 # zones.
1234 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
1235 # instances in any zone.
1236 &quot;A String&quot;,
1237 ],
1238 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
1239 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
1240 { # Represents a group of VMs that can be identified as having all these
1241 # labels, for example &quot;env=prod and app=web&quot;.
1242 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
1243 # instance to be targeted by this filter.
1244 &quot;a_key&quot;: &quot;A String&quot;,
1245 },
1246 },
1247 ],
1248 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
1249 # permitted.
1250 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
1251 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
1252 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
1253 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
1254 &quot;A String&quot;,
1255 ],
1256 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
1257 # labels, this is another way to group VMs when targeting configs, for
1258 # example prefix=&quot;prod-&quot;.
1259 &quot;A String&quot;,
1260 ],
1261 },
1262 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
1263 # job affects. Contains counts of instances in different states. These states
1264 # map to `InstancePatchState`. List patch job instance details to see the
1265 # specific states of each instance.
1266 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
1267 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
1268 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
1269 # ensure that the agent is installed, running, and able to communicate with
1270 # the service.
1271 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
1272 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
1273 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
1274 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
1275 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
1276 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
1277 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
1278 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
1279 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
1280 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
1281 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
1282 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
1283 },
1284 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
1285 # to 1024 characters.
1286 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
1287 # 0.0 being no progress to 100.0 being complete.
1288 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob .
1289 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
1290 # `projects/*/patchJobs/*`
1291 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
1292 },
1293 ],
1294 &quot;nextPageToken&quot;: &quot;A String&quot;, # A pagination token that can be used to get the next page of results.
1295 }</pre>
1296</div>
1297
1298<div class="method">
1299 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1300 <pre>Retrieves the next page of results.
1301
1302Args:
1303 previous_request: The request for the previous page. (required)
1304 previous_response: The response from the request for the previous page. (required)
1305
1306Returns:
1307 A request object that you can call &#x27;execute()&#x27; on to request the next
1308 page. Returns None if there are no more items in the collection.
1309 </pre>
1310</div>
1311
1312</body></html>