Class google.cloud.scheduler.v1.CloudScheduler (2.1.1)

Represents a CloudScheduler

Inheritance

$protobuf.rpc.Service > google.cloud.scheduler.v1.CloudScheduler

Package

@google-cloud/scheduler!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createJob(request, callback)

public createJob(request: google.cloud.scheduler.v1.ICreateJobRequest, callback: google.cloud.scheduler.v1.CloudScheduler.CreateJobCallback): void;

Calls CreateJob.

Parameters
NameDescription
request ICreateJobRequest

CreateJobRequest message or plain object

callback google.cloud.scheduler.v1.CloudScheduler.CreateJobCallback

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

Returns
TypeDescription
void

createJob(request)

public createJob(request: google.cloud.scheduler.v1.ICreateJobRequest): Promise<google.cloud.scheduler.v1.Job>;

Calls CreateJob.

Parameter
NameDescription
request ICreateJobRequest

CreateJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.scheduler.v1.Job>

Promise

deleteJob(request, callback)

public deleteJob(request: google.cloud.scheduler.v1.IDeleteJobRequest, callback: google.cloud.scheduler.v1.CloudScheduler.DeleteJobCallback): void;

Calls DeleteJob.

Parameters
NameDescription
request IDeleteJobRequest

DeleteJobRequest message or plain object

callback google.cloud.scheduler.v1.CloudScheduler.DeleteJobCallback

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

Returns
TypeDescription
void

deleteJob(request)

public deleteJob(request: google.cloud.scheduler.v1.IDeleteJobRequest): Promise<google.protobuf.Empty>;

Calls DeleteJob.

Parameter
NameDescription
request IDeleteJobRequest

DeleteJobRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getJob(request, callback)

public getJob(request: google.cloud.scheduler.v1.IGetJobRequest, callback: google.cloud.scheduler.v1.CloudScheduler.GetJobCallback): void;

Calls GetJob.

Parameters
NameDescription
request IGetJobRequest

GetJobRequest message or plain object

callback google.cloud.scheduler.v1.CloudScheduler.GetJobCallback

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

Returns
TypeDescription
void

getJob(request)

public getJob(request: google.cloud.scheduler.v1.IGetJobRequest): Promise<google.cloud.scheduler.v1.Job>;

Calls GetJob.

Parameter
NameDescription
request IGetJobRequest

GetJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.scheduler.v1.Job>

Promise

listJobs(request, callback)

public listJobs(request: google.cloud.scheduler.v1.IListJobsRequest, callback: google.cloud.scheduler.v1.CloudScheduler.ListJobsCallback): void;

Calls ListJobs.

Parameters
NameDescription
request IListJobsRequest

ListJobsRequest message or plain object

callback google.cloud.scheduler.v1.CloudScheduler.ListJobsCallback

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

Returns
TypeDescription
void

listJobs(request)

public listJobs(request: google.cloud.scheduler.v1.IListJobsRequest): Promise<google.cloud.scheduler.v1.ListJobsResponse>;

Calls ListJobs.

Parameter
NameDescription
request IListJobsRequest

ListJobsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.scheduler.v1.ListJobsResponse>

Promise

pauseJob(request, callback)

public pauseJob(request: google.cloud.scheduler.v1.IPauseJobRequest, callback: google.cloud.scheduler.v1.CloudScheduler.PauseJobCallback): void;

Calls PauseJob.

Parameters
NameDescription
request IPauseJobRequest

PauseJobRequest message or plain object

callback google.cloud.scheduler.v1.CloudScheduler.PauseJobCallback

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

Returns
TypeDescription
void

pauseJob(request)

public pauseJob(request: google.cloud.scheduler.v1.IPauseJobRequest): Promise<google.cloud.scheduler.v1.Job>;

Calls PauseJob.

Parameter
NameDescription
request IPauseJobRequest

PauseJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.scheduler.v1.Job>

Promise

resumeJob(request, callback)

public resumeJob(request: google.cloud.scheduler.v1.IResumeJobRequest, callback: google.cloud.scheduler.v1.CloudScheduler.ResumeJobCallback): void;

Calls ResumeJob.

Parameters
NameDescription
request IResumeJobRequest

ResumeJobRequest message or plain object

callback google.cloud.scheduler.v1.CloudScheduler.ResumeJobCallback

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

Returns
TypeDescription
void

resumeJob(request)

public resumeJob(request: google.cloud.scheduler.v1.IResumeJobRequest): Promise<google.cloud.scheduler.v1.Job>;

Calls ResumeJob.

Parameter
NameDescription
request IResumeJobRequest

ResumeJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.scheduler.v1.Job>

Promise

runJob(request, callback)

public runJob(request: google.cloud.scheduler.v1.IRunJobRequest, callback: google.cloud.scheduler.v1.CloudScheduler.RunJobCallback): void;

Calls RunJob.

Parameters
NameDescription
request IRunJobRequest

RunJobRequest message or plain object

callback google.cloud.scheduler.v1.CloudScheduler.RunJobCallback

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

Returns
TypeDescription
void

runJob(request)

public runJob(request: google.cloud.scheduler.v1.IRunJobRequest): Promise<google.cloud.scheduler.v1.Job>;

Calls RunJob.

Parameter
NameDescription
request IRunJobRequest

RunJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.scheduler.v1.Job>

Promise

updateJob(request, callback)

public updateJob(request: google.cloud.scheduler.v1.IUpdateJobRequest, callback: google.cloud.scheduler.v1.CloudScheduler.UpdateJobCallback): void;

Calls UpdateJob.

Parameters
NameDescription
request IUpdateJobRequest

UpdateJobRequest message or plain object

callback google.cloud.scheduler.v1.CloudScheduler.UpdateJobCallback

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

Returns
TypeDescription
void

updateJob(request)

public updateJob(request: google.cloud.scheduler.v1.IUpdateJobRequest): Promise<google.cloud.scheduler.v1.Job>;

Calls UpdateJob.

Parameter
NameDescription
request IUpdateJobRequest

UpdateJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.scheduler.v1.Job>

Promise