Class protos.google.cloud.scheduler.v1.CloudScheduler (3.0.5)

Represents a CloudScheduler

Inheritance

$protobuf.rpc.Service > protos.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.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 google.cloud.scheduler.v1.IUpdateJobRequest

UpdateJobRequest message or plain object

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

Promise