Skip to content

Commit dfaeb43

Browse files
feat(baremetalsolution): update the api
#### baremetalsolution:v2 The following keys were added: - resources.projects.resources.locations.resources.instances.methods.stop (Total Keys: 12) - schemas.Instance.properties.osImage.type (Total Keys: 1) - schemas.StopInstanceRequest (Total Keys: 2) - schemas.Volume.properties.emergencySizeGib (Total Keys: 2)
1 parent 4a7ed82 commit dfaeb43

File tree

4 files changed

+107
-6
lines changed

4 files changed

+107
-6
lines changed

docs/dyn/baremetalsolution_v2.projects.locations.instances.html

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ <h2>Instance Methods</h2>
9595
<p class="toc_element">
9696
<code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
9797
<p class="firstline">Starts a server that was shutdown.</p>
98+
<p class="toc_element">
99+
<code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
100+
<p class="firstline">Stop a running server.</p>
98101
<h3>Method Details</h3>
99102
<div class="method">
100103
<code class="details" id="close">close()</code>
@@ -171,6 +174,7 @@ <h3>Method Details</h3>
171174
},
172175
},
173176
],
177+
&quot;osImage&quot;: &quot;A String&quot;, # The OS image currently installed on the server.
174178
&quot;state&quot;: &quot;A String&quot;, # The state of the server.
175179
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update a time stamp.
176180
}</pre>
@@ -251,6 +255,7 @@ <h3>Method Details</h3>
251255
},
252256
},
253257
],
258+
&quot;osImage&quot;: &quot;A String&quot;, # The OS image currently installed on the server.
254259
&quot;state&quot;: &quot;A String&quot;, # The state of the server.
255260
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update a time stamp.
256261
},
@@ -341,11 +346,12 @@ <h3>Method Details</h3>
341346
},
342347
},
343348
],
349+
&quot;osImage&quot;: &quot;A String&quot;, # The OS image currently installed on the server.
344350
&quot;state&quot;: &quot;A String&quot;, # The state of the server.
345351
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update a time stamp.
346352
}
347353

348-
updateMask: string, The list of fields to update. The only currently supported fields are: `labels`
354+
updateMask: string, The list of fields to update. The only currently supported fields are: `labels` `hyperthreading_enabled`
349355
x__xgafv: string, V1 error format.
350356
Allowed values
351357
1 - v1 error format
@@ -457,4 +463,45 @@ <h3>Method Details</h3>
457463
}</pre>
458464
</div>
459465

466+
<div class="method">
467+
<code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
468+
<pre>Stop a running server.
469+
470+
Args:
471+
name: string, Required. Name of the resource. (required)
472+
body: object, The request body.
473+
The object takes the form of:
474+
475+
{ # Message requesting to stop a server.
476+
}
477+
478+
x__xgafv: string, V1 error format.
479+
Allowed values
480+
1 - v1 error format
481+
2 - v2 error format
482+
483+
Returns:
484+
An object of the form:
485+
486+
{ # This resource represents a long-running operation that is the result of a network API call.
487+
&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.
488+
&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.
489+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
490+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
491+
{
492+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
493+
},
494+
],
495+
&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.
496+
},
497+
&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.
498+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
499+
},
500+
&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}`.
501+
&quot;response&quot;: { # The normal response of the operation in case of success. 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`.
502+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
503+
},
504+
}</pre>
505+
</div>
506+
460507
</body></html>

