Skip to main content

operations

Creates, updates, deletes, gets or lists an operations resource.

Overview

Nameoperations
TypeResource
Idgoogle.lifesciences.operations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe server-assigned name for the operation. This may be passed to the other operation methods to retrieve information about the operation's status.
donebooleanIf the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
errorobjectThe error result of the operation in case of failure or cancellation. (id: Status)
metadataobjectAn Metadata object. This will always be returned with the Operation.
responseobjectAn Empty object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, operationsIdGets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. Authorization requires the following Google IAM permission: * lifesciences.operations.get
listselectprojectsId, locationsIdfilter, pageSize, pageTokenLists operations that match the specified filter in the request. Authorization requires the following Google IAM permission: * lifesciences.operations.list
cancelexecprojectsId, locationsId, operationsIdStarts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients may use Operations.GetOperation or Operations.ListOperations to check whether the cancellation succeeded or the operation completed despite cancellation. Authorization requires the following Google IAM permission: * lifesciences.operations.cancel

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
operationsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. Authorization requires the following Google IAM permission: * lifesciences.operations.get

SELECT
name,
done,
error,
metadata,
response
FROM google.lifesciences.operations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND operationsId = '{{ operationsId }}' -- required;

Lifecycle Methods

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients may use Operations.GetOperation or Operations.ListOperations to check whether the cancellation succeeded or the operation completed despite cancellation. Authorization requires the following Google IAM permission: * lifesciences.operations.cancel

EXEC google.lifesciences.operations.cancel 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@operationsId='{{ operationsId }}' --required;