Class protos.google.cloud.batch.v1alpha.BatchService (0.3.2)

Represents a BatchService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.batch.v1alpha.BatchService

Package

@google-cloud/batch

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new BatchService 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): BatchService;

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

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

createJob(request, callback)

public createJob(request: google.cloud.batch.v1alpha.ICreateJobRequest, callback: google.cloud.batch.v1alpha.BatchService.CreateJobCallback): void;

Calls CreateJob.

Parameters
NameDescription
request ICreateJobRequest

CreateJobRequest message or plain object

callback google.cloud.batch.v1alpha.BatchService.CreateJobCallback

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

Returns
TypeDescription
void

createJob(request)

public createJob(request: google.cloud.batch.v1alpha.ICreateJobRequest): Promise<google.cloud.batch.v1alpha.Job>;

Calls CreateJob.

Parameter
NameDescription
request ICreateJobRequest

CreateJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.batch.v1alpha.Job>

Promise

deleteJob(request, callback)

public deleteJob(request: google.cloud.batch.v1alpha.IDeleteJobRequest, callback: google.cloud.batch.v1alpha.BatchService.DeleteJobCallback): void;

Calls DeleteJob.

Parameters
NameDescription
request IDeleteJobRequest

DeleteJobRequest message or plain object

callback google.cloud.batch.v1alpha.BatchService.DeleteJobCallback

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

Returns
TypeDescription
void

deleteJob(request)

public deleteJob(request: google.cloud.batch.v1alpha.IDeleteJobRequest): Promise<google.longrunning.Operation>;

Calls DeleteJob.

Parameter
NameDescription
request IDeleteJobRequest

DeleteJobRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getJob(request, callback)

public getJob(request: google.cloud.batch.v1alpha.IGetJobRequest, callback: google.cloud.batch.v1alpha.BatchService.GetJobCallback): void;

Calls GetJob.

Parameters
NameDescription
request google.cloud.batch.v1alpha.IGetJobRequest

GetJobRequest message or plain object

callback google.cloud.batch.v1alpha.BatchService.GetJobCallback

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

Returns
TypeDescription
void

getJob(request)

public getJob(request: google.cloud.batch.v1alpha.IGetJobRequest): Promise<google.cloud.batch.v1alpha.Job>;

Calls GetJob.

Parameter
NameDescription
request google.cloud.batch.v1alpha.IGetJobRequest

GetJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.batch.v1alpha.Job>

Promise

getTask(request, callback)

public getTask(request: google.cloud.batch.v1alpha.IGetTaskRequest, callback: google.cloud.batch.v1alpha.BatchService.GetTaskCallback): void;

Calls GetTask.

Parameters
NameDescription
request google.cloud.batch.v1alpha.IGetTaskRequest

GetTaskRequest message or plain object

callback google.cloud.batch.v1alpha.BatchService.GetTaskCallback

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

Returns
TypeDescription
void

getTask(request)

public getTask(request: google.cloud.batch.v1alpha.IGetTaskRequest): Promise<google.cloud.batch.v1alpha.Task>;

Calls GetTask.

Parameter
NameDescription
request google.cloud.batch.v1alpha.IGetTaskRequest

GetTaskRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.batch.v1alpha.Task>

Promise

listJobs(request, callback)

public listJobs(request: google.cloud.batch.v1alpha.IListJobsRequest, callback: google.cloud.batch.v1alpha.BatchService.ListJobsCallback): void;

Calls ListJobs.

Parameters
NameDescription
request IListJobsRequest

ListJobsRequest message or plain object

callback google.cloud.batch.v1alpha.BatchService.ListJobsCallback

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

Returns
TypeDescription
void

listJobs(request)

public listJobs(request: google.cloud.batch.v1alpha.IListJobsRequest): Promise<google.cloud.batch.v1alpha.ListJobsResponse>;

Calls ListJobs.

Parameter
NameDescription
request IListJobsRequest

ListJobsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.batch.v1alpha.ListJobsResponse>

Promise

listTasks(request, callback)

public listTasks(request: google.cloud.batch.v1alpha.IListTasksRequest, callback: google.cloud.batch.v1alpha.BatchService.ListTasksCallback): void;

Calls ListTasks.

Parameters
NameDescription
request google.cloud.batch.v1alpha.IListTasksRequest

ListTasksRequest message or plain object

callback google.cloud.batch.v1alpha.BatchService.ListTasksCallback

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

Returns
TypeDescription
void

listTasks(request)

public listTasks(request: google.cloud.batch.v1alpha.IListTasksRequest): Promise<google.cloud.batch.v1alpha.ListTasksResponse>;

Calls ListTasks.

Parameter
NameDescription
request google.cloud.batch.v1alpha.IListTasksRequest

ListTasksRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.batch.v1alpha.ListTasksResponse>

Promise