blob: 0ac0e63cb0f221c6d8429f3527fdba60e9536288 [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_v1.html">OS Config API</a> . <a href="osconfig_v1.projects.html">projects</a> . <a href="osconfig_v1.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 Botb6971b02020-11-26 17:16:03 -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;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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800112 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800113 &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.
114 &quot;fixed&quot;: 42, # Specifies a fixed value.
115 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
116 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800117 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800118 &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.
119 &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.
120 &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.
121 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800122 &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.
123 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
124 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800125 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800126 &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]`
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800127 &quot;A String&quot;,
128 ],
129 &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;.
130 &quot;A String&quot;,
131 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800132 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800133 &quot;A String&quot;,
134 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800135 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
136 { # 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`.
137 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
138 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800139 },
140 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800141 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800142 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800143 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800144 &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.
145 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
146 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
147 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
148 &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.
149 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
150 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
151 &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.
152 &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.
153 },
154 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
155 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
156 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
157 &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.
158 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
159 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
160 &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.
161 },
162 &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.
163 },
164 &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.
165 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
166 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
167 },
168 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
169 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
170 },
171 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
172 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800173 &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 -0800174 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800175 &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.
176 &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.
177 &quot;A String&quot;,
178 ],
179 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
180 &quot;A String&quot;,
181 ],
182 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
183 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800184 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
185 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
186 &quot;A String&quot;,
187 ],
188 &quot;excludes&quot;: [ # List of KBs to exclude from update.
189 &quot;A String&quot;,
190 ],
191 &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.
192 &quot;A String&quot;,
193 ],
194 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800195 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800196 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800197 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
198 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
199 &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.
200 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
201 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800202 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
203 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
204 42,
205 ],
206 &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\)).
207 },
208 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
209 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
210 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
211 &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.
212 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
213 },
214 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
215 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
216 42,
217 ],
218 &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 Bot0d561ef2020-11-25 07:50:41 -0800219 },
220 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800221 &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.
222 &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.
223 &quot;A String&quot;,
224 ],
225 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
226 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
227 &quot;A String&quot;,
228 ],
229 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
230 &quot;A String&quot;,
231 ],
232 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
233 &quot;excludes&quot;: [ # List of patches to exclude from update.
234 &quot;A String&quot;,
235 ],
236 },
237 &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.
238 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
239 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
240 &quot;A String&quot;,
241 ],
242 &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.
243 &quot;A String&quot;,
244 ],
245 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
246 },
247 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
248 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
249 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
250 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
251 &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.
252 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
253 },
254 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
255 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
256 42,
257 ],
258 &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 Bot0d561ef2020-11-25 07:50:41 -0800259 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800260 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
261 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
262 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
263 &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.
264 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
265 },
266 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
267 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
268 42,
269 ],
270 &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\)).
271 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800272 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800273 &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 Bot0d561ef2020-11-25 07:50:41 -0800274 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800275 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800276}
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).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800288 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800289 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800290 &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.
291 &quot;fixed&quot;: 42, # Specifies a fixed value.
292 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
293 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800294 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800295 &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.
296 &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.
297 &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.
298 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800299 &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.
300 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
301 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800302 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800303 &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]`
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800304 &quot;A String&quot;,
305 ],
306 &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;.
307 &quot;A String&quot;,
308 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800309 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800310 &quot;A String&quot;,
311 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800312 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
313 { # 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`.
314 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
315 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800316 },
317 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800318 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800319 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800320 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800321 &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.
322 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
323 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
324 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
325 &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.
326 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
327 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
328 &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.
329 &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.
330 },
331 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
332 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
333 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
334 &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.
335 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
336 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
337 &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.
338 },
339 &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.
340 },
341 &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.
342 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
343 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
344 },
345 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
346 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
347 },
348 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
349 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800350 &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 -0800351 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800352 &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.
353 &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.
354 &quot;A String&quot;,
355 ],
356 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
357 &quot;A String&quot;,
358 ],
359 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
360 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800361 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
362 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
363 &quot;A String&quot;,
364 ],
365 &quot;excludes&quot;: [ # List of KBs to exclude from update.
366 &quot;A String&quot;,
367 ],
368 &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.
369 &quot;A String&quot;,
370 ],
371 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800372 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800373 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800374 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
375 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
376 &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.
377 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
378 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800379 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
380 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
381 42,
382 ],
383 &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\)).
384 },
385 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
386 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
387 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
388 &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.
389 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
390 },
391 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
392 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
393 42,
394 ],
395 &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 Bot0d561ef2020-11-25 07:50:41 -0800396 },
397 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800398 &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.
399 &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.
400 &quot;A String&quot;,
401 ],
402 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
403 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
404 &quot;A String&quot;,
405 ],
406 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
407 &quot;A String&quot;,
408 ],
409 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
410 &quot;excludes&quot;: [ # List of patches to exclude from update.
411 &quot;A String&quot;,
412 ],
413 },
414 &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.
415 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
416 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
417 &quot;A String&quot;,
418 ],
419 &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.
420 &quot;A String&quot;,
421 ],
422 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
423 },
424 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
425 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
426 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
427 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
428 &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.
429 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
430 },
431 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
432 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
433 42,
434 ],
435 &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 Bot0d561ef2020-11-25 07:50:41 -0800436 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800437 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
438 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
439 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
440 &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.
441 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
442 },
443 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
444 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
445 42,
446 ],
447 &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\)).
448 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800449 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800450 &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 Bot0d561ef2020-11-25 07:50:41 -0800451 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800452 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800453 }</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).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800489 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800490 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800491 &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.
492 &quot;fixed&quot;: 42, # Specifies a fixed value.
493 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
494 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800495 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800496 &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.
497 &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.
498 &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.
499 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800500 &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.
501 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
502 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800503 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800504 &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]`
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800505 &quot;A String&quot;,
506 ],
507 &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;.
508 &quot;A String&quot;,
509 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800510 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800511 &quot;A String&quot;,
512 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800513 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
514 { # 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`.
515 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
516 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800517 },
518 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800519 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800520 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800521 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800522 &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.
523 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
524 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
525 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
526 &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.
527 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
528 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
529 &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.
530 &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.
531 },
532 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
533 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
534 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
535 &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.
536 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
537 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
538 &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.
539 },
540 &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.
541 },
542 &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.
543 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
544 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
545 },
546 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
547 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
548 },
549 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
550 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800551 &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 -0800552 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800553 &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.
554 &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.
555 &quot;A String&quot;,
556 ],
557 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
558 &quot;A String&quot;,
559 ],
560 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
561 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800562 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
563 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
564 &quot;A String&quot;,
565 ],
566 &quot;excludes&quot;: [ # List of KBs to exclude from update.
567 &quot;A String&quot;,
568 ],
569 &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.
570 &quot;A String&quot;,
571 ],
572 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800573 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800574 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800575 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
576 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
577 &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.
578 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
579 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800580 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
581 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
582 42,
583 ],
584 &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\)).
585 },
586 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
587 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
588 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
589 &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.
590 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
591 },
592 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
593 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
594 42,
595 ],
596 &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 Bot0d561ef2020-11-25 07:50:41 -0800597 },
598 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800599 &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.
600 &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.
601 &quot;A String&quot;,
602 ],
603 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
604 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
605 &quot;A String&quot;,
606 ],
607 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
608 &quot;A String&quot;,
609 ],
610 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
611 &quot;excludes&quot;: [ # List of patches to exclude from update.
612 &quot;A String&quot;,
613 ],
614 },
615 &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.
616 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
617 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
618 &quot;A String&quot;,
619 ],
620 &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.
621 &quot;A String&quot;,
622 ],
623 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
624 },
625 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
626 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
627 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
628 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
629 &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.
630 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
631 },
632 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
633 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
634 42,
635 ],
636 &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 Bot0d561ef2020-11-25 07:50:41 -0800637 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800638 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
639 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
640 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
641 &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.
642 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
643 },
644 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
645 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
646 42,
647 ],
648 &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\)).
649 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800650 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800651 &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 Bot0d561ef2020-11-25 07:50:41 -0800652 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800653 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800654 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700655</div>
656
657<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -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)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800663 pageSize: integer, Optional. The maximum number of patch deployments to return. Default is 100.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -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 Kim4ed7d3f2020-05-27 12:20:54 -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;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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800678 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800679 &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.
680 &quot;fixed&quot;: 42, # Specifies a fixed value.
681 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
682 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700683 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800684 &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.
685 &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.
686 &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.
687 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800688 &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.
689 &quot;executeTime&quot;: &quot;A String&quot;, # Required. The desired patch job execution time.
690 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800691 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800692 &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]`
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800693 &quot;A String&quot;,
694 ],
695 &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;.
696 &quot;A String&quot;,
697 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800698 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800699 &quot;A String&quot;,
700 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800701 &quot;groupLabels&quot;: [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
702 { # 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`.
703 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
704 &quot;a_key&quot;: &quot;A String&quot;,
705 },
706 },
707 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800708 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800709 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800710 &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.
711 &quot;duration&quot;: &quot;A String&quot;, # Optional. Duration of the patch. After the duration ends, the patch times out.
712 &quot;recurringSchedule&quot;: { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions.
713 &quot;nextExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the next patch job is scheduled to run.
714 &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.
715 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
716 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
717 &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.
718 &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.
719 },
720 &quot;lastExecuteTime&quot;: &quot;A String&quot;, # Output only. The time the last patch job ran successfully.
721 &quot;frequency&quot;: &quot;A String&quot;, # Required. The frequency unit of this recurring schedule.
722 &quot;startTime&quot;: &quot;A String&quot;, # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment.
723 &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.
724 &quot;weekDayOfMonth&quot;: { # Represents one week day in a month. An example is &quot;the 4th Sunday&quot;. # Required. Week day in a month.
725 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. A day of the week.
726 &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.
727 },
728 &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.
729 },
730 &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.
731 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number, e.g. &quot;2019a&quot;.
732 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone, e.g. &quot;America/New_York&quot;.
733 },
734 &quot;weekly&quot;: { # Represents a weekly schedule. # Required. Schedule with weekly executions.
735 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Day of the week.
736 },
737 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time at which a recurring patch deployment schedule is no longer active.
738 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800739 &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 -0800740 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800741 &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.
742 &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.
743 &quot;A String&quot;,
744 ],
745 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
746 &quot;A String&quot;,
747 ],
748 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
749 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800750 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
751 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
752 &quot;A String&quot;,
753 ],
754 &quot;excludes&quot;: [ # List of KBs to exclude from update.
755 &quot;A String&quot;,
756 ],
757 &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.
758 &quot;A String&quot;,
759 ],
760 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800761 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800762 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800763 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
764 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
765 &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.
766 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
767 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800768 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
769 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
770 42,
771 ],
772 &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\)).
773 },
774 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
775 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
776 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
777 &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.
778 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
779 },
780 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
781 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
782 42,
783 ],
784 &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 Bot0d561ef2020-11-25 07:50:41 -0800785 },
786 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800787 &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.
788 &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.
789 &quot;A String&quot;,
790 ],
791 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
792 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
793 &quot;A String&quot;,
794 ],
795 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
796 &quot;A String&quot;,
797 ],
798 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
799 &quot;excludes&quot;: [ # List of patches to exclude from update.
800 &quot;A String&quot;,
801 ],
802 },
803 &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.
804 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
805 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
806 &quot;A String&quot;,
807 ],
808 &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.
809 &quot;A String&quot;,
810 ],
811 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
812 },
813 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
814 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
815 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
816 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
817 &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.
818 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
819 },
820 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
821 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
822 42,
823 ],
824 &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 Bot0d561ef2020-11-25 07:50:41 -0800825 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800826 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
827 &quot;gcsObject&quot;: { # Cloud Storage object representation. # A Cloud Storage object containing the executable.
828 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Cloud Storage object.
829 &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.
830 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Cloud Storage object.
831 },
832 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
833 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
834 42,
835 ],
836 &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\)).
837 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800838 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800839 &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 Bot0d561ef2020-11-25 07:50:41 -0800840 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800841 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800842 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700843 ],
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>