Skip to content

Commit

Permalink
feat(baremetalsolution): update the api
Browse files Browse the repository at this point in the history
#### baremetalsolution:v2

The following keys were added:
- resources.projects.resources.locations.resources.volumes.resources.snapshots.methods.create (Total Keys: 12)
- resources.projects.resources.locations.resources.volumes.resources.snapshots.methods.delete (Total Keys: 11)
- resources.projects.resources.locations.resources.volumes.resources.snapshots.methods.get (Total Keys: 11)
- resources.projects.resources.locations.resources.volumes.resources.snapshots.methods.list (Total Keys: 16)
- resources.projects.resources.locations.resources.volumes.resources.snapshots.methods.restoreVolumeSnapshot (Total Keys: 12)
- schemas.ListVolumeSnapshotsResponse (Total Keys: 7)
- schemas.RestoreVolumeSnapshotRequest (Total Keys: 2)
- schemas.VolumeSnapshot (Total Keys: 12)
  • Loading branch information
yoshi-automation committed Nov 1, 2022
1 parent ffbd7e4 commit 04b23d9
Show file tree
Hide file tree
Showing 4 changed files with 281 additions and 53 deletions.
5 changes: 5 additions & 0 deletions docs/dyn/baremetalsolution_v2.projects.locations.volumes.html
Expand Up @@ -79,6 +79,11 @@ <h2>Instance Methods</h2>
</p>
<p class="firstline">Returns the luns Resource.</p>

<p class="toc_element">
<code><a href="baremetalsolution_v2.projects.locations.volumes.snapshots.html">snapshots()</a></code>
</p>
<p class="firstline">Returns the snapshots Resource.</p>

<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
Expand Down
Expand Up @@ -79,22 +79,22 @@ <h2>Instance Methods</h2>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Create a storage volume snapshot in a containing volume.</p>
<p class="firstline">Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a storage volume snapshot for a given volume.</p>
<p class="firstline">Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Get details of a single storage volume snapshot.</p>
<p class="firstline">Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.</p>
<p class="toc_element">
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">List storage volume snapshots for given storage volume.</p>
<p class="firstline">Retrieves the list of snapshots for the specified volume. Returns a response with an empty list of snapshots if called for a non-boot volume.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#restoreVolumeSnapshot">restoreVolumeSnapshot(volumeSnapshot, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Restore a storage volume snapshot to its containing volume.</p>
<p class="firstline">Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
Expand All @@ -103,20 +103,20 @@ <h3>Method Details</h3>

<div class="method">
<code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
<pre>Create a storage volume snapshot in a containing volume.
<pre>Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.

Args:
parent: string, Required. The volume to snapshot. (required)
body: object, The request body.
The object takes the form of:

