Debian Codegraph @

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