class DiskTypes extends Resource (View source)

The "diskTypes" collection of methods.

Typical usage is:

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

Methods

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

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

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

Returns the specified disk type. (diskTypes.get)

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

Retrieves a list of disk types available to the specified project.

Details

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

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

(diskTypes.aggregatedList)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

DiskTypeAggregatedList

Exceptions

Exception

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

Returns the specified disk type. (diskTypes.get)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $diskType

Name of the disk type to return.

array $optParams

Optional parameters.

Return Value

DiskType

Exceptions

Exception

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

Retrieves a list of disk types available to the specified project.

(diskTypes.listDiskTypes)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

array $optParams

Optional parameters.

Return Value

DiskTypeList

Exceptions

Exception