Debian Codegraph @

docs/dyn/compute_beta.regionDiskSettings.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_beta.html">Compute Engine API</a> . <a href="compute_beta.regionDiskSettings.html">regionDiskSettings</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(project, region, x__xgafv=None)</a></code></p>
82 <p class="firstline">Get Regional Disk Settings.</p>
83 <p class="toc_element">
84 <code><a href="#patch">patch(project, region, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Patch Regional Disk Settings</p>
86 <h3>Method Details</h3>
87 <div class="method">
88 <code class="details" id="close">close()</code>
89 <pre>Close httplib2 connections.</pre>
90 </div>
91
92 <div class="method">
93 <code class="details" id="get">get(project, region, x__xgafv=None)</code>
94 <pre>Get Regional Disk Settings.
95
96 Args:
97 project: string, Project ID for this request. (required)
98 region: string, Name of the region for this request. (required)
99 x__xgafv: string, V1 error format.
100 Allowed values
101 1 - v1 error format
102 2 - v2 error format
103
104 Returns:
105 An object of the form:
106
107 {
108 &quot;accessLocation&quot;: { # AccessLocation is only used for regional snapshot. It contains which # Policy of which locations are allowed to create regional
109 # snapshots.
110 # regions are allowed to create a regional snapshot from disks located in the
111 # given region/zone.
112 # It includes key-value pairs designed to store the following structure. The
113 # keys should match their corresponding values, which must be provided:
114 # access_location: {
115 # locations {
116 # us-central1 {
117 # region: &quot;us-central1&quot;
118 # },
119 # asia-west2 {
120 # region: &quot;asia-west2&quot;
121 # }
122 # }
123 # }
124 &quot;locations&quot;: { # List of regions that can create a regional
125 # snapshot from the current region
126 &quot;a_key&quot;: { # A structure for specifying an allowed target region to create snapshot.
127 &quot;region&quot;: &quot;A String&quot;, # Accessible region name
128 },
129 },
130 &quot;policy&quot;: &quot;A String&quot;, # Policy of which location is allowed to access snapshot.
131 },
132 }</pre>
133 </div>
134
135 <div class="method">
136 <code class="details" id="patch">patch(project, region, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
137 <pre>Patch Regional Disk Settings
138
139 Args:
140 project: string, Project ID for this request. (required)
141 region: string, Name of the region for this request. (required)
142 body: object, The request body.
143 The object takes the form of:
144
145 {
146 &quot;accessLocation&quot;: { # AccessLocation is only used for regional snapshot. It contains which # Policy of which locations are allowed to create regional
147 # snapshots.
148 # regions are allowed to create a regional snapshot from disks located in the
149 # given region/zone.
150 # It includes key-value pairs designed to store the following structure. The
151 # keys should match their corresponding values, which must be provided:
152 # access_location: {
153 # locations {
154 # us-central1 {
155 # region: &quot;us-central1&quot;
156 # },
157 # asia-west2 {
158 # region: &quot;asia-west2&quot;
159 # }
160 # }
161 # }
162 &quot;locations&quot;: { # List of regions that can create a regional
163 # snapshot from the current region
164 &quot;a_key&quot;: { # A structure for specifying an allowed target region to create snapshot.
165 &quot;region&quot;: &quot;A String&quot;, # Accessible region name
166 },
167 },
168 &quot;policy&quot;: &quot;A String&quot;, # Policy of which location is allowed to access snapshot.
169 },
170 }
171
172 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
173 that if you must retry your request, the server will know to ignore the
174 request if it has already been completed.
175
176 For example, consider a situation where you make an initial request and
177 the request times out. If you make the request again with the same
178 request ID, the server can check if original operation with the same
179 request ID was received, and if so, will ignore the second request. This
180 prevents clients from accidentally creating duplicate commitments.
181
182 The request ID must be
183 a valid UUID with the exception that zero UUID is not supported
184 (00000000-0000-0000-0000-000000000000).
185 updateMask: string, update_mask indicates fields to be updated as part of this request.
186 x__xgafv: string, V1 error format.
187 Allowed values
188 1 - v1 error format
189 2 - v2 error format
190
191 Returns:
192 An object of the form:
193
194 { # Represents an Operation resource.
195 #
196 # Google Compute Engine has three Operation resources:
197 #
198 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
199 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
200 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
201 #
202 # You can use an operation resource to manage asynchronous API requests.
203 # For more information, readHandling
204 # API responses.
205 #
206 # Operations can be global, regional or zonal.
207 #
208 # - For global operations, use the `globalOperations`
209 # resource.
210 # - For regional operations, use the
211 # `regionOperations` resource.
212 # - For zonal operations, use
213 # the `zoneOperations` resource.
214 #
215 #
216 #
217 # For more information, read
218 # Global, Regional, and Zonal Resources.
219 #
220 # Note that completed Operation resources have a limited
221 # retention period.
222 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
223 # Not present otherwise.
224 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
225 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
226 # set when the operation is created.
227 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
228 # text format.
229 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
230 # this field will be populated.
231 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
232 # operation.
233 {
234 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
235 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
236 # details. There is a set of defined message types to use for providing
237 # details.The syntax depends on the error code. For example,
238 # QuotaExceededInfo will have details when the error code is
239 # QUOTA_EXCEEDED.
240 {
241 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
242 #
243 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
244 # is not enabled:
245 #
246 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
247 # &quot;domain&quot;: &quot;googleapis.com&quot;
248 # &quot;metadata&quot;: {
249 # &quot;resource&quot;: &quot;projects/123&quot;,
250 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
251 # }
252 # }
253 #
254 # This response indicates that the pubsub.googleapis.com API is not enabled.
255 #
256 # Example of an error that is returned when attempting to create a Spanner
257 # instance in a region that is out of stock:
258 #
259 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
260 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
261 # &quot;metadata&quot;: {
262 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
263 # }
264 # }
265 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
266 # is typically the registered service name of the tool or product that
267 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
268 # generated by some common infrastructure, the error domain must be a
269 # globally unique value that identifies the infrastructure. For Google API
270 # infrastructure, the error domain is &quot;googleapis.com&quot;.
271 &quot;metadatas&quot;: { # Additional structured details about this error.
272 #
273 # Keys must match a regular expression of `a-z+` but should
274 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
275 # length. When identifying the current value of an exceeded limit, the units
276 # should be contained in the key, not the value. For example, rather than
277 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
278 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
279 # instances that can be created in a single (batch) request.
280 &quot;a_key&quot;: &quot;A String&quot;,
281 },
282 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
283 # proximate cause of the error. Error reasons are unique within a particular
284 # domain of errors. This should be at most 63 characters and match a
285 # regular expression of `A-Z+[A-Z0-9]`, which represents
286 # UPPER_SNAKE_CASE.
287 },
288 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
289 #
290 # For example, if a quota check failed with an error indicating the calling
291 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
292 # directly to the right place in the developer console to flip the bit.
293 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
294 { # Describes a URL link.
295 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
296 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
297 },
298 ],
299 },
300 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
301 # which can be attached to an RPC error.
302 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
303 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
304 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
305 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
306 },
307 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
308 &quot;dimensions&quot;: { # The map holding related quota dimensions.
309 &quot;a_key&quot;: &quot;A String&quot;,
310 },
311 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
312 # type or metric.
313 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
314 # or metric.
315 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
316 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
317 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
318 },
319 },
320 ],
321 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
322 # This property is optional.
323 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
324 },
325 ],
326 },
327 &quot;getVersionOperationMetadata&quot;: {
328 &quot;inlineSbomInfo&quot;: {
329 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
330 # appropriate identifiers.
331 &quot;a_key&quot;: &quot;A String&quot;,
332 },
333 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
334 # identifiers.
335 &quot;a_key&quot;: &quot;A String&quot;,
336 },
337 },
338 },
339 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
340 # message that was returned, such as `NOT FOUND`.
341 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
342 # status code that was returned. For example, a `404` means the
343 # resource was not found.
344 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
345 # defined by the server.
346 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
347 # This value is inRFC3339
348 # text format.
349 &quot;instancesBulkInsertOperationMetadata&quot;: {
350 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
351 # Example key: zones/us-central1-a
352 &quot;a_key&quot;: {
353 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
354 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
355 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
356 # error.
357 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
358 # if the flow is rolling forward or rolling back.
359 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
360 },
361 },
362 },
363 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
364 # Operation resources.
365 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
366 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
367 # group of operations results from a `bulkInsert` API request.
368 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
369 # `update`, or `delete`, and so on.
370 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
371 # There is no requirement that this be linear or support any granularity of
372 # operations. This should not be used to guess when the operation will be
373 # complete. This number should monotonically increase as the operation
374 # progresses.
375 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
376 # applicable when performing regional operations.
377 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
378 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
379 # this field will contain information on all underlying zonal actions and
380 # their state.
381 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
382 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
383 # Example key: zones/us-central1-a
384 &quot;a_key&quot;: {
385 &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
386 # populated.
387 # different programming environments, including REST APIs and RPC APIs. It is
388 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
389 # three pieces of data: error code, error message, and error details.
390 #
391 # You can find out more about this error model and how to work with it in the
392 # [API Design Guide](https://cloud.google.com/apis/design/errors).
393 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
394 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
395 # message types for APIs to use.
396 {
397 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
398 },
399 ],
400 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
401 # user-facing error message should be localized and sent in the
402 # google.rpc.Status.details field, or localized by the client.
403 },
404 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
405 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
406 },
407 },
408 },
409 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
410 # This value is inRFC3339
411 # text format.
412 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
413 # following:
414 # `PENDING`, `RUNNING`, or `DONE`.
415 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
416 # operation.
417 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
418 # of the target resource.
419 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
420 # operations related to creating a snapshot, this points to the disk
421 # that the snapshot was created from.
422 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
423 # `[email protected]` or
424 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
425 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
426 # operation, this field will be populated.
427 {
428 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
429 # Engine returns NO_RESULTS_ON_PAGE if there
430 # are no results in the response.
431 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
432 # value format. For example:
433 #
434 # &quot;data&quot;: [
435 # {
436 # &quot;key&quot;: &quot;scope&quot;,
437 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
438 # }
439 {
440 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
441 # returned. For example, for warnings where there are no results in a list
442 # request for a particular zone, this key might be scope and
443 # the key value might be the zone name. Other examples might be a key
444 # indicating a deprecated resource and a suggested replacement, or a
445 # warning about invalid network settings (for example, if an instance
446 # attempts to perform IP forwarding but is not enabled for IP forwarding).
447 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
448 },
449 ],
450 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
451 },
452 ],
453 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
454 # applicable when performing per-zone operations.
455 }</pre>
456 </div>
457
458 </body></html>