Executions

google.cloud.run.v2. Executions

Represents an Executions

Constructor

new Executions(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Executions service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

cancelExecution(request, callback) → {undefined}

Calls CancelExecution.

Parameters:
Name Type Description
request google.cloud.run.v2.ICancelExecutionRequest

CancelExecutionRequest message or plain object

callback google.cloud.run.v2.Executions.CancelExecutionCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

cancelExecution(request) → {Promise.<google.longrunning.Operation>}

Calls CancelExecution.

Parameters:
Name Type Description
request google.cloud.run.v2.ICancelExecutionRequest

CancelExecutionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteExecution(request, callback) → {undefined}

Calls DeleteExecution.

Parameters:
Name Type Description
request google.cloud.run.v2.IDeleteExecutionRequest

DeleteExecutionRequest message or plain object

callback google.cloud.run.v2.Executions.DeleteExecutionCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

deleteExecution(request) → {Promise.<google.longrunning.Operation>}

Calls DeleteExecution.

Parameters:
Name Type Description
request google.cloud.run.v2.IDeleteExecutionRequest

DeleteExecutionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

getExecution(request, callback) → {undefined}

Calls GetExecution.

Parameters:
Name Type Description
request google.cloud.run.v2.IGetExecutionRequest

GetExecutionRequest message or plain object

callback google.cloud.run.v2.Executions.GetExecutionCallback

Node-style callback called with the error, if any, and Execution

Returns:
Type Description
undefined

getExecution(request) → {Promise.<google.cloud.run.v2.Execution>}

Calls GetExecution.

Parameters:
Name Type Description
request google.cloud.run.v2.IGetExecutionRequest

GetExecutionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.run.v2.Execution>

Promise

listExecutions(request, callback) → {undefined}

Calls ListExecutions.

Parameters:
Name Type Description
request google.cloud.run.v2.IListExecutionsRequest

ListExecutionsRequest message or plain object

callback google.cloud.run.v2.Executions.ListExecutionsCallback

Node-style callback called with the error, if any, and ListExecutionsResponse

Returns:
Type Description
undefined

listExecutions(request) → {Promise.<google.cloud.run.v2.ListExecutionsResponse>}

Calls ListExecutions.

Parameters:
Name Type Description
request google.cloud.run.v2.IListExecutionsRequest

ListExecutionsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.run.v2.ListExecutionsResponse>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Executions}

Creates new Executions service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
Executions

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

CancelExecutionCallback(error, responseopt)

Callback as used by cancelExecution.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteExecutionCallback(error, responseopt)

Callback as used by deleteExecution.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetExecutionCallback(error, responseopt)

Callback as used by getExecution.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.run.v2.Execution <optional>

Execution

ListExecutionsCallback(error, responseopt)

Callback as used by listExecutions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.run.v2.ListExecutionsResponse <optional>

ListExecutionsResponse