class Autoscalers extends Resource (View source)

The "autoscalers" collection of methods.

Typical usage is:

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

Methods

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

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

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

Deletes the specified autoscaler. (autoscalers.delete)

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

Returns the specified autoscaler resource. (autoscalers.get)

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

Creates an autoscaler in the specified project using the data included in the request. (autoscalers.insert)

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

Retrieves a list of autoscalers contained within the specified zone.

patch(string $project, string $zone, Autoscaler $postBody, array $optParams = [])

Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. (autoscalers.patch)

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

Updates an autoscaler in the specified project using the data included in the request. (autoscalers.update)

Details

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

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

(autoscalers.aggregatedList)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

AutoscalerAggregatedList

Exceptions

Exception

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

Deletes the specified autoscaler. (autoscalers.delete)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request.

string $autoscaler

Name of the autoscaler to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns the specified autoscaler resource. (autoscalers.get)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request.

string $autoscaler

Name of the autoscaler to return.

array $optParams

Optional parameters.

Return Value

Autoscaler

Exceptions

Exception

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

Creates an autoscaler in the specified project using the data included in the request. (autoscalers.insert)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request.

Autoscaler $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Retrieves a list of autoscalers contained within the specified zone.

(autoscalers.listAutoscalers)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request.

array $optParams

Optional parameters.

Return Value

AutoscalerList

Exceptions

Exception

Operation patch(string $project, string $zone, Autoscaler $postBody, array $optParams = [])

Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. (autoscalers.patch)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request.

Autoscaler $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Updates an autoscaler in the specified project using the data included in the request. (autoscalers.update)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone for this request.

Autoscaler $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception