blob: b69ca217e3112a000835a221dcd81d3523981738 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070075<h1><a href="osconfig_v1beta.html">OS Config API</a> . <a href="osconfig_v1beta.projects.html">projects</a> . <a href="osconfig_v1beta.projects.patchJobs.html">patchJobs</a></h1>
Bu Sun Kim65020912020-05-20 12:08:20 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="osconfig_v1beta.projects.patchJobs.instanceDetails.html">instanceDetails()</a></code>
79</p>
80<p class="firstline">Returns the instanceDetails Resource.</p>
81
82<p class="toc_element">
83 <code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070084<p class="firstline">Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted.</p>
85<p class="toc_element">
86 <code><a href="#close">close()</a></code></p>
87<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070088<p class="toc_element">
89 <code><a href="#execute">execute(parent, body=None, x__xgafv=None)</a></code></p>
90<p class="firstline">Patch VM instances by creating and running a patch job.</p>
91<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093<p class="firstline">Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070094<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080095 <code><a href="#list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070096<p class="firstline">Get a list of patch jobs.</p>
97<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<h3>Method Details</h3>
101<div class="method">
102 <code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <pre>Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted.
Bu Sun Kim65020912020-05-20 12:08:20 -0700104
105Args:
106 name: string, Required. Name of the patch in the form `projects/*/patchJobs/*` (required)
107 body: object, The request body.
108 The object takes the form of:
109
110{ # Message for canceling a patch job.
111 }
112
113 x__xgafv: string, V1 error format.
114 Allowed values
115 1 - v1 error format
116 2 - v2 error format
117
118Returns:
119 An object of the form:
120
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 { # A high level representation of a patch job that is either in progress or has completed. Instance details are not included in the job. To paginate through instance details, use `ListPatchJobInstanceDetails`. For more information about patch jobs, see [Creating patch jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700122 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch job affects. Contains counts of instances in different states. These states map to `InstancePatchState`. List patch job instance details to see the specific states of each instance. # Summary of instance details.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700123 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800124 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
125 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
126 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700127 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
128 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800129 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
130 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
131 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
132 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
133 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700134 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
135 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800136 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to ensure that the agent is installed, running, and able to communicate with the service.
137 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
138 },
139 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
140 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
141 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the patch job times out.
142 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Patch configuration being applied.
143 &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.
144 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
145 &quot;A String&quot;,
146 ],
147 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
148 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
149 &quot;A String&quot;,
150 ],
151 &quot;excludes&quot;: [ # List of patches to exclude from update.
152 &quot;A String&quot;,
153 ],
154 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
155 &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.
156 &quot;A String&quot;,
157 ],
158 },
159 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
160 },
161 &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.
162 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
163 &quot;A String&quot;,
164 ],
165 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
166 &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.
167 &quot;A String&quot;,
168 ],
169 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
170 },
171 &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.
172 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
173 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
174 &quot;A String&quot;,
175 ],
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 },
180 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
181 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
182 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
183 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
184 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
185 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
186 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
187 },
188 &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\)).
189 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
190 42,
191 ],
192 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
193 },
194 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
195 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
196 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
197 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
198 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
199 },
200 &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\)).
201 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
202 42,
203 ],
204 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
205 },
206 },
207 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
208 &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.
209 &quot;A String&quot;,
210 ],
211 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
212 &quot;A String&quot;,
213 ],
214 &quot;excludes&quot;: [ # List of KBs to exclude from update.
215 &quot;A String&quot;,
216 ],
217 },
218 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
219 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
220 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
221 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
222 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
223 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
224 },
225 &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\)).
226 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
227 42,
228 ],
229 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
230 },
231 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
232 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
233 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
234 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
235 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
236 },
237 &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\)).
238 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
239 42,
240 ],
241 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
242 },
243 },
244 },
245 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
246 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the failure.
247 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance.
248 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited to 1024 characters.
249 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete.
250 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Rollout strategy being applied.
251 &quot;disruptionBudget&quot;: { # Message encapsulating a value that can be either absolute (&quot;fixed&quot;) or relative (&quot;percent&quot;) to a value. # The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of `10`, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops.
252 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
253 &quot;fixed&quot;: 42, # Specifies a fixed value.
254 },
255 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700256 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700257 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form `projects/*/patchJobs/*`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700258 &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. # Instances to patch.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800259 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700260 &quot;A String&quot;,
261 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800262 &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]`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700263 &quot;A String&quot;,
264 ],
265 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700266 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
267 { # Represents a group of VMs that can be identified as having all these labels, for example &quot;env=prod and app=web&quot;.
268 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
269 &quot;a_key&quot;: &quot;A String&quot;,
270 },
271 },
272 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800273 &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;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700274 &quot;A String&quot;,
275 ],
276 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700277 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800278 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700279 }</pre>
280</div>
281
282<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700283 <code class="details" id="close">close()</code>
284 <pre>Close httplib2 connections.</pre>
285</div>
286
287<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700288 <code class="details" id="execute">execute(parent, body=None, x__xgafv=None)</code>
289 <pre>Patch VM instances by creating and running a patch job.
290
291Args:
292 parent: string, Required. The project in which to run this patch in the form `projects/*` (required)
293 body: object, The request body.
294 The object takes the form of:
295
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700296{ # A request message to initiate patching across Compute Engine instances.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800297 &quot;dryRun&quot;: True or False, # If this patch is a dry-run only, instances are contacted but will do nothing.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700298 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This does not have to be unique.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700299 &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. Instances to patch, either explicitly or filtered by some criteria such as zone or labels.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800300 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700301 &quot;A String&quot;,
302 ],
Yoshi Automation Botc2228be2020-11-24 15:48: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]`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700304 &quot;A String&quot;,
305 ],
306 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700307 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
308 { # Represents a group of VMs that can be identified as having all these labels, for example &quot;env=prod and app=web&quot;.
309 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
310 &quot;a_key&quot;: &quot;A String&quot;,
311 },
312 },
313 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800314 &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;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700315 &quot;A String&quot;,
316 ],
317 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800318 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the patch job times out.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700319 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Patch configuration being applied. If omitted, instances are patched using the default configurations.
320 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700321 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
322 &quot;A String&quot;,
323 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800324 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700325 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
326 &quot;A String&quot;,
327 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700328 &quot;excludes&quot;: [ # List of patches to exclude from update.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700329 &quot;A String&quot;,
330 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700331 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800332 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700333 &quot;A String&quot;,
334 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700335 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700336 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
337 },
338 &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.
339 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
340 &quot;A String&quot;,
341 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800342 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700343 &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.
344 &quot;A String&quot;,
345 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800346 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
347 },
348 &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.
349 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
350 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
351 &quot;A String&quot;,
352 ],
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 },
357 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
358 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
359 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
360 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
361 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
362 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
363 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
364 },
365 &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\)).
366 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
367 42,
368 ],
369 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
370 },
371 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
372 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
373 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
374 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
375 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
376 },
377 &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\)).
378 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
379 42,
380 ],
381 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
382 },
383 },
384 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
385 &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.
386 &quot;A String&quot;,
387 ],
388 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
389 &quot;A String&quot;,
390 ],
391 &quot;excludes&quot;: [ # List of KBs to exclude from update.
392 &quot;A String&quot;,
393 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700394 },
395 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
396 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800397 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
398 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
399 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
400 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
401 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700402 &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\)).
403 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
404 42,
405 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800406 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700407 },
408 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800409 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
410 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
411 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
412 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
413 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700414 &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\)).
415 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
416 42,
417 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800418 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700419 },
420 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700421 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800422 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited to 1024 characters.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700423 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Rollout strategy of the patch job.
424 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700425 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800426 &quot;fixed&quot;: 42, # Specifies a fixed value.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700427 },
428 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
429 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 }
431
432 x__xgafv: string, V1 error format.
433 Allowed values
434 1 - v1 error format
435 2 - v2 error format
436
437Returns:
438 An object of the form:
439
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700440 { # A high level representation of a patch job that is either in progress or has completed. Instance details are not included in the job. To paginate through instance details, use `ListPatchJobInstanceDetails`. For more information about patch jobs, see [Creating patch jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700441 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch job affects. Contains counts of instances in different states. These states map to `InstancePatchState`. List patch job instance details to see the specific states of each instance. # Summary of instance details.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700442 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800443 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
444 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
445 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700446 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
447 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800448 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
449 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
450 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
451 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
452 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700453 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
454 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800455 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to ensure that the agent is installed, running, and able to communicate with the service.
456 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
457 },
458 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
459 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
460 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the patch job times out.
461 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Patch configuration being applied.
462 &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.
463 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
464 &quot;A String&quot;,
465 ],
466 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
467 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
468 &quot;A String&quot;,
469 ],
470 &quot;excludes&quot;: [ # List of patches to exclude from update.
471 &quot;A String&quot;,
472 ],
473 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
474 &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.
475 &quot;A String&quot;,
476 ],
477 },
478 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
479 },
480 &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.
481 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
482 &quot;A String&quot;,
483 ],
484 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
485 &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.
486 &quot;A String&quot;,
487 ],
488 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
489 },
490 &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.
491 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
492 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
493 &quot;A String&quot;,
494 ],
495 &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.
496 &quot;A String&quot;,
497 ],
498 },
499 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
500 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
501 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
502 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
503 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
504 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
505 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
506 },
507 &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\)).
508 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
509 42,
510 ],
511 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
512 },
513 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
514 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
515 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
516 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
517 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
518 },
519 &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\)).
520 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
521 42,
522 ],
523 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
524 },
525 },
526 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
527 &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.
528 &quot;A String&quot;,
529 ],
530 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
531 &quot;A String&quot;,
532 ],
533 &quot;excludes&quot;: [ # List of KBs to exclude from update.
534 &quot;A String&quot;,
535 ],
536 },
537 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
538 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
539 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
540 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
541 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
542 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
543 },
544 &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\)).
545 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
546 42,
547 ],
548 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
549 },
550 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
551 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
552 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
553 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
554 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
555 },
556 &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\)).
557 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
558 42,
559 ],
560 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
561 },
562 },
563 },
564 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
565 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the failure.
566 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance.
567 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited to 1024 characters.
568 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete.
569 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Rollout strategy being applied.
570 &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.
571 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
572 &quot;fixed&quot;: 42, # Specifies a fixed value.
573 },
574 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700575 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700576 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form `projects/*/patchJobs/*`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700577 &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. # Instances to patch.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800578 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700579 &quot;A String&quot;,
580 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800581 &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]`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700582 &quot;A String&quot;,
583 ],
584 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700585 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
586 { # Represents a group of VMs that can be identified as having all these labels, for example &quot;env=prod and app=web&quot;.
587 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
588 &quot;a_key&quot;: &quot;A String&quot;,
589 },
590 },
591 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800592 &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;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700593 &quot;A String&quot;,
594 ],
595 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700596 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800597 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 }</pre>
599</div>
600
601<div class="method">
602 <code class="details" id="get">get(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700603 <pre>Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700604
605Args:
606 name: string, Required. Name of the patch in the form `projects/*/patchJobs/*` (required)
607 x__xgafv: string, V1 error format.
608 Allowed values
609 1 - v1 error format
610 2 - v2 error format
611
612Returns:
613 An object of the form:
614
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700615 { # A high level representation of a patch job that is either in progress or has completed. Instance details are not included in the job. To paginate through instance details, use `ListPatchJobInstanceDetails`. For more information about patch jobs, see [Creating patch jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700616 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch job affects. Contains counts of instances in different states. These states map to `InstancePatchState`. List patch job instance details to see the specific states of each instance. # Summary of instance details.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700617 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800618 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
619 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
620 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700621 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
622 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800623 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
624 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
625 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
626 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
627 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700628 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
629 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800630 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to ensure that the agent is installed, running, and able to communicate with the service.
631 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
632 },
633 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
634 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
635 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the patch job times out.
636 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Patch configuration being applied.
637 &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.
638 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
639 &quot;A String&quot;,
640 ],
641 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
642 &quot;categories&quot;: [ # Install only patches with these categories. Common categories include security, recommended, and feature.
643 &quot;A String&quot;,
644 ],
645 &quot;excludes&quot;: [ # List of patches to exclude from update.
646 &quot;A String&quot;,
647 ],
648 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
649 &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.
650 &quot;A String&quot;,
651 ],
652 },
653 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
654 },
655 &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.
656 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
657 &quot;A String&quot;,
658 ],
659 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
660 &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.
661 &quot;A String&quot;,
662 ],
663 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
664 },
665 &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.
666 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
667 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
668 &quot;A String&quot;,
669 ],
670 &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.
671 &quot;A String&quot;,
672 ],
673 },
674 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
675 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
676 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
677 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
678 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
679 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
680 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
681 },
682 &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\)).
683 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
684 42,
685 ],
686 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
687 },
688 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
689 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
690 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
691 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
692 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
693 },
694 &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\)).
695 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
696 42,
697 ],
698 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
699 },
700 },
701 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
702 &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.
703 &quot;A String&quot;,
704 ],
705 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
706 &quot;A String&quot;,
707 ],
708 &quot;excludes&quot;: [ # List of KBs to exclude from update.
709 &quot;A String&quot;,
710 ],
711 },
712 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
713 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
714 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
715 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
716 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
717 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
718 },
719 &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\)).
720 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
721 42,
722 ],
723 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
724 },
725 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
726 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
727 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
728 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
729 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
730 },
731 &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\)).
732 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
733 42,
734 ],
735 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
736 },
737 },
738 },
739 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
740 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the failure.
741 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance.
742 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited to 1024 characters.
743 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete.
744 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Rollout strategy being applied.
745 &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.
746 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
747 &quot;fixed&quot;: 42, # Specifies a fixed value.
748 },
749 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700750 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700751 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form `projects/*/patchJobs/*`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700752 &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. # Instances to patch.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800753 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700754 &quot;A String&quot;,
755 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800756 &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]`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700757 &quot;A String&quot;,
758 ],
759 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700760 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
761 { # Represents a group of VMs that can be identified as having all these labels, for example &quot;env=prod and app=web&quot;.
762 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
763 &quot;a_key&quot;: &quot;A String&quot;,
764 },
765 },
766 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800767 &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;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700768 &quot;A String&quot;,
769 ],
770 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700771 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800772 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700773 }</pre>
774</div>
775
776<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800777 <code class="details" id="list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700778 <pre>Get a list of patch jobs.
779
780Args:
781 parent: string, Required. In the form of `projects/*` (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700782 filter: string, If provided, this field specifies the criteria that must be met by patch jobs to be included in the response. Currently, filtering is only available on the patch_deployment field.
783 pageToken: string, A pagination token returned from a previous call that indicates where this listing should continue from.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800784 pageSize: integer, The maximum number of instance status to return.
Bu Sun Kim65020912020-05-20 12:08:20 -0700785 x__xgafv: string, V1 error format.
786 Allowed values
787 1 - v1 error format
788 2 - v2 error format
789
790Returns:
791 An object of the form:
792
793 { # A response message for listing patch jobs.
794 &quot;patchJobs&quot;: [ # The list of patch jobs.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700795 { # A high level representation of a patch job that is either in progress or has completed. Instance details are not included in the job. To paginate through instance details, use `ListPatchJobInstanceDetails`. For more information about patch jobs, see [Creating patch jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700796 &quot;instanceDetailsSummary&quot;: { # A summary of the current patch state across all instances that this patch job affects. Contains counts of instances in different states. These states map to `InstancePatchState`. List patch job instance details to see the specific states of each instance. # Summary of instance details.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700797 &quot;notifiedInstanceCount&quot;: &quot;A String&quot;, # Number of instances notified about patch job.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800798 &quot;succeededInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have completed successfully.
799 &quot;downloadingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are downloading patches.
800 &quot;startedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have started.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700801 &quot;pendingInstanceCount&quot;: &quot;A String&quot;, # Number of instances pending patch job.
802 &quot;succeededRebootRequiredInstanceCount&quot;: &quot;A String&quot;, # Number of instances that require reboot.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800803 &quot;rebootingInstanceCount&quot;: &quot;A String&quot;, # Number of instances rebooting.
804 &quot;inactiveInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are inactive.
805 &quot;prePatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the pre-patch step.
806 &quot;postPatchStepInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are running the post-patch step.
807 &quot;ackedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that have acked and will start shortly.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700808 &quot;timedOutInstanceCount&quot;: &quot;A String&quot;, # Number of instances that exceeded the time out while applying the patch.
809 &quot;applyingPatchesInstanceCount&quot;: &quot;A String&quot;, # Number of instances that are applying patches.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800810 &quot;noAgentDetectedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that do not appear to be running the agent. Check to ensure that the agent is installed, running, and able to communicate with the service.
811 &quot;failedInstanceCount&quot;: &quot;A String&quot;, # Number of instances that failed.
812 },
813 &quot;displayName&quot;: &quot;A String&quot;, # Display name for this patch job. This is not a unique identifier.
814 &quot;createTime&quot;: &quot;A String&quot;, # Time this patch job was created.
815 &quot;duration&quot;: &quot;A String&quot;, # Duration of the patch job. After the duration ends, the patch job times out.
816 &quot;patchConfig&quot;: { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Patch configuration being applied.
817 &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.
818 &quot;severities&quot;: [ # Install only patches with these severities. Common severities include critical, important, moderate, and low.
819 &quot;A String&quot;,
820 ],
821 &quot;withOptional&quot;: True or False, # Adds the `--with-optional` flag to `zypper patch`.
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;excludes&quot;: [ # List of patches to exclude from update.
826 &quot;A String&quot;,
827 ],
828 &quot;withUpdate&quot;: True or False, # Adds the `--with-update` flag, to `zypper patch`.
829 &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.
830 &quot;A String&quot;,
831 ],
832 },
833 &quot;goo&quot;: { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules.
834 },
835 &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.
836 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
837 &quot;A String&quot;,
838 ],
839 &quot;minimal&quot;: True or False, # Will cause patch to run `yum update-minimal` instead.
840 &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.
841 &quot;A String&quot;,
842 ],
843 &quot;security&quot;: True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms.
844 },
845 &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.
846 &quot;type&quot;: &quot;A String&quot;, # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
847 &quot;excludes&quot;: [ # List of packages to exclude from update. These packages will be excluded
848 &quot;A String&quot;,
849 ],
850 &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.
851 &quot;A String&quot;,
852 ],
853 },
854 &quot;rebootConfig&quot;: &quot;A String&quot;, # Post-patch reboot settings.
855 &quot;postStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
856 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
857 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
858 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
859 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
860 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
861 },
862 &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\)).
863 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
864 42,
865 ],
866 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
867 },
868 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
869 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
870 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
871 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
872 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
873 },
874 &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\)).
875 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
876 42,
877 ],
878 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
879 },
880 },
881 &quot;windowsUpdate&quot;: { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
882 &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.
883 &quot;A String&quot;,
884 ],
885 &quot;classifications&quot;: [ # Only apply updates of these windows update classifications. If empty, all updates are applied.
886 &quot;A String&quot;,
887 ],
888 &quot;excludes&quot;: [ # List of KBs to exclude from update.
889 &quot;A String&quot;,
890 ],
891 },
892 &quot;preStep&quot;: { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
893 &quot;windowsExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
894 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
895 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
896 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
897 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
898 },
899 &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\)).
900 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
901 42,
902 ],
903 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
904 },
905 &quot;linuxExecStepConfig&quot;: { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
906 &quot;gcsObject&quot;: { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
907 &quot;object&quot;: &quot;A String&quot;, # Required. Name of the Google Cloud Storage object.
908 &quot;generationNumber&quot;: &quot;A String&quot;, # Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
909 &quot;bucket&quot;: &quot;A String&quot;, # Required. Bucket of the Google Cloud Storage object.
910 },
911 &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\)).
912 &quot;allowedSuccessCodes&quot;: [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
913 42,
914 ],
915 &quot;localPath&quot;: &quot;A String&quot;, # An absolute path to the executable on the VM.
916 },
917 },
918 },
919 &quot;patchDeployment&quot;: &quot;A String&quot;, # Output only. Name of the patch deployment that created this patch job.
920 &quot;errorMessage&quot;: &quot;A String&quot;, # If this patch job failed, this message provides information about the failure.
921 &quot;dryRun&quot;: True or False, # If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance.
922 &quot;description&quot;: &quot;A String&quot;, # Description of the patch job. Length of the description is limited to 1024 characters.
923 &quot;percentComplete&quot;: 3.14, # Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete.
924 &quot;rollout&quot;: { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Rollout strategy being applied.
925 &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.
926 &quot;percent&quot;: 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
927 &quot;fixed&quot;: 42, # Specifies a fixed value.
928 },
929 &quot;mode&quot;: &quot;A String&quot;, # Mode of the patch rollout.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700930 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700931 &quot;name&quot;: &quot;A String&quot;, # Unique identifier for this patch job in the form `projects/*/patchJobs/*`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700932 &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. # Instances to patch.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800933 &quot;zones&quot;: [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700934 &quot;A String&quot;,
935 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800936 &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]`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700937 &quot;A String&quot;,
938 ],
939 &quot;all&quot;: True or False, # Target all VM instances in the project. If true, no other criteria is permitted.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700940 &quot;groupLabels&quot;: [ # Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example &quot;env=prod or env=staging&quot;.
941 { # Represents a group of VMs that can be identified as having all these labels, for example &quot;env=prod and app=web&quot;.
942 &quot;labels&quot;: { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
943 &quot;a_key&quot;: &quot;A String&quot;,
944 },
945 },
946 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800947 &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;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700948 &quot;A String&quot;,
949 ],
950 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700951 &quot;state&quot;: &quot;A String&quot;, # The current state of the PatchJob.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800952 &quot;updateTime&quot;: &quot;A String&quot;, # Last time this patch job was updated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700953 },
954 ],
955 &quot;nextPageToken&quot;: &quot;A String&quot;, # A pagination token that can be used to get the next page of results.
956 }</pre>
957</div>
958
959<div class="method">
960 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
961 <pre>Retrieves the next page of results.
962
963Args:
964 previous_request: The request for the previous page. (required)
965 previous_response: The response from the request for the previous page. (required)
966
967Returns:
968 A request object that you can call &#x27;execute()&#x27; on to request the next
969 page. Returns None if there are no more items in the collection.
970 </pre>
971</div>
972
973</body></html>