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.
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.
rpcImpl
$protobuf. RPCImpl
RPC implementation
requestDelimited
boolean
Whether requests are length-delimited
responseDelimited
boolean
Whether responses are length-delimited
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.
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
void
createJob(request)
public
createJob
(
request
:
google
.
cloud
.
run
.
v2
.
ICreateJobRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls CreateJob.
request
ICreateJobRequest
CreateJobRequest message or plain object
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.
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
void
deleteJob(request)
public
deleteJob
(
request
:
google
.
cloud
.
run
.
v2
.
IDeleteJobRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls DeleteJob.
request
google.cloud.run.v2.IDeleteJobRequest
DeleteJobRequest message or plain object
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.
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
void
getIamPolicy(request)
public
getIamPolicy
(
request
:
google
.
iam
.
v1
.
IGetIamPolicyRequest
)
:
Promise<google
.
iam
.
v1
.
Policy
> ;
Calls GetIamPolicy.
request
IGetIamPolicyRequest
GetIamPolicyRequest message or plain object
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.
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
void
getJob(request)
public
getJob
(
request
:
google
.
cloud
.
run
.
v2
.
IGetJobRequest
)
:
Promise<google
.
cloud
.
run
.
v2
.
Job
> ;
Calls GetJob.
request
IGetJobRequest
GetJobRequest message or plain object
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.
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
void
listJobs(request)
public
listJobs
(
request
:
google
.
cloud
.
run
.
v2
.
IListJobsRequest
)
:
Promise<google
.
cloud
.
run
.
v2
.
ListJobsResponse
> ;
Calls ListJobs.
request
IListJobsRequest
ListJobsRequest message or plain object
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.
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
void
runJob(request)
public
runJob
(
request
:
google
.
cloud
.
run
.
v2
.
IRunJobRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls RunJob.
request
IRunJobRequest
RunJobRequest message or plain object
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.
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
void
setIamPolicy(request)
public
setIamPolicy
(
request
:
google
.
iam
.
v1
.
ISetIamPolicyRequest
)
:
Promise<google
.
iam
.
v1
.
Policy
> ;
Calls SetIamPolicy.
request
ISetIamPolicyRequest
SetIamPolicyRequest message or plain object
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.
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
void
testIamPermissions(request)
public
testIamPermissions
(
request
:
google
.
iam
.
v1
.
ITestIamPermissionsRequest
)
:
Promise<google
.
iam
.
v1
.
TestIamPermissionsResponse
> ;
Calls TestIamPermissions.
request
google.iam.v1.ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object
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.
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
void
updateJob(request)
public
updateJob
(
request
:
google
.
cloud
.
run
.
v2
.
IUpdateJobRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls UpdateJob.
request
IUpdateJobRequest
UpdateJobRequest message or plain object
Promise
< google.longrunning.Operation
>
Promise