blob: 81d1b7b3aed84bd66bf167c86c2694222a77cb8a [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">
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">
90 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
91<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).
111 &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.
112 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
113 { # Targets a group of VM instances by using their [assigned labels](https://cloud.google.com/compute/docs/labeling-resources). Labels are key-value pairs. A `GroupLabel` is a combination of labels that is used to target VMs for a patch job. For example, a patch job can target VMs that have the following `GroupLabel`: `{&quot;env&quot;:&quot;test&quot;, &quot;app&quot;:&quot;web&quot;}`. This means that the patch job is applied to VMs that have both the labels `env=test` and `app=web`.
114 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
115 &quot;a_key&quot;: &quot;A String&quot;,
116 },
117 },
118 ],
119 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
120 &quot;A String&quot;,
121 ],
122 &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]`
123 &quot;A String&quot;,
124 ],
125 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
126 &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;.
127 &quot;A String&quot;,
128 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700129 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700130 &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.
131 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
132 &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.
133 &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.
134 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
135 &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.
136 &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.
137 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
138 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
139 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140 },
141 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700142 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
143 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
144 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
145 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
146 },
147 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
148 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
149 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
150 &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.
151 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
152 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
153 },
154 &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.
155 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
156 &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.
157 &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.
158 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
159 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700160 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700161 &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.
162 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
163 &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.
164 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
165 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
166 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
167 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
168 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
169 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
170 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
171 },
172 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
173 42,
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\)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700176 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700177 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
178 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
179 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
180 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
181 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
182 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
183 },
184 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
185 42,
186 ],
187 &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\)).
188 },
189 },
190 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
191 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
192 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
193 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
194 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
195 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
196 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
197 },
198 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
199 42,
200 ],
201 &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\)).
202 },
203 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
204 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
205 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
206 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
207 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
208 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
209 },
210 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
211 42,
212 ],
213 &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\)).
214 },
215 },
216 &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.
217 &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.
218 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700219 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700220 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
221 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700222 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700223 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
224 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700225 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700226 &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.
227 &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.
228 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700229 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700230 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
231 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
232 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700233 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700234 },
235 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
236 &quot;excludes&quot;: [ # List of KBs to exclude from update.
237 &quot;A String&quot;,
238 ],
239 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
240 &quot;A String&quot;,
241 ],
242 &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.
243 &quot;A String&quot;,
244 ],
245 },
246 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
247 },
248 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
249 &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.
250 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
251 &quot;excludes&quot;: [ # List of patches to exclude from update.
252 &quot;A String&quot;,
253 ],
254 &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.
255 &quot;A String&quot;,
256 ],
257 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
258 &quot;A String&quot;,
259 ],
260 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
261 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
262 &quot;A String&quot;,
263 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700264 },
265 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700266 &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.
267 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
268 },
269 &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.
270 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
271 &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.
272 &quot;fixed&quot;: 42, # Specifies a fixed value.
273 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
274 },
275 },
276 }
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700277
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 Kimd059ad82020-07-22 17:02:09 -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).
288 &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.
289 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
290 { # Targets a group of VM instances by using their [assigned labels](https://cloud.google.com/compute/docs/labeling-resources). Labels are key-value pairs. A `GroupLabel` is a combination of labels that is used to target VMs for a patch job. For example, a patch job can target VMs that have the following `GroupLabel`: `{&quot;env&quot;:&quot;test&quot;, &quot;app&quot;:&quot;web&quot;}`. This means that the patch job 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 instance to be targeted by this filter.
292 &quot;a_key&quot;: &quot;A String&quot;,
293 },
294 },
295 ],
296 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
297 &quot;A String&quot;,
298 ],
299 &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]`
300 &quot;A String&quot;,
301 ],
302 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
303 &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;.
304 &quot;A String&quot;,
305 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700306 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700307 &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.
308 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
309 &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.
310 &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.
311 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
312 &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.
313 &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.
314 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
315 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
316 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 },
318 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700319 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
320 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
321 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
322 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
323 },
324 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
325 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
326 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
327 &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.
328 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
329 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
330 },
331 &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.
332 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
333 &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.
334 &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.
335 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
336 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700337 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700338 &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.
339 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
340 &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.
341 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
342 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
343 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
344 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
345 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
346 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
347 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
348 },
349 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
350 42,
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\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700353 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700354 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
355 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
356 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
357 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
358 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
359 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
360 },
361 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
362 42,
363 ],
364 &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\)).
365 },
366 },
367 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
368 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
369 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
370 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
371 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
372 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
373 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
374 },
375 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
376 42,
377 ],
378 &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\)).
379 },
380 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
381 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
382 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
383 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
384 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
385 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
386 },
387 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
388 42,
389 ],
390 &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\)).
391 },
392 },
393 &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.
394 &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.
395 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700396 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700397 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
398 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700399 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700400 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
401 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700402 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700403 &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.
404 &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.
405 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700406 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700407 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
408 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
409 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700410 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700411 },
412 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
413 &quot;excludes&quot;: [ # List of KBs to exclude from update.
414 &quot;A String&quot;,
415 ],
416 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
417 &quot;A String&quot;,
418 ],
419 &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.
420 &quot;A String&quot;,
421 ],
422 },
423 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
424 },
425 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
426 &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.
427 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
428 &quot;excludes&quot;: [ # List of patches to exclude from update.
429 &quot;A String&quot;,
430 ],
431 &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.
432 &quot;A String&quot;,
433 ],
434 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
435 &quot;A String&quot;,
436 ],
437 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
438 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
439 &quot;A String&quot;,
440 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700441 },
442 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700443 &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.
444 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
445 },
446 &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.
447 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
448 &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.
449 &quot;fixed&quot;: 42, # Specifies a fixed value.
450 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
451 },
452 },
453 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700454</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).
489 &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.
490 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
491 { # Targets a group of VM instances by using their [assigned labels](https://cloud.google.com/compute/docs/labeling-resources). Labels are key-value pairs. A `GroupLabel` is a combination of labels that is used to target VMs for a patch job. For example, a patch job can target VMs that have the following `GroupLabel`: `{&quot;env&quot;:&quot;test&quot;, &quot;app&quot;:&quot;web&quot;}`. This means that the patch job is applied to VMs that have both the labels `env=test` and `app=web`.
492 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
493 &quot;a_key&quot;: &quot;A String&quot;,
494 },
495 },
496 ],
497 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
498 &quot;A String&quot;,
499 ],
500 &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]`
501 &quot;A String&quot;,
502 ],
503 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
504 &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;.
505 &quot;A String&quot;,
506 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700507 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700508 &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.
509 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
510 &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.
511 &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.
512 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
513 &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.
514 &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.
515 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
516 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
517 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 },
519 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700520 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
521 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
522 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
523 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
524 },
525 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
526 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
527 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
528 &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.
529 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
530 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
531 },
532 &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.
533 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
534 &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.
535 &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.
536 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
537 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700538 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700539 &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.
540 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
541 &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.
542 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
543 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
544 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
545 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
546 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
547 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
548 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
549 },
550 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
551 42,
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\)).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700554 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700555 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
556 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
557 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
558 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
559 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
560 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
561 },
562 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
563 42,
564 ],
565 &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\)).
566 },
567 },
568 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
569 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
570 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
571 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
572 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
573 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
574 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
575 },
576 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
577 42,
578 ],
579 &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\)).
580 },
581 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
582 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
583 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
584 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
585 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
586 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
587 },
588 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
589 42,
590 ],
591 &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\)).
592 },
593 },
594 &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.
595 &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.
596 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700597 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700598 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
599 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700600 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700601 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
602 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700603 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700604 &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.
605 &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.
606 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700607 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700608 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
609 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
610 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700611 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700612 },
613 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
614 &quot;excludes&quot;: [ # List of KBs to exclude from update.
615 &quot;A String&quot;,
616 ],
617 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
618 &quot;A String&quot;,
619 ],
620 &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.
621 &quot;A String&quot;,
622 ],
623 },
624 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
625 },
626 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
627 &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.
628 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
629 &quot;excludes&quot;: [ # List of patches to exclude from update.
630 &quot;A String&quot;,
631 ],
632 &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.
633 &quot;A String&quot;,
634 ],
635 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
636 &quot;A String&quot;,
637 ],
638 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
639 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
640 &quot;A String&quot;,
641 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700642 },
643 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700644 &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.
645 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
646 },
647 &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.
648 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
649 &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.
650 &quot;fixed&quot;: 42, # Specifies a fixed value.
651 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
652 },
653 },
654 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700655</div>
656
657<div class="method">
658 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
659 <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)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700663 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 -0700664 pageSize: integer, Optional. The maximum number of patch deployments to return. Default is 100.
665 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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700674 &quot;patchDeployments&quot;: [ # The list of patch deployments.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700675 { # 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).
676 &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.
677 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
678 { # Targets a group of VM instances by using their [assigned labels](https://cloud.google.com/compute/docs/labeling-resources). Labels are key-value pairs. A `GroupLabel` is a combination of labels that is used to target VMs for a patch job. For example, a patch job can target VMs that have the following `GroupLabel`: `{&quot;env&quot;:&quot;test&quot;, &quot;app&quot;:&quot;web&quot;}`. This means that the patch job is applied to VMs that have both the labels `env=test` and `app=web`.
679 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
680 &quot;a_key&quot;: &quot;A String&quot;,
681 },
682 },
683 ],
684 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
685 &quot;A String&quot;,
686 ],
687 &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]`
688 &quot;A String&quot;,
689 ],
690 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
691 &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;.
692 &quot;A String&quot;,
693 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700694 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700695 &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.
696 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
697 &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.
698 &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.
699 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
700 &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.
701 &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.
702 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
703 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
704 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700705 },
706 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700707 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
708 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
709 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
710 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
711 },
712 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
713 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
714 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
715 &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.
716 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
717 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
718 },
719 &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.
720 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
721 &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.
722 &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.
723 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
724 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700725 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700726 &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.
727 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
728 &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.
729 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
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;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
733 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
734 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
735 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
736 },
737 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
738 42,
739 ],
740 &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\)).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700741 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700742 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
743 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
744 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
745 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
746 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
747 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
748 },
749 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
750 42,
751 ],
752 &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\)).
753 },
754 },
755 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
756 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
757 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
758 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
759 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
760 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
761 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
762 },
763 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
764 42,
765 ],
766 &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\)).
767 },
768 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
769 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
770 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
771 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
772 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
773 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
774 },
775 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
776 42,
777 ],
778 &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\)).
779 },
780 },
781 &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.
782 &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.
783 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700784 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700785 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
786 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700787 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700788 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
789 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
790 },
791 &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.
792 &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.
793 &quot;A String&quot;,
794 ],
795 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
796 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
797 &quot;A String&quot;,
798 ],
799 },
800 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
801 &quot;excludes&quot;: [ # List of KBs to exclude from update.
802 &quot;A String&quot;,
803 ],
804 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
805 &quot;A String&quot;,
806 ],
807 &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.
808 &quot;A String&quot;,
809 ],
810 },
811 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
812 },
813 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
814 &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.
815 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
816 &quot;excludes&quot;: [ # List of patches to exclude from update.
817 &quot;A String&quot;,
818 ],
819 &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.
820 &quot;A String&quot;,
821 ],
822 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
823 &quot;A String&quot;,
824 ],
825 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
826 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
827 &quot;A String&quot;,
828 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700829 },
830 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700831 &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.
832 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700833 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700834 &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.
835 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
836 &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.
837 &quot;fixed&quot;: 42, # Specifies a fixed value.
838 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700839 },
840 },
841 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700842 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700843 &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 -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>