docs/dyn/baremetalsolution_v2.projects.locations.volumes.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ <h3>Method Details</h3>
122122
{ # A storage volume.
123123
&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.
124124
&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.
125+
&quot;emergencySizeGib&quot;: &quot;A String&quot;, # Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
125126
&quot;id&quot;: &quot;A String&quot;, # An identifier for the `Volume`, generated by the backend.
126127
&quot;labels&quot;: { # Labels as key value pairs.
127128
&quot;a_key&quot;: &quot;A String&quot;,
@@ -169,6 +170,7 @@ <h3>Method Details</h3>
169170
{ # A storage volume.
170171
&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.
171172
&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.
173+
&quot;emergencySizeGib&quot;: &quot;A String&quot;, # Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
172174
&quot;id&quot;: &quot;A String&quot;, # An identifier for the `Volume`, generated by the backend.
173175
&quot;labels&quot;: { # Labels as key value pairs.
174176
&quot;a_key&quot;: &quot;A String&quot;,
@@ -218,6 +220,7 @@ <h3>Method Details</h3>
218220
{ # A storage volume.
219221
&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.
220222
&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.
223+
&quot;emergencySizeGib&quot;: &quot;A String&quot;, # Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
221224
&quot;id&quot;: &quot;A String&quot;, # An identifier for the `Volume`, generated by the backend.
222225
&quot;labels&quot;: { # Labels as key value pairs.
223226
&quot;a_key&quot;: &quot;A String&quot;,

googleapiclient/discovery_cache/documents/baremetalsolution.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
}
269269
}
270270
},
271-
"revision": "20220405",
271+
"revision": "20220418",
272272
"rootUrl": "https://baremetalsolution.googleapis.com/",
273273
"schemas": {
274274
"CancelOperationRequest": {

googleapiclient/discovery_cache/documents/baremetalsolution.v2.json

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
"type": "string"
291291
},
292292
"updateMask": {
293-
"description": "The list of fields to update. The only currently supported fields are: `labels`",
293+
"description": "The list of fields to update. The only currently supported fields are: `labels` `hyperthreading_enabled`",
294294
"format": "google-fieldmask",
295295
"location": "query",
296296
"type": "string"
@@ -362,6 +362,34 @@
362362
"scopes": [
363363
"https://www.googleapis.com/auth/cloud-platform"
364364
]
365+
},
366+
"stop": {
367+
"description": "Stop a running server.",
368+
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:stop",
369+
"httpMethod": "POST",
370+
"id": "baremetalsolution.projects.locations.instances.stop",
371+
"parameterOrder": [
372+
"name"
373+
],
374+
"parameters": {
375+
"name": {
376+
"description": "Required. Name of the resource.",
377+
"location": "path",
378+
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
379+
"required": true,
380+
"type": "string"
381+
}
382+
},
383+
"path": "v2/{+name}:stop",
384+
"request": {
385+
"$ref": "StopInstanceRequest"
386+
},
387+
"response": {
388+
"$ref": "Operation"
389+
},
390+
"scopes": [
391+
"https://www.googleapis.com/auth/cloud-platform"
392+
]
365393
}
366394
}
367395
},
@@ -1251,7 +1279,7 @@
12511279
}
12521280
}
12531281
},
1254-
"revision": "20220405",
1282+
"revision": "20220418",
12551283
"rootUrl": "https://baremetalsolution.googleapis.com/",
12561284
"schemas": {
12571285
"AllowedClient": {
@@ -1371,6 +1399,10 @@
13711399
},
13721400
"type": "array"
13731401
},
1402+
"osImage": {
1403+
"description": "The OS image currently installed on the server.",
1404+
"type": "string"
1405+
},
13741406
"state": {
13751407
"description": "The state of the server.",
13761408
"enum": [
@@ -2269,12 +2301,20 @@
22692301
"enum": [
22702302
"STATE_UNSPECIFIED",
22712303
"DRAFT",
2272-
"SUBMITTED"
2304+
"SUBMITTED",
2305+
"PROVISIONING",
2306+
"PROVISIONED",
2307+
"VALIDATED",
2308+
"CANCELLED"
22732309
],
22742310
"enumDescriptions": [
22752311
"State wasn't specified.",
22762312
"ProvisioningConfig is a draft and can be freely modified.",
2277-
"ProvisioningConfig was already submitted and cannot be modified."
2313+
"ProvisioningConfig was already submitted and cannot be modified.",
2314+
"ProvisioningConfig was in the provisioning state. Initially this state comes from the work order table in big query when SNOW is used. Later this field can be set by the work order API.",
2315+
"ProvisioningConfig was provisioned, meaning the resources exist.",
2316+
"ProvisioningConfig was validated. A validation tool will be run to set this state.",
2317+
"ProvisioningConfig was canceled."
22782318
],
22792319
"readOnly": true,
22802320
"type": "string"
@@ -2535,6 +2575,12 @@
25352575
},
25362576
"type": "object"
25372577
},
2578+
"StopInstanceRequest": {
2579+
"description": "Message requesting to stop a server.",
2580+
"id": "StopInstanceRequest",
2581+
"properties": {},
2582+
"type": "object"
2583+
},
25382584
"SubmitProvisioningConfigRequest": {
25392585
"description": "Request for SubmitProvisioningConfig.",
25402586
"id": "SubmitProvisioningConfigRequest",
@@ -2631,6 +2677,11 @@
26312677
"format": "int64",
26322678
"type": "string"
26332679
},
2680+
"emergencySizeGib": {
2681+
"description": "Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.",
2682+
"format": "int64",
2683+
"type": "string"
2684+
},
26342685
"id": {
26352686
"description": "An identifier for the `Volume`, generated by the backend.",
26362687
"type": "string"

0 commit comments

Comments
 (0)