blob: 2ae12496bbdadc3e1807538bb3e5e79742c00356 [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">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070092 <code><a href="#list">list(parent, pageSize=None, pageToken=None, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070093<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 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700122 # Instance details are not included in the job. To paginate through instance
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 # 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 Kimd059ad82020-07-22 17:02:09 -0700128 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
129 # `projects/*/patchJobs/*`
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700131 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob.
132 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
133 # job affects. Contains counts of instances in different states. These states
134 # map to `InstancePatchState`. List patch job instance details to see the
135 # specific states of each instance.
136 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
137 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
138 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
139 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
140 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
141 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
142 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
143 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
144 # ensure that the agent is installed, running, and able to communicate with
145 # the service.
146 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
147 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
148 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
149 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
150 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
151 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
152 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
153 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700154 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
155 # patch(es) to a VM instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700156 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
157 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
158 # that will be updated. This field must not be used with other
159 # patch configurations.
160 &quot;A String&quot;,
161 ],
162 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
163 # updates are applied.
164 &quot;A String&quot;,
165 ],
166 &quot;excludes&quot;: [ # List of KBs to exclude from update.
167 &quot;A String&quot;,
168 ],
169 },
170 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
171 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
172 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
173 # specified the script will be executed directly, which will likely
174 # only succeed for scripts with [shebang lines]
175 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
176 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
177 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
178 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
179 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
180 # ensure that the ExecStep specified by this PatchJob does not change.
181 },
182 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
183 # execution can return to indicate a success.
184 42,
185 ],
186 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
187 },
188 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
189 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
190 # specified the script will be executed directly, which will likely
191 # only succeed for scripts with [shebang lines]
192 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
193 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
194 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
195 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
196 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
197 # ensure that the ExecStep specified by this PatchJob does not change.
198 },
199 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
200 # execution can return to indicate a success.
201 42,
202 ],
203 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
204 },
205 },
206 &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
207 # rules.
208 # can be set to control how this is executed.
209 #
210 # Note that not all settings are supported on all platforms.
211 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
212 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
213 # all platforms.
214 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
215 # using the yum `--exclude` flag.
216 &quot;A String&quot;,
217 ],
218 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
219 # that will be updated. If these packages are not installed, they will be
220 # ignored. This field must not be specified with any other patch
221 # configuration fields.
222 &quot;A String&quot;,
223 ],
224 },
225 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
226 # rules.
227 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700228 &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
229 # rules.
230 # upgrade`. Additional options can be set to control how this is executed.
231 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
232 &quot;A String&quot;,
233 ],
234 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
235 # that will be updated. If these packages are not installed, they will be
236 # ignored. This field cannot be specified with any other patch configuration
237 # fields.
238 &quot;A String&quot;,
239 ],
240 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
241 # using `apt-get dist-upgrade` instead.
242 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -0700244 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
245 # patch rules.
246 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 &quot;excludes&quot;: [ # List of patches to exclude from update.
248 &quot;A String&quot;,
249 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
251 &quot;severities&quot;: [ # Install only patches with these severities.
252 # Common severities include critical, important, moderate, and low.
253 &quot;A String&quot;,
254 ],
255 &quot;categories&quot;: [ # Install only patches with these categories.
256 # Common categories include security, recommended, and feature.
257 &quot;A String&quot;,
258 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700259 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
260 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
261 # This field must not be used with any other patch configuration fields.
262 &quot;A String&quot;,
263 ],
264 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 },
266 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
267 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700268 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
269 # specified the script will be executed directly, which will likely
270 # only succeed for scripts with [shebang lines]
271 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700272 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
273 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
274 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
275 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
276 # ensure that the ExecStep specified by this PatchJob does not change.
277 },
278 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
279 # execution can return to indicate a success.
280 42,
281 ],
282 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Bu Sun Kim65020912020-05-20 12:08:20 -0700283 },
284 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700285 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
286 # specified the script will be executed directly, which will likely
287 # only succeed for scripts with [shebang lines]
288 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700289 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
290 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
291 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
292 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
293 # ensure that the ExecStep specified by this PatchJob does not change.
294 },
295 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
296 # execution can return to indicate a success.
297 42,
298 ],
299 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 },
301 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700302 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700303 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700304 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
305 # VMs must meet all criteria specified. So if both labels and zones are
306 # specified, the patch job targets only VMs with those labels and in those
307 # zones.
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
309 # labels, this is another way to group VMs when targeting configs, for
310 # example prefix=&quot;prod-&quot;.
311 &quot;A String&quot;,
312 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows
314 # targeting of disparate groups of VM instances.
315 { # Targets a group of VM instances by using their [assigned
316 # labels](https://cloud.google.com/compute/docs/labeling-resources). Labels
317 # are key-value pairs. A `GroupLabel` is a combination of labels
318 # that is used to target VMs for a patch job.
319 #
320 # For example, a patch job can target VMs that have the following
321 # `GroupLabel`: `{&quot;env&quot;:&quot;test&quot;, &quot;app&quot;:&quot;web&quot;}`. This means that the patch job
322 # is applied to VMs that have both the labels `env=test` and `app=web`.
323 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM
324 # instance to be targeted by this filter.
325 &quot;a_key&quot;: &quot;A String&quot;,
326 },
327 },
328 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700329 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
330 # instances in any zone.
331 &quot;A String&quot;,
332 ],
333 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
334 # permitted.
335 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
336 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
337 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
338 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
339 &quot;A String&quot;,
340 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700342 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the # Rollout strategy being applied.
343 # concurrency control when applying patch(es) to all targeted VMs.
344 &quot;disruptionBudget&quot;: { # Message encapsulating a value that can be either absolute (&quot;fixed&quot;) or # The maximum number (or percentage) of VMs per zone to disrupt at any given
345 # moment. The number of VMs calculated from multiplying the percentage by the
346 # total number of VMs in a zone is rounded up.
347 #
348 # During patching, a VM is considered disrupted from the time the agent is
349 # notified to begin until patching has completed. This disruption time
350 # includes the time to complete reboot and any post-patch steps.
351 #
352 # A VM contributes to the disruption budget if its patching operation fails
353 # either when applying the patches, running pre or post patch steps, or if it
354 # fails to respond with a success notification before timing out. VMs that
355 # are not running or do not have an active agent do not count toward this
356 # disruption budget.
357 #
358 # For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
359 # the patch job stops, because continuing to the next zone requires
360 # completion of the patch process in the previous zone.
361 #
362 # For example, if the disruption budget has a fixed value of `10`, and 8 VMs
363 # fail to patch in the current zone, the patch job continues to patch 2 VMs
364 # at a time until the zone is completed. When that zone is completed
365 # successfully, patching begins with 10 VMs at a time in the next zone. If 10
366 # VMs in the next zone fail to patch, the patch job stops.
367 # relative (&quot;percent&quot;) to a value.
368 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be
369 # multiplied by a reference value.
370 &quot;fixed&quot;: 42, # Specifies a fixed value.
371 },
372 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 },
374 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
375 # to 1024 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700376 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
377 # patch job times out.
378 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
379 # failure.
Bu Sun Kim65020912020-05-20 12:08:20 -0700380 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
381 # 0.0 being no progress to 100.0 being complete.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700382 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
383 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
384 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
385 # finished without running any updates on the VM instance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 }</pre>
387</div>
388
389<div class="method">
390 <code class="details" id="execute">execute(parent, body=None, x__xgafv=None)</code>
391 <pre>Patch VM instances by creating and running a patch job.
392
393Args:
394 parent: string, Required. The project in which to run this patch in the form `projects/*` (required)
395 body: object, The request body.
396 The object takes the form of:
397
398{ # A request message to initiate patching across Compute Engine
399 # instances.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700400 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This does not have to be unique.
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 &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
402 # as zone or labels.
403 # VMs must meet all criteria specified. So if both labels and zones are
404 # specified, the patch job targets only VMs with those labels and in those
405 # zones.
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
407 # labels, this is another way to group VMs when targeting configs, for
408 # example prefix=&quot;prod-&quot;.
409 &quot;A String&quot;,
410 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows
412 # targeting of disparate groups of VM instances.
413 { # Targets a group of VM instances by using their [assigned
414 # labels](https://cloud.google.com/compute/docs/labeling-resources). Labels
415 # are key-value pairs. A `GroupLabel` is a combination of labels
416 # that is used to target VMs for a patch job.
417 #
418 # For example, a patch job can target VMs that have the following
419 # `GroupLabel`: `{&quot;env&quot;:&quot;test&quot;, &quot;app&quot;:&quot;web&quot;}`. This means that the patch job
420 # is applied to VMs that have both the labels `env=test` and `app=web`.
421 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM
422 # instance to be targeted by this filter.
423 &quot;a_key&quot;: &quot;A String&quot;,
424 },
425 },
426 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700427 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
428 # instances in any zone.
429 &quot;A String&quot;,
430 ],
431 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
432 # permitted.
433 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
434 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
435 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
436 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
437 &quot;A String&quot;,
438 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700439 },
440 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the patch job
441 # times out.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700442 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the # Rollout strategy of the patch job.
443 # concurrency control when applying patch(es) to all targeted VMs.
444 &quot;disruptionBudget&quot;: { # Message encapsulating a value that can be either absolute (&quot;fixed&quot;) or # The maximum number (or percentage) of VMs per zone to disrupt at any given
445 # moment. The number of VMs calculated from multiplying the percentage by the
446 # total number of VMs in a zone is rounded up.
447 #
448 # During patching, a VM is considered disrupted from the time the agent is
449 # notified to begin until patching has completed. This disruption time
450 # includes the time to complete reboot and any post-patch steps.
451 #
452 # A VM contributes to the disruption budget if its patching operation fails
453 # either when applying the patches, running pre or post patch steps, or if it
454 # fails to respond with a success notification before timing out. VMs that
455 # are not running or do not have an active agent do not count toward this
456 # disruption budget.
457 #
458 # For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
459 # the patch job stops, because continuing to the next zone requires
460 # completion of the patch process in the previous zone.
461 #
462 # For example, if the disruption budget has a fixed value of `10`, and 8 VMs
463 # fail to patch in the current zone, the patch job continues to patch 2 VMs
464 # at a time until the zone is completed. When that zone is completed
465 # successfully, patching begins with 10 VMs at a time in the next zone. If 10
466 # VMs in the next zone fail to patch, the patch job stops.
467 # relative (&quot;percent&quot;) to a value.
468 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be
469 # multiplied by a reference value.
470 &quot;fixed&quot;: 42, # Specifies a fixed value.
471 },
472 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
473 },
474 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied. If omitted, instances are
475 # patched using the default configurations.
476 # patch(es) to a VM instance.
477 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
478 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
479 # that will be updated. This field must not be used with other
480 # patch configurations.
481 &quot;A String&quot;,
482 ],
483 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
484 # updates are applied.
485 &quot;A String&quot;,
486 ],
487 &quot;excludes&quot;: [ # List of KBs to exclude from update.
488 &quot;A String&quot;,
489 ],
490 },
491 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
492 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
493 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
494 # specified the script will be executed directly, which will likely
495 # only succeed for scripts with [shebang lines]
496 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
497 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
498 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
499 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
500 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
501 # ensure that the ExecStep specified by this PatchJob does not change.
502 },
503 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
504 # execution can return to indicate a success.
505 42,
506 ],
507 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
508 },
509 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
510 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
511 # specified the script will be executed directly, which will likely
512 # only succeed for scripts with [shebang lines]
513 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
514 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
515 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
516 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
517 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
518 # ensure that the ExecStep specified by this PatchJob does not change.
519 },
520 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
521 # execution can return to indicate a success.
522 42,
523 ],
524 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
525 },
526 },
527 &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
528 # rules.
529 # can be set to control how this is executed.
530 #
531 # Note that not all settings are supported on all platforms.
532 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
533 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
534 # all platforms.
535 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
536 # using the yum `--exclude` flag.
537 &quot;A String&quot;,
538 ],
539 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
540 # that will be updated. If these packages are not installed, they will be
541 # ignored. This field must not be specified with any other patch
542 # configuration fields.
543 &quot;A String&quot;,
544 ],
545 },
546 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
547 # rules.
548 },
549 &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
550 # rules.
551 # upgrade`. Additional options can be set to control how this is executed.
552 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
553 &quot;A String&quot;,
554 ],
555 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
556 # that will be updated. If these packages are not installed, they will be
557 # ignored. This field cannot be specified with any other patch configuration
558 # fields.
559 &quot;A String&quot;,
560 ],
561 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
562 # using `apt-get dist-upgrade` instead.
563 },
564 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
565 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
566 # patch rules.
567 # See also https://en.opensuse.org/SDB:Zypper_manual.
568 &quot;excludes&quot;: [ # List of patches to exclude from update.
569 &quot;A String&quot;,
570 ],
571 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
572 &quot;severities&quot;: [ # Install only patches with these severities.
573 # Common severities include critical, important, moderate, and low.
574 &quot;A String&quot;,
575 ],
576 &quot;categories&quot;: [ # Install only patches with these categories.
577 # Common categories include security, recommended, and feature.
578 &quot;A String&quot;,
579 ],
580 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
581 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
582 # This field must not be used with any other patch configuration fields.
583 &quot;A String&quot;,
584 ],
585 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
586 },
587 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
588 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
589 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
590 # specified the script will be executed directly, which will likely
591 # only succeed for scripts with [shebang lines]
592 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
593 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
594 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
595 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
596 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
597 # ensure that the ExecStep specified by this PatchJob does not change.
598 },
599 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
600 # execution can return to indicate a success.
601 42,
602 ],
603 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
604 },
605 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
606 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
607 # specified the script will be executed directly, which will likely
608 # only succeed for scripts with [shebang lines]
609 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
610 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
611 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
612 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
613 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
614 # ensure that the ExecStep specified by this PatchJob does not change.
615 },
616 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
617 # execution can return to indicate a success.
618 42,
619 ],
620 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
621 },
622 },
623 },
624 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
625 # to 1024 characters.
626 &quot;dryRun&quot;: True or False, # If this patch is a dry-run only, instances are contacted but
627 # will do nothing.
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 }
629
630 x__xgafv: string, V1 error format.
631 Allowed values
632 1 - v1 error format
633 2 - v2 error format
634
635Returns:
636 An object of the form:
637
638 { # A high level representation of a patch job that is either in progress
639 # or has completed.
640 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700641 # Instance details are not included in the job. To paginate through instance
Bu Sun Kim65020912020-05-20 12:08:20 -0700642 # details, use ListPatchJobInstanceDetails.
643 #
644 # For more information about patch jobs, see
645 # [Creating patch
646 # jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700647 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
648 # `projects/*/patchJobs/*`
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700650 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob.
651 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
652 # job affects. Contains counts of instances in different states. These states
653 # map to `InstancePatchState`. List patch job instance details to see the
654 # specific states of each instance.
655 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
656 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
657 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
658 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
659 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
660 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
661 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
662 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
663 # ensure that the agent is installed, running, and able to communicate with
664 # the service.
665 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
666 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
667 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
668 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
669 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
670 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
671 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
672 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700673 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
674 # patch(es) to a VM instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700675 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
676 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
677 # that will be updated. This field must not be used with other
678 # patch configurations.
679 &quot;A String&quot;,
680 ],
681 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
682 # updates are applied.
683 &quot;A String&quot;,
684 ],
685 &quot;excludes&quot;: [ # List of KBs to exclude from update.
686 &quot;A String&quot;,
687 ],
688 },
689 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
690 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
691 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
692 # specified the script will be executed directly, which will likely
693 # only succeed for scripts with [shebang lines]
694 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
695 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
696 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
697 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
698 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
699 # ensure that the ExecStep specified by this PatchJob does not change.
700 },
701 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
702 # execution can return to indicate a success.
703 42,
704 ],
705 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
706 },
707 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
708 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
709 # specified the script will be executed directly, which will likely
710 # only succeed for scripts with [shebang lines]
711 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
712 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
713 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
714 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
715 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
716 # ensure that the ExecStep specified by this PatchJob does not change.
717 },
718 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
719 # execution can return to indicate a success.
720 42,
721 ],
722 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
723 },
724 },
725 &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
726 # rules.
727 # can be set to control how this is executed.
728 #
729 # Note that not all settings are supported on all platforms.
730 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
731 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
732 # all platforms.
733 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
734 # using the yum `--exclude` flag.
735 &quot;A String&quot;,
736 ],
737 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
738 # that will be updated. If these packages are not installed, they will be
739 # ignored. This field must not be specified with any other patch
740 # configuration fields.
741 &quot;A String&quot;,
742 ],
743 },
744 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
745 # rules.
746 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700747 &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
748 # rules.
749 # upgrade`. Additional options can be set to control how this is executed.
750 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
751 &quot;A String&quot;,
752 ],
753 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
754 # that will be updated. If these packages are not installed, they will be
755 # ignored. This field cannot be specified with any other patch configuration
756 # fields.
757 &quot;A String&quot;,
758 ],
759 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
760 # using `apt-get dist-upgrade` instead.
761 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700762 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -0700763 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
764 # patch rules.
765 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -0700766 &quot;excludes&quot;: [ # List of patches to exclude from update.
767 &quot;A String&quot;,
768 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700769 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
770 &quot;severities&quot;: [ # Install only patches with these severities.
771 # Common severities include critical, important, moderate, and low.
772 &quot;A String&quot;,
773 ],
774 &quot;categories&quot;: [ # Install only patches with these categories.
775 # Common categories include security, recommended, and feature.
776 &quot;A String&quot;,
777 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700778 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
779 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
780 # This field must not be used with any other patch configuration fields.
781 &quot;A String&quot;,
782 ],
783 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700784 },
785 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
786 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700787 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
788 # specified the script will be executed directly, which will likely
789 # only succeed for scripts with [shebang lines]
790 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700791 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
792 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
793 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
794 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
795 # ensure that the ExecStep specified by this PatchJob does not change.
796 },
797 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
798 # execution can return to indicate a success.
799 42,
800 ],
801 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Bu Sun Kim65020912020-05-20 12:08:20 -0700802 },
803 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700804 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
805 # specified the script will be executed directly, which will likely
806 # only succeed for scripts with [shebang lines]
807 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700808 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
809 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
810 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
811 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
812 # ensure that the ExecStep specified by this PatchJob does not change.
813 },
814 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
815 # execution can return to indicate a success.
816 42,
817 ],
818 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Bu Sun Kim65020912020-05-20 12:08:20 -0700819 },
820 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700822 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700823 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
824 # VMs must meet all criteria specified. So if both labels and zones are
825 # specified, the patch job targets only VMs with those labels and in those
826 # zones.
Bu Sun Kim65020912020-05-20 12:08:20 -0700827 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
828 # labels, this is another way to group VMs when targeting configs, for
829 # example prefix=&quot;prod-&quot;.
830 &quot;A String&quot;,
831 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700832 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows
833 # targeting of disparate groups of VM instances.
834 { # Targets a group of VM instances by using their [assigned
835 # labels](https://cloud.google.com/compute/docs/labeling-resources). Labels
836 # are key-value pairs. A `GroupLabel` is a combination of labels
837 # that is used to target VMs for a patch job.
838 #
839 # For example, a patch job can target VMs that have the following
840 # `GroupLabel`: `{&quot;env&quot;:&quot;test&quot;, &quot;app&quot;:&quot;web&quot;}`. This means that the patch job
841 # is applied to VMs that have both the labels `env=test` and `app=web`.
842 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM
843 # instance to be targeted by this filter.
844 &quot;a_key&quot;: &quot;A String&quot;,
845 },
846 },
847 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700848 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
849 # instances in any zone.
850 &quot;A String&quot;,
851 ],
852 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
853 # permitted.
854 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
855 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
856 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
857 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
858 &quot;A String&quot;,
859 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700861 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the # Rollout strategy being applied.
862 # concurrency control when applying patch(es) to all targeted VMs.
863 &quot;disruptionBudget&quot;: { # Message encapsulating a value that can be either absolute (&quot;fixed&quot;) or # The maximum number (or percentage) of VMs per zone to disrupt at any given
864 # moment. The number of VMs calculated from multiplying the percentage by the
865 # total number of VMs in a zone is rounded up.
866 #
867 # During patching, a VM is considered disrupted from the time the agent is
868 # notified to begin until patching has completed. This disruption time
869 # includes the time to complete reboot and any post-patch steps.
870 #
871 # A VM contributes to the disruption budget if its patching operation fails
872 # either when applying the patches, running pre or post patch steps, or if it
873 # fails to respond with a success notification before timing out. VMs that
874 # are not running or do not have an active agent do not count toward this
875 # disruption budget.
876 #
877 # For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
878 # the patch job stops, because continuing to the next zone requires
879 # completion of the patch process in the previous zone.
880 #
881 # For example, if the disruption budget has a fixed value of `10`, and 8 VMs
882 # fail to patch in the current zone, the patch job continues to patch 2 VMs
883 # at a time until the zone is completed. When that zone is completed
884 # successfully, patching begins with 10 VMs at a time in the next zone. If 10
885 # VMs in the next zone fail to patch, the patch job stops.
886 # relative (&quot;percent&quot;) to a value.
887 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be
888 # multiplied by a reference value.
889 &quot;fixed&quot;: 42, # Specifies a fixed value.
890 },
891 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kim65020912020-05-20 12:08:20 -0700892 },
893 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
894 # to 1024 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700895 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
896 # patch job times out.
897 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
898 # failure.
Bu Sun Kim65020912020-05-20 12:08:20 -0700899 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
900 # 0.0 being no progress to 100.0 being complete.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700901 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
902 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
903 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
904 # finished without running any updates on the VM instance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700905 }</pre>
906</div>
907
908<div class="method">
909 <code class="details" id="get">get(name, x__xgafv=None)</code>
910 <pre>Get the patch job. This can be used to track the progress of an
911ongoing patch job or review the details of completed jobs.
912
913Args:
914 name: string, Required. Name of the patch in the form `projects/*/patchJobs/*` (required)
915 x__xgafv: string, V1 error format.
916 Allowed values
917 1 - v1 error format
918 2 - v2 error format
919
920Returns:
921 An object of the form:
922
923 { # A high level representation of a patch job that is either in progress
924 # or has completed.
925 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700926 # Instance details are not included in the job. To paginate through instance
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 # details, use ListPatchJobInstanceDetails.
928 #
929 # For more information about patch jobs, see
930 # [Creating patch
931 # jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700932 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
933 # `projects/*/patchJobs/*`
Bu Sun Kim65020912020-05-20 12:08:20 -0700934 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700935 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob.
936 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
937 # job affects. Contains counts of instances in different states. These states
938 # map to `InstancePatchState`. List patch job instance details to see the
939 # specific states of each instance.
940 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
941 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
942 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
943 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
944 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
945 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
946 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
947 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
948 # ensure that the agent is installed, running, and able to communicate with
949 # the service.
950 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
951 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
952 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
953 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
954 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
955 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
956 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
957 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700958 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
959 # patch(es) to a VM instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700960 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
961 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
962 # that will be updated. This field must not be used with other
963 # patch configurations.
964 &quot;A String&quot;,
965 ],
966 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
967 # updates are applied.
968 &quot;A String&quot;,
969 ],
970 &quot;excludes&quot;: [ # List of KBs to exclude from update.
971 &quot;A String&quot;,
972 ],
973 },
974 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
975 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
976 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
977 # specified the script will be executed directly, which will likely
978 # only succeed for scripts with [shebang lines]
979 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
980 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
981 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
982 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
983 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
984 # ensure that the ExecStep specified by this PatchJob does not change.
985 },
986 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
987 # execution can return to indicate a success.
988 42,
989 ],
990 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
991 },
992 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
993 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
994 # specified the script will be executed directly, which will likely
995 # only succeed for scripts with [shebang lines]
996 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
997 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
998 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
999 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
1000 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
1001 # ensure that the ExecStep specified by this PatchJob does not change.
1002 },
1003 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1004 # execution can return to indicate a success.
1005 42,
1006 ],
1007 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1008 },
1009 },
1010 &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
1011 # rules.
1012 # can be set to control how this is executed.
1013 #
1014 # Note that not all settings are supported on all platforms.
1015 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
1016 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
1017 # all platforms.
1018 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
1019 # using the yum `--exclude` flag.
1020 &quot;A String&quot;,
1021 ],
1022 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1023 # that will be updated. If these packages are not installed, they will be
1024 # ignored. This field must not be specified with any other patch
1025 # configuration fields.
1026 &quot;A String&quot;,
1027 ],
1028 },
1029 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
1030 # rules.
1031 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001032 &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
1033 # rules.
1034 # upgrade`. Additional options can be set to control how this is executed.
1035 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
1036 &quot;A String&quot;,
1037 ],
1038 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1039 # that will be updated. If these packages are not installed, they will be
1040 # ignored. This field cannot be specified with any other patch configuration
1041 # fields.
1042 &quot;A String&quot;,
1043 ],
1044 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
1045 # using `apt-get dist-upgrade` instead.
1046 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001047 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -07001048 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
1049 # patch rules.
1050 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -07001051 &quot;excludes&quot;: [ # List of patches to exclude from update.
1052 &quot;A String&quot;,
1053 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001054 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
1055 &quot;severities&quot;: [ # Install only patches with these severities.
1056 # Common severities include critical, important, moderate, and low.
1057 &quot;A String&quot;,
1058 ],
1059 &quot;categories&quot;: [ # Install only patches with these categories.
1060 # Common categories include security, recommended, and feature.
1061 &quot;A String&quot;,
1062 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001063 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
1064 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
1065 # This field must not be used with any other patch configuration fields.
1066 &quot;A String&quot;,
1067 ],
1068 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001069 },
1070 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
1071 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001072 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1073 # specified the script will be executed directly, which will likely
1074 # only succeed for scripts with [shebang lines]
1075 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001076 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
1077 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
1078 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
1079 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
1080 # ensure that the ExecStep specified by this PatchJob does not change.
1081 },
1082 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1083 # execution can return to indicate a success.
1084 42,
1085 ],
1086 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Bu Sun Kim65020912020-05-20 12:08:20 -07001087 },
1088 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001089 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1090 # specified the script will be executed directly, which will likely
1091 # only succeed for scripts with [shebang lines]
1092 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001093 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
1094 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
1095 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
1096 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
1097 # ensure that the ExecStep specified by this PatchJob does not change.
1098 },
1099 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1100 # execution can return to indicate a success.
1101 42,
1102 ],
1103 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Bu Sun Kim65020912020-05-20 12:08:20 -07001104 },
1105 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001106 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001107 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07001108 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
1109 # VMs must meet all criteria specified. So if both labels and zones are
1110 # specified, the patch job targets only VMs with those labels and in those
1111 # zones.
Bu Sun Kim65020912020-05-20 12:08:20 -07001112 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
1113 # labels, this is another way to group VMs when targeting configs, for
1114 # example prefix=&quot;prod-&quot;.
1115 &quot;A String&quot;,
1116 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001117 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows
1118 # targeting of disparate groups of VM instances.
1119 { # Targets a group of VM instances by using their [assigned
1120 # labels](https://cloud.google.com/compute/docs/labeling-resources). Labels
1121 # are key-value pairs. A `GroupLabel` is a combination of labels
1122 # that is used to target VMs for a patch job.
1123 #
1124 # For example, a patch job can target VMs that have the following
1125 # `GroupLabel`: `{&quot;env&quot;:&quot;test&quot;, &quot;app&quot;:&quot;web&quot;}`. This means that the patch job
1126 # is applied to VMs that have both the labels `env=test` and `app=web`.
1127 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM
1128 # instance to be targeted by this filter.
1129 &quot;a_key&quot;: &quot;A String&quot;,
1130 },
1131 },
1132 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001133 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
1134 # instances in any zone.
1135 &quot;A String&quot;,
1136 ],
1137 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
1138 # permitted.
1139 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
1140 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
1141 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
1142 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
1143 &quot;A String&quot;,
1144 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001145 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001146 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the # Rollout strategy being applied.
1147 # concurrency control when applying patch(es) to all targeted VMs.
1148 &quot;disruptionBudget&quot;: { # Message encapsulating a value that can be either absolute (&quot;fixed&quot;) or # The maximum number (or percentage) of VMs per zone to disrupt at any given
1149 # moment. The number of VMs calculated from multiplying the percentage by the
1150 # total number of VMs in a zone is rounded up.
1151 #
1152 # During patching, a VM is considered disrupted from the time the agent is
1153 # notified to begin until patching has completed. This disruption time
1154 # includes the time to complete reboot and any post-patch steps.
1155 #
1156 # A VM contributes to the disruption budget if its patching operation fails
1157 # either when applying the patches, running pre or post patch steps, or if it
1158 # fails to respond with a success notification before timing out. VMs that
1159 # are not running or do not have an active agent do not count toward this
1160 # disruption budget.
1161 #
1162 # For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
1163 # the patch job stops, because continuing to the next zone requires
1164 # completion of the patch process in the previous zone.
1165 #
1166 # For example, if the disruption budget has a fixed value of `10`, and 8 VMs
1167 # fail to patch in the current zone, the patch job continues to patch 2 VMs
1168 # at a time until the zone is completed. When that zone is completed
1169 # successfully, patching begins with 10 VMs at a time in the next zone. If 10
1170 # VMs in the next zone fail to patch, the patch job stops.
1171 # relative (&quot;percent&quot;) to a value.
1172 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be
1173 # multiplied by a reference value.
1174 &quot;fixed&quot;: 42, # Specifies a fixed value.
1175 },
1176 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001177 },
1178 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
1179 # to 1024 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001180 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
1181 # patch job times out.
1182 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
1183 # failure.
Bu Sun Kim65020912020-05-20 12:08:20 -07001184 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
1185 # 0.0 being no progress to 100.0 being complete.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001186 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
1187 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
1188 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
1189 # finished without running any updates on the VM instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001190 }</pre>
1191</div>
1192
1193<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001194 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, filter=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001195 <pre>Get a list of patch jobs.
1196
1197Args:
1198 parent: string, Required. In the form of `projects/*` (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001199 pageSize: integer, The maximum number of instance status to return.
1200 pageToken: string, A pagination token returned from a previous call
1201that indicates where this listing should continue from.
Bu Sun Kim65020912020-05-20 12:08:20 -07001202 filter: string, If provided, this field specifies the criteria that must be met by patch
1203jobs to be included in the response.
1204Currently, filtering is only available on the patch_deployment field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001205 x__xgafv: string, V1 error format.
1206 Allowed values
1207 1 - v1 error format
1208 2 - v2 error format
1209
1210Returns:
1211 An object of the form:
1212
1213 { # A response message for listing patch jobs.
1214 &quot;patchJobs&quot;: [ # The list of patch jobs.
1215 { # A high level representation of a patch job that is either in progress
1216 # or has completed.
1217 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001218 # Instance details are not included in the job. To paginate through instance
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 # details, use ListPatchJobInstanceDetails.
1220 #
1221 # For more information about patch jobs, see
1222 # [Creating patch
1223 # jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001224 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form
1225 # `projects/*/patchJobs/*`
Bu Sun Kim65020912020-05-20 12:08:20 -07001226 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001227 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob.
1228 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch # Summary of instance details.
1229 # job affects. Contains counts of instances in different states. These states
1230 # map to `InstancePatchState`. List patch job instance details to see the
1231 # specific states of each instance.
1232 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
1233 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
1234 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
1235 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
1236 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
1237 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
1238 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
1239 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to
1240 # ensure that the agent is installed, running, and able to communicate with
1241 # the service.
1242 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
1243 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
1244 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
1245 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
1246 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
1247 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
1248 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
1249 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001250 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Patch configuration being applied.
1251 # patch(es) to a VM instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001252 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
1253 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
1254 # that will be updated. This field must not be used with other
1255 # patch configurations.
1256 &quot;A String&quot;,
1257 ],
1258 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
1259 # updates are applied.
1260 &quot;A String&quot;,
1261 ],
1262 &quot;excludes&quot;: [ # List of KBs to exclude from update.
1263 &quot;A String&quot;,
1264 ],
1265 },
1266 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
1267 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
1268 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1269 # specified the script will be executed directly, which will likely
1270 # only succeed for scripts with [shebang lines]
1271 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1272 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
1273 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
1274 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
1275 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
1276 # ensure that the ExecStep specified by this PatchJob does not change.
1277 },
1278 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1279 # execution can return to indicate a success.
1280 42,
1281 ],
1282 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1283 },
1284 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
1285 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1286 # specified the script will be executed directly, which will likely
1287 # only succeed for scripts with [shebang lines]
1288 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1289 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
1290 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
1291 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
1292 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
1293 # ensure that the ExecStep specified by this PatchJob does not change.
1294 },
1295 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1296 # execution can return to indicate a success.
1297 42,
1298 ],
1299 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1300 },
1301 },
1302 &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
1303 # rules.
1304 # can be set to control how this is executed.
1305 #
1306 # Note that not all settings are supported on all platforms.
1307 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
1308 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
1309 # all platforms.
1310 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
1311 # using the yum `--exclude` flag.
1312 &quot;A String&quot;,
1313 ],
1314 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1315 # that will be updated. If these packages are not installed, they will be
1316 # ignored. This field must not be specified with any other patch
1317 # configuration fields.
1318 &quot;A String&quot;,
1319 ],
1320 },
1321 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
1322 # rules.
1323 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001324 &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
1325 # rules.
1326 # upgrade`. Additional options can be set to control how this is executed.
1327 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
1328 &quot;A String&quot;,
1329 ],
1330 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1331 # that will be updated. If these packages are not installed, they will be
1332 # ignored. This field cannot be specified with any other patch configuration
1333 # fields.
1334 &quot;A String&quot;,
1335 ],
1336 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
1337 # using `apt-get dist-upgrade` instead.
1338 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001339 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
1341 # patch rules.
1342 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -07001343 &quot;excludes&quot;: [ # List of patches to exclude from update.
1344 &quot;A String&quot;,
1345 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001346 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
1347 &quot;severities&quot;: [ # Install only patches with these severities.
1348 # Common severities include critical, important, moderate, and low.
1349 &quot;A String&quot;,
1350 ],
1351 &quot;categories&quot;: [ # Install only patches with these categories.
1352 # Common categories include security, recommended, and feature.
1353 &quot;A String&quot;,
1354 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001355 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
1356 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
1357 # This field must not be used with any other patch configuration fields.
1358 &quot;A String&quot;,
1359 ],
1360 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001361 },
1362 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
1363 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001364 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1365 # specified the script will be executed directly, which will likely
1366 # only succeed for scripts with [shebang lines]
1367 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001368 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
1369 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
1370 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
1371 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
1372 # ensure that the ExecStep specified by this PatchJob does not change.
1373 },
1374 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1375 # execution can return to indicate a success.
1376 42,
1377 ],
1378 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Bu Sun Kim65020912020-05-20 12:08:20 -07001379 },
1380 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001381 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1382 # specified the script will be executed directly, which will likely
1383 # only succeed for scripts with [shebang lines]
1384 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001385 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
1386 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
1387 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
1388 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to
1389 # ensure that the ExecStep specified by this PatchJob does not change.
1390 },
1391 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1392 # execution can return to indicate a success.
1393 42,
1394 ],
1395 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 },
1397 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001398 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001399 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07001400 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Instances to patch.
1401 # VMs must meet all criteria specified. So if both labels and zones are
1402 # specified, the patch job targets only VMs with those labels and in those
1403 # zones.
Bu Sun Kim65020912020-05-20 12:08:20 -07001404 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
1405 # labels, this is another way to group VMs when targeting configs, for
1406 # example prefix=&quot;prod-&quot;.
1407 &quot;A String&quot;,
1408 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001409 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows
1410 # targeting of disparate groups of VM instances.
1411 { # Targets a group of VM instances by using their [assigned
1412 # labels](https://cloud.google.com/compute/docs/labeling-resources). Labels
1413 # are key-value pairs. A `GroupLabel` is a combination of labels
1414 # that is used to target VMs for a patch job.
1415 #
1416 # For example, a patch job can target VMs that have the following
1417 # `GroupLabel`: `{&quot;env&quot;:&quot;test&quot;, &quot;app&quot;:&quot;web&quot;}`. This means that the patch job
1418 # is applied to VMs that have both the labels `env=test` and `app=web`.
1419 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM
1420 # instance to be targeted by this filter.
1421 &quot;a_key&quot;: &quot;A String&quot;,
1422 },
1423 },
1424 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001425 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
1426 # instances in any zone.
1427 &quot;A String&quot;,
1428 ],
1429 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
1430 # permitted.
1431 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
1432 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
1433 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
1434 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
1435 &quot;A String&quot;,
1436 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001437 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001438 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the # Rollout strategy being applied.
1439 # concurrency control when applying patch(es) to all targeted VMs.
1440 &quot;disruptionBudget&quot;: { # Message encapsulating a value that can be either absolute (&quot;fixed&quot;) or # The maximum number (or percentage) of VMs per zone to disrupt at any given
1441 # moment. The number of VMs calculated from multiplying the percentage by the
1442 # total number of VMs in a zone is rounded up.
1443 #
1444 # During patching, a VM is considered disrupted from the time the agent is
1445 # notified to begin until patching has completed. This disruption time
1446 # includes the time to complete reboot and any post-patch steps.
1447 #
1448 # A VM contributes to the disruption budget if its patching operation fails
1449 # either when applying the patches, running pre or post patch steps, or if it
1450 # fails to respond with a success notification before timing out. VMs that
1451 # are not running or do not have an active agent do not count toward this
1452 # disruption budget.
1453 #
1454 # For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
1455 # the patch job stops, because continuing to the next zone requires
1456 # completion of the patch process in the previous zone.
1457 #
1458 # For example, if the disruption budget has a fixed value of `10`, and 8 VMs
1459 # fail to patch in the current zone, the patch job continues to patch 2 VMs
1460 # at a time until the zone is completed. When that zone is completed
1461 # successfully, patching begins with 10 VMs at a time in the next zone. If 10
1462 # VMs in the next zone fail to patch, the patch job stops.
1463 # relative (&quot;percent&quot;) to a value.
1464 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be
1465 # multiplied by a reference value.
1466 &quot;fixed&quot;: 42, # Specifies a fixed value.
1467 },
1468 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001469 },
1470 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited
1471 # to 1024 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001472 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the
1473 # patch job times out.
1474 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the
1475 # failure.
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of
1477 # 0.0 being no progress to 100.0 being complete.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001478 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
1479 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
1480 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has
1481 # finished without running any updates on the VM instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001482 },
1483 ],
1484 &quot;nextPageToken&quot;: &quot;A String&quot;, # A pagination token that can be used to get the next page of results.
1485 }</pre>
1486</div>
1487
1488<div class="method">
1489 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1490 <pre>Retrieves the next page of results.
1491
1492Args:
1493 previous_request: The request for the previous page. (required)
1494 previous_response: The response from the request for the previous page. (required)
1495
1496Returns:
1497 A request object that you can call &#x27;execute()&#x27; on to request the next
1498 page. Returns None if there are no more items in the collection.
1499 </pre>
1500</div>
1501
1502</body></html>