blob: da4c8b5978c633c79a9547d0964a9e4e04cee43d [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 Kim4ed7d3f2020-05-27 12:20:54 -0700107 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited
108 # to 1024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700109 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in
110 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
111 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in
112 # [RFC3339](&quot;https://www.ietf.org/rfc/rfc3339.txt) text format.
113 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch
114 # deployment name is in the form:
115 # `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
116 # This field is ignored when you create a new patch deployment.
117 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
118 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
119 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
120 },
121 &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.
122 # or are specified elsewhere. An API may choose to allow leap seconds. Related
123 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
125 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
126 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700127 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
128 # allow the value 60 if it allows leap-seconds.
129 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 },
131 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
132 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
133 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer
134 # active.
135 &quot;timeZone&quot;: { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to.
136 # The rules for daylight saving time are determined by the chosen time zone.
137 # [IANA Time Zone Database](https://www.iana.org/time-zones).
138 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
139 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
140 },
141 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
142 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective.
143 # Defaults to `create_time` of the patch deployment.
144 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
145 # &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700146 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
147 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
148 # indicates the last week of the month.
149 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
150 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
152 # indicates the last day of the month.
153 # Months without the target day will be skipped. For example, a schedule to
154 # run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 },
156 },
157 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
158 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
159 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
160 },
161 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment.
162 # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
163 # format.
164 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
165 # patch(es) to a VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700166 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
167 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
168 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
169 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
170 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
171 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
172 # ensure that the ExecStep specified by this PatchJob does not change.
173 },
174 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
175 # specified the script will be executed directly, which will likely
176 # only succeed for scripts with [shebang lines]
177 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
178 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
179 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
180 # execution can return to indicate a success.
181 42,
182 ],
183 },
184 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
185 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
186 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
187 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
188 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
189 # ensure that the ExecStep specified by this PatchJob does not change.
190 },
191 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
192 # specified the script will be executed directly, which will likely
193 # only succeed for scripts with [shebang lines]
194 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
195 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
196 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
197 # execution can return to indicate a success.
198 42,
199 ],
200 },
201 },
202 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
203 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
204 # updates are applied.
205 &quot;A String&quot;,
206 ],
207 &quot;excludes&quot;: [ # List of KBs to exclude from update.
208 &quot;A String&quot;,
209 ],
210 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
211 # that will be updated. This field must not be used with other
212 # patch configurations.
213 &quot;A String&quot;,
214 ],
215 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
217 # patch rules.
218 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
220 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
221 &quot;severities&quot;: [ # Install only patches with these severities.
222 # Common severities include critical, important, moderate, and low.
223 &quot;A String&quot;,
224 ],
225 &quot;categories&quot;: [ # Install only patches with these categories.
226 # Common categories include security, recommended, and feature.
227 &quot;A String&quot;,
228 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700229 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
230 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
231 # This field must not be used with any other patch configuration fields.
232 &quot;A String&quot;,
233 ],
234 &quot;excludes&quot;: [ # List of patches to exclude from update.
235 &quot;A String&quot;,
236 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 },
238 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
239 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
242 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700243 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
244 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 },
246 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
247 # specified the script will be executed directly, which will likely
248 # only succeed for scripts with [shebang lines]
249 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700250 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
251 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
252 # execution can return to indicate a success.
253 42,
254 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 },
256 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
259 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700260 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
261 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 },
263 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
264 # specified the script will be executed directly, which will likely
265 # only succeed for scripts with [shebang lines]
266 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700267 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
268 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
269 # execution can return to indicate a success.
270 42,
271 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 },
273 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 &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
275 # rules.
276 # can be set to control how this is executed.
277 #
278 # Note that not all settings are supported on all platforms.
Bu Sun Kim65020912020-05-20 12:08:20 -0700279 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
280 # that will be updated. If these packages are not installed, they will be
281 # ignored. This field must not be specified with any other patch
282 # configuration fields.
283 &quot;A String&quot;,
284 ],
285 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
286 # all platforms.
287 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700288 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
289 # using the yum `--exclude` flag.
290 &quot;A String&quot;,
291 ],
292 },
293 &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
294 # rules.
295 # upgrade`. Additional options can be set to control how this is executed.
296 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
297 # using `apt-get dist-upgrade` instead.
298 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
299 &quot;A String&quot;,
300 ],
301 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
302 # that will be updated. If these packages are not installed, they will be
303 # ignored. This field cannot be specified with any other patch configuration
304 # fields.
305 &quot;A String&quot;,
306 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 },
308 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
309 # rules.
310 },
311 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 },
313 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
314 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
315 # VMs must meet all criteria specified. So if both labels and zones are
316 # specified, the patch job targets only VMs with those labels and in those
317 # zones.
318 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
319 # instances in any zone.
320 &quot;A String&quot;,
321 ],
322 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
323 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
324 { # Represents a group of VMs that can be identified as having all these
325 # labels, for example &quot;env=prod and app=web&quot;.
326 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
327 # instance to be targeted by this filter.
328 &quot;a_key&quot;: &quot;A String&quot;,
329 },
330 },
331 ],
332 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
333 # permitted.
334 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
335 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
336 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
337 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
338 &quot;A String&quot;,
339 ],
340 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
341 # labels, this is another way to group VMs when targeting configs, for
342 # example prefix=&quot;prod-&quot;.
343 &quot;A String&quot;,
344 ],
345 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700346}
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).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700368 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited
369 # to 1024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700370 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in
371 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
372 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in
373 # [RFC3339](&quot;https://www.ietf.org/rfc/rfc3339.txt) text format.
374 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch
375 # deployment name is in the form:
376 # `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
377 # This field is ignored when you create a new patch deployment.
378 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
379 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
380 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
381 },
382 &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.
383 # or are specified elsewhere. An API may choose to allow leap seconds. Related
384 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
386 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
387 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700388 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
389 # allow the value 60 if it allows leap-seconds.
390 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 },
392 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
393 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
394 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer
395 # active.
396 &quot;timeZone&quot;: { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to.
397 # The rules for daylight saving time are determined by the chosen time zone.
398 # [IANA Time Zone Database](https://www.iana.org/time-zones).
399 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
400 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
401 },
402 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
403 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective.
404 # Defaults to `create_time` of the patch deployment.
405 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
406 # &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700407 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
408 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
409 # indicates the last week of the month.
410 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
411 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700412 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
413 # indicates the last day of the month.
414 # Months without the target day will be skipped. For example, a schedule to
415 # run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 },
417 },
418 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
419 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
420 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
421 },
422 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment.
423 # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
424 # format.
425 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
426 # patch(es) to a VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700427 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
428 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
429 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
430 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
431 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
432 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
433 # ensure that the ExecStep specified by this PatchJob does not change.
434 },
435 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
436 # specified the script will be executed directly, which will likely
437 # only succeed for scripts with [shebang lines]
438 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
439 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
440 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
441 # execution can return to indicate a success.
442 42,
443 ],
444 },
445 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
446 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
447 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
448 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
449 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
450 # ensure that the ExecStep specified by this PatchJob does not change.
451 },
452 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
453 # specified the script will be executed directly, which will likely
454 # only succeed for scripts with [shebang lines]
455 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
456 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
457 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
458 # execution can return to indicate a success.
459 42,
460 ],
461 },
462 },
463 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
464 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
465 # updates are applied.
466 &quot;A String&quot;,
467 ],
468 &quot;excludes&quot;: [ # List of KBs to exclude from update.
469 &quot;A String&quot;,
470 ],
471 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
472 # that will be updated. This field must not be used with other
473 # patch configurations.
474 &quot;A String&quot;,
475 ],
476 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700477 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
478 # patch rules.
479 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
481 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
482 &quot;severities&quot;: [ # Install only patches with these severities.
483 # Common severities include critical, important, moderate, and low.
484 &quot;A String&quot;,
485 ],
486 &quot;categories&quot;: [ # Install only patches with these categories.
487 # Common categories include security, recommended, and feature.
488 &quot;A String&quot;,
489 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700490 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
491 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
492 # This field must not be used with any other patch configuration fields.
493 &quot;A String&quot;,
494 ],
495 &quot;excludes&quot;: [ # List of patches to exclude from update.
496 &quot;A String&quot;,
497 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700498 },
499 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
500 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700502 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
503 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700504 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
505 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700506 },
507 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
508 # specified the script will be executed directly, which will likely
509 # only succeed for scripts with [shebang lines]
510 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700511 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
512 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
513 # execution can return to indicate a success.
514 42,
515 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700516 },
517 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
520 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700521 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
522 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700523 },
524 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
525 # specified the script will be executed directly, which will likely
526 # only succeed for scripts with [shebang lines]
527 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700528 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
529 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
530 # execution can return to indicate a success.
531 42,
532 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 },
534 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 &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
536 # rules.
537 # can be set to control how this is executed.
538 #
539 # Note that not all settings are supported on all platforms.
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
541 # that will be updated. If these packages are not installed, they will be
542 # ignored. This field must not be specified with any other patch
543 # configuration fields.
544 &quot;A String&quot;,
545 ],
546 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
547 # all platforms.
548 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700549 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
550 # using the yum `--exclude` flag.
551 &quot;A String&quot;,
552 ],
553 },
554 &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
555 # rules.
556 # upgrade`. Additional options can be set to control how this is executed.
557 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
558 # using `apt-get dist-upgrade` instead.
559 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
560 &quot;A String&quot;,
561 ],
562 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
563 # that will be updated. If these packages are not installed, they will be
564 # ignored. This field cannot be specified with any other patch configuration
565 # fields.
566 &quot;A String&quot;,
567 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 },
569 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
570 # rules.
571 },
572 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -0700573 },
574 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
575 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
576 # VMs must meet all criteria specified. So if both labels and zones are
577 # specified, the patch job targets only VMs with those labels and in those
578 # zones.
579 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
580 # instances in any zone.
581 &quot;A String&quot;,
582 ],
583 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
584 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
585 { # Represents a group of VMs that can be identified as having all these
586 # labels, for example &quot;env=prod and app=web&quot;.
587 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
588 # instance to be targeted by this filter.
589 &quot;a_key&quot;: &quot;A String&quot;,
590 },
591 },
592 ],
593 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
594 # permitted.
595 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
596 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
597 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
598 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
599 &quot;A String&quot;,
600 ],
601 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
602 # labels, this is another way to group VMs when targeting configs, for
603 # example prefix=&quot;prod-&quot;.
604 &quot;A String&quot;,
605 ],
606 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 }</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).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700657 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited
658 # to 1024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in
660 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
661 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in
662 # [RFC3339](&quot;https://www.ietf.org/rfc/rfc3339.txt) text format.
663 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch
664 # deployment name is in the form:
665 # `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
666 # This field is ignored when you create a new patch deployment.
667 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
668 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
669 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
670 },
671 &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.
672 # or are specified elsewhere. An API may choose to allow leap seconds. Related
673 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700674 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
675 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
676 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700677 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
678 # allow the value 60 if it allows leap-seconds.
679 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim65020912020-05-20 12:08:20 -0700680 },
681 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
682 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
683 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer
684 # active.
685 &quot;timeZone&quot;: { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to.
686 # The rules for daylight saving time are determined by the chosen time zone.
687 # [IANA Time Zone Database](https://www.iana.org/time-zones).
688 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
689 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
690 },
691 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
692 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective.
693 # Defaults to `create_time` of the patch deployment.
694 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
695 # &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700696 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
697 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
698 # indicates the last week of the month.
699 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
700 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700701 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
702 # indicates the last day of the month.
703 # Months without the target day will be skipped. For example, a schedule to
704 # run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
Bu Sun Kim65020912020-05-20 12:08:20 -0700705 },
706 },
707 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
708 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
709 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
710 },
711 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment.
712 # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
713 # format.
714 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
715 # patch(es) to a VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700716 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
717 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
718 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
719 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
720 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
721 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
722 # ensure that the ExecStep specified by this PatchJob does not change.
723 },
724 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
725 # specified the script will be executed directly, which will likely
726 # only succeed for scripts with [shebang lines]
727 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
728 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
729 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
730 # execution can return to indicate a success.
731 42,
732 ],
733 },
734 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
735 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
736 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
737 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
738 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
739 # ensure that the ExecStep specified by this PatchJob does not change.
740 },
741 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
742 # specified the script will be executed directly, which will likely
743 # only succeed for scripts with [shebang lines]
744 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
745 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
746 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
747 # execution can return to indicate a success.
748 42,
749 ],
750 },
751 },
752 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
753 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
754 # updates are applied.
755 &quot;A String&quot;,
756 ],
757 &quot;excludes&quot;: [ # List of KBs to exclude from update.
758 &quot;A String&quot;,
759 ],
760 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
761 # that will be updated. This field must not be used with other
762 # patch configurations.
763 &quot;A String&quot;,
764 ],
765 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700766 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
767 # patch rules.
768 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -0700769 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
770 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
771 &quot;severities&quot;: [ # Install only patches with these severities.
772 # Common severities include critical, important, moderate, and low.
773 &quot;A String&quot;,
774 ],
775 &quot;categories&quot;: [ # Install only patches with these categories.
776 # Common categories include security, recommended, and feature.
777 &quot;A String&quot;,
778 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700779 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
780 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
781 # This field must not be used with any other patch configuration fields.
782 &quot;A String&quot;,
783 ],
784 &quot;excludes&quot;: [ # List of patches to exclude from update.
785 &quot;A String&quot;,
786 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 },
788 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
789 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700790 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
792 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700793 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
794 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700795 },
796 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
797 # specified the script will be executed directly, which will likely
798 # only succeed for scripts with [shebang lines]
799 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700800 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
801 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
802 # execution can return to indicate a success.
803 42,
804 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700805 },
806 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -0700807 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700808 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
809 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700810 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
811 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700812 },
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\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700817 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
818 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
819 # execution can return to indicate a success.
820 42,
821 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 },
823 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 &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
825 # rules.
826 # can be set to control how this is executed.
827 #
828 # Note that not all settings are supported on all platforms.
Bu Sun Kim65020912020-05-20 12:08:20 -0700829 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
830 # that will be updated. If these packages are not installed, they will be
831 # ignored. This field must not be specified with any other patch
832 # configuration fields.
833 &quot;A String&quot;,
834 ],
835 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
836 # all platforms.
837 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700838 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
839 # using the yum `--exclude` flag.
840 &quot;A String&quot;,
841 ],
842 },
843 &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
844 # rules.
845 # upgrade`. Additional options can be set to control how this is executed.
846 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
847 # using `apt-get dist-upgrade` instead.
848 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
849 &quot;A String&quot;,
850 ],
851 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
852 # that will be updated. If these packages are not installed, they will be
853 # ignored. This field cannot be specified with any other patch configuration
854 # fields.
855 &quot;A String&quot;,
856 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700857 },
858 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
859 # rules.
860 },
861 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -0700862 },
863 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
864 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
865 # VMs must meet all criteria specified. So if both labels and zones are
866 # specified, the patch job targets only VMs with those labels and in those
867 # zones.
868 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
869 # instances in any zone.
870 &quot;A String&quot;,
871 ],
872 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
873 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
874 { # Represents a group of VMs that can be identified as having all these
875 # labels, for example &quot;env=prod and app=web&quot;.
876 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
877 # instance to be targeted by this filter.
878 &quot;a_key&quot;: &quot;A String&quot;,
879 },
880 },
881 ],
882 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
883 # permitted.
884 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
885 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
886 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
887 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
888 &quot;A String&quot;,
889 ],
890 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
891 # labels, this is another way to group VMs when targeting configs, for
892 # example prefix=&quot;prod-&quot;.
893 &quot;A String&quot;,
894 ],
895 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700896 }</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).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700925 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited
926 # to 1024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in
928 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
929 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in
930 # [RFC3339](&quot;https://www.ietf.org/rfc/rfc3339.txt) text format.
931 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch
932 # deployment name is in the form:
933 # `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
934 # This field is ignored when you create a new patch deployment.
935 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
936 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
937 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
938 },
939 &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.
940 # or are specified elsewhere. An API may choose to allow leap seconds. Related
941 # types are google.type.Date and `google.protobuf.Timestamp`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700942 &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.
944 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700945 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
946 # allow the value 60 if it allows leap-seconds.
947 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Bu Sun Kim65020912020-05-20 12:08:20 -0700948 },
949 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
950 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
951 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer
952 # active.
953 &quot;timeZone&quot;: { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to.
954 # The rules for daylight saving time are determined by the chosen time zone.
955 # [IANA Time Zone Database](https://www.iana.org/time-zones).
956 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
957 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
958 },
959 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
960 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective.
961 # Defaults to `create_time` of the patch deployment.
962 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
963 # &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700964 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
965 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
966 # indicates the last week of the month.
967 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
968 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700969 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
970 # indicates the last day of the month.
971 # Months without the target day will be skipped. For example, a schedule to
972 # run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
Bu Sun Kim65020912020-05-20 12:08:20 -0700973 },
974 },
975 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
976 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
977 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
978 },
979 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment.
980 # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
981 # format.
982 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
983 # patch(es) to a VM instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700984 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
985 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
986 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
987 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
988 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
989 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
990 # ensure that the ExecStep specified by this PatchJob does not change.
991 },
992 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
993 # specified the script will be executed directly, which will likely
994 # only succeed for scripts with [shebang lines]
995 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
996 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
997 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
998 # execution can return to indicate a success.
999 42,
1000 ],
1001 },
1002 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
1003 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
1004 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1005 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
1006 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1007 # ensure that the ExecStep specified by this PatchJob does not change.
1008 },
1009 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1010 # specified the script will be executed directly, which will likely
1011 # only succeed for scripts with [shebang lines]
1012 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
1013 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1014 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1015 # execution can return to indicate a success.
1016 42,
1017 ],
1018 },
1019 },
1020 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
1021 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all
1022 # updates are applied.
1023 &quot;A String&quot;,
1024 ],
1025 &quot;excludes&quot;: [ # List of KBs to exclude from update.
1026 &quot;A String&quot;,
1027 ],
1028 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches
1029 # that will be updated. This field must not be used with other
1030 # patch configurations.
1031 &quot;A String&quot;,
1032 ],
1033 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001034 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
1035 # patch rules.
1036 # See also https://en.opensuse.org/SDB:Zypper_manual.
Bu Sun Kim65020912020-05-20 12:08:20 -07001037 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
1038 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
1039 &quot;severities&quot;: [ # Install only patches with these severities.
1040 # Common severities include critical, important, moderate, and low.
1041 &quot;A String&quot;,
1042 ],
1043 &quot;categories&quot;: [ # Install only patches with these categories.
1044 # Common categories include security, recommended, and feature.
1045 &quot;A String&quot;,
1046 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001047 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches
1048 # that will be installed using &#x27;zypper patch patch:&lt;patch_name&gt;&#x27; command.
1049 # This field must not be used with any other patch configuration fields.
1050 &quot;A String&quot;,
1051 ],
1052 &quot;excludes&quot;: [ # List of patches to exclude from update.
1053 &quot;A String&quot;,
1054 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001055 },
1056 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
1057 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -07001058 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -07001059 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1060 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001061 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1062 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -07001063 },
1064 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1065 # specified the script will be executed directly, which will likely
1066 # only succeed for scripts with [shebang lines]
1067 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001068 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1069 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1070 # execution can return to indicate a success.
1071 42,
1072 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001073 },
1074 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Bu Sun Kim65020912020-05-20 12:08:20 -07001075 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
Bu Sun Kim65020912020-05-20 12:08:20 -07001076 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
1077 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001078 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to
1079 # ensure that the ExecStep specified by this PatchJob does not change.
Bu Sun Kim65020912020-05-20 12:08:20 -07001080 },
1081 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is
1082 # specified the script will be executed directly, which will likely
1083 # only succeed for scripts with [shebang lines]
1084 # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001085 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
1086 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the
1087 # execution can return to indicate a success.
1088 42,
1089 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001090 },
1091 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001092 &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
1093 # rules.
1094 # can be set to control how this is executed.
1095 #
1096 # Note that not all settings are supported on all platforms.
Bu Sun Kim65020912020-05-20 12:08:20 -07001097 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1098 # that will be updated. If these packages are not installed, they will be
1099 # ignored. This field must not be specified with any other patch
1100 # configuration fields.
1101 &quot;A String&quot;,
1102 ],
1103 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on
1104 # all platforms.
1105 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001106 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by
1107 # using the yum `--exclude` flag.
1108 &quot;A String&quot;,
1109 ],
1110 },
1111 &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
1112 # rules.
1113 # upgrade`. Additional options can be set to control how this is executed.
1114 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed
1115 # using `apt-get dist-upgrade` instead.
1116 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
1117 &quot;A String&quot;,
1118 ],
1119 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages
1120 # that will be updated. If these packages are not installed, they will be
1121 # ignored. This field cannot be specified with any other patch configuration
1122 # fields.
1123 &quot;A String&quot;,
1124 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001125 },
1126 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
1127 # rules.
1128 },
1129 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Bu Sun Kim65020912020-05-20 12:08:20 -07001130 },
1131 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
1132 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
1133 # VMs must meet all criteria specified. So if both labels and zones are
1134 # specified, the patch job targets only VMs with those labels and in those
1135 # zones.
1136 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM
1137 # instances in any zone.
1138 &quot;A String&quot;,
1139 ],
1140 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows
1141 # targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
1142 { # Represents a group of VMs that can be identified as having all these
1143 # labels, for example &quot;env=prod and app=web&quot;.
1144 &quot;labels&quot;: { # Google Compute Engine instance labels that must be present for a VM
1145 # instance to be targeted by this filter.
1146 &quot;a_key&quot;: &quot;A String&quot;,
1147 },
1148 },
1149 ],
1150 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is
1151 # permitted.
1152 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their
1153 # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],
1154 # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
1155 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
1156 &quot;A String&quot;,
1157 ],
1158 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to
1159 # labels, this is another way to group VMs when targeting configs, for
1160 # example prefix=&quot;prod-&quot;.
1161 &quot;A String&quot;,
1162 ],
1163 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001164 },
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>