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