Debian Codegraph @

docs/dyn/baremetalsolution_v2.projects.locations.volumes.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="baremetalsolution_v2.html">Bare Metal Solution API</a> . <a href="baremetalsolution_v2.projects.html">projects</a> . <a href="baremetalsolution_v2.projects.locations.html">locations</a> . <a href="baremetalsolution_v2.projects.locations.volumes.html">volumes</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="baremetalsolution_v2.projects.locations.volumes.luns.html">luns()</a></code>
79 </p>
80 <p class="firstline">Returns the luns Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="baremetalsolution_v2.projects.locations.volumes.snapshots.html">snapshots()</a></code>
84 </p>
85 <p class="firstline">Returns the snapshots Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#evict">evict(name, body=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Skips volume's cooloff and deletes it now. Volume must be in cooloff state.</p>
93 <p class="toc_element">
94 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
95 <p class="firstline">Get details of a single storage volume.</p>
96 <p class="toc_element">
97 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
98 <p class="firstline">List storage volumes in a given project and location.</p>
99 <p class="toc_element">
100 <code><a href="#list_next">list_next()</a></code></p>
101 <p class="firstline">Retrieves the next page of results.</p>
102 <p class="toc_element">
103 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
104 <p class="firstline">Update details of a single storage volume.</p>
105 <p class="toc_element">
106 <code><a href="#rename">rename(name, body=None, x__xgafv=None)</a></code></p>
107 <p class="firstline">RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated.</p>
108 <p class="toc_element">
109 <code><a href="#resize">resize(volume, body=None, x__xgafv=None)</a></code></p>
110 <p class="firstline">Emergency Volume resize.</p>
111 <h3>Method Details</h3>
112 <div class="method">
113 <code class="details" id="close">close()</code>
114 <pre>Close httplib2 connections.</pre>
115 </div>
116
117 <div class="method">
118 <code class="details" id="evict">evict(name, body=None, x__xgafv=None)</code>
119 <pre>Skips volume&#x27;s cooloff and deletes it now. Volume must be in cooloff state.
120
121 Args:
122 name: string, Required. The name of the Volume. (required)
123 body: object, The request body.
124 The object takes the form of:
125
126 { # Request for skip volume cooloff and delete it.
127 }
128
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134 Returns:
135 An object of the form:
136
137 { # This resource represents a long-running operation that is the result of a network API call.
138 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
139 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
140 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
141 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
142 {
143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
144 },
145 ],
146 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
147 },
148 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
149 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
150 },
151 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
152 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
154 },
155 }</pre>
156 </div>
157
158 <div class="method">
159 <code class="details" id="get">get(name, x__xgafv=None)</code>
160 <pre>Get details of a single storage volume.
161
162 Args:
163 name: string, Required. Name of the resource. (required)
164 x__xgafv: string, V1 error format.
165 Allowed values
166 1 - v1 error format
167 2 - v2 error format
168
169 Returns:
170 An object of the form:
171
172 { # A storage volume.
173 &quot;attached&quot;: True or False, # Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of `instances` field. It is filled in List responses as well.
174 &quot;autoGrownSizeGib&quot;: &quot;A String&quot;, # The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.
175 &quot;bootVolume&quot;: True or False, # Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
176 &quot;currentSizeGib&quot;: &quot;A String&quot;, # The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.
177 &quot;emergencySizeGib&quot;: &quot;A String&quot;, # Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
178 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
179 &quot;id&quot;: &quot;A String&quot;, # An identifier for the `Volume`, generated by the backend.
180 &quot;instances&quot;: [ # Output only. Instances this Volume is attached to. This field is set only in Get requests.
181 &quot;A String&quot;,
182 ],
183 &quot;labels&quot;: { # Labels as key value pairs.
184 &quot;a_key&quot;: &quot;A String&quot;,
185 },
186 &quot;maxSizeGib&quot;: &quot;A String&quot;, # Maximum size volume can be expanded to in case of evergency, in GiB.
187 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Volume`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/volumes/{volume}`
188 &quot;notes&quot;: &quot;A String&quot;, # Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
189 &quot;originallyRequestedSizeGib&quot;: &quot;A String&quot;, # Originally requested size, in GiB.
190 &quot;performanceTier&quot;: &quot;A String&quot;, # Immutable. Performance tier of the Volume. Default is SHARED.
191 &quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name. Pod is an independent part of infrastructure. Volume can only be connected to the instances allocated in the same pod.
192 &quot;protocol&quot;: &quot;A String&quot;, # Output only. Storage protocol for the Volume.
193 &quot;remainingSpaceGib&quot;: &quot;A String&quot;, # The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
194 &quot;requestedSizeGib&quot;: &quot;A String&quot;, # The requested size of this storage volume, in GiB.
195 &quot;snapshotAutoDeleteBehavior&quot;: &quot;A String&quot;, # The behavior to use when snapshot reserved space is full.
196 &quot;snapshotEnabled&quot;: True or False, # Whether snapshots are enabled.
197 &quot;snapshotReservationDetail&quot;: { # Details about snapshot space reservation and usage on the storage volume. # Details about snapshot space reservation and usage on the storage volume.
198 &quot;reservedSpaceGib&quot;: &quot;A String&quot;, # The space on this storage volume reserved for snapshots, shown in GiB.
199 &quot;reservedSpacePercent&quot;: 42, # Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true.
200 &quot;reservedSpaceRemainingGib&quot;: &quot;A String&quot;, # The amount, in GiB, of available space in this storage volume&#x27;s reserved snapshot space.
201 &quot;reservedSpaceUsedPercent&quot;: 42, # The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume.
202 },
203 &quot;state&quot;: &quot;A String&quot;, # The state of this storage volume.
204 &quot;storageType&quot;: &quot;A String&quot;, # The storage type for this volume.
205 &quot;workloadProfile&quot;: &quot;A String&quot;, # The workload profile for the volume.
206 }</pre>
207 </div>
208
209 <div class="method">
210 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
211 <pre>List storage volumes in a given project and location.
212
213 Args:
214 parent: string, Required. Parent value for ListVolumesRequest. (required)
215 filter: string, List filter.
216 pageSize: integer, Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
217 pageToken: string, A token identifying a page of results from the server.
218 x__xgafv: string, V1 error format.
219 Allowed values
220 1 - v1 error format
221 2 - v2 error format
222
223 Returns:
224 An object of the form:
225
226 { # Response message containing the list of storage volumes.
227 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results from the server.
228 &quot;unreachable&quot;: [ # Locations that could not be reached.
229 &quot;A String&quot;,
230 ],
231 &quot;volumes&quot;: [ # The list of storage volumes.
232 { # A storage volume.
233 &quot;attached&quot;: True or False, # Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of `instances` field. It is filled in List responses as well.
234 &quot;autoGrownSizeGib&quot;: &quot;A String&quot;, # The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.
235 &quot;bootVolume&quot;: True or False, # Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
236 &quot;currentSizeGib&quot;: &quot;A String&quot;, # The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.
237 &quot;emergencySizeGib&quot;: &quot;A String&quot;, # Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
238 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
239 &quot;id&quot;: &quot;A String&quot;, # An identifier for the `Volume`, generated by the backend.
240 &quot;instances&quot;: [ # Output only. Instances this Volume is attached to. This field is set only in Get requests.
241 &quot;A String&quot;,
242 ],
243 &quot;labels&quot;: { # Labels as key value pairs.
244 &quot;a_key&quot;: &quot;A String&quot;,
245 },
246 &quot;maxSizeGib&quot;: &quot;A String&quot;, # Maximum size volume can be expanded to in case of evergency, in GiB.
247 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Volume`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/volumes/{volume}`
248 &quot;notes&quot;: &quot;A String&quot;, # Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
249 &quot;originallyRequestedSizeGib&quot;: &quot;A String&quot;, # Originally requested size, in GiB.
250 &quot;performanceTier&quot;: &quot;A String&quot;, # Immutable. Performance tier of the Volume. Default is SHARED.
251 &quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name. Pod is an independent part of infrastructure. Volume can only be connected to the instances allocated in the same pod.
252 &quot;protocol&quot;: &quot;A String&quot;, # Output only. Storage protocol for the Volume.
253 &quot;remainingSpaceGib&quot;: &quot;A String&quot;, # The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
254 &quot;requestedSizeGib&quot;: &quot;A String&quot;, # The requested size of this storage volume, in GiB.
255 &quot;snapshotAutoDeleteBehavior&quot;: &quot;A String&quot;, # The behavior to use when snapshot reserved space is full.
256 &quot;snapshotEnabled&quot;: True or False, # Whether snapshots are enabled.
257 &quot;snapshotReservationDetail&quot;: { # Details about snapshot space reservation and usage on the storage volume. # Details about snapshot space reservation and usage on the storage volume.
258 &quot;reservedSpaceGib&quot;: &quot;A String&quot;, # The space on this storage volume reserved for snapshots, shown in GiB.
259 &quot;reservedSpacePercent&quot;: 42, # Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true.
260 &quot;reservedSpaceRemainingGib&quot;: &quot;A String&quot;, # The amount, in GiB, of available space in this storage volume&#x27;s reserved snapshot space.
261 &quot;reservedSpaceUsedPercent&quot;: 42, # The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume.
262 },
263 &quot;state&quot;: &quot;A String&quot;, # The state of this storage volume.
264 &quot;storageType&quot;: &quot;A String&quot;, # The storage type for this volume.
265 &quot;workloadProfile&quot;: &quot;A String&quot;, # The workload profile for the volume.
266 },
267 ],
268 }</pre>
269 </div>
270
271 <div class="method">
272 <code class="details" id="list_next">list_next()</code>
273 <pre>Retrieves the next page of results.
274
275 Args:
276 previous_request: The request for the previous page. (required)
277 previous_response: The response from the request for the previous page. (required)
278
279 Returns:
280 A request object that you can call &#x27;execute()&#x27; on to request the next
281 page. Returns None if there are no more items in the collection.
282 </pre>
283 </div>
284
285 <div class="method">
286 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
287 <pre>Update details of a single storage volume.
288
289 Args:
290 name: string, Output only. The resource name of this `Volume`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/volumes/{volume}` (required)
291 body: object, The request body.
292 The object takes the form of:
293
294 { # A storage volume.
295 &quot;attached&quot;: True or False, # Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of `instances` field. It is filled in List responses as well.
296 &quot;autoGrownSizeGib&quot;: &quot;A String&quot;, # The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.
297 &quot;bootVolume&quot;: True or False, # Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
298 &quot;currentSizeGib&quot;: &quot;A String&quot;, # The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.
299 &quot;emergencySizeGib&quot;: &quot;A String&quot;, # Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
300 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
301 &quot;id&quot;: &quot;A String&quot;, # An identifier for the `Volume`, generated by the backend.
302 &quot;instances&quot;: [ # Output only. Instances this Volume is attached to. This field is set only in Get requests.
303 &quot;A String&quot;,
304 ],
305 &quot;labels&quot;: { # Labels as key value pairs.
306 &quot;a_key&quot;: &quot;A String&quot;,
307 },
308 &quot;maxSizeGib&quot;: &quot;A String&quot;, # Maximum size volume can be expanded to in case of evergency, in GiB.
309 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Volume`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/volumes/{volume}`
310 &quot;notes&quot;: &quot;A String&quot;, # Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
311 &quot;originallyRequestedSizeGib&quot;: &quot;A String&quot;, # Originally requested size, in GiB.
312 &quot;performanceTier&quot;: &quot;A String&quot;, # Immutable. Performance tier of the Volume. Default is SHARED.
313 &quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name. Pod is an independent part of infrastructure. Volume can only be connected to the instances allocated in the same pod.
314 &quot;protocol&quot;: &quot;A String&quot;, # Output only. Storage protocol for the Volume.
315 &quot;remainingSpaceGib&quot;: &quot;A String&quot;, # The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
316 &quot;requestedSizeGib&quot;: &quot;A String&quot;, # The requested size of this storage volume, in GiB.
317 &quot;snapshotAutoDeleteBehavior&quot;: &quot;A String&quot;, # The behavior to use when snapshot reserved space is full.
318 &quot;snapshotEnabled&quot;: True or False, # Whether snapshots are enabled.
319 &quot;snapshotReservationDetail&quot;: { # Details about snapshot space reservation and usage on the storage volume. # Details about snapshot space reservation and usage on the storage volume.
320 &quot;reservedSpaceGib&quot;: &quot;A String&quot;, # The space on this storage volume reserved for snapshots, shown in GiB.
321 &quot;reservedSpacePercent&quot;: 42, # Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true.
322 &quot;reservedSpaceRemainingGib&quot;: &quot;A String&quot;, # The amount, in GiB, of available space in this storage volume&#x27;s reserved snapshot space.
323 &quot;reservedSpaceUsedPercent&quot;: 42, # The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume.
324 },
325 &quot;state&quot;: &quot;A String&quot;, # The state of this storage volume.
326 &quot;storageType&quot;: &quot;A String&quot;, # The storage type for this volume.
327 &quot;workloadProfile&quot;: &quot;A String&quot;, # The workload profile for the volume.
328 }
329
330 updateMask: string, The list of fields to update. The only currently supported fields are: &#x27;labels&#x27;
331 x__xgafv: string, V1 error format.
332 Allowed values
333 1 - v1 error format
334 2 - v2 error format
335
336 Returns:
337 An object of the form:
338
339 { # This resource represents a long-running operation that is the result of a network API call.
340 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
341 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
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 message types for APIs to use.
344 {
345 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
346 },
347 ],
348 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
349 },
350 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
351 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
352 },
353 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
354 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
355 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
356 },
357 }</pre>
358 </div>
359
360 <div class="method">
361 <code class="details" id="rename">rename(name, body=None, x__xgafv=None)</code>
362 <pre>RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated.
363
364 Args:
365 name: string, Required. The `name` field is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume} (required)
366 body: object, The request body.
367 The object takes the form of:
368
369 { # Message requesting rename of a server.
370 &quot;newVolumeId&quot;: &quot;A String&quot;, # Required. The new `id` of the volume.
371 }
372
373 x__xgafv: string, V1 error format.
374 Allowed values
375 1 - v1 error format
376 2 - v2 error format
377
378 Returns:
379 An object of the form:
380
381 { # A storage volume.
382 &quot;attached&quot;: True or False, # Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of `instances` field. It is filled in List responses as well.
383 &quot;autoGrownSizeGib&quot;: &quot;A String&quot;, # The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.
384 &quot;bootVolume&quot;: True or False, # Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
385 &quot;currentSizeGib&quot;: &quot;A String&quot;, # The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.
386 &quot;emergencySizeGib&quot;: &quot;A String&quot;, # Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
387 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
388 &quot;id&quot;: &quot;A String&quot;, # An identifier for the `Volume`, generated by the backend.
389 &quot;instances&quot;: [ # Output only. Instances this Volume is attached to. This field is set only in Get requests.
390 &quot;A String&quot;,
391 ],
392 &quot;labels&quot;: { # Labels as key value pairs.
393 &quot;a_key&quot;: &quot;A String&quot;,
394 },
395 &quot;maxSizeGib&quot;: &quot;A String&quot;, # Maximum size volume can be expanded to in case of evergency, in GiB.
396 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Volume`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/volumes/{volume}`
397 &quot;notes&quot;: &quot;A String&quot;, # Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
398 &quot;originallyRequestedSizeGib&quot;: &quot;A String&quot;, # Originally requested size, in GiB.
399 &quot;performanceTier&quot;: &quot;A String&quot;, # Immutable. Performance tier of the Volume. Default is SHARED.
400 &quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name. Pod is an independent part of infrastructure. Volume can only be connected to the instances allocated in the same pod.
401 &quot;protocol&quot;: &quot;A String&quot;, # Output only. Storage protocol for the Volume.
402 &quot;remainingSpaceGib&quot;: &quot;A String&quot;, # The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
403 &quot;requestedSizeGib&quot;: &quot;A String&quot;, # The requested size of this storage volume, in GiB.
404 &quot;snapshotAutoDeleteBehavior&quot;: &quot;A String&quot;, # The behavior to use when snapshot reserved space is full.
405 &quot;snapshotEnabled&quot;: True or False, # Whether snapshots are enabled.
406 &quot;snapshotReservationDetail&quot;: { # Details about snapshot space reservation and usage on the storage volume. # Details about snapshot space reservation and usage on the storage volume.
407 &quot;reservedSpaceGib&quot;: &quot;A String&quot;, # The space on this storage volume reserved for snapshots, shown in GiB.
408 &quot;reservedSpacePercent&quot;: 42, # Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true.
409 &quot;reservedSpaceRemainingGib&quot;: &quot;A String&quot;, # The amount, in GiB, of available space in this storage volume&#x27;s reserved snapshot space.
410 &quot;reservedSpaceUsedPercent&quot;: 42, # The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume.
411 },
412 &quot;state&quot;: &quot;A String&quot;, # The state of this storage volume.
413 &quot;storageType&quot;: &quot;A String&quot;, # The storage type for this volume.
414 &quot;workloadProfile&quot;: &quot;A String&quot;, # The workload profile for the volume.
415 }</pre>
416 </div>
417
418 <div class="method">
419 <code class="details" id="resize">resize(volume, body=None, x__xgafv=None)</code>
420 <pre>Emergency Volume resize.
421
422 Args:
423 volume: string, Required. Volume to resize. (required)
424 body: object, The request body.
425 The object takes the form of:
426
427 { # Request for emergency resize Volume.
428 &quot;sizeGib&quot;: &quot;A String&quot;, # New Volume size, in GiB.
429 }
430
431 x__xgafv: string, V1 error format.
432 Allowed values
433 1 - v1 error format
434 2 - v2 error format
435
436 Returns:
437 An object of the form:
438
439 { # This resource represents a long-running operation that is the result of a network API call.
440 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
441 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
442 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
443 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
444 {
445 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
446 },
447 ],
448 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
449 },
450 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
451 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
452 },
453 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
454 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
455 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
456 },
457 }</pre>
458 </div>
459
460 </body></html>