Class protos.google.cloud.run.v2.Jobs (2.1.0) Stay organized with collections Save and categorize content based on your preferences.
Represents a Jobs
Inheritance
$protobuf.rpc.Service >protos.google.cloud.run.v2.JobsPackage
@google-cloud/runConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl:$protobuf.RPCImpl,requestDelimited?:boolean,responseDelimited?:boolean);Constructs a new Jobs service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl | $protobuf.RPCImplRPC implementation |
requestDelimited | booleanWhether requests are length-delimited |
responseDelimited | booleanWhether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
publicstaticcreate(rpcImpl:$protobuf.RPCImpl,requestDelimited?:boolean,responseDelimited?:boolean):Jobs;Creates new Jobs service using the specified rpc implementation.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl | $protobuf.RPCImplRPC implementation |
requestDelimited | booleanWhether requests are length-delimited |
responseDelimited | booleanWhether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
Jobs | RPC service. Useful where requests and/or responses are streamed. |
createJob(request, callback)
publiccreateJob(request:google.cloud.run.v2.ICreateJobRequest,callback:google.cloud.run.v2.Jobs.CreateJobCallback):void;Calls CreateJob.
| Parameters | |
|---|---|
| Name | Description |
request | ICreateJobRequestCreateJobRequest message or plain object |
callback | CreateJobCallbackNode-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void | |
createJob(request)
publiccreateJob(request:google.cloud.run.v2.ICreateJobRequest):Promise<google.longrunning.Operation>;Calls CreateJob.
| Parameter | |
|---|---|
| Name | Description |
request | ICreateJobRequestCreateJobRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteJob(request, callback)
publicdeleteJob(request:google.cloud.run.v2.IDeleteJobRequest,callback:google.cloud.run.v2.Jobs.DeleteJobCallback):void;Calls DeleteJob.
| Parameters | |
|---|---|
| Name | Description |
request | IDeleteJobRequestDeleteJobRequest message or plain object |
callback | DeleteJobCallbackNode-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void | |
deleteJob(request)
publicdeleteJob(request:google.cloud.run.v2.IDeleteJobRequest):Promise<google.longrunning.Operation>;Calls DeleteJob.
| Parameter | |
|---|---|
| Name | Description |
request | IDeleteJobRequestDeleteJobRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> | Promise |
getIamPolicy(request, callback)
publicgetIamPolicy(request:google.iam.v1.IGetIamPolicyRequest,callback:google.cloud.run.v2.Jobs.GetIamPolicyCallback):void;Calls GetIamPolicy.
| Parameters | |
|---|---|
| Name | Description |
request | IGetIamPolicyRequestGetIamPolicyRequest message or plain object |
callback | GetIamPolicyCallbackNode-style callback called with the error, if any, and Policy |
| Returns | |
|---|---|
| Type | Description |
void | |
getIamPolicy(request)
publicgetIamPolicy(request:google.iam.v1.IGetIamPolicyRequest):Promise<google.iam.v1.Policy>;Calls GetIamPolicy.
| Parameter | |
|---|---|
| Name | Description |
request | IGetIamPolicyRequestGetIamPolicyRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.iam.v1.Policy> | Promise |
getJob(request, callback)
publicgetJob(request:google.cloud.run.v2.IGetJobRequest,callback:google.cloud.run.v2.Jobs.GetJobCallback):void;Calls GetJob.
| Parameters | |
|---|---|
| Name | Description |
request | IGetJobRequestGetJobRequest message or plain object |
callback | GetJobCallbackNode-style callback called with the error, if any, and Job |
| Returns | |
|---|---|
| Type | Description |
void | |
getJob(request)
publicgetJob(request:google.cloud.run.v2.IGetJobRequest):Promise<google.cloud.run.v2.Job>;Calls GetJob.
| Parameter | |
|---|---|
| Name | Description |
request | IGetJobRequestGetJobRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.run.v2.Job> | Promise |
listJobs(request, callback)
publiclistJobs(request:google.cloud.run.v2.IListJobsRequest,callback:google.cloud.run.v2.Jobs.ListJobsCallback):void;Calls ListJobs.
| Parameters | |
|---|---|
| Name | Description |
request | IListJobsRequestListJobsRequest message or plain object |
callback | ListJobsCallbackNode-style callback called with the error, if any, and ListJobsResponse |
| Returns | |
|---|---|
| Type | Description |
void | |
listJobs(request)
publiclistJobs(request:google.cloud.run.v2.IListJobsRequest):Promise<google.cloud.run.v2.ListJobsResponse>;Calls ListJobs.
| Parameter | |
|---|---|
| Name | Description |
request | IListJobsRequestListJobsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.run.v2.ListJobsResponse> | Promise |
runJob(request, callback)
publicrunJob(request:google.cloud.run.v2.IRunJobRequest,callback:google.cloud.run.v2.Jobs.RunJobCallback):void;Calls RunJob.
| Parameters | |
|---|---|
| Name | Description |
request | IRunJobRequestRunJobRequest message or plain object |
callback | RunJobCallbackNode-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void | |
runJob(request)
publicrunJob(request:google.cloud.run.v2.IRunJobRequest):Promise<google.longrunning.Operation>;Calls RunJob.
| Parameter | |
|---|---|
| Name | Description |
request | IRunJobRequestRunJobRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> | Promise |
setIamPolicy(request, callback)
publicsetIamPolicy(request:google.iam.v1.ISetIamPolicyRequest,callback:google.cloud.run.v2.Jobs.SetIamPolicyCallback):void;Calls SetIamPolicy.
| Parameters | |
|---|---|
| Name | Description |
request | ISetIamPolicyRequestSetIamPolicyRequest message or plain object |
callback | SetIamPolicyCallbackNode-style callback called with the error, if any, and Policy |
| Returns | |
|---|---|
| Type | Description |
void | |
setIamPolicy(request)
publicsetIamPolicy(request:google.iam.v1.ISetIamPolicyRequest):Promise<google.iam.v1.Policy>;Calls SetIamPolicy.
| Parameter | |
|---|---|
| Name | Description |
request | ISetIamPolicyRequestSetIamPolicyRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.iam.v1.Policy> | Promise |
testIamPermissions(request, callback)
publictestIamPermissions(request:google.iam.v1.ITestIamPermissionsRequest,callback:google.cloud.run.v2.Jobs.TestIamPermissionsCallback):void;Calls TestIamPermissions.
| Parameters | |
|---|---|
| Name | Description |
request | ITestIamPermissionsRequestTestIamPermissionsRequest message or plain object |
callback | TestIamPermissionsCallbackNode-style callback called with the error, if any, and TestIamPermissionsResponse |
| Returns | |
|---|---|
| Type | Description |
void | |
testIamPermissions(request)
publictestIamPermissions(request:google.iam.v1.ITestIamPermissionsRequest):Promise<google.iam.v1.TestIamPermissionsResponse>;Calls TestIamPermissions.
| Parameter | |
|---|---|
| Name | Description |
request | ITestIamPermissionsRequestTestIamPermissionsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.iam.v1.TestIamPermissionsResponse> | Promise |
updateJob(request, callback)
publicupdateJob(request:google.cloud.run.v2.IUpdateJobRequest,callback:google.cloud.run.v2.Jobs.UpdateJobCallback):void;Calls UpdateJob.
| Parameters | |
|---|---|
| Name | Description |
request | IUpdateJobRequestUpdateJobRequest message or plain object |
callback | UpdateJobCallbackNode-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void | |
updateJob(request)
publicupdateJob(request:google.cloud.run.v2.IUpdateJobRequest):Promise<google.longrunning.Operation>;Calls UpdateJob.
| Parameter | |
|---|---|
| Name | Description |
request | IUpdateJobRequestUpdateJobRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> | Promise |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.