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