Tasks

google.cloud.run.v2. Tasks

Represents a Tasks

Constructor

new Tasks(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Tasks 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

getTask(request, callback) → {undefined}

Calls GetTask.

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

GetTaskRequest message or plain object

callback google.cloud.run.v2.Tasks.GetTaskCallback

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

Returns:
Type Description
undefined

getTask(request) → {Promise.<google.cloud.run.v2.Task>}

Calls GetTask.

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

GetTaskRequest message or plain object

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

Promise

listTasks(request, callback) → {undefined}

Calls ListTasks.

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

ListTasksRequest message or plain object

callback google.cloud.run.v2.Tasks.ListTasksCallback

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

Returns:
Type Description
undefined

listTasks(request) → {Promise.<google.cloud.run.v2.ListTasksResponse>}

Calls ListTasks.

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

ListTasksRequest message or plain object

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

Promise

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

Creates new Tasks 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
Tasks

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

Type Definitions

GetTaskCallback(error, responseopt)

Callback as used by getTask.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Task

ListTasksCallback(error, responseopt)

Callback as used by listTasks.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListTasksResponse