Represents a CloudTasks
Inheritance
$protobuf.rpc.Service > protos.google.cloud.tasks.v2beta3.CloudTasksPackage
@google-cloud/tasksConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new CloudTasks service.
Name | Description |
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): CloudTasks;
Creates new CloudTasks service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
CloudTasks | RPC service. Useful where requests and/or responses are streamed. |
createQueue(request, callback)
public createQueue(request: google.cloud.tasks.v2beta3.ICreateQueueRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.CreateQueueCallback): void;
Calls CreateQueue.
Name | Description |
request |
ICreateQueueRequest
CreateQueueRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.CreateQueueCallback
Node-style callback called with the error, if any, and Queue |
Type | Description |
void |
createQueue(request)
public createQueue(request: google.cloud.tasks.v2beta3.ICreateQueueRequest): Promise<google.cloud.tasks.v2beta3.Queue>;
Calls CreateQueue.
Name | Description |
request |
ICreateQueueRequest
CreateQueueRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.Queue> | Promise |
createTask(request, callback)
public createTask(request: google.cloud.tasks.v2beta3.ICreateTaskRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.CreateTaskCallback): void;
Calls CreateTask.
Name | Description |
request |
ICreateTaskRequest
CreateTaskRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.CreateTaskCallback
Node-style callback called with the error, if any, and Task |
Type | Description |
void |
createTask(request)
public createTask(request: google.cloud.tasks.v2beta3.ICreateTaskRequest): Promise<google.cloud.tasks.v2beta3.Task>;
Calls CreateTask.
Name | Description |
request |
ICreateTaskRequest
CreateTaskRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.Task> | Promise |
deleteQueue(request, callback)
public deleteQueue(request: google.cloud.tasks.v2beta3.IDeleteQueueRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.DeleteQueueCallback): void;
Calls DeleteQueue.
Name | Description |
request |
IDeleteQueueRequest
DeleteQueueRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.DeleteQueueCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteQueue(request)
public deleteQueue(request: google.cloud.tasks.v2beta3.IDeleteQueueRequest): Promise<google.protobuf.Empty>;
Calls DeleteQueue.
Name | Description |
request |
IDeleteQueueRequest
DeleteQueueRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
deleteTask(request, callback)
public deleteTask(request: google.cloud.tasks.v2beta3.IDeleteTaskRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.DeleteTaskCallback): void;
Calls DeleteTask.
Name | Description |
request |
google.cloud.tasks.v2beta3.IDeleteTaskRequest
DeleteTaskRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.DeleteTaskCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteTask(request)
public deleteTask(request: google.cloud.tasks.v2beta3.IDeleteTaskRequest): Promise<google.protobuf.Empty>;
Calls DeleteTask.
Name | Description |
request |
google.cloud.tasks.v2beta3.IDeleteTaskRequest
DeleteTaskRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getIamPolicy(request, callback)
public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.GetIamPolicyCallback): void;
Calls GetIamPolicy.
Name | Description |
request |
google.iam.v1.IGetIamPolicyRequest
GetIamPolicyRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Type | Description |
void |
getIamPolicy(request)
public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;
Calls GetIamPolicy.
Name | Description |
request |
google.iam.v1.IGetIamPolicyRequest
GetIamPolicyRequest message or plain object |
Type | Description |
Promise<google.iam.v1.Policy> | Promise |
getQueue(request, callback)
public getQueue(request: google.cloud.tasks.v2beta3.IGetQueueRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.GetQueueCallback): void;
Calls GetQueue.
Name | Description |
request |
google.cloud.tasks.v2beta3.IGetQueueRequest
GetQueueRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.GetQueueCallback
Node-style callback called with the error, if any, and Queue |
Type | Description |
void |
getQueue(request)
public getQueue(request: google.cloud.tasks.v2beta3.IGetQueueRequest): Promise<google.cloud.tasks.v2beta3.Queue>;
Calls GetQueue.
Name | Description |
request |
google.cloud.tasks.v2beta3.IGetQueueRequest
GetQueueRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.Queue> | Promise |
getTask(request, callback)
public getTask(request: google.cloud.tasks.v2beta3.IGetTaskRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.GetTaskCallback): void;
Calls GetTask.
Name | Description |
request |
IGetTaskRequest
GetTaskRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.GetTaskCallback
Node-style callback called with the error, if any, and Task |
Type | Description |
void |
getTask(request)
public getTask(request: google.cloud.tasks.v2beta3.IGetTaskRequest): Promise<google.cloud.tasks.v2beta3.Task>;
Calls GetTask.
Name | Description |
request |
IGetTaskRequest
GetTaskRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.Task> | Promise |
listQueues(request, callback)
public listQueues(request: google.cloud.tasks.v2beta3.IListQueuesRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.ListQueuesCallback): void;
Calls ListQueues.
Name | Description |
request |
google.cloud.tasks.v2beta3.IListQueuesRequest
ListQueuesRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.ListQueuesCallback
Node-style callback called with the error, if any, and ListQueuesResponse |
Type | Description |
void |
listQueues(request)
public listQueues(request: google.cloud.tasks.v2beta3.IListQueuesRequest): Promise<google.cloud.tasks.v2beta3.ListQueuesResponse>;
Calls ListQueues.
Name | Description |
request |
google.cloud.tasks.v2beta3.IListQueuesRequest
ListQueuesRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.ListQueuesResponse> | Promise |
listTasks(request, callback)
public listTasks(request: google.cloud.tasks.v2beta3.IListTasksRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.ListTasksCallback): void;
Calls ListTasks.
Name | Description |
request |
IListTasksRequest
ListTasksRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.ListTasksCallback
Node-style callback called with the error, if any, and ListTasksResponse |
Type | Description |
void |
listTasks(request)
public listTasks(request: google.cloud.tasks.v2beta3.IListTasksRequest): Promise<google.cloud.tasks.v2beta3.ListTasksResponse>;
Calls ListTasks.
Name | Description |
request |
IListTasksRequest
ListTasksRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.ListTasksResponse> | Promise |
pauseQueue(request, callback)
public pauseQueue(request: google.cloud.tasks.v2beta3.IPauseQueueRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.PauseQueueCallback): void;
Calls PauseQueue.
Name | Description |
request |
IPauseQueueRequest
PauseQueueRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.PauseQueueCallback
Node-style callback called with the error, if any, and Queue |
Type | Description |
void |
pauseQueue(request)
public pauseQueue(request: google.cloud.tasks.v2beta3.IPauseQueueRequest): Promise<google.cloud.tasks.v2beta3.Queue>;
Calls PauseQueue.
Name | Description |
request |
IPauseQueueRequest
PauseQueueRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.Queue> | Promise |
purgeQueue(request, callback)
public purgeQueue(request: google.cloud.tasks.v2beta3.IPurgeQueueRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.PurgeQueueCallback): void;
Calls PurgeQueue.
Name | Description |
request |
IPurgeQueueRequest
PurgeQueueRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.PurgeQueueCallback
Node-style callback called with the error, if any, and Queue |
Type | Description |
void |
purgeQueue(request)
public purgeQueue(request: google.cloud.tasks.v2beta3.IPurgeQueueRequest): Promise<google.cloud.tasks.v2beta3.Queue>;
Calls PurgeQueue.
Name | Description |
request |
IPurgeQueueRequest
PurgeQueueRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.Queue> | Promise |
resumeQueue(request, callback)
public resumeQueue(request: google.cloud.tasks.v2beta3.IResumeQueueRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.ResumeQueueCallback): void;
Calls ResumeQueue.
Name | Description |
request |
IResumeQueueRequest
ResumeQueueRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.ResumeQueueCallback
Node-style callback called with the error, if any, and Queue |
Type | Description |
void |
resumeQueue(request)
public resumeQueue(request: google.cloud.tasks.v2beta3.IResumeQueueRequest): Promise<google.cloud.tasks.v2beta3.Queue>;
Calls ResumeQueue.
Name | Description |
request |
IResumeQueueRequest
ResumeQueueRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.Queue> | Promise |
runTask(request, callback)
public runTask(request: google.cloud.tasks.v2beta3.IRunTaskRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.RunTaskCallback): void;
Calls RunTask.
Name | Description |
request |
IRunTaskRequest
RunTaskRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.RunTaskCallback
Node-style callback called with the error, if any, and Task |
Type | Description |
void |
runTask(request)
public runTask(request: google.cloud.tasks.v2beta3.IRunTaskRequest): Promise<google.cloud.tasks.v2beta3.Task>;
Calls RunTask.
Name | Description |
request |
IRunTaskRequest
RunTaskRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.Task> | Promise |
setIamPolicy(request, callback)
public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.SetIamPolicyCallback): void;
Calls SetIamPolicy.
Name | Description |
request |
google.iam.v1.ISetIamPolicyRequest
SetIamPolicyRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Type | Description |
void |
setIamPolicy(request)
public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;
Calls SetIamPolicy.
Name | Description |
request |
google.iam.v1.ISetIamPolicyRequest
SetIamPolicyRequest message or plain object |
Type | Description |
Promise<google.iam.v1.Policy> | Promise |
testIamPermissions(request, callback)
public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.TestIamPermissionsCallback): void;
Calls TestIamPermissions.
Name | Description |
request |
google.iam.v1.ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestIamPermissionsResponse |
Type | Description |
void |
testIamPermissions(request)
public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;
Calls TestIamPermissions.
Name | Description |
request |
google.iam.v1.ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object |
Type | Description |
Promise<google.iam.v1.TestIamPermissionsResponse> | Promise |
updateQueue(request, callback)
public updateQueue(request: google.cloud.tasks.v2beta3.IUpdateQueueRequest, callback: google.cloud.tasks.v2beta3.CloudTasks.UpdateQueueCallback): void;
Calls UpdateQueue.
Name | Description |
request |
IUpdateQueueRequest
UpdateQueueRequest message or plain object |
callback |
google.cloud.tasks.v2beta3.CloudTasks.UpdateQueueCallback
Node-style callback called with the error, if any, and Queue |
Type | Description |
void |
updateQueue(request)
public updateQueue(request: google.cloud.tasks.v2beta3.IUpdateQueueRequest): Promise<google.cloud.tasks.v2beta3.Queue>;
Calls UpdateQueue.
Name | Description |
request |
IUpdateQueueRequest
UpdateQueueRequest message or plain object |
Type | Description |
Promise<google.cloud.tasks.v2beta3.Queue> | Promise |