Class protos.google.cloud.tasks.v2beta2.CloudTasks (3.1.1)

Represents a CloudTasks

Inheritance

$protobuf.rpc.Service > protos.google.cloud.tasks.v2beta2.CloudTasks

Package

@google-cloud/tasks

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new CloudTasks service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

acknowledgeTask(request, callback)

public acknowledgeTask(request: google.cloud.tasks.v2beta2.IAcknowledgeTaskRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTaskCallback): void;

Calls AcknowledgeTask.

Parameters
NameDescription
request IAcknowledgeTaskRequest

AcknowledgeTaskRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTaskCallback

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

Returns
TypeDescription
void

acknowledgeTask(request)

public acknowledgeTask(request: google.cloud.tasks.v2beta2.IAcknowledgeTaskRequest): Promise<google.protobuf.Empty>;

Calls AcknowledgeTask.

Parameter
NameDescription
request IAcknowledgeTaskRequest

AcknowledgeTaskRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

cancelLease(request, callback)

public cancelLease(request: google.cloud.tasks.v2beta2.ICancelLeaseRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.CancelLeaseCallback): void;

Calls CancelLease.

Parameters
NameDescription
request ICancelLeaseRequest

CancelLeaseRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.CancelLeaseCallback

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

Returns
TypeDescription
void

cancelLease(request)

public cancelLease(request: google.cloud.tasks.v2beta2.ICancelLeaseRequest): Promise<google.cloud.tasks.v2beta2.Task>;

Calls CancelLease.

Parameter
NameDescription
request ICancelLeaseRequest

CancelLeaseRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Task>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

createQueue(request, callback)

public createQueue(request: google.cloud.tasks.v2beta2.ICreateQueueRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.CreateQueueCallback): void;

Calls CreateQueue.

Parameters
NameDescription
request ICreateQueueRequest

CreateQueueRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.CreateQueueCallback

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

Returns
TypeDescription
void

createQueue(request)

public createQueue(request: google.cloud.tasks.v2beta2.ICreateQueueRequest): Promise<google.cloud.tasks.v2beta2.Queue>;

Calls CreateQueue.

Parameter
NameDescription
request ICreateQueueRequest

CreateQueueRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Queue>

Promise

createTask(request, callback)

public createTask(request: google.cloud.tasks.v2beta2.ICreateTaskRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.CreateTaskCallback): void;

Calls CreateTask.

Parameters
NameDescription
request ICreateTaskRequest

CreateTaskRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.CreateTaskCallback

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

Returns
TypeDescription
void

createTask(request)

public createTask(request: google.cloud.tasks.v2beta2.ICreateTaskRequest): Promise<google.cloud.tasks.v2beta2.Task>;

Calls CreateTask.

Parameter
NameDescription
request ICreateTaskRequest

CreateTaskRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Task>

Promise

deleteQueue(request, callback)

public deleteQueue(request: google.cloud.tasks.v2beta2.IDeleteQueueRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.DeleteQueueCallback): void;

Calls DeleteQueue.

Parameters
NameDescription
request IDeleteQueueRequest

DeleteQueueRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.DeleteQueueCallback

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

Returns
TypeDescription
void

deleteQueue(request)

public deleteQueue(request: google.cloud.tasks.v2beta2.IDeleteQueueRequest): Promise<google.protobuf.Empty>;

Calls DeleteQueue.

Parameter
NameDescription
request IDeleteQueueRequest

DeleteQueueRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteTask(request, callback)

public deleteTask(request: google.cloud.tasks.v2beta2.IDeleteTaskRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.DeleteTaskCallback): void;

Calls DeleteTask.

Parameters
NameDescription
request IDeleteTaskRequest

DeleteTaskRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.DeleteTaskCallback

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

Returns
TypeDescription
void

deleteTask(request)

public deleteTask(request: google.cloud.tasks.v2beta2.IDeleteTaskRequest): Promise<google.protobuf.Empty>;

Calls DeleteTask.

Parameter
NameDescription
request IDeleteTaskRequest

DeleteTaskRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicyCallback

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

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

getQueue(request, callback)

public getQueue(request: google.cloud.tasks.v2beta2.IGetQueueRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.GetQueueCallback): void;

Calls GetQueue.

Parameters
NameDescription
request IGetQueueRequest

GetQueueRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.GetQueueCallback

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

Returns
TypeDescription
void

getQueue(request)

public getQueue(request: google.cloud.tasks.v2beta2.IGetQueueRequest): Promise<google.cloud.tasks.v2beta2.Queue>;

Calls GetQueue.

Parameter
NameDescription
request IGetQueueRequest

GetQueueRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Queue>

Promise

getTask(request, callback)

public getTask(request: google.cloud.tasks.v2beta2.IGetTaskRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.GetTaskCallback): void;

Calls GetTask.

Parameters
NameDescription
request IGetTaskRequest

GetTaskRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.GetTaskCallback

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

Returns
TypeDescription
void

getTask(request)

public getTask(request: google.cloud.tasks.v2beta2.IGetTaskRequest): Promise<google.cloud.tasks.v2beta2.Task>;

Calls GetTask.

Parameter
NameDescription
request IGetTaskRequest

GetTaskRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Task>

Promise

leaseTasks(request, callback)

public leaseTasks(request: google.cloud.tasks.v2beta2.ILeaseTasksRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.LeaseTasksCallback): void;

Calls LeaseTasks.

Parameters
NameDescription
request ILeaseTasksRequest

LeaseTasksRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.LeaseTasksCallback

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

Returns
TypeDescription
void

leaseTasks(request)

