Class ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource
The "snapshots" collection of methods.
Inherited Members
Namespace: Google.Apis.Baremetalsolution.v2
Assembly: Google.Apis.Baremetalsolution.v2.dll
Syntax
public class ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource
Constructors
SnapshotsResource(IClientService)
Constructs a new resource.
Declaration
public SnapshotsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(VolumeSnapshot, string)
Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource.CreateRequest Create(VolumeSnapshot body, string parent)
Parameters
Type | Name | Description |
---|---|---|
VolumeSnapshot | body | The body of the request. |
string | parent | Required. The volume to snapshot. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource.CreateRequest |
Delete(string)
Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the snapshot to delete. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource.DeleteRequest |
Get(string)
Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the snapshot. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource.GetRequest |
List(string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Parent value for ListVolumesRequest. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource.ListRequest |
RestoreVolumeSnapshot(RestoreVolumeSnapshotRequest, string)
Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.
Declaration
public virtual ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource.RestoreVolumeSnapshotRequest RestoreVolumeSnapshot(RestoreVolumeSnapshotRequest body, string volumeSnapshot)
Parameters
Type | Name | Description |
---|---|---|
RestoreVolumeSnapshotRequest | body | The body of the request. |
string | volumeSnapshot | Required. Name of the snapshot which will be used to restore its parent volume. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.VolumesResource.SnapshotsResource.RestoreVolumeSnapshotRequest |