blob: 3b5c1cd92d5005d8bf43116433ea451883899abb [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).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700128 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
133 # finished without running any updates on the VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700134 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700141 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
142 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
143 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
144 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
145 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
146 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
147 # ensure that the ExecStep specified by this PatchJob does not change.
148 },
149 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
150 # specified the script will be executed directly, which will likely
151 # only succeed for scripts with [shebang lines]
152 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
153 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
154 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
155 # execution can return to indicate a success.
156 42,
157 ],
158 },
159 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
160 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
161 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
162 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
163 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
164 # ensure that the ExecStep specified by this PatchJob does not change.
165 },
166 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
167 # specified the script will be executed directly, which will likely
168 # only succeed for scripts with [shebang lines]
169 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
170 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
171 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
172 # execution can return to indicate a success.
173 42,
174 ],
175 },
176 },
177 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
178 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
179 # updates are applied.
180 &quot;A String&quot;,
181 ],
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 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
192 # patch rules.
193 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -0700194 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
195 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
196 &quot;severities&quot;: [ # Install only patches with these severities.
197 # Common severities include critical, important, moderate, and low.
198 &quot;A String&quot;,
199 ],
200 &quot;categories&quot;: [ # Install only patches with these categories.
201 # Common categories include security, recommended, and feature.
202 &quot;A String&quot;,
203 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700204 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
205 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
206 # This field must not be used with any other patch configuration fields.
207 &quot;A String&quot;,
208 ],
209 &quot;excludes&quot;: [ # List of patches to exclude from update.
210 &quot;A String&quot;,
211 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 },
213 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
214 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
217 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700218 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
219 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700220 },
221 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
222 # specified the script will be executed directly, which will likely
223 # only succeed for scripts with [shebang lines]
224 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700225 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
226 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
227 # execution can return to indicate a success.
228 42,
229 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 },
231 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
234 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700235 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
236 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 },
238 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
239 # specified the script will be executed directly, which will likely
240 # only succeed for scripts with [shebang lines]
241 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700242 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
243 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
244 # execution can return to indicate a success.
245 42,
246 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 },
248 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 &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
250 # rules.
251 # can be set to control how this is executed.
252 #
253 # Note that not all settings are supported on all platforms.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
255 # that will be updated. If these packages are not installed, they will be
256 # ignored. This field must not be specified with any other patch
257 # configuration fields.
258 &quot;A String&quot;,
259 ],
260 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
261 # all platforms.
262 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700263 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
264 # using the yum `--exclude` flag.
265 &quot;A String&quot;,
266 ],
267 },
268 &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
269 # rules.
270 # upgrade`. Additional options can be set to control how this is executed.
271 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
272 # using `apt-get dist-upgrade` instead.
273 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
274 &quot;A String&quot;,
275 ],
276 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
277 # that will be updated. If these packages are not installed, they will be
278 # ignored. This field cannot be specified with any other patch configuration
279 # fields.
280 &quot;A String&quot;,
281 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 },
283 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
284 # rules.
285 },
286 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700288 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
289 # VMs must meet all criteria specified. So if both labels and zones are
290 # specified, the patch job targets only VMs with those labels and in those
291 # zones.
292 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
293 # instances in any zone.
294 &quot;A String&quot;,
295 ],
296 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
297 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
298 { # Represents a group of VMs that can be identified as having all these
299 # labels, for example &quot;env=prod and app=web&quot;.
300 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
301 # instance to be targeted by this filter.
302 &quot;a_key&quot;: &quot;A String&quot;,
303 },
304 },
305 ],
306 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
307 # permitted.
308 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
309 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
310 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
311 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
312 &quot;A String&quot;,
313 ],
314 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
315 # labels, this is another way to group VMs when targeting configs, for
316 # example prefix=&quot;prod-&quot;.
317 &quot;A String&quot;,
318 ],
319 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700320 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
321 # patch job times out.
Bu Sun Kim65020912020-05-20 12:08:20 -0700322 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
323 # job affects. Contains counts of instances in different states. These states
324 # map to `InstancePatchState`. List patch job instance details to see the
325 # specific states of each instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700326 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700327 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
328 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
329 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
330 # ensure that the agent is installed, running, and able to communicate with
331 # the service.
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 },
344 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
345 # to 1024 characters.
346 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
347 # 0.0 being no progress to 100.0 being complete.
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 }</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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700362 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied. If omitted, instances are
363 # patched using the default configurations.
364 # patch(es) to a VM instance.
365 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
366 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
367 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
368 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
369 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
370 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
371 # ensure that the ExecStep specified by this PatchJob does not change.
372 },
373 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
374 # specified the script will be executed directly, which will likely
375 # only succeed for scripts with [shebang lines]
376 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
377 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
378 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
379 # execution can return to indicate a success.
380 42,
381 ],
382 },
383 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
384 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
385 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
386 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
387 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
388 # ensure that the ExecStep specified by this PatchJob does not change.
389 },
390 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
391 # specified the script will be executed directly, which will likely
392 # only succeed for scripts with [shebang lines]
393 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
394 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
395 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
396 # execution can return to indicate a success.
397 42,
398 ],
399 },
400 },
401 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
402 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
403 # updates are applied.
404 &quot;A String&quot;,
405 ],
406 &quot;excludes&quot;: [ # List of KBs to exclude from update.
407 &quot;A String&quot;,
408 ],
409 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
410 # that will be updated. This field must not be used with other
411 # patch configurations.
412 &quot;A String&quot;,
413 ],
414 },
415 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
416 # patch rules.
417 # See also https://en.opensuse.org/SDB:Zypper_manual.
418 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
419 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
420 &quot;severities&quot;: [ # Install only patches with these severities.
421 # Common severities include critical, important, moderate, and low.
422 &quot;A String&quot;,
423 ],
424 &quot;categories&quot;: [ # Install only patches with these categories.
425 # Common categories include security, recommended, and feature.
426 &quot;A String&quot;,
427 ],
428 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
429 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
430 # This field must not be used with any other patch configuration fields.
431 &quot;A String&quot;,
432 ],
433 &quot;excludes&quot;: [ # List of patches to exclude from update.
434 &quot;A String&quot;,
435 ],
436 },
437 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
438 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
439 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
440 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
441 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
442 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
443 # ensure that the ExecStep specified by this PatchJob does not change.
444 },
445 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
446 # specified the script will be executed directly, which will likely
447 # only succeed for scripts with [shebang lines]
448 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
449 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
450 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
451 # execution can return to indicate a success.
452 42,
453 ],
454 },
455 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
456 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
457 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
458 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
459 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
460 # ensure that the ExecStep specified by this PatchJob does not change.
461 },
462 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
463 # specified the script will be executed directly, which will likely
464 # only succeed for scripts with [shebang lines]
465 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
466 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
467 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
468 # execution can return to indicate a success.
469 42,
470 ],
471 },
472 },
473 &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
474 # rules.
475 # can be set to control how this is executed.
476 #
477 # Note that not all settings are supported on all platforms.
478 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
479 # that will be updated. If these packages are not installed, they will be
480 # ignored. This field must not be specified with any other patch
481 # configuration fields.
482 &quot;A String&quot;,
483 ],
484 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
485 # all platforms.
486 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
487 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
488 # using the yum `--exclude` flag.
489 &quot;A String&quot;,
490 ],
491 },
492 &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
493 # rules.
494 # upgrade`. Additional options can be set to control how this is executed.
495 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
496 # using `apt-get dist-upgrade` instead.
497 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
498 &quot;A String&quot;,
499 ],
500 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
501 # that will be updated. If these packages are not installed, they will be
502 # ignored. This field cannot be specified with any other patch configuration
503 # fields.
504 &quot;A String&quot;,
505 ],
506 },
507 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
508 # rules.
509 },
510 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
511 },
512 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the patch job
513 # times out.
Bu Sun Kim65020912020-05-20 12:08:20 -0700514 &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
515 # as zone or labels.
516 # VMs must meet all criteria specified. So if both labels and zones are
517 # specified, the patch job targets only VMs with those labels and in those
518 # zones.
519 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
520 # instances in any zone.
521 &quot;A String&quot;,
522 ],
523 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
524 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
525 { # Represents a group of VMs that can be identified as having all these
526 # labels, for example &quot;env=prod and app=web&quot;.
527 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
528 # instance to be targeted by this filter.
529 &quot;a_key&quot;: &quot;A String&quot;,
530 },
531 },
532 ],
533 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
534 # permitted.
535 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
536 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
537 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
538 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
539 &quot;A String&quot;,
540 ],
541 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
542 # labels, this is another way to group VMs when targeting configs, for
543 # example prefix=&quot;prod-&quot;.
544 &quot;A String&quot;,
545 ],
546 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This does not have to be unique.
548 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
549 # to 1024 characters.
550 &quot;dryRun&quot;: True or False, # If this patch is a dry-run only, instances are contacted but
551 # will do nothing.
Bu Sun Kim65020912020-05-20 12:08:20 -0700552 }
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).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700571 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob .
572 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
573 # `projects/*/patchJobs/*`
574 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
576 # finished without running any updates on the VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700577 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
579 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
580 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
581 # failure.
582 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
583 # patch(es) to a VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700584 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
585 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
586 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
587 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
588 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
589 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
590 # ensure that the ExecStep specified by this PatchJob does not change.
591 },
592 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
593 # specified the script will be executed directly, which will likely
594 # only succeed for scripts with [shebang lines]
595 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
596 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
597 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
598 # execution can return to indicate a success.
599 42,
600 ],
601 },
602 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
603 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
604 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
605 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
606 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
607 # ensure that the ExecStep specified by this PatchJob does not change.
608 },
609 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
610 # specified the script will be executed directly, which will likely
611 # only succeed for scripts with [shebang lines]
612 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
613 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
614 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
615 # execution can return to indicate a success.
616 42,
617 ],
618 },
619 },
620 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
621 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
622 # updates are applied.
623 &quot;A String&quot;,
624 ],
625 &quot;excludes&quot;: [ # List of KBs to exclude from update.
626 &quot;A String&quot;,
627 ],
628 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
629 # that will be updated. This field must not be used with other
630 # patch configurations.
631 &quot;A String&quot;,
632 ],
633 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700634 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
635 # patch rules.
636 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -0700637 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
638 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
639 &quot;severities&quot;: [ # Install only patches with these severities.
640 # Common severities include critical, important, moderate, and low.
641 &quot;A String&quot;,
642 ],
643 &quot;categories&quot;: [ # Install only patches with these categories.
644 # Common categories include security, recommended, and feature.
645 &quot;A String&quot;,
646 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700647 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
648 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
649 # This field must not be used with any other patch configuration fields.
650 &quot;A String&quot;,
651 ],
652 &quot;excludes&quot;: [ # List of patches to exclude from update.
653 &quot;A String&quot;,
654 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700655 },
656 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
657 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700658 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
660 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700661 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
662 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700663 },
664 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
665 # specified the script will be executed directly, which will likely
666 # only succeed for scripts with [shebang lines]
667 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700668 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
669 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
670 # execution can return to indicate a success.
671 42,
672 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700673 },
674 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700675 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700676 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
677 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700678 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
679 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700680 },
681 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
682 # specified the script will be executed directly, which will likely
683 # only succeed for scripts with [shebang lines]
684 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700685 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
686 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
687 # execution can return to indicate a success.
688 42,
689 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700690 },
691 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700692 &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
693 # rules.
694 # can be set to control how this is executed.
695 #
696 # Note that not all settings are supported on all platforms.
Bu Sun Kim65020912020-05-20 12:08:20 -0700697 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
698 # that will be updated. If these packages are not installed, they will be
699 # ignored. This field must not be specified with any other patch
700 # configuration fields.
701 &quot;A String&quot;,
702 ],
703 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
704 # all platforms.
705 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700706 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
707 # using the yum `--exclude` flag.
708 &quot;A String&quot;,
709 ],
710 },
711 &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
712 # rules.
713 # upgrade`. Additional options can be set to control how this is executed.
714 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
715 # using `apt-get dist-upgrade` instead.
716 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
717 &quot;A String&quot;,
718 ],
719 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
720 # that will be updated. If these packages are not installed, they will be
721 # ignored. This field cannot be specified with any other patch configuration
722 # fields.
723 &quot;A String&quot;,
724 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 },
726 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
727 # rules.
728 },
729 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700731 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
732 # VMs must meet all criteria specified. So if both labels and zones are
733 # specified, the patch job targets only VMs with those labels and in those
734 # zones.
735 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
736 # instances in any zone.
737 &quot;A String&quot;,
738 ],
739 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
740 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
741 { # Represents a group of VMs that can be identified as having all these
742 # labels, for example &quot;env=prod and app=web&quot;.
743 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
744 # instance to be targeted by this filter.
745 &quot;a_key&quot;: &quot;A String&quot;,
746 },
747 },
748 ],
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 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700763 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
764 # patch job times out.
Bu Sun Kim65020912020-05-20 12:08:20 -0700765 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
766 # job affects. Contains counts of instances in different states. These states
767 # map to `InstancePatchState`. List patch job instance details to see the
768 # specific states of each instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700769 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
771 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
772 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
773 # ensure that the agent is installed, running, and able to communicate with
774 # the service.
775 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
776 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
777 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
778 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
779 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
780 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
781 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
782 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
783 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
784 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
785 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
Bu Sun Kim65020912020-05-20 12:08:20 -0700786 },
787 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
788 # to 1024 characters.
789 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
790 # 0.0 being no progress to 100.0 being complete.
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 }</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).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700818 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob .
819 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
820 # `projects/*/patchJobs/*`
821 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
823 # finished without running any updates on the VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700824 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700825 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
826 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
827 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
828 # failure.
829 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
830 # patch(es) to a VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700831 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
832 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
833 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
834 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
835 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
836 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
837 # ensure that the ExecStep specified by this PatchJob does not change.
838 },
839 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
840 # specified the script will be executed directly, which will likely
841 # only succeed for scripts with [shebang lines]
842 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
843 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
844 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
845 # execution can return to indicate a success.
846 42,
847 ],
848 },
849 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
850 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
851 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
852 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
853 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
854 # ensure that the ExecStep specified by this PatchJob does not change.
855 },
856 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
857 # specified the script will be executed directly, which will likely
858 # only succeed for scripts with [shebang lines]
859 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
860 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
861 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
862 # execution can return to indicate a success.
863 42,
864 ],
865 },
866 },
867 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
868 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
869 # updates are applied.
870 &quot;A String&quot;,
871 ],
872 &quot;excludes&quot;: [ # List of KBs to exclude from update.
873 &quot;A String&quot;,
874 ],
875 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
876 # that will be updated. This field must not be used with other
877 # patch configurations.
878 &quot;A String&quot;,
879 ],
880 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700881 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
882 # patch rules.
883 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -0700884 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
885 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
886 &quot;severities&quot;: [ # Install only patches with these severities.
887 # Common severities include critical, important, moderate, and low.
888 &quot;A String&quot;,
889 ],
890 &quot;categories&quot;: [ # Install only patches with these categories.
891 # Common categories include security, recommended, and feature.
892 &quot;A String&quot;,
893 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700894 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
895 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
896 # This field must not be used with any other patch configuration fields.
897 &quot;A String&quot;,
898 ],
899 &quot;excludes&quot;: [ # List of patches to exclude from update.
900 &quot;A String&quot;,
901 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700902 },
903 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
904 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700905 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700906 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
907 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700908 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
909 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700910 },
911 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
912 # specified the script will be executed directly, which will likely
913 # only succeed for scripts with [shebang lines]
914 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700915 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
916 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
917 # execution can return to indicate a success.
918 42,
919 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700920 },
921 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
924 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700925 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
926 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 },
928 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
929 # specified the script will be executed directly, which will likely
930 # only succeed for scripts with [shebang lines]
931 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700932 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
933 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
934 # execution can return to indicate a success.
935 42,
936 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700937 },
938 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 &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
940 # rules.
941 # can be set to control how this is executed.
942 #
943 # Note that not all settings are supported on all platforms.
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
945 # that will be updated. If these packages are not installed, they will be
946 # ignored. This field must not be specified with any other patch
947 # configuration fields.
948 &quot;A String&quot;,
949 ],
950 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
951 # all platforms.
952 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700953 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
954 # using the yum `--exclude` flag.
955 &quot;A String&quot;,
956 ],
957 },
958 &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
959 # rules.
960 # upgrade`. Additional options can be set to control how this is executed.
961 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
962 # using `apt-get dist-upgrade` instead.
963 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
964 &quot;A String&quot;,
965 ],
966 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
967 # that will be updated. If these packages are not installed, they will be
968 # ignored. This field cannot be specified with any other patch configuration
969 # fields.
970 &quot;A String&quot;,
971 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700972 },
973 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
974 # rules.
975 },
976 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -0700977 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700978 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
979 # VMs must meet all criteria specified. So if both labels and zones are
980 # specified, the patch job targets only VMs with those labels and in those
981 # zones.
982 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
983 # instances in any zone.
984 &quot;A String&quot;,
985 ],
986 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
987 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
988 { # Represents a group of VMs that can be identified as having all these
989 # labels, for example &quot;env=prod and app=web&quot;.
990 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
991 # instance to be targeted by this filter.
992 &quot;a_key&quot;: &quot;A String&quot;,
993 },
994 },
995 ],
996 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
997 # permitted.
998 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
999 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
1000 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
1001 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
1002 &quot;A String&quot;,
1003 ],
1004 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
1005 # labels, this is another way to group VMs when targeting configs, for
1006 # example prefix=&quot;prod-&quot;.
1007 &quot;A String&quot;,
1008 ],
1009 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001010 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
1011 # patch job times out.
Bu Sun Kim65020912020-05-20 12:08:20 -07001012 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
1013 # job affects. Contains counts of instances in different states. These states
1014 # map to `InstancePatchState`. List patch job instance details to see the
1015 # specific states of each instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001016 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
Bu Sun Kim65020912020-05-20 12:08:20 -07001017 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
1018 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
1019 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
1020 # ensure that the agent is installed, running, and able to communicate with
1021 # the service.
1022 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
1023 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
1024 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
1025 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
1026 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
1027 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
1028 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
1029 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
1030 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
1031 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
1032 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
Bu Sun Kim65020912020-05-20 12:08:20 -07001033 },
1034 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
1035 # to 1024 characters.
1036 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
1037 # 0.0 being no progress to 100.0 being complete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001038 }</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).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001072 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob .
1073 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
1074 # `projects/*/patchJobs/*`
1075 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
Bu Sun Kim65020912020-05-20 12:08:20 -07001076 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
1077 # finished without running any updates on the VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001078 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07001079 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
1080 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
1081 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
1082 # failure.
1083 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
1084 # patch(es) to a VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001085 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
1086 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
1087 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1088 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1089 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1090 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1091 # ensure that the ExecStep specified by this PatchJob does not change.
1092 },
1093 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1094 # specified the script will be executed directly, which will likely
1095 # only succeed for scripts with [shebang lines]
1096 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1097 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1098 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1099 # execution can return to indicate a success.
1100 42,
1101 ],
1102 },
1103 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
1104 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1105 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1106 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1107 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1108 # ensure that the ExecStep specified by this PatchJob does not change.
1109 },
1110 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1111 # specified the script will be executed directly, which will likely
1112 # only succeed for scripts with [shebang lines]
1113 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1114 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1115 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1116 # execution can return to indicate a success.
1117 42,
1118 ],
1119 },
1120 },
1121 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
1122 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
1123 # updates are applied.
1124 &quot;A String&quot;,
1125 ],
1126 &quot;excludes&quot;: [ # List of KBs to exclude from update.
1127 &quot;A String&quot;,
1128 ],
1129 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
1130 # that will be updated. This field must not be used with other
1131 # patch configurations.
1132 &quot;A String&quot;,
1133 ],
1134 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001135 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
1136 # patch rules.
1137 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -07001138 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
1139 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
1140 &quot;severities&quot;: [ # Install only patches with these severities.
1141 # Common severities include critical, important, moderate, and low.
1142 &quot;A String&quot;,
1143 ],
1144 &quot;categories&quot;: [ # Install only patches with these categories.
1145 # Common categories include security, recommended, and feature.
1146 &quot;A String&quot;,
1147 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001148 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
1149 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
1150 # This field must not be used with any other patch configuration fields.
1151 &quot;A String&quot;,
1152 ],
1153 &quot;excludes&quot;: [ # List of patches to exclude from update.
1154 &quot;A String&quot;,
1155 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001156 },
1157 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
1158 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -07001159 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1161 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001162 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1163 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -07001164 },
1165 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1166 # specified the script will be executed directly, which will likely
1167 # only succeed for scripts with [shebang lines]
1168 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001169 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1170 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1171 # execution can return to indicate a success.
1172 42,
1173 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001174 },
1175 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -07001176 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -07001177 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1178 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001179 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1180 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -07001181 },
1182 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1183 # specified the script will be executed directly, which will likely
1184 # only succeed for scripts with [shebang lines]
1185 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001186 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1187 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1188 # execution can return to indicate a success.
1189 42,
1190 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001191 },
1192 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001193 &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
1194 # rules.
1195 # can be set to control how this is executed.
1196 #
1197 # Note that not all settings are supported on all platforms.
Bu Sun Kim65020912020-05-20 12:08:20 -07001198 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1199 # that will be updated. If these packages are not installed, they will be
1200 # ignored. This field must not be specified with any other patch
1201 # configuration fields.
1202 &quot;A String&quot;,
1203 ],
1204 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
1205 # all platforms.
1206 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001207 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
1208 # using the yum `--exclude` flag.
1209 &quot;A String&quot;,
1210 ],
1211 },
1212 &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
1213 # rules.
1214 # upgrade`. Additional options can be set to control how this is executed.
1215 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
1216 # using `apt-get dist-upgrade` instead.
1217 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
1218 &quot;A String&quot;,
1219 ],
1220 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1221 # that will be updated. If these packages are not installed, they will be
1222 # ignored. This field cannot be specified with any other patch configuration
1223 # fields.
1224 &quot;A String&quot;,
1225 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001226 },
1227 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
1228 # rules.
1229 },
1230 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -07001231 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001232 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
1233 # VMs must meet all criteria specified. So if both labels and zones are
1234 # specified, the patch job targets only VMs with those labels and in those
1235 # zones.
1236 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
1237 # instances in any zone.
1238 &quot;A String&quot;,
1239 ],
1240 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
1241 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
1242 { # Represents a group of VMs that can be identified as having all these
1243 # labels, for example &quot;env=prod and app=web&quot;.
1244 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
1245 # instance to be targeted by this filter.
1246 &quot;a_key&quot;: &quot;A String&quot;,
1247 },
1248 },
1249 ],
1250 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
1251 # permitted.
1252 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
1253 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
1254 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
1255 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
1256 &quot;A String&quot;,
1257 ],
1258 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
1259 # labels, this is another way to group VMs when targeting configs, for
1260 # example prefix=&quot;prod-&quot;.
1261 &quot;A String&quot;,
1262 ],
1263 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001264 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
1265 # patch job times out.
Bu Sun Kim65020912020-05-20 12:08:20 -07001266 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
1267 # job affects. Contains counts of instances in different states. These states
1268 # map to `InstancePatchState`. List patch job instance details to see the
1269 # specific states of each instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001270 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
Bu Sun Kim65020912020-05-20 12:08:20 -07001271 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
1272 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
1273 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
1274 # ensure that the agent is installed, running, and able to communicate with
1275 # the service.
1276 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
1277 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
1278 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
1279 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
1280 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
1281 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
1282 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
1283 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
1284 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
1285 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
1286 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
Bu Sun Kim65020912020-05-20 12:08:20 -07001287 },
1288 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
1289 # to 1024 characters.
1290 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
1291 # 0.0 being no progress to 100.0 being complete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001292 },
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>