class ProjectsLocationsOperations extends Resource (View source)

The "operations" collection of methods.

Typical usage is:

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

Methods

cancel(string $name, CancelOperationRequest $postBody, array $optParams = [])

Cancels the specified operation. (operations.cancel)

get(string $name, array $optParams = [])

Gets the specified operation. (operations.get)

listProjectsLocationsOperations(string $parent, array $optParams = [])

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

Details

ContainerEmpty cancel(string $name, CancelOperationRequest $postBody, array $optParams = [])

Cancels the specified operation. (operations.cancel)

Parameters

string $name

The name (project, location, operation id) of the operation to cancel. Specified in the format projects/locations/operations.

CancelOperationRequest $postBody
array $optParams

Optional parameters.

Return Value

ContainerEmpty

Exceptions

Exception

Operation get(string $name, array $optParams = [])

Gets the specified operation. (operations.get)

Parameters

string $name

The name (project, location, operation id) of the operation to get. Specified in the format projects/locations/operations.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

ListOperationsResponse listProjectsLocationsOperations(string $parent, array $optParams = [])

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

(operations.listProjectsLocationsOperations)

Parameters

string $parent

The parent (project and location) where the operations will be listed. Specified in the format projects/locations. Location "-" matches all zones and all regions.

array $optParams

Optional parameters.

Return Value

ListOperationsResponse

Exceptions

Exception