class Operations extends Resource (View source)

The "operations" collection of methods.

Typical usage is:

 $storageService = new Google\Service\Storage(...);
 $operations = $storageService->operations;

Methods

cancel(string $bucket, string $operationId, array $optParams = [])

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.

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

Gets the latest state of a long-running operation. (operations.get)

listOperations(string $bucket, array $optParams = [])

Lists operations that match the specified filter in the request.

Details

cancel(string $bucket, string $operationId, array $optParams = [])

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.

(operations.cancel)

Parameters

string $bucket

The parent bucket of the operation resource.

string $operationId

The ID of the operation resource.

array $optParams

Optional parameters.

Exceptions

Exception

GoogleLongrunningOperation get(string $bucket, string $operationId, array $optParams = [])

Gets the latest state of a long-running operation. (operations.get)

Parameters

string $bucket

The parent bucket of the operation resource.

string $operationId

The ID of the operation resource.

array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningListOperationsResponse listOperations(string $bucket, array $optParams = [])

Lists operations that match the specified filter in the request.

(operations.listOperations)

Parameters

string $bucket

Name of the bucket in which to look for operations.

array $optParams

Optional parameters.

Return Value

GoogleLongrunningListOperationsResponse

Exceptions

Exception