blob: acb4df5568975306b6f0425aff4fb1aa60ebe346 [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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070075<h1><a href="osconfig_v1beta.html">OS Config API</a> . <a href="osconfig_v1beta.projects.html">projects</a> . <a href="osconfig_v1beta.projects.patchDeployments.html">patchDeployments</a></h1>
Bu Sun Kim65020912020-05-20 12:08:20 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#create">create(parent, body=None, patchDeploymentId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Create an OS Config patch deployment.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Delete an OS Config patch deployment.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Get an OS Config patch deployment.</p>
89<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080090 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070091<p class="firstline">Get a page of OS Config patch deployments.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<h3>Method Details</h3>
96<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700102 <code class="details" id="create">create(parent, body=None, patchDeploymentId=None, x__xgafv=None)</code>
103 <pre>Create an OS Config patch deployment.
104
105Args:
106 parent: string, Required. The project to apply this patch deployment to in the form `projects/*`. (required)
107 body: object, The request body.
108 The object takes the form of:
109
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110{ # Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package repository settings, and a schedule. For more information about creating and managing patch deployments, see [Scheduling patch jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800111 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # Required. Schedule a one-time execution.
112 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
113 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800114 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Optional. Patch configuration that is applied.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800115 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
116 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700117 &quot;A String&quot;,
118 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800119 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.
120 &quot;A String&quot;,
121 ],
122 &quot;excludes&quot;: [ # List of KBs to exclude from update.
123 &quot;A String&quot;,
124 ],
125 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800126 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800127 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800128 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
129 42,
130 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800131 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
132 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
133 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
134 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
135 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800136 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800137 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
138 },
139 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
140 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
141 42,
142 ],
143 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
144 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
145 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
146 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
147 },
148 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
149 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800150 },
151 },
152 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800153 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
154 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
155 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
156 42,
157 ],
158 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
159 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
160 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
161 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to 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 specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
164 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
165 },
166 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
167 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
168 42,
169 ],
170 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
171 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
172 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
173 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
174 },
175 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
176 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
177 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800178 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800179 &quot;apt&quot;: { # Apt patching is completed by executing `apt-get update &amp;&amp; apt-get upgrade`. Additional options can be set to control how this is executed. # Apt update settings. Use this setting to override the default `apt` patch rules.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800180 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
181 &quot;A String&quot;,
182 ],
183 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
184 &quot;A String&quot;,
185 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800186 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
187 },
188 &quot;yum&quot;: { # Yum patching is performed by executing `yum update`. Additional options can be set to control how this is executed. Note that not all settings are supported on all platforms. # Yum update settings. Use this setting to override the default `yum` patch rules.
189 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
190 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
191 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field must not be specified with any other patch configuration fields.
192 &quot;A String&quot;,
193 ],
194 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
195 &quot;A String&quot;,
196 ],
197 },
198 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. See also https://en.opensuse.org/SDB:Zypper_manual. # Zypper update settings. Use this setting to override the default `zypper` patch rules.
199 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
200 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches that will be installed using &#x27;zypper patch patch:&#x27; command. This field must not be used with any other patch configuration fields.
201 &quot;A String&quot;,
202 ],
203 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
204 &quot;A String&quot;,
205 ],
206 &quot;excludes&quot;: [ # List of patches to exclude from update.
207 &quot;A String&quot;,
208 ],
209 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
210 &quot;A String&quot;,
211 ],
212 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
213 },
214 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800215 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800216 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800217 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
218 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
219 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
220 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800221 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800222 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
223 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
224 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800225 &quot;timeOfDay&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Time of the day to run a recurring deployment.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800226 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
227 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
228 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800229 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800230 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800231 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
232 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;. # Required. Schedule with monthly executions.
233 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
234 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
235 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
236 },
237 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
238 },
239 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
240 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
241 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800242 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. Defines the time zone that `time_of_day` is relative to. The rules for daylight saving time are determined by the chosen time zone.
243 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
244 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700245 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800246 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700247 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800248 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800249 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Optional. Rollout strategy of the patch job.
250 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
251 &quot;disruptionBudget&quot;: { # Message encapsulating a value that can be either absolute (&quot;fixed&quot;) or relative (&quot;percent&quot;) to a value. # The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of `10`, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops.
252 &quot;fixed&quot;: 42, # Specifies a fixed value.
253 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
254 },
255 },
256 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch deployment name is in the form: `projects/{project_id}/patchDeployments/{patch_deployment_id}`. This field is ignored when you create a new patch deployment.
257 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones. # Required. VM instances to patch.
258 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
259 &quot;A String&quot;,
260 ],
261 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix=&quot;prod-&quot;.
262 &quot;A String&quot;,
263 ],
264 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
265 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
266 &quot;A String&quot;,
267 ],
268 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
269 { # Represents a group of VMs that can be identified as having all these labels, for example &quot;env=prod and app=web&quot;.
270 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
271 &quot;a_key&quot;: &quot;A String&quot;,
272 },
273 },
274 ],
275 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700276}
277
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700278 patchDeploymentId: string, Required. A name for the patch deployment in the project. When creating a name the following rules apply: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700279 x__xgafv: string, V1 error format.
280 Allowed values
281 1 - v1 error format
282 2 - v2 error format
283
284Returns:
285 An object of the form:
286
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700287 { # Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package repository settings, and a schedule. For more information about creating and managing patch deployments, see [Scheduling patch jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800288 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # Required. Schedule a one-time execution.
289 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
290 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800291 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Optional. Patch configuration that is applied.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800292 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
293 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700294 &quot;A String&quot;,
295 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800296 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.
297 &quot;A String&quot;,
298 ],
299 &quot;excludes&quot;: [ # List of KBs to exclude from update.
300 &quot;A String&quot;,
301 ],
302 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800303 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800304 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800305 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
306 42,
307 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800308 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
309 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
310 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
311 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
312 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800313 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800314 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
315 },
316 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
317 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
318 42,
319 ],
320 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
321 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
322 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
323 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
324 },
325 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
326 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800327 },
328 },
329 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800330 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
331 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
332 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
333 42,
334 ],
335 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
336 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
337 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
338 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
339 },
340 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
341 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
342 },
343 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
344 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
345 42,
346 ],
347 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
348 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
349 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
350 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
351 },
352 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
353 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
354 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800355 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800356 &quot;apt&quot;: { # Apt patching is completed by executing `apt-get update &amp;&amp; apt-get upgrade`. Additional options can be set to control how this is executed. # Apt update settings. Use this setting to override the default `apt` patch rules.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800357 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
358 &quot;A String&quot;,
359 ],
360 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
361 &quot;A String&quot;,
362 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800363 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
364 },
365 &quot;yum&quot;: { # Yum patching is performed by executing `yum update`. Additional options can be set to control how this is executed. Note that not all settings are supported on all platforms. # Yum update settings. Use this setting to override the default `yum` patch rules.
366 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
367 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
368 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field must not be specified with any other patch configuration fields.
369 &quot;A String&quot;,
370 ],
371 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
372 &quot;A String&quot;,
373 ],
374 },
375 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. See also https://en.opensuse.org/SDB:Zypper_manual. # Zypper update settings. Use this setting to override the default `zypper` patch rules.
376 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
377 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches that will be installed using &#x27;zypper patch patch:&#x27; command. This field must not be used with any other patch configuration fields.
378 &quot;A String&quot;,
379 ],
380 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
381 &quot;A String&quot;,
382 ],
383 &quot;excludes&quot;: [ # List of patches to exclude from update.
384 &quot;A String&quot;,
385 ],
386 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
387 &quot;A String&quot;,
388 ],
389 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
390 },
391 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800392 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800393 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800394 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
395 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
396 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
397 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800398 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800399 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
400 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
401 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800402 &quot;timeOfDay&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Time of the day to run a recurring deployment.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800403 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
404 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
405 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800406 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800407 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800408 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
409 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;. # Required. Schedule with monthly executions.
410 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
411 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
412 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
413 },
414 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
415 },
416 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
417 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
418 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800419 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. Defines the time zone that `time_of_day` is relative to. The rules for daylight saving time are determined by the chosen time zone.
420 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
421 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700422 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800423 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700424 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800425 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800426 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Optional. Rollout strategy of the patch job.
427 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
428 &quot;disruptionBudget&quot;: { # Message encapsulating a value that can be either absolute (&quot;fixed&quot;) or relative (&quot;percent&quot;) to a value. # The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of `10`, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops.
429 &quot;fixed&quot;: 42, # Specifies a fixed value.
430 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
431 },
432 },
433 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch deployment name is in the form: `projects/{project_id}/patchDeployments/{patch_deployment_id}`. This field is ignored when you create a new patch deployment.
434 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones. # Required. VM instances to patch.
435 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
436 &quot;A String&quot;,
437 ],
438 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix=&quot;prod-&quot;.
439 &quot;A String&quot;,
440 ],
441 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
442 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
443 &quot;A String&quot;,
444 ],
445 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
446 { # Represents a group of VMs that can be identified as having all these labels, for example &quot;env=prod and app=web&quot;.
447 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
448 &quot;a_key&quot;: &quot;A String&quot;,
449 },
450 },
451 ],
452 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700453 }</pre>
454</div>
455
456<div class="method">
457 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
458 <pre>Delete an OS Config patch deployment.
459
460Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700461 name: string, Required. The resource name of the patch deployment in the form `projects/*/patchDeployments/*`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 x__xgafv: string, V1 error format.
463 Allowed values
464 1 - v1 error format
465 2 - v2 error format
466
467Returns:
468 An object of the form:
469
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700470 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700471 }</pre>
472</div>
473
474<div class="method">
475 <code class="details" id="get">get(name, x__xgafv=None)</code>
476 <pre>Get an OS Config patch deployment.
477
478Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700479 name: string, Required. The resource name of the patch deployment in the form `projects/*/patchDeployments/*`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 x__xgafv: string, V1 error format.
481 Allowed values
482 1 - v1 error format
483 2 - v2 error format
484
485Returns:
486 An object of the form:
487
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700488 { # Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package repository settings, and a schedule. For more information about creating and managing patch deployments, see [Scheduling patch jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800489 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # Required. Schedule a one-time execution.
490 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
491 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800492 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Optional. Patch configuration that is applied.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800493 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
494 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700495 &quot;A String&quot;,
496 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800497 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.
498 &quot;A String&quot;,
499 ],
500 &quot;excludes&quot;: [ # List of KBs to exclude from update.
501 &quot;A String&quot;,
502 ],
503 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800504 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800505 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800506 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
507 42,
508 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800509 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
510 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
511 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
512 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
513 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800514 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800515 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
516 },
517 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
518 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
519 42,
520 ],
521 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
522 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
523 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
524 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
525 },
526 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
527 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800528 },
529 },
530 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800531 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
532 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
533 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
534 42,
535 ],
536 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
537 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
538 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
539 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
540 },
541 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
542 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
543 },
544 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
545 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
546 42,
547 ],
548 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
549 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
550 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
551 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
552 },
553 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
554 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
555 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800556 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800557 &quot;apt&quot;: { # Apt patching is completed by executing `apt-get update &amp;&amp; apt-get upgrade`. Additional options can be set to control how this is executed. # Apt update settings. Use this setting to override the default `apt` patch rules.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800558 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
559 &quot;A String&quot;,
560 ],
561 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
562 &quot;A String&quot;,
563 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800564 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
565 },
566 &quot;yum&quot;: { # Yum patching is performed by executing `yum update`. Additional options can be set to control how this is executed. Note that not all settings are supported on all platforms. # Yum update settings. Use this setting to override the default `yum` patch rules.
567 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
568 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
569 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field must not be specified with any other patch configuration fields.
570 &quot;A String&quot;,
571 ],
572 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
573 &quot;A String&quot;,
574 ],
575 },
576 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. See also https://en.opensuse.org/SDB:Zypper_manual. # Zypper update settings. Use this setting to override the default `zypper` patch rules.
577 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
578 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches that will be installed using &#x27;zypper patch patch:&#x27; command. This field must not be used with any other patch configuration fields.
579 &quot;A String&quot;,
580 ],
581 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
582 &quot;A String&quot;,
583 ],
584 &quot;excludes&quot;: [ # List of patches to exclude from update.
585 &quot;A String&quot;,
586 ],
587 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
588 &quot;A String&quot;,
589 ],
590 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
591 },
592 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800593 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800594 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800595 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
596 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
597 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
598 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800599 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800600 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
601 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
602 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800603 &quot;timeOfDay&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Time of the day to run a recurring deployment.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800604 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
605 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
606 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800607 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800608 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800609 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
610 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;. # Required. Schedule with monthly executions.
611 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
612 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
613 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
614 },
615 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
616 },
617 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
618 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
619 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800620 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. Defines the time zone that `time_of_day` is relative to. The rules for daylight saving time are determined by the chosen time zone.
621 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
622 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700623 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800624 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700625 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800626 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800627 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Optional. Rollout strategy of the patch job.
628 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
629 &quot;disruptionBudget&quot;: { # Message encapsulating a value that can be either absolute (&quot;fixed&quot;) or relative (&quot;percent&quot;) to a value. # The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of `10`, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops.
630 &quot;fixed&quot;: 42, # Specifies a fixed value.
631 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
632 },
633 },
634 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch deployment name is in the form: `projects/{project_id}/patchDeployments/{patch_deployment_id}`. This field is ignored when you create a new patch deployment.
635 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones. # Required. VM instances to patch.
636 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
637 &quot;A String&quot;,
638 ],
639 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix=&quot;prod-&quot;.
640 &quot;A String&quot;,
641 ],
642 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
643 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
644 &quot;A String&quot;,
645 ],
646 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
647 { # Represents a group of VMs that can be identified as having all these labels, for example &quot;env=prod and app=web&quot;.
648 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
649 &quot;a_key&quot;: &quot;A String&quot;,
650 },
651 },
652 ],
653 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700654 }</pre>
655</div>
656
657<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800658 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 <pre>Get a page of OS Config patch deployments.
660
661Args:
662 parent: string, Required. The resource name of the parent in the form `projects/*`. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700663 pageSize: integer, Optional. The maximum number of patch deployments to return. Default is 100.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800664 pageToken: string, Optional. A pagination token returned from a previous call to ListPatchDeployments that indicates where this listing should continue from.
Bu Sun Kim65020912020-05-20 12:08:20 -0700665 x__xgafv: string, V1 error format.
666 Allowed values
667 1 - v1 error format
668 2 - v2 error format
669
670Returns:
671 An object of the form:
672
673 { # A response message for listing patch deployments.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800674 &quot;nextPageToken&quot;: &quot;A String&quot;, # A pagination token that can be used to get the next page of patch deployments.
Bu Sun Kim65020912020-05-20 12:08:20 -0700675 &quot;patchDeployments&quot;: [ # The list of patch deployments.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700676 { # Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package repository settings, and a schedule. For more information about creating and managing patch deployments, see [Scheduling patch jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800677 &quot;oneTimeSchedule&quot;: { # Sets the time for a one time patch deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # Required. Schedule a one-time execution.
678 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
679 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800680 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Optional. Patch configuration that is applied.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800681 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
682 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700683 &quot;A String&quot;,
684 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800685 &quot;exclusivePatches&quot;: [ # An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.
686 &quot;A String&quot;,
687 ],
688 &quot;excludes&quot;: [ # List of KBs to exclude from update.
689 &quot;A String&quot;,
690 ],
691 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800692 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800693 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800694 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
695 42,
696 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800697 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
698 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
699 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
700 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
701 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800702 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800703 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
704 },
705 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
706 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
707 42,
708 ],
709 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
710 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
711 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
712 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
713 },
714 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
715 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800716 },
717 },
718 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800719 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
720 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
721 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
722 42,
723 ],
724 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
725 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
726 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
727 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
728 },
729 &quot;interpreter&quot;: &quot;A String&quot;, # The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
730 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
731 },
732 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
733 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
734 42,
735 ],
736 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
737 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
738 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
739 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to 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 specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
742 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
743 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800744 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800745 &quot;apt&quot;: { # Apt patching is completed by executing `apt-get update &amp;&amp; apt-get upgrade`. Additional options can be set to control how this is executed. # Apt update settings. Use this setting to override the default `apt` patch rules.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800746 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
747 &quot;A String&quot;,
748 ],
749 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
750 &quot;A String&quot;,
751 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800752 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
753 },
754 &quot;yum&quot;: { # Yum patching is performed by executing `yum update`. Additional options can be set to control how this is executed. Note that not all settings are supported on all platforms. # Yum update settings. Use this setting to override the default `yum` patch rules.
755 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
756 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
757 &quot;exclusivePackages&quot;: [ # An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field must not be specified with any other patch configuration fields.
758 &quot;A String&quot;,
759 ],
760 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
761 &quot;A String&quot;,
762 ],
763 },
764 &quot;zypper&quot;: { # Zypper patching is performed by running `zypper patch`. See also https://en.opensuse.org/SDB:Zypper_manual. # Zypper update settings. Use this setting to override the default `zypper` patch rules.
765 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
766 &quot;exclusivePatches&quot;: [ # An exclusive list of patches to be updated. These are the only patches that will be installed using &#x27;zypper patch patch:&#x27; command. This field must not be used with any other patch configuration fields.
767 &quot;A String&quot;,
768 ],
769 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
770 &quot;A String&quot;,
771 ],
772 &quot;excludes&quot;: [ # List of patches to exclude from update.
773 &quot;A String&quot;,
774 ],
775 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
776 &quot;A String&quot;,
777 ],
778 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
779 },
780 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800781 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800782 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800783 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
784 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was created. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
785 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time the patch deployment was last updated. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
786 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800787 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800788 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
789 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
790 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800791 &quot;timeOfDay&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Time of the day to run a recurring deployment.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800792 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
793 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
794 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800795 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800796 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800797 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
798 &quot;monthly&quot;: { # Represents a monthly schedule. An example of a valid monthly schedule is &quot;on the third Tuesday of the month&quot; or &quot;on the 15th of the month&quot;. # Required. Schedule with monthly executions.
799 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
800 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
801 &quot;weekOrdinal&quot;: 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
802 },
803 &quot;monthDay&quot;: 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run &quot;every month on the 31st&quot; will not run in February, April, June, etc.
804 },
805 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
806 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
807 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800808 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. Defines the time zone that `time_of_day` is relative to. The rules for daylight saving time are determined by the chosen time zone.
809 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
810 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700811 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800812 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700813 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800814 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The last time a patch job was started by this deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800815 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Optional. Rollout strategy of the patch job.
816 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
817 &quot;disruptionBudget&quot;: { # Message encapsulating a value that can be either absolute (&quot;fixed&quot;) or relative (&quot;percent&quot;) to a value. # The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of `10`, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops.
818 &quot;fixed&quot;: 42, # Specifies a fixed value.
819 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
820 },
821 },
822 &quot;name&quot;: &quot;A String&quot;, # Unique name for the patch deployment resource in a project. The patch deployment name is in the form: `projects/{project_id}/patchDeployments/{patch_deployment_id}`. This field is ignored when you create a new patch deployment.
823 &quot;instanceFilter&quot;: { # A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones. # Required. VM instances to patch.
824 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
825 &quot;A String&quot;,
826 ],
827 &quot;instanceNamePrefixes&quot;: [ # Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix=&quot;prod-&quot;.
828 &quot;A String&quot;,
829 ],
830 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
831 &quot;instances&quot;: [ # Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
832 &quot;A String&quot;,
833 ],
834 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
835 { # Represents a group of VMs that can be identified as having all these labels, for example &quot;env=prod and app=web&quot;.
836 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
837 &quot;a_key&quot;: &quot;A String&quot;,
838 },
839 },
840 ],
841 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 },
843 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700844 }</pre>
845</div>
846
847<div class="method">
848 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
849 <pre>Retrieves the next page of results.
850
851Args:
852 previous_request: The request for the previous page. (required)
853 previous_response: The response from the request for the previous page. (required)
854
855Returns:
856 A request object that you can call &#x27;execute()&#x27; on to request the next
857 page. Returns None if there are no more items in the collection.
858 </pre>
859</div>
860
861</body></html>