ProjectsLocationsVolumesSnapshots
class ProjectsLocationsVolumesSnapshots extends Resource (View source)
The "snapshots" collection of methods.
Typical usage is:
$baremetalsolutionService = new Google\Service\Baremetalsolution(...);
$snapshots = $baremetalsolutionService->projects_locations_volumes_snapshots;
Methods
Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume. (snapshots.create)
Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume. (snapshots.delete)
Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume. (snapshots.get)
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.
Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.
Details
VolumeSnapshot
create(string $parent, VolumeSnapshot $postBody, array $optParams = [])
Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume. (snapshots.create)
BaremetalsolutionEmpty
delete(string $name, array $optParams = [])
Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume. (snapshots.delete)
VolumeSnapshot
get(string $name, array $optParams = [])
Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume. (snapshots.get)
ListVolumeSnapshotsResponse
listProjectsLocationsVolumesSnapshots(string $parent, array $optParams = [])
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.
(snapshots.listProjectsLocationsVolumesSnapshots)
Operation
restoreVolumeSnapshot(string $volumeSnapshot, RestoreVolumeSnapshotRequest $postBody, array $optParams = [])
Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.
(snapshots.restoreVolumeSnapshot)