Class protos.google.cloud.run.v2.Tasks (0.4.1)

Represents a Tasks

Inheritance

$protobuf.rpc.Service > protos.google.cloud.run.v2.Tasks

Package

@google-cloud/run

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Tasks service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Tasks;

Creates new Tasks service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Tasks

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

getTask(request, callback)

public getTask(request: google.cloud.run.v2.IGetTaskRequest, callback: google.cloud.run.v2.Tasks.GetTaskCallback): void;

Calls GetTask.

Parameters
NameDescription
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
TypeDescription
void

getTask(request)

public getTask(request: google.cloud.run.v2.IGetTaskRequest): Promise<google.cloud.run.v2.Task>;

Calls GetTask.

Parameter
NameDescription
request google.cloud.run.v2.IGetTaskRequest

GetTaskRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.run.v2.Task>

Promise

listTasks(request, callback)

public listTasks(request: google.cloud.run.v2.IListTasksRequest, callback: google.cloud.run.v2.Tasks.ListTasksCallback): void;

Calls ListTasks.

Parameters
NameDescription
request 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
TypeDescription
void

listTasks(request)

public listTasks(request: google.cloud.run.v2.IListTasksRequest): Promise<google.cloud.run.v2.ListTasksResponse>;

Calls ListTasks.

Parameter
NameDescription
request IListTasksRequest

ListTasksRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.run.v2.ListTasksResponse>

Promise