{ # Snapshot registered for a given storage volume.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the storage volume snapshot.
&quot;description&quot;: &quot;A String&quot;, # The description of the storage volume snapshot.
&quot;id&quot;: &quot;A String&quot;, # An identifier for the snapshot, generated by the backend.
&quot;name&quot;: &quot;A String&quot;, # Output only. The name of the storage volume snapshot.
&quot;sizeBytes&quot;: &quot;A String&quot;, # The size of the storage volume snapshot, in bytes.
&quot;storageVolume&quot;: &quot;A String&quot;, # The storage volume this snapshot belongs to.
{ # A snapshot of a volume. Only boot volumes can have snapshots.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the snapshot.
&quot;description&quot;: &quot;A String&quot;, # The description of the snapshot.
&quot;id&quot;: &quot;A String&quot;, # Output only. An identifier for the snapshot, generated by the backend.
&quot;name&quot;: &quot;A String&quot;, # The name of the snapshot.
&quot;storageVolume&quot;: &quot;A String&quot;, # Output only. The name of the volume which this snapshot belongs to.
&quot;type&quot;: &quot;A String&quot;, # Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
}

x__xgafv: string, V1 error format.
Expand All @@ -127,19 +127,19 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # Snapshot registered for a given storage volume.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the storage volume snapshot.
&quot;description&quot;: &quot;A String&quot;, # The description of the storage volume snapshot.
&quot;id&quot;: &quot;A String&quot;, # An identifier for the snapshot, generated by the backend.
&quot;name&quot;: &quot;A String&quot;, # Output only. The name of the storage volume snapshot.
&quot;sizeBytes&quot;: &quot;A String&quot;, # The size of the storage volume snapshot, in bytes.
&quot;storageVolume&quot;: &quot;A String&quot;, # The storage volume this snapshot belongs to.
{ # A snapshot of a volume. Only boot volumes can have snapshots.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the snapshot.
&quot;description&quot;: &quot;A String&quot;, # The description of the snapshot.
&quot;id&quot;: &quot;A String&quot;, # Output only. An identifier for the snapshot, generated by the backend.
&quot;name&quot;: &quot;A String&quot;, # The name of the snapshot.
&quot;storageVolume&quot;: &quot;A String&quot;, # Output only. The name of the volume which this snapshot belongs to.
&quot;type&quot;: &quot;A String&quot;, # Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
}</pre>
</div>

<div class="method">
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
<pre>Deletes a storage volume snapshot for a given volume.
<pre>Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.

Args:
name: string, Required. The name of the snapshot to delete. (required)
Expand All @@ -157,10 +157,10 @@ <h3>Method Details</h3>

<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Get details of a single storage volume snapshot.
<pre>Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.

Args:
name: string, Required. Name of the resource. (required)
name: string, Required. The name of the snapshot. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
Expand All @@ -169,19 +169,19 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # Snapshot registered for a given storage volume.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the storage volume snapshot.
&quot;description&quot;: &quot;A String&quot;, # The description of the storage volume snapshot.
&quot;id&quot;: &quot;A String&quot;, # An identifier for the snapshot, generated by the backend.
&quot;name&quot;: &quot;A String&quot;, # Output only. The name of the storage volume snapshot.
&quot;sizeBytes&quot;: &quot;A String&quot;, # The size of the storage volume snapshot, in bytes.
&quot;storageVolume&quot;: &quot;A String&quot;, # The storage volume this snapshot belongs to.
{ # A snapshot of a volume. Only boot volumes can have snapshots.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the snapshot.
&quot;description&quot;: &quot;A String&quot;, # The description of the snapshot.
&quot;id&quot;: &quot;A String&quot;, # Output only. An identifier for the snapshot, generated by the backend.
&quot;name&quot;: &quot;A String&quot;, # The name of the snapshot.
&quot;storageVolume&quot;: &quot;A String&quot;, # Output only. The name of the volume which this snapshot belongs to.
&quot;type&quot;: &quot;A String&quot;, # Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
}</pre>
</div>

<div class="method">
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>List storage volume snapshots for given storage volume.
<pre>Retrieves the list of snapshots for the specified volume. Returns a response with an empty list of snapshots if called for a non-boot volume.

Args:
parent: string, Required. Parent value for ListVolumesRequest. (required)
Expand All @@ -195,44 +195,44 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # Response message containing the list of storage volume snapshots.
{ # Response message containing the list of volume snapshots.
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results from the server.
&quot;unreachable&quot;: [ # Locations that could not be reached.
&quot;A String&quot;,
],
&quot;volumeSnapshots&quot;: [ # The list of storage volumes.
{ # Snapshot registered for a given storage volume.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the storage volume snapshot.
&quot;description&quot;: &quot;A String&quot;, # The description of the storage volume snapshot.
&quot;id&quot;: &quot;A String&quot;, # An identifier for the snapshot, generated by the backend.
&quot;name&quot;: &quot;A String&quot;, # Output only. The name of the storage volume snapshot.
&quot;sizeBytes&quot;: &quot;A String&quot;, # The size of the storage volume snapshot, in bytes.
&quot;storageVolume&quot;: &quot;A String&quot;, # The storage volume this snapshot belongs to.
&quot;volumeSnapshots&quot;: [ # The list of snapshots.
{ # A snapshot of a volume. Only boot volumes can have snapshots.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the snapshot.
&quot;description&quot;: &quot;A String&quot;, # The description of the snapshot.
&quot;id&quot;: &quot;A String&quot;, # Output only. An identifier for the snapshot, generated by the backend.
&quot;name&quot;: &quot;A String&quot;, # The name of the snapshot.
&quot;storageVolume&quot;: &quot;A String&quot;, # Output only. The name of the volume which this snapshot belongs to.
&quot;type&quot;: &quot;A String&quot;, # Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
},
],
}</pre>
</div>

<div class="method">
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
<code class="details" id="list_next">list_next()</code>
<pre>Retrieves the next page of results.

Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)

Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>

<div class="method">
<code class="details" id="restoreVolumeSnapshot">restoreVolumeSnapshot(volumeSnapshot, body=None, x__xgafv=None)</code>
<pre>Restore a storage volume snapshot to its containing volume.
<pre>Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.

Args:
volumeSnapshot: string, Required. Name of the resource. (required)
volumeSnapshot: string, Required. Name of the snapshot which will be used to restore its parent volume. (required)
body: object, The request body.
The object takes the form of:

Expand Down
Expand Up @@ -228,7 +228,7 @@
}
}
},
"revision": "20220928",
"revision": "20221025",
"rootUrl": "https://baremetalsolution.googleapis.com/",
"schemas": {
"CancelOperationRequest": {
Expand Down

0 comments on commit 04b23d9

Please sign in to comment.