StoragePools
class StoragePools extends Resource (View source)
The "storagePools" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$storagePools = $computeService->storagePools;
Methods
Retrieves an aggregated list of storage pools. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
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)
Returns a specified storage pool. Gets a list of available storage pools by making a list() request. (storagePools.get)
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (storagePools.getIamPolicy)
Creates a storage pool in the specified project using the data in the request. (storagePools.insert)
Retrieves a list of storage pools contained within the specified zone.
Lists the disks in a specified storage pool. (storagePools.listDisks)
Sets the access control policy on the specified resource. Replaces any existing policy. (storagePools.setIamPolicy)
Returns permissions that a caller has on the specified resource.
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)
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)
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)
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)
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)
StoragePoolList
listStoragePools(string $project, string $zone, array $optParams = [])
Retrieves a list of storage pools contained within the specified zone.
(storagePools.listStoragePools)
StoragePoolListDisks
listDisks(string $project, string $zone, string $storagePool, array $optParams = [])
Lists the disks in a specified storage pool. (storagePools.listDisks)
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)
TestPermissionsResponse
testIamPermissions(string $project, string $zone, string $resource, TestPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource.
(storagePools.testIamPermissions)
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)