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