class MachineTypes extends Resource (View source)

The "machineTypes" collection of methods.

Typical usage is:

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

Methods

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

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

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

Returns the specified machine type. (machineTypes.get)

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

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

Details

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

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

(machineTypes.aggregatedList)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

MachineTypeAggregatedList

Exceptions

Exception

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

Returns the specified machine type. (machineTypes.get)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $machineType

Name of the machine type to return.

array $optParams

Optional parameters.

Return Value

MachineType

Exceptions

Exception

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

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

(machineTypes.listMachineTypes)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

array $optParams

Optional parameters.

Return Value

MachineTypeList

Exceptions

Exception