class ProjectsZonesOperations extends Resource (View source)

The "operations" collection of methods.

Typical usage is:

 $containerService = new Google\Service\Container(...);
 $operations = $containerService->projects_zones_operations;

Methods

cancel(string $projectId, string $zone, string $operationId, CancelOperationRequest $postBody, array $optParams = [])

Cancels the specified operation. (operations.cancel)

get(string $projectId, string $zone, string $operationId, array $optParams = [])

Gets the specified operation. (operations.get)

listProjectsZonesOperations(string $projectId, string $zone, array $optParams = [])

Lists all operations in a project in a specific zone or all zones.

Details

ContainerEmpty cancel(string $projectId, string $zone, string $operationId, CancelOperationRequest $postBody, array $optParams = [])

Cancels the specified operation. (operations.cancel)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the operation resides. This field has been deprecated and replaced by the name field.

string $operationId

Deprecated. The server-assigned name of the operation. This field has been deprecated and replaced by the name field.

CancelOperationRequest $postBody
array $optParams

Optional parameters.

Return Value

ContainerEmpty

Exceptions

Exception

Operation get(string $projectId, string $zone, string $operationId, array $optParams = [])

Gets the specified operation. (operations.get)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string $operationId

Deprecated. The server-assigned name of the operation. This field has been deprecated and replaced by the name field.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

ListOperationsResponse listProjectsZonesOperations(string $projectId, string $zone, array $optParams = [])

Lists all operations in a project in a specific zone or all zones.

(operations.listProjectsZonesOperations)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

string $zone

Deprecated. The name of the Google Compute Engine zone to return operations for, or - for all zones. This field has been deprecated and replaced by the parent field.

array $optParams

Optional parameters.

Return Value

ListOperationsResponse

Exceptions

Exception