Class protos.google.cloud.run.v2.Jobs (0.4.2)

Represents a Jobs

Inheritance

$protobuf.rpc.Service > protos.google.cloud.run.v2.Jobs

Package

@google-cloud/run

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createJob(request, callback)

public createJob(request: google.cloud.run.v2.ICreateJobRequest, callback: google.cloud.run.v2.Jobs.CreateJobCallback): void;

Calls CreateJob.

Parameters
NameDescription
request ICreateJobRequest

CreateJobRequest message or plain object

callback google.cloud.run.v2.Jobs.CreateJobCallback

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

Returns
TypeDescription
void

createJob(request)

public createJob(request: google.cloud.run.v2.ICreateJobRequest): Promise<google.longrunning.Operation>;

Calls CreateJob.

Parameter
NameDescription
request ICreateJobRequest

CreateJobRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteJob(request, callback)

public deleteJob(request: google.cloud.run.v2.IDeleteJobRequest, callback: google.cloud.run.v2.Jobs.DeleteJobCallback): void;

Calls DeleteJob.

Parameters
NameDescription
request google.cloud.run.v2.IDeleteJobRequest

DeleteJobRequest message or plain object

callback google.cloud.run.v2.Jobs.DeleteJobCallback

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

Returns
TypeDescription
void

deleteJob(request)

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

Calls DeleteJob.

Parameter
NameDescription
request google.cloud.run.v2.IDeleteJobRequest

DeleteJobRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.run.v2.Jobs.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.cloud.run.v2.Jobs.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

getJob(request, callback)

public getJob(request: google.cloud.run.v2.IGetJobRequest, callback: google.cloud.run.v2.Jobs.GetJobCallback): void;

Calls GetJob.

Parameters
NameDescription
request IGetJobRequest

GetJobRequest message or plain object

callback google.cloud.run.v2.Jobs.GetJobCallback

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

Returns
TypeDescription
void

getJob(request)

public getJob(request: google.cloud.run.v2.IGetJobRequest): Promise<google.cloud.run.v2.Job>;

Calls GetJob.

Parameter
NameDescription
request IGetJobRequest

GetJobRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.run.v2.Job>

Promise

listJobs(request, callback)

public listJobs(request: google.cloud.run.v2.IListJobsRequest, callback: google.cloud.run.v2.Jobs.ListJobsCallback): void;

Calls ListJobs.

Parameters
NameDescription
request IListJobsRequest

ListJobsRequest message or plain object

callback google.cloud.run.v2.Jobs.ListJobsCallback

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

Returns
TypeDescription
void

listJobs(request)

public listJobs(request: google.cloud.run.v2.IListJobsRequest): Promise<google.cloud.run.v2.ListJobsResponse>;

Calls ListJobs.

Parameter
NameDescription
request IListJobsRequest

ListJobsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.run.v2.ListJobsResponse>

Promise

runJob(request, callback)

public runJob(request: google.cloud.run.v2.IRunJobRequest, callback: google.cloud.run.v2.Jobs.RunJobCallback): void;

Calls RunJob.

Parameters
NameDescription
request IRunJobRequest

RunJobRequest message or plain object

callback google.cloud.run.v2.Jobs.RunJobCallback

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

Returns
TypeDescription
void

runJob(request)

public runJob(request: google.cloud.run.v2.IRunJobRequest): Promise<google.longrunning.Operation>;

Calls RunJob.

Parameter
NameDescription
request IRunJobRequest

RunJobRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.run.v2.Jobs.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.cloud.run.v2.Jobs.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.run.v2.Jobs.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.cloud.run.v2.Jobs.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

updateJob(request, callback)

public updateJob(request: google.cloud.run.v2.IUpdateJobRequest, callback: google.cloud.run.v2.Jobs.UpdateJobCallback): void;

Calls UpdateJob.

Parameters
NameDescription
request IUpdateJobRequest

UpdateJobRequest message or plain object

callback google.cloud.run.v2.Jobs.UpdateJobCallback

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

Returns
TypeDescription
void

updateJob(request)

public updateJob(request: google.cloud.run.v2.IUpdateJobRequest): Promise<google.longrunning.Operation>;

Calls UpdateJob.

Parameter
NameDescription
request IUpdateJobRequest

UpdateJobRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise