class ProjectsLocationsVolumes extends Resource (View source)

The "volumes" collection of methods.

Typical usage is:

 $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
 $volumes = $baremetalsolutionService->projects_locations_volumes;

Methods

evict(string $name, EvictVolumeRequest $postBody, array $optParams = [])

Skips volume's cooloff and deletes it now. Volume must be in cooloff state.

get(string $name, array $optParams = [])

Get details of a single storage volume. (volumes.get)

listProjectsLocationsVolumes(string $parent, array $optParams = [])

List storage volumes in a given project and location.

patch(string $name, Volume $postBody, array $optParams = [])

Update details of a single storage volume. (volumes.patch)

rename(string $name, RenameVolumeRequest $postBody, array $optParams = [])

RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated. (volumes.rename)

resize(string $volume, ResizeVolumeRequest $postBody, array $optParams = [])

Emergency Volume resize. (volumes.resize)

Details

Operation evict(string $name, EvictVolumeRequest $postBody, array $optParams = [])

Skips volume's cooloff and deletes it now. Volume must be in cooloff state.

(volumes.evict)

Parameters

string $name

Required. The name of the Volume.

EvictVolumeRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Volume get(string $name, array $optParams = [])

Get details of a single storage volume. (volumes.get)

Parameters

string $name

Required. Name of the resource.

array $optParams

Optional parameters.

Return Value

Volume

Exceptions

Exception

ListVolumesResponse listProjectsLocationsVolumes(string $parent, array $optParams = [])

List storage volumes in a given project and location.

(volumes.listProjectsLocationsVolumes)

Parameters

string $parent

Required. Parent value for ListVolumesRequest.

array $optParams

Optional parameters.

Return Value

ListVolumesResponse

Exceptions

Exception

Operation patch(string $name, Volume $postBody, array $optParams = [])

Update details of a single storage volume. (volumes.patch)

Parameters

string $name

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}

Volume $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Volume rename(string $name, RenameVolumeRequest $postBody, array $optParams = [])

RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated. (volumes.rename)

Parameters

string $name

Required. The name field is used to identify the volume. Format: projects/{project}/locations/{location}/volumes/{volume}

RenameVolumeRequest $postBody
array $optParams

Optional parameters.

Return Value

Volume

Exceptions

Exception

Operation resize(string $volume, ResizeVolumeRequest $postBody, array $optParams = [])

Emergency Volume resize. (volumes.resize)

Parameters

string $volume

Required. Volume to resize.

ResizeVolumeRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception