blob: 75b5911ad87d9ef93379be6fe445a6af473bf34d [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).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700107 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
108 # patch(es) to a VM instance.
109 &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
110 # rules.
111 # can be set to control how this is executed.
112 #
113 # Note that not all settings are supported on all platforms.
114 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
115 # using the yum `--exclude` flag.
116 &quot;A String&quot;,
117 ],
118 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
119 # that will be updated. If these packages are not installed, they will be
120 # ignored. This field must not be specified with any other patch
121 # configuration fields.
122 &quot;A String&quot;,
123 ],
124 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
125 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
126 # all platforms.
127 },
128 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
129 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
130 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
131 # specified the script will be executed directly, which will likely
132 # only succeed for scripts with [shebang lines]
133 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
134 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
135 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
136 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
137 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
138 # ensure that the ExecStep specified by this PatchJob does not change.
139 },
140 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
141 # execution can return to indicate a success.
142 42,
143 ],
144 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
145 },
146 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
147 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
148 # specified the script will be executed directly, which will likely
149 # only succeed for scripts with [shebang lines]
150 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
151 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
152 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
153 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
154 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
155 # ensure that the ExecStep specified by this PatchJob does not change.
156 },
157 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
158 # execution can return to indicate a success.
159 42,
160 ],
161 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
162 },
163 },
164 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
165 # rules.
166 },
167 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
168 &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
169 # rules.
170 # upgrade`. Additional options can be set to control how this is executed.
171 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
172 # that will be updated. If these packages are not installed, they will be
173 # ignored. This field cannot be specified with any other patch configuration
174 # fields.
175 &quot;A String&quot;,
176 ],
177 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
178 # using `apt-get dist-upgrade` instead.
179 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
180 &quot;A String&quot;,
181 ],
182 },
183 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
184 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
185 # that will be updated. This field must not be used with other
186 # patch configurations.
187 &quot;A String&quot;,
188 ],
189 &quot;excludes&quot;: [ # List of KBs to exclude from update.
190 &quot;A String&quot;,
191 ],
192 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
193 # updates are applied.
194 &quot;A String&quot;,
195 ],
196 },
197 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
198 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
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 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
204 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
205 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
206 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
207 # ensure that the ExecStep specified by this PatchJob does not change.
208 },
209 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
210 # execution can return to indicate a success.
211 42,
212 ],
213 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
214 },
215 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
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 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
221 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
222 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
223 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
224 # ensure that the ExecStep specified by this PatchJob does not change.
225 },
226 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
227 # execution can return to indicate a success.
228 42,
229 ],
230 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
231 },
232 },
233 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
234 # patch rules.
235 # See also https://en.opensuse.org/SDB:Zypper_manual.
236 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
237 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
238 # This field must not be used with any other patch configuration fields.
239 &quot;A String&quot;,
240 ],
241 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
242 &quot;excludes&quot;: [ # List of patches to exclude from update.
243 &quot;A String&quot;,
244 ],
245 &quot;severities&quot;: [ # Install only patches with these severities.
246 # Common severities include critical, important, moderate, and low.
247 &quot;A String&quot;,
248 ],
249 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
250 &quot;categories&quot;: [ # Install only patches with these categories.
251 # Common categories include security, recommended, and feature.
252 &quot;A String&quot;,
253 ],
254 },
255 },
256 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment.
257 # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
258 # format.
259 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
260 # VMs must meet all criteria specified. So if both labels and zones are
261 # specified, the patch job targets only VMs with those labels and in those
262 # zones.
263 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
264 # permitted.
265 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
266 # instances in any zone.
267 &quot;A String&quot;,
268 ],
269 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
270 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
271 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
272 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
273 &quot;A String&quot;,
274 ],
275 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
276 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
277 { # Represents a group of VMs that can be identified as having all these
278 # labels, for example &quot;env=prod and app=web&quot;.
279 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to
280 # be targeted by this filter.
281 &quot;a_key&quot;: &quot;A String&quot;,
282 },
283 },
284 ],
285 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
286 # labels, this is another way to group VMs when targeting configs, for
287 # example prefix=&quot;prod-&quot;.
288 &quot;A String&quot;,
289 ],
290 },
291 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer
294 # active.
295 &quot;timeZone&quot;: { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to.
296 # The rules for daylight saving time are determined by the chosen time zone.
297 # [IANA Time Zone Database](https://www.iana.org/time-zones).
298 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
299 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
300 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700301 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
Bu Sun Kim65020912020-05-20 12:08:20 -0700302 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700303 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
304 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
305 },
306 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
308 # &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;.
309 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
310 # indicates the last day of the month.
311 # Months without the target day will be skipped. For example, a schedule to
312 # run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700313 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
314 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
315 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
316 # indicates the last week of the month.
317 },
318 },
319 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective.
320 # Defaults to `create_time` of the patch deployment.
321 &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.
322 # or are specified elsewhere. An API may choose to allow leap seconds. Related
323 # types are google.type.Date and `google.protobuf.Timestamp`.
324 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
325 # allow the value 60 if it allows leap-seconds.
326 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
327 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
328 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
329 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 },
331 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700332 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited
333 # to 1024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
335 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
336 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
337 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700338 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch
339 # deployment name is in the form:
340 # `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
341 # This field is ignored when you create a new patch deployment.
342 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in
343 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
344 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in
345 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
346 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the # Optional. Rollout strategy of the patch job.
347 # concurrency control when applying patch(es) to all targeted VMs.
348 &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
349 # moment. The number of VMs calculated from multiplying the percentage by the
350 # total number of VMs in a zone is rounded up.
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700352 # During patching, a VM is considered disrupted from the time the agent is
353 # notified to begin until patching has completed. This disruption time
354 # includes the time to complete reboot and any post-patch steps.
355 #
356 # A VM contributes to the disruption budget if its patching operation fails
357 # either when applying the patches, running pre or post patch steps, or if it
358 # fails to respond with a success notification before timing out. VMs that
359 # are not running or do not have an active agent do not count toward this
360 # disruption budget.
361 #
362 # For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
363 # the patch job stops, because continuing to the next zone requires
364 # completion of the patch process in the previous zone.
365 #
366 # For example, if the disruption budget has a fixed value of `10`, and 8 VMs
367 # fail to patch in the current zone, the patch job continues to patch 2 VMs
368 # at a time until the zone is completed. When that zone is completed
369 # successfully, patching begins with 10 VMs at a time in the next zone. If 10
370 # VMs in the next zone fail to patch, the patch job stops.
371 # relative (&quot;percent&quot;) to a value.
372 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be
373 # multiplied by a reference value.
374 &quot;fixed&quot;: 42, # Specifies a fixed value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700375 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700376 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700378}
379
380 patchDeploymentId: string, Required. A name for the patch deployment in the project. When creating a name
381the following rules apply:
382* Must contain only lowercase letters, numbers, and hyphens.
383* Must start with a letter.
384* Must be between 1-63 characters.
385* Must end with a number or a letter.
386* Must be unique within the project.
387 x__xgafv: string, V1 error format.
388 Allowed values
389 1 - v1 error format
390 2 - v2 error format
391
392Returns:
393 An object of the form:
394
395 { # Patch deployments are configurations that individual patch jobs use to
396 # complete a patch. These configurations include instance filter, package
397 # repository settings, and a schedule. For more information about creating and
398 # managing patch deployments, see [Scheduling patch
399 # jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700400 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
401 # patch(es) to a VM instance.
402 &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
403 # rules.
404 # can be set to control how this is executed.
405 #
406 # Note that not all settings are supported on all platforms.
407 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
408 # using the yum `--exclude` flag.
409 &quot;A String&quot;,
410 ],
411 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
412 # that will be updated. If these packages are not installed, they will be
413 # ignored. This field must not be specified with any other patch
414 # configuration fields.
415 &quot;A String&quot;,
416 ],
417 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
418 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
419 # all platforms.
420 },
421 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
422 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
423 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
424 # specified the script will be executed directly, which will likely
425 # only succeed for scripts with [shebang lines]
426 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
427 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
428 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
429 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
430 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
431 # ensure that the ExecStep specified by this PatchJob does not change.
432 },
433 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
434 # execution can return to indicate a success.
435 42,
436 ],
437 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
438 },
439 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
440 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
441 # specified the script will be executed directly, which will likely
442 # only succeed for scripts with [shebang lines]
443 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
444 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
445 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
446 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
447 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
448 # ensure that the ExecStep specified by this PatchJob does not change.
449 },
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;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
455 },
456 },
457 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
458 # rules.
459 },
460 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
461 &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
462 # rules.
463 # upgrade`. Additional options can be set to control how this is executed.
464 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
465 # that will be updated. If these packages are not installed, they will be
466 # ignored. This field cannot be specified with any other patch configuration
467 # fields.
468 &quot;A String&quot;,
469 ],
470 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
471 # using `apt-get dist-upgrade` instead.
472 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
473 &quot;A String&quot;,
474 ],
475 },
476 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
477 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
478 # that will be updated. This field must not be used with other
479 # patch configurations.
480 &quot;A String&quot;,
481 ],
482 &quot;excludes&quot;: [ # List of KBs to exclude from update.
483 &quot;A String&quot;,
484 ],
485 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
486 # updates are applied.
487 &quot;A String&quot;,
488 ],
489 },
490 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
491 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
492 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
493 # specified the script will be executed directly, which will likely
494 # only succeed for scripts with [shebang lines]
495 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
496 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
497 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
498 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
499 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
500 # ensure that the ExecStep specified by this PatchJob does not change.
501 },
502 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
503 # execution can return to indicate a success.
504 42,
505 ],
506 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
507 },
508 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
509 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
510 # specified the script will be executed directly, which will likely
511 # only succeed for scripts with [shebang lines]
512 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
513 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
514 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
515 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
516 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
517 # ensure that the ExecStep specified by this PatchJob does not change.
518 },
519 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
520 # execution can return to indicate a success.
521 42,
522 ],
523 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
524 },
525 },
526 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
527 # patch rules.
528 # See also https://en.opensuse.org/SDB:Zypper_manual.
529 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
530 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
531 # This field must not be used with any other patch configuration fields.
532 &quot;A String&quot;,
533 ],
534 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
535 &quot;excludes&quot;: [ # List of patches to exclude from update.
536 &quot;A String&quot;,
537 ],
538 &quot;severities&quot;: [ # Install only patches with these severities.
539 # Common severities include critical, important, moderate, and low.
540 &quot;A String&quot;,
541 ],
542 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
543 &quot;categories&quot;: [ # Install only patches with these categories.
544 # Common categories include security, recommended, and feature.
545 &quot;A String&quot;,
546 ],
547 },
548 },
549 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment.
550 # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
551 # format.
552 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
553 # VMs must meet all criteria specified. So if both labels and zones are
554 # specified, the patch job targets only VMs with those labels and in those
555 # zones.
556 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
557 # permitted.
558 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
559 # instances in any zone.
560 &quot;A String&quot;,
561 ],
562 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
563 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
564 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
565 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
566 &quot;A String&quot;,
567 ],
568 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
569 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
570 { # Represents a group of VMs that can be identified as having all these
571 # labels, for example &quot;env=prod and app=web&quot;.
572 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to
573 # be targeted by this filter.
574 &quot;a_key&quot;: &quot;A String&quot;,
575 },
576 },
577 ],
578 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
579 # labels, this is another way to group VMs when targeting configs, for
580 # example prefix=&quot;prod-&quot;.
581 &quot;A String&quot;,
582 ],
583 },
584 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
Bu Sun Kim65020912020-05-20 12:08:20 -0700585 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer
587 # active.
588 &quot;timeZone&quot;: { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to.
589 # The rules for daylight saving time are determined by the chosen time zone.
590 # [IANA Time Zone Database](https://www.iana.org/time-zones).
591 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
592 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
593 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700594 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
Bu Sun Kim65020912020-05-20 12:08:20 -0700595 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700596 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
597 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
598 },
599 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
Bu Sun Kim65020912020-05-20 12:08:20 -0700600 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
601 # &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;.
602 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
603 # indicates the last day of the month.
604 # Months without the target day will be skipped. For example, a schedule to
605 # run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700606 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
607 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
608 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
609 # indicates the last week of the month.
610 },
611 },
612 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective.
613 # Defaults to `create_time` of the patch deployment.
614 &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.
615 # or are specified elsewhere. An API may choose to allow leap seconds. Related
616 # types are google.type.Date and `google.protobuf.Timestamp`.
617 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
618 # allow the value 60 if it allows leap-seconds.
619 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
620 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
621 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
622 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700623 },
624 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700625 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited
626 # to 1024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700627 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
628 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
629 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
630 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700631 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch
632 # deployment name is in the form:
633 # `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
634 # This field is ignored when you create a new patch deployment.
635 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in
636 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
637 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in
638 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
639 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the # Optional. Rollout strategy of the patch job.
640 # concurrency control when applying patch(es) to all targeted VMs.
641 &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
642 # moment. The number of VMs calculated from multiplying the percentage by the
643 # total number of VMs in a zone is rounded up.
Bu Sun Kim65020912020-05-20 12:08:20 -0700644 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700645 # During patching, a VM is considered disrupted from the time the agent is
646 # notified to begin until patching has completed. This disruption time
647 # includes the time to complete reboot and any post-patch steps.
648 #
649 # A VM contributes to the disruption budget if its patching operation fails
650 # either when applying the patches, running pre or post patch steps, or if it
651 # fails to respond with a success notification before timing out. VMs that
652 # are not running or do not have an active agent do not count toward this
653 # disruption budget.
654 #
655 # For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
656 # the patch job stops, because continuing to the next zone requires
657 # completion of the patch process in the previous zone.
658 #
659 # For example, if the disruption budget has a fixed value of `10`, and 8 VMs
660 # fail to patch in the current zone, the patch job continues to patch 2 VMs
661 # at a time until the zone is completed. When that zone is completed
662 # successfully, patching begins with 10 VMs at a time in the next zone. If 10
663 # VMs in the next zone fail to patch, the patch job stops.
664 # relative (&quot;percent&quot;) to a value.
665 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be
666 # multiplied by a reference value.
667 &quot;fixed&quot;: 42, # Specifies a fixed value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700668 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700669 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kim65020912020-05-20 12:08:20 -0700670 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700671 }</pre>
672</div>
673
674<div class="method">
675 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
676 <pre>Delete an OS Config patch deployment.
677
678Args:
679 name: string, Required. The resource name of the patch deployment in the form
680`projects/*/patchDeployments/*`. (required)
681 x__xgafv: string, V1 error format.
682 Allowed values
683 1 - v1 error format
684 2 - v2 error format
685
686Returns:
687 An object of the form:
688
689 { # A generic empty message that you can re-use to avoid defining duplicated
690 # empty messages in your APIs. A typical example is to use it as the request
691 # or the response type of an API method. For instance:
692 #
693 # service Foo {
694 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
695 # }
696 #
697 # The JSON representation for `Empty` is empty JSON object `{}`.
698 }</pre>
699</div>
700
701<div class="method">
702 <code class="details" id="get">get(name, x__xgafv=None)</code>
703 <pre>Get an OS Config patch deployment.
704
705Args:
706 name: string, Required. The resource name of the patch deployment in the form
707`projects/*/patchDeployments/*`. (required)
708 x__xgafv: string, V1 error format.
709 Allowed values
710 1 - v1 error format
711 2 - v2 error format
712
713Returns:
714 An object of the form:
715
716 { # Patch deployments are configurations that individual patch jobs use to
717 # complete a patch. These configurations include instance filter, package
718 # repository settings, and a schedule. For more information about creating and
719 # managing patch deployments, see [Scheduling patch
720 # jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700721 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
722 # patch(es) to a VM instance.
723 &quot;yum&quot;: { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch
724 # rules.
725 # can be set to control how this is executed.
726 #
727 # Note that not all settings are supported on all platforms.
728 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
729 # using the yum `--exclude` flag.
730 &quot;A String&quot;,
731 ],
732 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
733 # that will be updated. If these packages are not installed, they will be
734 # ignored. This field must not be specified with any other patch
735 # configuration fields.
736 &quot;A String&quot;,
737 ],
738 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
739 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
740 # all platforms.
741 },
742 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
743 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
744 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
745 # specified the script will be executed directly, which will likely
746 # only succeed for scripts with [shebang lines]
747 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
748 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
749 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
750 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
751 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
752 # ensure that the ExecStep specified by this PatchJob does not change.
753 },
754 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
755 # execution can return to indicate a success.
756 42,
757 ],
758 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
759 },
760 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
761 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
762 # specified the script will be executed directly, which will likely
763 # only succeed for scripts with [shebang lines]
764 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
765 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
766 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
767 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
768 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
769 # ensure that the ExecStep specified by this PatchJob does not change.
770 },
771 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
772 # execution can return to indicate a success.
773 42,
774 ],
775 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
776 },
777 },
778 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
779 # rules.
780 },
781 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
782 &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
783 # rules.
784 # upgrade`. Additional options can be set to control how this is executed.
785 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
786 # that will be updated. If these packages are not installed, they will be
787 # ignored. This field cannot be specified with any other patch configuration
788 # fields.
789 &quot;A String&quot;,
790 ],
791 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
792 # using `apt-get dist-upgrade` instead.
793 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
794 &quot;A String&quot;,
795 ],
796 },
797 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
798 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
799 # that will be updated. This field must not be used with other
800 # patch configurations.
801 &quot;A String&quot;,
802 ],
803 &quot;excludes&quot;: [ # List of KBs to exclude from update.
804 &quot;A String&quot;,
805 ],
806 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
807 # updates are applied.
808 &quot;A String&quot;,
809 ],
810 },
811 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
812 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
813 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
814 # specified the script will be executed directly, which will likely
815 # only succeed for scripts with [shebang lines]
816 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
817 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
818 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
819 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
820 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
821 # ensure that the ExecStep specified by this PatchJob does not change.
822 },
823 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
824 # execution can return to indicate a success.
825 42,
826 ],
827 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
828 },
829 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
830 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
831 # specified the script will be executed directly, which will likely
832 # only succeed for scripts with [shebang lines]
833 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
834 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
835 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
836 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
837 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
838 # ensure that the ExecStep specified by this PatchJob does not change.
839 },
840 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
841 # execution can return to indicate a success.
842 42,
843 ],
844 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
845 },
846 },
847 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
848 # patch rules.
849 # See also https://en.opensuse.org/SDB:Zypper_manual.
850 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
851 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
852 # This field must not be used with any other patch configuration fields.
853 &quot;A String&quot;,
854 ],
855 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
856 &quot;excludes&quot;: [ # List of patches to exclude from update.
857 &quot;A String&quot;,
858 ],
859 &quot;severities&quot;: [ # Install only patches with these severities.
860 # Common severities include critical, important, moderate, and low.
861 &quot;A String&quot;,
862 ],
863 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
864 &quot;categories&quot;: [ # Install only patches with these categories.
865 # Common categories include security, recommended, and feature.
866 &quot;A String&quot;,
867 ],
868 },
869 },
870 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment.
871 # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
872 # format.
873 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
874 # VMs must meet all criteria specified. So if both labels and zones are
875 # specified, the patch job targets only VMs with those labels and in those
876 # zones.
877 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
878 # permitted.
879 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
880 # instances in any zone.
881 &quot;A String&quot;,
882 ],
883 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
884 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
885 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
886 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
887 &quot;A String&quot;,
888 ],
889 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
890 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
891 { # Represents a group of VMs that can be identified as having all these
892 # labels, for example &quot;env=prod and app=web&quot;.
893 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to
894 # be targeted by this filter.
895 &quot;a_key&quot;: &quot;A String&quot;,
896 },
897 },
898 ],
899 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
900 # labels, this is another way to group VMs when targeting configs, for
901 # example prefix=&quot;prod-&quot;.
902 &quot;A String&quot;,
903 ],
904 },
905 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
Bu Sun Kim65020912020-05-20 12:08:20 -0700906 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700907 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer
908 # active.
909 &quot;timeZone&quot;: { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to.
910 # The rules for daylight saving time are determined by the chosen time zone.
911 # [IANA Time Zone Database](https://www.iana.org/time-zones).
912 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
913 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
914 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700915 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
Bu Sun Kim65020912020-05-20 12:08:20 -0700916 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700917 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
918 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
919 },
920 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
Bu Sun Kim65020912020-05-20 12:08:20 -0700921 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
922 # &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;.
923 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
924 # indicates the last day of the month.
925 # Months without the target day will be skipped. For example, a schedule to
926 # run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700927 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
928 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
929 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
930 # indicates the last week of the month.
931 },
932 },
933 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective.
934 # Defaults to `create_time` of the patch deployment.
935 &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.
936 # or are specified elsewhere. An API may choose to allow leap seconds. Related
937 # types are google.type.Date and `google.protobuf.Timestamp`.
938 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
939 # allow the value 60 if it allows leap-seconds.
940 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
941 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
942 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
943 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 },
945 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700946 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited
947 # to 1024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700948 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
949 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
950 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
951 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700952 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch
953 # deployment name is in the form:
954 # `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
955 # This field is ignored when you create a new patch deployment.
956 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in
957 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
958 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in
959 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
960 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the # Optional. Rollout strategy of the patch job.
961 # concurrency control when applying patch(es) to all targeted VMs.
962 &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
963 # moment. The number of VMs calculated from multiplying the percentage by the
964 # total number of VMs in a zone is rounded up.
Bu Sun Kim65020912020-05-20 12:08:20 -0700965 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700966 # During patching, a VM is considered disrupted from the time the agent is
967 # notified to begin until patching has completed. This disruption time
968 # includes the time to complete reboot and any post-patch steps.
969 #
970 # A VM contributes to the disruption budget if its patching operation fails
971 # either when applying the patches, running pre or post patch steps, or if it
972 # fails to respond with a success notification before timing out. VMs that
973 # are not running or do not have an active agent do not count toward this
974 # disruption budget.
975 #
976 # For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
977 # the patch job stops, because continuing to the next zone requires
978 # completion of the patch process in the previous zone.
979 #
980 # For example, if the disruption budget has a fixed value of `10`, and 8 VMs
981 # fail to patch in the current zone, the patch job continues to patch 2 VMs
982 # at a time until the zone is completed. When that zone is completed
983 # successfully, patching begins with 10 VMs at a time in the next zone. If 10
984 # VMs in the next zone fail to patch, the patch job stops.
985 # relative (&quot;percent&quot;) to a value.
986 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be
987 # multiplied by a reference value.
988 &quot;fixed&quot;: 42, # Specifies a fixed value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700989 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700990 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kim65020912020-05-20 12:08:20 -0700991 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700992 }</pre>
993</div>
994
995<div class="method">
996 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
997 <pre>Get a page of OS Config patch deployments.
998
999Args:
1000 parent: string, Required. The resource name of the parent in the form `projects/*`. (required)
1001 pageToken: string, Optional. A pagination token returned from a previous call to ListPatchDeployments
1002that indicates where this listing should continue from.
1003 pageSize: integer, Optional. The maximum number of patch deployments to return. Default is 100.
1004 x__xgafv: string, V1 error format.
1005 Allowed values
1006 1 - v1 error format
1007 2 - v2 error format
1008
1009Returns:
1010 An object of the form:
1011
1012 { # A response message for listing patch deployments.
1013 &quot;nextPageToken&quot;: &quot;A String&quot;, # A pagination token that can be used to get the next page of patch
1014 # deployments.
1015 &quot;patchDeployments&quot;: [ # The list of patch deployments.
1016 { # Patch deployments are configurations that individual patch jobs use to
1017 # complete a patch. These configurations include instance filter, package
1018 # repository settings, and a schedule. For more information about creating and
1019 # managing patch deployments, see [Scheduling patch
1020 # jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001021 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
1022 # patch(es) to a VM instance.
1023 &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
1024 # rules.
1025 # can be set to control how this is executed.
1026 #
1027 # Note that not all settings are supported on all platforms.
1028 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
1029 # using the yum `--exclude` flag.
1030 &quot;A String&quot;,
1031 ],
1032 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1033 # that will be updated. If these packages are not installed, they will be
1034 # ignored. This field must not be specified with any other patch
1035 # configuration fields.
1036 &quot;A String&quot;,
1037 ],
1038 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
1039 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
1040 # all platforms.
1041 },
1042 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
1043 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
1044 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1045 # specified the script will be executed directly, which will likely
1046 # only succeed for scripts with [shebang lines]
1047 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1048 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1049 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1050 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1051 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1052 # ensure that the ExecStep specified by this PatchJob does not change.
1053 },
1054 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1055 # execution can return to indicate a success.
1056 42,
1057 ],
1058 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1059 },
1060 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
1061 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1062 # specified the script will be executed directly, which will likely
1063 # only succeed for scripts with [shebang lines]
1064 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1065 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1066 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1067 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1068 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1069 # ensure that the ExecStep specified by this PatchJob does not change.
1070 },
1071 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1072 # execution can return to indicate a success.
1073 42,
1074 ],
1075 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1076 },
1077 },
1078 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
1079 # rules.
1080 },
1081 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
1082 &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
1083 # rules.
1084 # upgrade`. Additional options can be set to control how this is executed.
1085 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1086 # that will be updated. If these packages are not installed, they will be
1087 # ignored. This field cannot be specified with any other patch configuration
1088 # fields.
1089 &quot;A String&quot;,
1090 ],
1091 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
1092 # using `apt-get dist-upgrade` instead.
1093 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
1094 &quot;A String&quot;,
1095 ],
1096 },
1097 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
1098 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
1099 # that will be updated. This field must not be used with other
1100 # patch configurations.
1101 &quot;A String&quot;,
1102 ],
1103 &quot;excludes&quot;: [ # List of KBs to exclude from update.
1104 &quot;A String&quot;,
1105 ],
1106 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
1107 # updates are applied.
1108 &quot;A String&quot;,
1109 ],
1110 },
1111 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
1112 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
1113 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1114 # specified the script will be executed directly, which will likely
1115 # only succeed for scripts with [shebang lines]
1116 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1117 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1118 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1119 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1120 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1121 # ensure that the ExecStep specified by this PatchJob does not change.
1122 },
1123 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1124 # execution can return to indicate a success.
1125 42,
1126 ],
1127 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1128 },
1129 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
1130 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1131 # specified the script will be executed directly, which will likely
1132 # only succeed for scripts with [shebang lines]
1133 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1134 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1135 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1136 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1137 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1138 # ensure that the ExecStep specified by this PatchJob does not change.
1139 },
1140 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1141 # execution can return to indicate a success.
1142 42,
1143 ],
1144 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1145 },
1146 },
1147 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
1148 # patch rules.
1149 # See also https://en.opensuse.org/SDB:Zypper_manual.
1150 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
1151 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
1152 # This field must not be used with any other patch configuration fields.
1153 &quot;A String&quot;,
1154 ],
1155 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
1156 &quot;excludes&quot;: [ # List of patches to exclude from update.
1157 &quot;A String&quot;,
1158 ],
1159 &quot;severities&quot;: [ # Install only patches with these severities.
1160 # Common severities include critical, important, moderate, and low.
1161 &quot;A String&quot;,
1162 ],
1163 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
1164 &quot;categories&quot;: [ # Install only patches with these categories.
1165 # Common categories include security, recommended, and feature.
1166 &quot;A String&quot;,
1167 ],
1168 },
1169 },
1170 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment.
1171 # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
1172 # format.
1173 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
1174 # VMs must meet all criteria specified. So if both labels and zones are
1175 # specified, the patch job targets only VMs with those labels and in those
1176 # zones.
1177 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
1178 # permitted.
1179 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
1180 # instances in any zone.
1181 &quot;A String&quot;,
1182 ],
1183 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
1184 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
1185 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
1186 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
1187 &quot;A String&quot;,
1188 ],
1189 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
1190 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
1191 { # Represents a group of VMs that can be identified as having all these
1192 # labels, for example &quot;env=prod and app=web&quot;.
1193 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to
1194 # be targeted by this filter.
1195 &quot;a_key&quot;: &quot;A String&quot;,
1196 },
1197 },
1198 ],
1199 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
1200 # labels, this is another way to group VMs when targeting configs, for
1201 # example prefix=&quot;prod-&quot;.
1202 &quot;A String&quot;,
1203 ],
1204 },
1205 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
Bu Sun Kim65020912020-05-20 12:08:20 -07001206 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001207 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer
1208 # active.
1209 &quot;timeZone&quot;: { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to.
1210 # The rules for daylight saving time are determined by the chosen time zone.
1211 # [IANA Time Zone Database](https://www.iana.org/time-zones).
1212 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
1213 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
1214 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001215 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
Bu Sun Kim65020912020-05-20 12:08:20 -07001216 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001217 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
1218 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
1219 },
1220 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
Bu Sun Kim65020912020-05-20 12:08:20 -07001221 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
1222 # &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;.
1223 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
1224 # indicates the last day of the month.
1225 # Months without the target day will be skipped. For example, a schedule to
1226 # run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001227 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
1228 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
1229 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
1230 # indicates the last week of the month.
1231 },
1232 },
1233 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective.
1234 # Defaults to `create_time` of the patch deployment.
1235 &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.
1236 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1237 # types are google.type.Date and `google.protobuf.Timestamp`.
1238 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1239 # allow the value 60 if it allows leap-seconds.
1240 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1241 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1242 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1243 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001244 },
1245 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001246 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited
1247 # to 1024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001248 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
1249 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1250 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
1251 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001252 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch
1253 # deployment name is in the form:
1254 # `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
1255 # This field is ignored when you create a new patch deployment.
1256 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in
1257 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1258 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in
1259 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1260 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the # Optional. Rollout strategy of the patch job.
1261 # concurrency control when applying patch(es) to all targeted VMs.
1262 &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
1263 # moment. The number of VMs calculated from multiplying the percentage by the
1264 # total number of VMs in a zone is rounded up.
Bu Sun Kim65020912020-05-20 12:08:20 -07001265 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001266 # During patching, a VM is considered disrupted from the time the agent is
1267 # notified to begin until patching has completed. This disruption time
1268 # includes the time to complete reboot and any post-patch steps.
1269 #
1270 # A VM contributes to the disruption budget if its patching operation fails
1271 # either when applying the patches, running pre or post patch steps, or if it
1272 # fails to respond with a success notification before timing out. VMs that
1273 # are not running or do not have an active agent do not count toward this
1274 # disruption budget.
1275 #
1276 # For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
1277 # the patch job stops, because continuing to the next zone requires
1278 # completion of the patch process in the previous zone.
1279 #
1280 # For example, if the disruption budget has a fixed value of `10`, and 8 VMs
1281 # fail to patch in the current zone, the patch job continues to patch 2 VMs
1282 # at a time until the zone is completed. When that zone is completed
1283 # successfully, patching begins with 10 VMs at a time in the next zone. If 10
1284 # VMs in the next zone fail to patch, the patch job stops.
1285 # relative (&quot;percent&quot;) to a value.
1286 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be
1287 # multiplied by a reference value.
1288 &quot;fixed&quot;: 42, # Specifies a fixed value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001289 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001290 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001291 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001292 },
1293 ],
1294 }</pre>
1295</div>
1296
1297<div class="method">
1298 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1299 <pre>Retrieves the next page of results.
1300
1301Args:
1302 previous_request: The request for the previous page. (required)
1303 previous_response: The response from the request for the previous page. (required)
1304
1305Returns:
1306 A request object that you can call &#x27;execute()&#x27; on to request the next
1307 page. Returns None if there are no more items in the collection.
1308 </pre>
1309</div>
1310
1311</body></html>