Debian Codegraph @

docs/dyn/compute_alpha.zoneVmExtensionPolicies.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.zoneVmExtensionPolicies.html">zoneVmExtensionPolicies</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#delete">delete(project, zone, vmExtensionPolicy, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Deletes a specified zone VM extension policy within a project.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(project, zone, vmExtensionPolicy, x__xgafv=None)</a></code></p>
85 <p class="firstline">Retrieves details of a specific zone VM extension policy within a project.</p>
86 <p class="toc_element">
87 <code><a href="#getVmExtension">getVmExtension(project, zone, extensionName, x__xgafv=None)</a></code></p>
88 <p class="firstline">Retrieves details of a specific VM extension within a project.</p>
89 <p class="toc_element">
90 <code><a href="#insert">insert(project, zone, body=None, requestId=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Creates a new zone-level VM extension policy within a project.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Lists all VM extension policies within a specific zone for a project.</p>
95 <p class="toc_element">
96 <code><a href="#listVmExtensions">listVmExtensions(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Lists all VM extensions within a specific zone for a project.</p>
98 <p class="toc_element">
99 <code><a href="#listVmExtensions_next">listVmExtensions_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#list_next">list_next()</a></code></p>
103 <p class="firstline">Retrieves the next page of results.</p>
104 <p class="toc_element">
105 <code><a href="#update">update(project, zone, vmExtensionPolicy, body=None, requestId=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Modifies an existing zone VM extension policy within a project.</p>
107 <h3>Method Details</h3>
108 <div class="method">
109 <code class="details" id="close">close()</code>
110 <pre>Close httplib2 connections.</pre>
111 </div>
112
113 <div class="method">
114 <code class="details" id="delete">delete(project, zone, vmExtensionPolicy, requestId=None, x__xgafv=None)</code>
115 <pre>Deletes a specified zone VM extension policy within a project.
116
117 Args:
118 project: string, Project ID for this request. (required)
119 zone: string, Name of the zone for this request. (required)
120 vmExtensionPolicy: string, Name of the zone VM extension policy to delete. (required)
121 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
122 that if you must retry your request, the server will know to ignore the
123 request if it has already been completed.
124
125 For example, consider a situation where you make an initial request and
126 the request times out. If you make the request again with the same
127 request ID, the server can check if original operation with the same
128 request ID was received, and if so, will ignore the second request. This
129 prevents clients from accidentally creating duplicate commitments.
130
131 The request ID must be
132 a valid UUID with the exception that zero UUID is not supported
133 (00000000-0000-0000-0000-000000000000).
134 x__xgafv: string, V1 error format.
135 Allowed values
136 1 - v1 error format
137 2 - v2 error format
138
139 Returns:
140 An object of the form:
141
142 { # Represents an Operation resource.
143 #
144 # Google Compute Engine has three Operation resources:
145 #
146 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
147 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
148 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
149 #
150 # You can use an operation resource to manage asynchronous API requests.
151 # For more information, readHandling
152 # API responses.
153 #
154 # Operations can be global, regional or zonal.
155 #
156 # - For global operations, use the `globalOperations`
157 # resource.
158 # - For regional operations, use the
159 # `regionOperations` resource.
160 # - For zonal operations, use
161 # the `zoneOperations` resource.
162 #
163 #
164 #
165 # For more information, read
166 # Global, Regional, and Zonal Resources.
167 #
168 # Note that completed Operation resources have a limited
169 # retention period.
170 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
171 # Not present otherwise.
172 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
173 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
174 # set when the operation is created.
175 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
176 # text format.
177 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
178 # this field will be populated.
179 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
180 # operation.
181 {
182 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
183 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
184 # details. There is a set of defined message types to use for providing
185 # details.The syntax depends on the error code. For example,
186 # QuotaExceededInfo will have details when the error code is
187 # QUOTA_EXCEEDED.
188 {
189 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
190 #
191 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
192 # is not enabled:
193 #
194 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
195 # &quot;domain&quot;: &quot;googleapis.com&quot;
196 # &quot;metadata&quot;: {
197 # &quot;resource&quot;: &quot;projects/123&quot;,
198 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
199 # }
200 # }
201 #
202 # This response indicates that the pubsub.googleapis.com API is not enabled.
203 #
204 # Example of an error that is returned when attempting to create a Spanner
205 # instance in a region that is out of stock:
206 #
207 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
208 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
209 # &quot;metadata&quot;: {
210 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
211 # }
212 # }
213 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
214 # is typically the registered service name of the tool or product that
215 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
216 # generated by some common infrastructure, the error domain must be a
217 # globally unique value that identifies the infrastructure. For Google API
218 # infrastructure, the error domain is &quot;googleapis.com&quot;.
219 &quot;metadatas&quot;: { # Additional structured details about this error.
220 #
221 # Keys must match a regular expression of `a-z+` but should
222 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
223 # length. When identifying the current value of an exceeded limit, the units
224 # should be contained in the key, not the value. For example, rather than
225 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
226 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
227 # instances that can be created in a single (batch) request.
228 &quot;a_key&quot;: &quot;A String&quot;,
229 },
230 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
231 # proximate cause of the error. Error reasons are unique within a particular
232 # domain of errors. This should be at most 63 characters and match a
233 # regular expression of `A-Z+[A-Z0-9]`, which represents
234 # UPPER_SNAKE_CASE.
235 },
236 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
237 #
238 # For example, if a quota check failed with an error indicating the calling
239 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
240 # directly to the right place in the developer console to flip the bit.
241 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
242 { # Describes a URL link.
243 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
244 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
245 },
246 ],
247 },
248 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
249 # which can be attached to an RPC error.
250 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
251 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
252 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
253 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
254 },
255 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
256 &quot;dimensions&quot;: { # The map holding related quota dimensions.
257 &quot;a_key&quot;: &quot;A String&quot;,
258 },
259 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
260 # type or metric.
261 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
262 # or metric.
263 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
264 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
265 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
266 },
267 },
268 ],
269 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
270 # This property is optional.
271 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
272 },
273 ],
274 },
275 &quot;getVersionOperationMetadata&quot;: {
276 &quot;inlineSbomInfo&quot;: {
277 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
278 # appropriate identifiers.
279 &quot;a_key&quot;: &quot;A String&quot;,
280 },
281 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
282 # identifiers.
283 &quot;a_key&quot;: &quot;A String&quot;,
284 },
285 },
286 },
287 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
288 # message that was returned, such as `NOT FOUND`.
289 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
290 # status code that was returned. For example, a `404` means the
291 # resource was not found.
292 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
293 # defined by the server.
294 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
295 # This value is inRFC3339
296 # text format.
297 &quot;instancesBulkInsertOperationMetadata&quot;: {
298 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
299 # Example key: zones/us-central1-a
300 &quot;a_key&quot;: {
301 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
302 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
303 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
304 # error.
305 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
306 # if the flow is rolling forward or rolling back.
307 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
308 },
309 },
310 },
311 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
312 # Operation resources.
313 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
314 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
315 # group of operations results from a `bulkInsert` API request.
316 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
317 # `update`, or `delete`, and so on.
318 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
319 # There is no requirement that this be linear or support any granularity of
320 # operations. This should not be used to guess when the operation will be
321 # complete. This number should monotonically increase as the operation
322 # progresses.
323 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
324 # applicable when performing regional operations.
325 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
326 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
327 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
328 # this field will contain information on all underlying zonal actions and
329 # their state.
330 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
331 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
332 # Example key: zones/us-central1-a
333 &quot;a_key&quot;: {
334 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
335 # populated.
336 # different programming environments, including REST APIs and RPC APIs. It is
337 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
338 # three pieces of data: error code, error message, and error details.
339 #
340 # You can find out more about this error model and how to work with it in the
341 # [API Design Guide](https://cloud.google.com/apis/design/errors).
342 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
343 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
344 # message types for APIs to use.
345 {
346 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
347 },
348 ],
349 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
350 # user-facing error message should be localized and sent in the
351 # google.rpc.Status.details field, or localized by the client.
352 },
353 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
354 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
355 },
356 },
357 },
358 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
359 # This value is inRFC3339
360 # text format.
361 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
362 # following:
363 # `PENDING`, `RUNNING`, or `DONE`.
364 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
365 # operation.
366 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
367 # of the target resource.
368 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
369 # operations related to creating a snapshot, this points to the disk
370 # that the snapshot was created from.
371 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
372 # `[email protected]` or
373 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
374 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
375 # operation, this field will be populated.
376 {
377 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
378 # Engine returns NO_RESULTS_ON_PAGE if there
379 # are no results in the response.
380 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
381 # value format. For example:
382 #
383 # &quot;data&quot;: [
384 # {
385 # &quot;key&quot;: &quot;scope&quot;,
386 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
387 # }
388 {
389 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
390 # returned. For example, for warnings where there are no results in a list
391 # request for a particular zone, this key might be scope and
392 # the key value might be the zone name. Other examples might be a key
393 # indicating a deprecated resource and a suggested replacement, or a
394 # warning about invalid network settings (for example, if an instance
395 # attempts to perform IP forwarding but is not enabled for IP forwarding).
396 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
397 },
398 ],
399 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
400 },
401 ],
402 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
403 # applicable when performing per-zone operations.
404 }</pre>
405 </div>
406
407 <div class="method">
408 <code class="details" id="get">get(project, zone, vmExtensionPolicy, x__xgafv=None)</code>
409 <pre>Retrieves details of a specific zone VM extension policy within a project.
410
411 Args:
412 project: string, Project ID for this request. (required)
413 zone: string, Name of the zone for this request. (required)
414 vmExtensionPolicy: string, Name of the VM extension policy resource to return. (required)
415 x__xgafv: string, V1 error format.
416 Allowed values
417 1 - v1 error format
418 2 - v2 error format
419
420 Returns:
421 An object of the form:
422
423 { # Represents a VM extension policy.
424 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
425 # text format.
426 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource.
427 &quot;extensionPolicies&quot;: { # Required. A map of extension names (for example, &quot;ops-agent&quot;) to their corresponding
428 # policy configurations.
429 &quot;a_key&quot;: { # Configuration for a specific VM extension.
430 &quot;pinnedVersion&quot;: &quot;A String&quot;, # Optional. The specific version of the extension to install. If not set, the latest
431 # version is used.
432 &quot;stringConfig&quot;: &quot;A String&quot;, # Optional. String-based configuration data for the extension.
433 },
434 },
435 &quot;globalResourceLink&quot;: &quot;A String&quot;, # Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
436 # applicable.
437 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
438 # defined by the server.
439 &quot;instanceSelectors&quot;: [ # Optional. Selectors to target VMs for this policy. VMs are selected if they match
440 # *any* of the provided selectors (logical OR). If this list is empty, the
441 # policy applies to all VMs.
442 { # Defines how to select VMs to apply a zone VM extension policy.
443 &quot;labelSelector&quot;: { # A LabelSelector is applied to a VM only if it matches all the specified # Optional. LabelSelector selects VMs based on their labels.
444 # labels.
445 &quot;inclusionLabels&quot;: { # Optional. A map of key-value pairs representing VM labels.
446 # VMs must have all of the labels specified in this map to be selected
447 # (logical AND).
448 #
449 # e.g. If the `inclusion_labels` are {(&quot;key1&quot;, &quot;value1&quot;), (&quot;key2&quot;,
450 # &quot;value2&quot;)}, the VM labels must contain both (&quot;key1&quot;, &quot;value1&quot;) and
451 # (&quot;key2&quot;, &quot;value2&quot;) to be selected. If the VM labels are (&quot;key1&quot;,
452 # &quot;value1&quot;) and (&quot;something&quot;, &quot;else&quot;), it will not be selected.
453 #
454 # If the map is empty, it&#x27;s considered a match.
455 &quot;a_key&quot;: &quot;A String&quot;,
456 },
457 },
458 },
459 ],
460 &quot;kind&quot;: &quot;compute#vmExtensionPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
461 &quot;managedByGlobal&quot;: True or False, # Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
462 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
463 # The name must be 1-63 characters long, and comply withRFC1035.
464 # Specifically, the name must be 1-63 characters long and match the regular
465 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`
466 # which means the first character must be a lowercase letter, and all
467 # following characters must be a dash, lowercase letter, or digit, except
468 # the last character, which cannot be a dash.
469 &quot;priority&quot;: 42, # Optional. Priority of this policy. Used to resolve conflicts when multiple policies
470 # apply to the same extension.
471 # The policy priority is an integer from 0 to 65535, inclusive. Lower
472 # integers indicate higher priorities. If you do not specify a priority when
473 # creating a rule, it is assigned a priority of 1000. If priorities are
474 # equal, the policy with the most recent creation timestamp takes precedence.
475 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined fully-qualified URL for this resource.
476 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
477 &quot;state&quot;: &quot;A String&quot;, # Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
478 &quot;updateTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Update timestamp inRFC3339
479 # text format.
480 }</pre>
481 </div>
482
483 <div class="method">
484 <code class="details" id="getVmExtension">getVmExtension(project, zone, extensionName, x__xgafv=None)</code>
485 <pre>Retrieves details of a specific VM extension within a project.
486
487 Args:
488 project: string, Project ID for this request. (required)
489 zone: string, Name of the zone for this request. (required)
490 extensionName: string, A parameter (required)
491 x__xgafv: string, V1 error format.
492 Allowed values
493 1 - v1 error format
494 2 - v2 error format
495
496 Returns:
497 An object of the form:
498
499 { # A VM extension that can be installed on a VM.
500 &quot;name&quot;: &quot;A String&quot;, # The name of the vm extension.
501 &quot;versions&quot;: [ # The latest 10 versions of the vm extension.
502 &quot;A String&quot;,
503 ],
504 }</pre>
505 </div>
506
507 <div class="method">
508 <code class="details" id="insert">insert(project, zone, body=None, requestId=None, x__xgafv=None)</code>
509 <pre>Creates a new zone-level VM extension policy within a project.
510
511 Args:
512 project: string, Project ID for this request. (required)
513 zone: string, Name of the zone for this request. (required)
514 body: object, The request body.
515 The object takes the form of:
516
517 { # Represents a VM extension policy.
518 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
519 # text format.
520 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource.
521 &quot;extensionPolicies&quot;: { # Required. A map of extension names (for example, &quot;ops-agent&quot;) to their corresponding
522 # policy configurations.
523 &quot;a_key&quot;: { # Configuration for a specific VM extension.
524 &quot;pinnedVersion&quot;: &quot;A String&quot;, # Optional. The specific version of the extension to install. If not set, the latest
525 # version is used.
526 &quot;stringConfig&quot;: &quot;A String&quot;, # Optional. String-based configuration data for the extension.
527 },
528 },
529 &quot;globalResourceLink&quot;: &quot;A String&quot;, # Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
530 # applicable.
531 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
532 # defined by the server.
533 &quot;instanceSelectors&quot;: [ # Optional. Selectors to target VMs for this policy. VMs are selected if they match
534 # *any* of the provided selectors (logical OR). If this list is empty, the
535 # policy applies to all VMs.
536 { # Defines how to select VMs to apply a zone VM extension policy.
537 &quot;labelSelector&quot;: { # A LabelSelector is applied to a VM only if it matches all the specified # Optional. LabelSelector selects VMs based on their labels.
538 # labels.
539 &quot;inclusionLabels&quot;: { # Optional. A map of key-value pairs representing VM labels.
540 # VMs must have all of the labels specified in this map to be selected
541 # (logical AND).
542 #
543 # e.g. If the `inclusion_labels` are {(&quot;key1&quot;, &quot;value1&quot;), (&quot;key2&quot;,
544 # &quot;value2&quot;)}, the VM labels must contain both (&quot;key1&quot;, &quot;value1&quot;) and
545 # (&quot;key2&quot;, &quot;value2&quot;) to be selected. If the VM labels are (&quot;key1&quot;,
546 # &quot;value1&quot;) and (&quot;something&quot;, &quot;else&quot;), it will not be selected.
547 #
548 # If the map is empty, it&#x27;s considered a match.
549 &quot;a_key&quot;: &quot;A String&quot;,
550 },
551 },
552 },
553 ],
554 &quot;kind&quot;: &quot;compute#vmExtensionPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
555 &quot;managedByGlobal&quot;: True or False, # Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
556 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
557 # The name must be 1-63 characters long, and comply withRFC1035.
558 # Specifically, the name must be 1-63 characters long and match the regular
559 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`
560 # which means the first character must be a lowercase letter, and all
561 # following characters must be a dash, lowercase letter, or digit, except
562 # the last character, which cannot be a dash.
563 &quot;priority&quot;: 42, # Optional. Priority of this policy. Used to resolve conflicts when multiple policies
564 # apply to the same extension.
565 # The policy priority is an integer from 0 to 65535, inclusive. Lower
566 # integers indicate higher priorities. If you do not specify a priority when
567 # creating a rule, it is assigned a priority of 1000. If priorities are
568 # equal, the policy with the most recent creation timestamp takes precedence.
569 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined fully-qualified URL for this resource.
570 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
571 &quot;state&quot;: &quot;A String&quot;, # Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
572 &quot;updateTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Update timestamp inRFC3339
573 # text format.
574 }
575
576 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
577 that if you must retry your request, the server will know to ignore the
578 request if it has already been completed.
579
580 For example, consider a situation where you make an initial request and
581 the request times out. If you make the request again with the same
582 request ID, the server can check if original operation with the same
583 request ID was received, and if so, will ignore the second request. This
584 prevents clients from accidentally creating duplicate commitments.
585
586 The request ID must be
587 a valid UUID with the exception that zero UUID is not supported
588 (00000000-0000-0000-0000-000000000000).
589 x__xgafv: string, V1 error format.
590 Allowed values
591 1 - v1 error format
592 2 - v2 error format
593
594 Returns:
595 An object of the form:
596
597 { # Represents an Operation resource.
598 #
599 # Google Compute Engine has three Operation resources:
600 #
601 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
602 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
603 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
604 #
605 # You can use an operation resource to manage asynchronous API requests.
606 # For more information, readHandling
607 # API responses.
608 #
609 # Operations can be global, regional or zonal.
610 #
611 # - For global operations, use the `globalOperations`
612 # resource.
613 # - For regional operations, use the
614 # `regionOperations` resource.
615 # - For zonal operations, use
616 # the `zoneOperations` resource.
617 #
618 #
619 #
620 # For more information, read
621 # Global, Regional, and Zonal Resources.
622 #
623 # Note that completed Operation resources have a limited
624 # retention period.
625 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
626 # Not present otherwise.
627 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
628 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
629 # set when the operation is created.
630 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
631 # text format.
632 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
633 # this field will be populated.
634 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
635 # operation.
636 {
637 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
638 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
639 # details. There is a set of defined message types to use for providing
640 # details.The syntax depends on the error code. For example,
641 # QuotaExceededInfo will have details when the error code is
642 # QUOTA_EXCEEDED.
643 {
644 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
645 #
646 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
647 # is not enabled:
648 #
649 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
650 # &quot;domain&quot;: &quot;googleapis.com&quot;
651 # &quot;metadata&quot;: {
652 # &quot;resource&quot;: &quot;projects/123&quot;,
653 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
654 # }
655 # }
656 #
657 # This response indicates that the pubsub.googleapis.com API is not enabled.
658 #
659 # Example of an error that is returned when attempting to create a Spanner
660 # instance in a region that is out of stock:
661 #
662 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
663 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
664 # &quot;metadata&quot;: {
665 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
666 # }
667 # }
668 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
669 # is typically the registered service name of the tool or product that
670 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
671 # generated by some common infrastructure, the error domain must be a
672 # globally unique value that identifies the infrastructure. For Google API
673 # infrastructure, the error domain is &quot;googleapis.com&quot;.
674 &quot;metadatas&quot;: { # Additional structured details about this error.
675 #
676 # Keys must match a regular expression of `a-z+` but should
677 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
678 # length. When identifying the current value of an exceeded limit, the units
679 # should be contained in the key, not the value. For example, rather than
680 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
681 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
682 # instances that can be created in a single (batch) request.
683 &quot;a_key&quot;: &quot;A String&quot;,
684 },
685 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
686 # proximate cause of the error. Error reasons are unique within a particular
687 # domain of errors. This should be at most 63 characters and match a
688 # regular expression of `A-Z+[A-Z0-9]`, which represents
689 # UPPER_SNAKE_CASE.
690 },
691 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
692 #
693 # For example, if a quota check failed with an error indicating the calling
694 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
695 # directly to the right place in the developer console to flip the bit.
696 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
697 { # Describes a URL link.
698 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
699 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
700 },
701 ],
702 },
703 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
704 # which can be attached to an RPC error.
705 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
706 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
707 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
708 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
709 },
710 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
711 &quot;dimensions&quot;: { # The map holding related quota dimensions.
712 &quot;a_key&quot;: &quot;A String&quot;,
713 },
714 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
715 # type or metric.
716 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
717 # or metric.
718 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
719 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
720 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
721 },
722 },
723 ],
724 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
725 # This property is optional.
726 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
727 },
728 ],
729 },
730 &quot;getVersionOperationMetadata&quot;: {
731 &quot;inlineSbomInfo&quot;: {
732 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
733 # appropriate identifiers.
734 &quot;a_key&quot;: &quot;A String&quot;,
735 },
736 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
737 # identifiers.
738 &quot;a_key&quot;: &quot;A String&quot;,
739 },
740 },
741 },
742 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
743 # message that was returned, such as `NOT FOUND`.
744 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
745 # status code that was returned. For example, a `404` means the
746 # resource was not found.
747 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
748 # defined by the server.
749 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
750 # This value is inRFC3339
751 # text format.
752 &quot;instancesBulkInsertOperationMetadata&quot;: {
753 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
754 # Example key: zones/us-central1-a
755 &quot;a_key&quot;: {
756 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
757 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
758 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
759 # error.
760 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
761 # if the flow is rolling forward or rolling back.
762 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
763 },
764 },
765 },
766 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
767 # Operation resources.
768 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
769 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
770 # group of operations results from a `bulkInsert` API request.
771 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
772 # `update`, or `delete`, and so on.
773 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
774 # There is no requirement that this be linear or support any granularity of
775 # operations. This should not be used to guess when the operation will be
776 # complete. This number should monotonically increase as the operation
777 # progresses.
778 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
779 # applicable when performing regional operations.
780 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
781 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
782 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
783 # this field will contain information on all underlying zonal actions and
784 # their state.
785 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
786 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
787 # Example key: zones/us-central1-a
788 &quot;a_key&quot;: {
789 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
790 # populated.
791 # different programming environments, including REST APIs and RPC APIs. It is
792 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
793 # three pieces of data: error code, error message, and error details.
794 #
795 # You can find out more about this error model and how to work with it in the
796 # [API Design Guide](https://cloud.google.com/apis/design/errors).
797 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
798 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
799 # message types for APIs to use.
800 {
801 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
802 },
803 ],
804 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
805 # user-facing error message should be localized and sent in the
806 # google.rpc.Status.details field, or localized by the client.
807 },
808 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
809 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
810 },
811 },
812 },
813 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
814 # This value is inRFC3339
815 # text format.
816 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
817 # following:
818 # `PENDING`, `RUNNING`, or `DONE`.
819 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
820 # operation.
821 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
822 # of the target resource.
823 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
824 # operations related to creating a snapshot, this points to the disk
825 # that the snapshot was created from.
826 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
827 # `[email protected]` or
828 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
829 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
830 # operation, this field will be populated.
831 {
832 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
833 # Engine returns NO_RESULTS_ON_PAGE if there
834 # are no results in the response.
835 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
836 # value format. For example:
837 #
838 # &quot;data&quot;: [
839 # {
840 # &quot;key&quot;: &quot;scope&quot;,
841 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
842 # }
843 {
844 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
845 # returned. For example, for warnings where there are no results in a list
846 # request for a particular zone, this key might be scope and
847 # the key value might be the zone name. Other examples might be a key
848 # indicating a deprecated resource and a suggested replacement, or a
849 # warning about invalid network settings (for example, if an instance
850 # attempts to perform IP forwarding but is not enabled for IP forwarding).
851 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
852 },
853 ],
854 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
855 },
856 ],
857 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
858 # applicable when performing per-zone operations.
859 }</pre>
860 </div>
861
862 <div class="method">
863 <code class="details" id="list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
864 <pre>Lists all VM extension policies within a specific zone for a project.
865
866 Args:
867 project: string, Project ID for this request. (required)
868 zone: string, Name of the zone for this request. (required)
869 filter: string, A filter expression that filters resources listed in the response. Most
870 Compute resources support two types of filter expressions:
871 expressions that support regular expressions and expressions that follow
872 API improvement proposal AIP-160.
873 These two types of filter expressions cannot be mixed in one request.
874
875 If you want to use AIP-160, your expression must specify the field name, an
876 operator, and the value that you want to use for filtering. The value
877 must be a string, a number, or a boolean. The operator
878 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
879
880 For example, if you are filtering Compute Engine instances, you can
881 exclude instances named `example-instance` by specifying
882 `name != example-instance`.
883
884 The `:*` comparison can be used to test whether a key has been defined.
885 For example, to find all objects with `owner` label use:
886 ```
887 labels.owner:*
888 ```
889
890 You can also filter nested fields. For example, you could specify
891 `scheduling.automaticRestart = false` to include instances only
892 if they are not scheduled for automatic restarts. You can use filtering
893 on nested fields to filter based onresource labels.
894
895 To filter on multiple expressions, provide each separate expression within
896 parentheses. For example:
897 ```
898 (scheduling.automaticRestart = true)
899 (cpuPlatform = &quot;Intel Skylake&quot;)
900 ```
901 By default, each expression is an `AND` expression. However, you
902 can include `AND` and `OR` expressions explicitly.
903 For example:
904 ```
905 (cpuPlatform = &quot;Intel Skylake&quot;) OR
906 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
907 (scheduling.automaticRestart = true)
908 ```
909
910 If you want to use a regular expression, use the `eq` (equal) or `ne`
911 (not equal) operator against a single un-parenthesized expression with or
912 without quotes or against multiple parenthesized expressions. Examples:
913
914 `fieldname eq unquoted literal`
915 `fieldname eq &#x27;single quoted literal&#x27;`
916 `fieldname eq &quot;double quoted literal&quot;`
917 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
918
919 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
920 The literal value must match the entire field.
921
922 For example, to filter for instances that do not end with name &quot;instance&quot;,
923 you would use `name ne .*instance`.
924
925 You cannot combine constraints on multiple fields using regular
926 expressions.
927 maxResults: integer, The maximum number of results per page that should be returned.
928 If the number of available results is larger than `maxResults`,
929 Compute Engine returns a `nextPageToken` that can be used to get
930 the next page of results in subsequent list requests. Acceptable values are
931 `0` to `500`, inclusive. (Default: `500`)
932 orderBy: string, Sorts list results by a certain order. By default, results
933 are returned in alphanumerical order based on the resource name.
934
935 You can also sort results in descending order based on the creation
936 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
937 results based on the `creationTimestamp` field in
938 reverse chronological order (newest result first). Use this to sort
939 resources like operations so that the newest operation is returned first.
940
941 Currently, only sorting by `name` or
942 `creationTimestamp desc` is supported.
943 pageToken: string, Specifies a page token to use. Set `pageToken` to the
944 `nextPageToken` returned by a previous list request to get
945 the next page of results.
946 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
947 of failure. The default value is false.
948
949 For example, when partial success behavior is enabled, aggregatedList for a
950 single zone scope either returns all resources in the zone or no resources,
951 with an error code.
952 x__xgafv: string, V1 error format.
953 Allowed values
954 1 - v1 error format
955 2 - v2 error format
956
957 Returns:
958 An object of the form:
959
960 {
961 &quot;etag&quot;: &quot;A String&quot;, # Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
962 # in this object. This field is used in optimistic locking. This field will
963 # be ignored when inserting a VmExtensionPolicy. An up-to-date
964 # fingerprint must be provided in order to update the VmExtensionPolicy.
965 #
966 # To see the latest value of the fingerprint, make a get() request to
967 # retrieve a VmExtensionPolicy.
968 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] Unique identifier for the resource; defined by the server.
969 &quot;items&quot;: [ # Output only. [Output Only] A list of VM extension policy resources.
970 { # Represents a VM extension policy.
971 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
972 # text format.
973 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource.
974 &quot;extensionPolicies&quot;: { # Required. A map of extension names (for example, &quot;ops-agent&quot;) to their corresponding
975 # policy configurations.
976 &quot;a_key&quot;: { # Configuration for a specific VM extension.
977 &quot;pinnedVersion&quot;: &quot;A String&quot;, # Optional. The specific version of the extension to install. If not set, the latest
978 # version is used.
979 &quot;stringConfig&quot;: &quot;A String&quot;, # Optional. String-based configuration data for the extension.
980 },
981 },
982 &quot;globalResourceLink&quot;: &quot;A String&quot;, # Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
983 # applicable.
984 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
985 # defined by the server.
986 &quot;instanceSelectors&quot;: [ # Optional. Selectors to target VMs for this policy. VMs are selected if they match
987 # *any* of the provided selectors (logical OR). If this list is empty, the
988 # policy applies to all VMs.
989 { # Defines how to select VMs to apply a zone VM extension policy.
990 &quot;labelSelector&quot;: { # A LabelSelector is applied to a VM only if it matches all the specified # Optional. LabelSelector selects VMs based on their labels.
991 # labels.
992 &quot;inclusionLabels&quot;: { # Optional. A map of key-value pairs representing VM labels.
993 # VMs must have all of the labels specified in this map to be selected
994 # (logical AND).
995 #
996 # e.g. If the `inclusion_labels` are {(&quot;key1&quot;, &quot;value1&quot;), (&quot;key2&quot;,
997 # &quot;value2&quot;)}, the VM labels must contain both (&quot;key1&quot;, &quot;value1&quot;) and
998 # (&quot;key2&quot;, &quot;value2&quot;) to be selected. If the VM labels are (&quot;key1&quot;,
999 # &quot;value1&quot;) and (&quot;something&quot;, &quot;else&quot;), it will not be selected.
1000 #
1001 # If the map is empty, it&#x27;s considered a match.
1002 &quot;a_key&quot;: &quot;A String&quot;,
1003 },
1004 },
1005 },
1006 ],
1007 &quot;kind&quot;: &quot;compute#vmExtensionPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
1008 &quot;managedByGlobal&quot;: True or False, # Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
1009 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1010 # The name must be 1-63 characters long, and comply withRFC1035.
1011 # Specifically, the name must be 1-63 characters long and match the regular
1012 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`
1013 # which means the first character must be a lowercase letter, and all
1014 # following characters must be a dash, lowercase letter, or digit, except
1015 # the last character, which cannot be a dash.
1016 &quot;priority&quot;: 42, # Optional. Priority of this policy. Used to resolve conflicts when multiple policies
1017 # apply to the same extension.
1018 # The policy priority is an integer from 0 to 65535, inclusive. Lower
1019 # integers indicate higher priorities. If you do not specify a priority when
1020 # creating a rule, it is assigned a priority of 1000. If priorities are
1021 # equal, the policy with the most recent creation timestamp takes precedence.
1022 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined fully-qualified URL for this resource.
1023 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
1024 &quot;state&quot;: &quot;A String&quot;, # Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
1025 &quot;updateTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Update timestamp inRFC3339
1026 # text format.
1027 },
1028 ],
1029 &quot;kind&quot;: &quot;compute#vmExtensionPolicyList&quot;, # Output only. Type of resource.
1030 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. [Output Only] This token allows you to get the next page of results for
1031 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
1032 # the query parameter pageToken in the next list request.
1033 # Subsequent list requests will have their own nextPageToken to
1034 # continue paging through the results.
1035 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
1036 &quot;unreachables&quot;: [ # Output only. [Output Only] Unreachable resources.
1037 &quot;A String&quot;,
1038 ],
1039 &quot;warning&quot;: { # Output only. [Output Only] Informational warning message.
1040 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1041 # Engine returns NO_RESULTS_ON_PAGE if there
1042 # are no results in the response.
1043 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1044 # value format. For example:
1045 #
1046 # &quot;data&quot;: [
1047 # {
1048 # &quot;key&quot;: &quot;scope&quot;,
1049 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1050 # }
1051 {
1052 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1053 # returned. For example, for warnings where there are no results in a list
1054 # request for a particular zone, this key might be scope and
1055 # the key value might be the zone name. Other examples might be a key
1056 # indicating a deprecated resource and a suggested replacement, or a
1057 # warning about invalid network settings (for example, if an instance
1058 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1059 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1060 },
1061 ],
1062 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1063 },
1064 }</pre>
1065 </div>
1066
1067 <div class="method">
1068 <code class="details" id="listVmExtensions">listVmExtensions(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
1069 <pre>Lists all VM extensions within a specific zone for a project.
1070 This is a read-only API.
1071
1072 Args:
1073 project: string, Required. Project ID for this request. (required)
1074 zone: string, Name of the zone for this request. (required)
1075 filter: string, A filter expression that filters resources listed in the response. Most
1076 Compute resources support two types of filter expressions:
1077 expressions that support regular expressions and expressions that follow
1078 API improvement proposal AIP-160.
1079 These two types of filter expressions cannot be mixed in one request.
1080
1081 If you want to use AIP-160, your expression must specify the field name, an
1082 operator, and the value that you want to use for filtering. The value
1083 must be a string, a number, or a boolean. The operator
1084 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
1085
1086 For example, if you are filtering Compute Engine instances, you can
1087 exclude instances named `example-instance` by specifying
1088 `name != example-instance`.
1089
1090 The `:*` comparison can be used to test whether a key has been defined.
1091 For example, to find all objects with `owner` label use:
1092 ```
1093 labels.owner:*
1094 ```
1095
1096 You can also filter nested fields. For example, you could specify
1097 `scheduling.automaticRestart = false` to include instances only
1098 if they are not scheduled for automatic restarts. You can use filtering
1099 on nested fields to filter based onresource labels.
1100
1101 To filter on multiple expressions, provide each separate expression within
1102 parentheses. For example:
1103 ```
1104 (scheduling.automaticRestart = true)
1105 (cpuPlatform = &quot;Intel Skylake&quot;)
1106 ```
1107 By default, each expression is an `AND` expression. However, you
1108 can include `AND` and `OR` expressions explicitly.
1109 For example:
1110 ```
1111 (cpuPlatform = &quot;Intel Skylake&quot;) OR
1112 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
1113 (scheduling.automaticRestart = true)
1114 ```
1115
1116 If you want to use a regular expression, use the `eq` (equal) or `ne`
1117 (not equal) operator against a single un-parenthesized expression with or
1118 without quotes or against multiple parenthesized expressions. Examples:
1119
1120 `fieldname eq unquoted literal`
1121 `fieldname eq &#x27;single quoted literal&#x27;`
1122 `fieldname eq &quot;double quoted literal&quot;`
1123 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
1124
1125 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1126 The literal value must match the entire field.
1127
1128 For example, to filter for instances that do not end with name &quot;instance&quot;,
1129 you would use `name ne .*instance`.
1130
1131 You cannot combine constraints on multiple fields using regular
1132 expressions.
1133 maxResults: integer, The maximum number of results per page that should be returned.
1134 If the number of available results is larger than `maxResults`,
1135 Compute Engine returns a `nextPageToken` that can be used to get
1136 the next page of results in subsequent list requests. Acceptable values are
1137 `0` to `500`, inclusive. (Default: `500`)
1138 orderBy: string, Sorts list results by a certain order. By default, results
1139 are returned in alphanumerical order based on the resource name.
1140
1141 You can also sort results in descending order based on the creation
1142 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
1143 results based on the `creationTimestamp` field in
1144 reverse chronological order (newest result first). Use this to sort
1145 resources like operations so that the newest operation is returned first.
1146
1147 Currently, only sorting by `name` or
1148 `creationTimestamp desc` is supported.
1149 pageToken: string, Specifies a page token to use. Set `pageToken` to the
1150 `nextPageToken` returned by a previous list request to get
1151 the next page of results.
1152 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
1153 of failure. The default value is false.
1154
1155 For example, when partial success behavior is enabled, aggregatedList for a
1156 single zone scope either returns all resources in the zone or no resources,
1157 with an error code.
1158 x__xgafv: string, V1 error format.
1159 Allowed values
1160 1 - v1 error format
1161 2 - v2 error format
1162
1163 Returns:
1164 An object of the form:
1165
1166 {
1167 &quot;etag&quot;: &quot;A String&quot;, # Output only. Fingerprint of this resource. A hash of the contents stored
1168 # in this object. This field is used in optimistic locking. This field will
1169 # be ignored when inserting a VmExtensionPolicy. An up-to-date
1170 # fingerprint must be provided in order to update the VmExtensionPolicy.
1171 #
1172 # To see the latest value of the fingerprint, make a get() request to
1173 # retrieve a VmExtensionPolicy.
1174 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier for the resource; defined by the server.
1175 &quot;items&quot;: [ # Output only. A list of VM extensions.
1176 { # A VM extension that can be installed on a VM.
1177 &quot;name&quot;: &quot;A String&quot;, # The name of the vm extension.
1178 &quot;versions&quot;: [ # The latest 10 versions of the vm extension.
1179 &quot;A String&quot;,
1180 ],
1181 },
1182 ],
1183 &quot;kind&quot;: &quot;compute#vmExtensionList&quot;, # Output only. Type of resource.
1184 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. This token allows you to get the next page of results for
1185 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
1186 # the query parameter pageToken in the next list request.
1187 # Subsequent list requests will have their own nextPageToken to
1188 # continue paging through the results.
1189 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server-defined URL for this resource.
1190 &quot;unreachables&quot;: [ # Output only. Unreachable resources.
1191 &quot;A String&quot;,
1192 ],
1193 &quot;warning&quot;: { # Output only. Informational warning message.
1194 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1195 # Engine returns NO_RESULTS_ON_PAGE if there
1196 # are no results in the response.
1197 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1198 # value format. For example:
1199 #
1200 # &quot;data&quot;: [
1201 # {
1202 # &quot;key&quot;: &quot;scope&quot;,
1203 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1204 # }
1205 {
1206 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1207 # returned. For example, for warnings where there are no results in a list
1208 # request for a particular zone, this key might be scope and
1209 # the key value might be the zone name. Other examples might be a key
1210 # indicating a deprecated resource and a suggested replacement, or a
1211 # warning about invalid network settings (for example, if an instance
1212 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1213 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1214 },
1215 ],
1216 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1217 },
1218 }</pre>
1219 </div>
1220
1221 <div class="method">
1222 <code class="details" id="listVmExtensions_next">listVmExtensions_next()</code>
1223 <pre>Retrieves the next page of results.
1224
1225 Args:
1226 previous_request: The request for the previous page. (required)
1227 previous_response: The response from the request for the previous page. (required)
1228
1229 Returns:
1230 A request object that you can call &#x27;execute()&#x27; on to request the next
1231 page. Returns None if there are no more items in the collection.
1232 </pre>
1233 </div>
1234
1235 <div class="method">
1236 <code class="details" id="list_next">list_next()</code>
1237 <pre>Retrieves the next page of results.
1238
1239 Args:
1240 previous_request: The request for the previous page. (required)
1241 previous_response: The response from the request for the previous page. (required)
1242
1243 Returns:
1244 A request object that you can call &#x27;execute()&#x27; on to request the next
1245 page. Returns None if there are no more items in the collection.
1246 </pre>
1247 </div>
1248
1249 <div class="method">
1250 <code class="details" id="update">update(project, zone, vmExtensionPolicy, body=None, requestId=None, x__xgafv=None)</code>
1251 <pre>Modifies an existing zone VM extension policy within a project.
1252
1253 Args:
1254 project: string, Project ID for this request. (required)
1255 zone: string, Name of the zone for this request. (required)
1256 vmExtensionPolicy: string, Name of the zone VM extension policy to update. (required)
1257 body: object, The request body.
1258 The object takes the form of:
1259
1260 { # Represents a VM extension policy.
1261 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1262 # text format.
1263 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource.
1264 &quot;extensionPolicies&quot;: { # Required. A map of extension names (for example, &quot;ops-agent&quot;) to their corresponding
1265 # policy configurations.
1266 &quot;a_key&quot;: { # Configuration for a specific VM extension.
1267 &quot;pinnedVersion&quot;: &quot;A String&quot;, # Optional. The specific version of the extension to install. If not set, the latest
1268 # version is used.
1269 &quot;stringConfig&quot;: &quot;A String&quot;, # Optional. String-based configuration data for the extension.
1270 },
1271 },
1272 &quot;globalResourceLink&quot;: &quot;A String&quot;, # Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
1273 # applicable.
1274 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
1275 # defined by the server.
1276 &quot;instanceSelectors&quot;: [ # Optional. Selectors to target VMs for this policy. VMs are selected if they match
1277 # *any* of the provided selectors (logical OR). If this list is empty, the
1278 # policy applies to all VMs.
1279 { # Defines how to select VMs to apply a zone VM extension policy.
1280 &quot;labelSelector&quot;: { # A LabelSelector is applied to a VM only if it matches all the specified # Optional. LabelSelector selects VMs based on their labels.
1281 # labels.
1282 &quot;inclusionLabels&quot;: { # Optional. A map of key-value pairs representing VM labels.
1283 # VMs must have all of the labels specified in this map to be selected
1284 # (logical AND).
1285 #
1286 # e.g. If the `inclusion_labels` are {(&quot;key1&quot;, &quot;value1&quot;), (&quot;key2&quot;,
1287 # &quot;value2&quot;)}, the VM labels must contain both (&quot;key1&quot;, &quot;value1&quot;) and
1288 # (&quot;key2&quot;, &quot;value2&quot;) to be selected. If the VM labels are (&quot;key1&quot;,
1289 # &quot;value1&quot;) and (&quot;something&quot;, &quot;else&quot;), it will not be selected.
1290 #
1291 # If the map is empty, it&#x27;s considered a match.
1292 &quot;a_key&quot;: &quot;A String&quot;,
1293 },
1294 },
1295 },
1296 ],
1297 &quot;kind&quot;: &quot;compute#vmExtensionPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
1298 &quot;managedByGlobal&quot;: True or False, # Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
1299 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1300 # The name must be 1-63 characters long, and comply withRFC1035.
1301 # Specifically, the name must be 1-63 characters long and match the regular
1302 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`
1303 # which means the first character must be a lowercase letter, and all
1304 # following characters must be a dash, lowercase letter, or digit, except
1305 # the last character, which cannot be a dash.
1306 &quot;priority&quot;: 42, # Optional. Priority of this policy. Used to resolve conflicts when multiple policies
1307 # apply to the same extension.
1308 # The policy priority is an integer from 0 to 65535, inclusive. Lower
1309 # integers indicate higher priorities. If you do not specify a priority when
1310 # creating a rule, it is assigned a priority of 1000. If priorities are
1311 # equal, the policy with the most recent creation timestamp takes precedence.
1312 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined fully-qualified URL for this resource.
1313 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
1314 &quot;state&quot;: &quot;A String&quot;, # Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
1315 &quot;updateTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Update timestamp inRFC3339
1316 # text format.
1317 }
1318
1319 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1320 that if you must retry your request, the server will know to ignore the
1321 request if it has already been completed.
1322
1323 For example, consider a situation where you make an initial request and
1324 the request times out. If you make the request again with the same
1325 request ID, the server can check if original operation with the same
1326 request ID was received, and if so, will ignore the second request. This
1327 prevents clients from accidentally creating duplicate commitments.
1328
1329 The request ID must be
1330 a valid UUID with the exception that zero UUID is not supported
1331 (00000000-0000-0000-0000-000000000000).
1332 x__xgafv: string, V1 error format.
1333 Allowed values
1334 1 - v1 error format
1335 2 - v2 error format
1336
1337 Returns:
1338 An object of the form:
1339
1340 { # Represents an Operation resource.
1341 #
1342 # Google Compute Engine has three Operation resources:
1343 #
1344 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
1345 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
1346 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
1347 #
1348 # You can use an operation resource to manage asynchronous API requests.
1349 # For more information, readHandling
1350 # API responses.
1351 #
1352 # Operations can be global, regional or zonal.
1353 #
1354 # - For global operations, use the `globalOperations`
1355 # resource.
1356 # - For regional operations, use the
1357 # `regionOperations` resource.
1358 # - For zonal operations, use
1359 # the `zoneOperations` resource.
1360 #
1361 #
1362 #
1363 # For more information, read
1364 # Global, Regional, and Zonal Resources.
1365 #
1366 # Note that completed Operation resources have a limited
1367 # retention period.
1368 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1369 # Not present otherwise.
1370 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1371 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1372 # set when the operation is created.
1373 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1374 # text format.
1375 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1376 # this field will be populated.
1377 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1378 # operation.
1379 {
1380 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1381 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1382 # details. There is a set of defined message types to use for providing
1383 # details.The syntax depends on the error code. For example,
1384 # QuotaExceededInfo will have details when the error code is
1385 # QUOTA_EXCEEDED.
1386 {
1387 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1388 #
1389 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1390 # is not enabled:
1391 #
1392 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1393 # &quot;domain&quot;: &quot;googleapis.com&quot;
1394 # &quot;metadata&quot;: {
1395 # &quot;resource&quot;: &quot;projects/123&quot;,
1396 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1397 # }
1398 # }
1399 #
1400 # This response indicates that the pubsub.googleapis.com API is not enabled.
1401 #
1402 # Example of an error that is returned when attempting to create a Spanner
1403 # instance in a region that is out of stock:
1404 #
1405 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1406 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1407 # &quot;metadata&quot;: {
1408 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1409 # }
1410 # }
1411 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1412 # is typically the registered service name of the tool or product that
1413 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1414 # generated by some common infrastructure, the error domain must be a
1415 # globally unique value that identifies the infrastructure. For Google API
1416 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1417 &quot;metadatas&quot;: { # Additional structured details about this error.
1418 #
1419 # Keys must match a regular expression of `a-z+` but should
1420 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1421 # length. When identifying the current value of an exceeded limit, the units
1422 # should be contained in the key, not the value. For example, rather than
1423 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1424 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1425 # instances that can be created in a single (batch) request.
1426 &quot;a_key&quot;: &quot;A String&quot;,
1427 },
1428 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1429 # proximate cause of the error. Error reasons are unique within a particular
1430 # domain of errors. This should be at most 63 characters and match a
1431 # regular expression of `A-Z+[A-Z0-9]`, which represents
1432 # UPPER_SNAKE_CASE.
1433 },
1434 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1435 #
1436 # For example, if a quota check failed with an error indicating the calling
1437 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1438 # directly to the right place in the developer console to flip the bit.
1439 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1440 { # Describes a URL link.
1441 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1442 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1443 },
1444 ],
1445 },
1446 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1447 # which can be attached to an RPC error.
1448 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1449 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1450 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1451 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1452 },
1453 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1454 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1455 &quot;a_key&quot;: &quot;A String&quot;,
1456 },
1457 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1458 # type or metric.
1459 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1460 # or metric.
1461 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1462 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1463 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1464 },
1465 },
1466 ],
1467 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1468 # This property is optional.
1469 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1470 },
1471 ],
1472 },
1473 &quot;getVersionOperationMetadata&quot;: {
1474 &quot;inlineSbomInfo&quot;: {
1475 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1476 # appropriate identifiers.
1477 &quot;a_key&quot;: &quot;A String&quot;,
1478 },
1479 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1480 # identifiers.
1481 &quot;a_key&quot;: &quot;A String&quot;,
1482 },
1483 },
1484 },
1485 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1486 # message that was returned, such as `NOT FOUND`.
1487 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1488 # status code that was returned. For example, a `404` means the
1489 # resource was not found.
1490 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1491 # defined by the server.
1492 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1493 # This value is inRFC3339
1494 # text format.
1495 &quot;instancesBulkInsertOperationMetadata&quot;: {
1496 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1497 # Example key: zones/us-central1-a
1498 &quot;a_key&quot;: {
1499 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1500 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1501 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1502 # error.
1503 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1504 # if the flow is rolling forward or rolling back.
1505 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1506 },
1507 },
1508 },
1509 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1510 # Operation resources.
1511 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1512 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1513 # group of operations results from a `bulkInsert` API request.
1514 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1515 # `update`, or `delete`, and so on.
1516 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1517 # There is no requirement that this be linear or support any granularity of
1518 # operations. This should not be used to guess when the operation will be
1519 # complete. This number should monotonically increase as the operation
1520 # progresses.
1521 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1522 # applicable when performing regional operations.
1523 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1524 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1525 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1526 # this field will contain information on all underlying zonal actions and
1527 # their state.
1528 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1529 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1530 # Example key: zones/us-central1-a
1531 &quot;a_key&quot;: {
1532 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
1533 # populated.
1534 # different programming environments, including REST APIs and RPC APIs. It is
1535 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1536 # three pieces of data: error code, error message, and error details.
1537 #
1538 # You can find out more about this error model and how to work with it in the
1539 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1540 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1541 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1542 # message types for APIs to use.
1543 {
1544 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1545 },
1546 ],
1547 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1548 # user-facing error message should be localized and sent in the
1549 # google.rpc.Status.details field, or localized by the client.
1550 },
1551 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1552 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1553 },
1554 },
1555 },
1556 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1557 # This value is inRFC3339
1558 # text format.
1559 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1560 # following:
1561 # `PENDING`, `RUNNING`, or `DONE`.
1562 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1563 # operation.
1564 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1565 # of the target resource.
1566 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1567 # operations related to creating a snapshot, this points to the disk
1568 # that the snapshot was created from.
1569 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1570 # `[email protected]` or
1571 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1572 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1573 # operation, this field will be populated.
1574 {
1575 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1576 # Engine returns NO_RESULTS_ON_PAGE if there
1577 # are no results in the response.
1578 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1579 # value format. For example:
1580 #
1581 # &quot;data&quot;: [
1582 # {
1583 # &quot;key&quot;: &quot;scope&quot;,
1584 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1585 # }
1586 {
1587 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1588 # returned. For example, for warnings where there are no results in a list
1589 # request for a particular zone, this key might be scope and
1590 # the key value might be the zone name. Other examples might be a key
1591 # indicating a deprecated resource and a suggested replacement, or a
1592 # warning about invalid network settings (for example, if an instance
1593 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1594 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1595 },
1596 ],
1597 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1598 },
1599 ],
1600 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1601 # applicable when performing per-zone operations.
1602 }</pre>
1603 </div>
1604
1605 </body></html>