public leaseTasks(request: google.cloud.tasks.v2beta2.ILeaseTasksRequest): Promise<google.cloud.tasks.v2beta2.LeaseTasksResponse>;

Calls LeaseTasks.

Parameter
NameDescription
request ILeaseTasksRequest

LeaseTasksRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.LeaseTasksResponse>

Promise

listQueues(request, callback)

public listQueues(request: google.cloud.tasks.v2beta2.IListQueuesRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.ListQueuesCallback): void;

Calls ListQueues.

Parameters
NameDescription
request IListQueuesRequest

ListQueuesRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.ListQueuesCallback

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

Returns
TypeDescription
void

listQueues(request)

public listQueues(request: google.cloud.tasks.v2beta2.IListQueuesRequest): Promise<google.cloud.tasks.v2beta2.ListQueuesResponse>;

Calls ListQueues.

Parameter
NameDescription
request IListQueuesRequest

ListQueuesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.ListQueuesResponse>

Promise

listTasks(request, callback)

public listTasks(request: google.cloud.tasks.v2beta2.IListTasksRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.ListTasksCallback): void;

Calls ListTasks.

Parameters
NameDescription
request IListTasksRequest

ListTasksRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.ListTasksCallback

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

Returns
TypeDescription
void

listTasks(request)

public listTasks(request: google.cloud.tasks.v2beta2.IListTasksRequest): Promise<google.cloud.tasks.v2beta2.ListTasksResponse>;

Calls ListTasks.

Parameter
NameDescription
request IListTasksRequest

ListTasksRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.ListTasksResponse>

Promise

pauseQueue(request, callback)

public pauseQueue(request: google.cloud.tasks.v2beta2.IPauseQueueRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.PauseQueueCallback): void;

Calls PauseQueue.

Parameters
NameDescription
request IPauseQueueRequest

PauseQueueRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.PauseQueueCallback

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

Returns
TypeDescription
void

pauseQueue(request)

public pauseQueue(request: google.cloud.tasks.v2beta2.IPauseQueueRequest): Promise<google.cloud.tasks.v2beta2.Queue>;

Calls PauseQueue.

Parameter
NameDescription
request IPauseQueueRequest

PauseQueueRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Queue>

Promise

purgeQueue(request, callback)

public purgeQueue(request: google.cloud.tasks.v2beta2.IPurgeQueueRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.PurgeQueueCallback): void;

Calls PurgeQueue.

Parameters
NameDescription
request IPurgeQueueRequest

PurgeQueueRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.PurgeQueueCallback

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

Returns
TypeDescription
void

purgeQueue(request)

public purgeQueue(request: google.cloud.tasks.v2beta2.IPurgeQueueRequest): Promise<google.cloud.tasks.v2beta2.Queue>;

Calls PurgeQueue.

Parameter
NameDescription
request IPurgeQueueRequest

PurgeQueueRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Queue>

Promise

renewLease(request, callback)

public renewLease(request: google.cloud.tasks.v2beta2.IRenewLeaseRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.RenewLeaseCallback): void;

Calls RenewLease.

Parameters
NameDescription
request IRenewLeaseRequest

RenewLeaseRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.RenewLeaseCallback

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

Returns
TypeDescription
void

renewLease(request)

public renewLease(request: google.cloud.tasks.v2beta2.IRenewLeaseRequest): Promise<google.cloud.tasks.v2beta2.Task>;

Calls RenewLease.

Parameter
NameDescription
request IRenewLeaseRequest

RenewLeaseRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Task>

Promise

resumeQueue(request, callback)

public resumeQueue(request: google.cloud.tasks.v2beta2.IResumeQueueRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.ResumeQueueCallback): void;

Calls ResumeQueue.

Parameters
NameDescription
request IResumeQueueRequest

ResumeQueueRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.ResumeQueueCallback

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

Returns
TypeDescription
void

resumeQueue(request)

public resumeQueue(request: google.cloud.tasks.v2beta2.IResumeQueueRequest): Promise<google.cloud.tasks.v2beta2.Queue>;

Calls ResumeQueue.

Parameter
NameDescription
request IResumeQueueRequest

ResumeQueueRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Queue>

Promise

runTask(request, callback)

public runTask(request: google.cloud.tasks.v2beta2.IRunTaskRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.RunTaskCallback): void;

Calls RunTask.

Parameters
NameDescription
request IRunTaskRequest

RunTaskRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.RunTaskCallback

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

Returns
TypeDescription
void

runTask(request)

public runTask(request: google.cloud.tasks.v2beta2.IRunTaskRequest): Promise<google.cloud.tasks.v2beta2.Task>;

Calls RunTask.

Parameter
NameDescription
request IRunTaskRequest

RunTaskRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Task>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicyCallback

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

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.TestIamPermissionsResponse>

Promise

updateQueue(request, callback)

public updateQueue(request: google.cloud.tasks.v2beta2.IUpdateQueueRequest, callback: google.cloud.tasks.v2beta2.CloudTasks.UpdateQueueCallback): void;

Calls UpdateQueue.

Parameters
NameDescription
request IUpdateQueueRequest

UpdateQueueRequest message or plain object

callback google.cloud.tasks.v2beta2.CloudTasks.UpdateQueueCallback

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

Returns
TypeDescription
void

updateQueue(request)

public updateQueue(request: google.cloud.tasks.v2beta2.IUpdateQueueRequest): Promise<google.cloud.tasks.v2beta2.Queue>;

Calls UpdateQueue.

Parameter
NameDescription
request IUpdateQueueRequest

UpdateQueueRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tasks.v2beta2.Queue>

Promise