class StoragePools extends Resource (View source)

The "storagePools" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $storagePools = $computeService->storagePools;

Methods

aggregatedList(string $project, array $optParams = [])

Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

delete(string $project, string $zone, string $storagePool, array $optParams = [])

Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots. (storagePools.delete)

get(string $project, string $zone, string $storagePool, array $optParams = [])

Returns a specified storage pool. Gets a list of available storage pools by making a list() request. (storagePools.get)

getIamPolicy(string $project, string $zone, string $resource, array $optParams = [])

Gets the access control policy for a resource. May be empty if no such policy or resource exists. (storagePools.getIamPolicy)

insert(string $project, string $zone, StoragePool $postBody, array $optParams = [])

Creates a storage pool in the specified project using the data in the request. (storagePools.insert)

listStoragePools(string $project, string $zone, array $optParams = [])

Retrieves a list of storage pools contained within the specified zone.

listDisks(string $project, string $zone, string $storagePool, array $optParams = [])

Lists the disks in a specified storage pool. (storagePools.listDisks)

setIamPolicy(string $project, string $zone, string $resource, ZoneSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (storagePools.setIamPolicy)

testIamPermissions(string $project, string $zone, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

update(string $project, string $zone, string $storagePool, StoragePool $postBody, array $optParams = [])

Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask.

Details

StoragePoolAggregatedList aggregatedList(string $project, array $optParams = [])

Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

(storagePools.aggregatedList)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

StoragePoolAggregatedList

Exceptions

Exception

Operation delete(string $project, string $zone, string $storagePool, array $optParams = [])

Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots. (storagePools.delete)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $storagePool

Name of the storage pool to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

StoragePool get(string $project, string $zone, string $storagePool, array $optParams = [])

Returns a specified storage pool. Gets a list of available storage pools by making a list() request. (storagePools.get)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $storagePool

Name of the storage pool to return.

array $optParams

Optional parameters.

Return Value

StoragePool

Exceptions

Exception

Policy getIamPolicy(string $project, string $zone, string $resource, array $optParams = [])

Gets the access control policy for a resource. May be empty if no such policy or resource exists. (storagePools.getIamPolicy)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $resource

Name or id of the resource for this request.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

Operation insert(string $project, string $zone, StoragePool $postBody, array $optParams = [])

Creates a storage pool in the specified project using the data in the request. (storagePools.insert)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

StoragePool $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

StoragePoolList listStoragePools(string $project, string $zone, array $optParams = [])

Retrieves a list of storage pools contained within the specified zone.

(storagePools.listStoragePools)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

array $optParams

Optional parameters.

Return Value

StoragePoolList

Exceptions

Exception

StoragePoolListDisks listDisks(string $project, string $zone, string $storagePool, array $optParams = [])

Lists the disks in a specified storage pool. (storagePools.listDisks)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $storagePool

Name of the storage pool to list disks of.

array $optParams

Optional parameters.

Return Value

StoragePoolListDisks

Exceptions

Exception

Policy setIamPolicy(string $project, string $zone, string $resource, ZoneSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (storagePools.setIamPolicy)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $resource

Name or id of the resource for this request.

ZoneSetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestPermissionsResponse testIamPermissions(string $project, string $zone, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

(storagePools.testIamPermissions)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $resource

Name or id of the resource for this request.

TestPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestPermissionsResponse

Exceptions

Exception

Operation update(string $project, string $zone, string $storagePool, StoragePool $postBody, array $optParams = [])

Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask.

Only the following fields can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput. (storagePools.update)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $storagePool

The storagePool name for this request.

StoragePool $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception