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
createJob(request, callback)
public
createJob
(
request
:
google
.
cloud
.
run
.
v2
.
ICreateJobRequest
,
callback
:
google
.
cloud
.
run
.
v2
.
Jobs
.
CreateJobCallback
)
:
void
;
Calls CreateJob.
request
callback
void
createJob(request)
public
createJob
(
request
:
google
.
cloud
.
run
.
v2
.
ICreateJobRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls CreateJob.
deleteJob(request, callback)
public
deleteJob
(
request
:
google
.
cloud
.
run
.
v2
.
IDeleteJobRequest
,
callback
:
google
.
cloud
.
run
.
v2
.
Jobs
.
DeleteJobCallback
)
:
void
;
Calls DeleteJob.
request
callback
void
deleteJob(request)
public
deleteJob
(
request
:
google
.
cloud
.
run
.
v2
.
IDeleteJobRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls DeleteJob.
getIamPolicy(request, callback)
public
getIamPolicy
(
request
:
google
.
iam
.
v1
.
IGetIamPolicyRequest
,
callback
:
google
.
cloud
.
run
.
v2
.
Jobs
.
GetIamPolicyCallback
)
:
void
;
Calls GetIamPolicy.
request
callback
void
getIamPolicy(request)
public
getIamPolicy
(
request
:
google
.
iam
.
v1
.
IGetIamPolicyRequest
)
:
Promise<google
.
iam
.
v1
.
Policy
> ;
Calls GetIamPolicy.
getJob(request, callback)
public
getJob
(
request
:
google
.
cloud
.
run
.
v2
.
IGetJobRequest
,
callback
:
google
.
cloud
.
run
.
v2
.
Jobs
.
GetJobCallback
)
:
void
;
Calls GetJob.
request
callback
void
getJob(request)
public
getJob
(
request
:
google
.
cloud
.
run
.
v2
.
IGetJobRequest
)
:
Promise<google
.
cloud
.
run
.
v2
.
Job
> ;
Calls GetJob.
listJobs(request, callback)
public
listJobs
(
request
:
google
.
cloud
.
run
.
v2
.
IListJobsRequest
,
callback
:
google
.
cloud
.
run
.
v2
.
Jobs
.
ListJobsCallback
)
:
void
;
Calls ListJobs.
request
callback
void
listJobs(request)
public
listJobs
(
request
:
google
.
cloud
.
run
.
v2
.
IListJobsRequest
)
:
Promise<google
.
cloud
.
run
.
v2
.
ListJobsResponse
> ;
Calls ListJobs.
runJob(request, callback)
public
runJob
(
request
:
google
.
cloud
.
run
.
v2
.
IRunJobRequest
,
callback
:
google
.
cloud
.
run
.
v2
.
Jobs
.
RunJobCallback
)
:
void
;
Calls RunJob.
request
callback
void
runJob(request)
public
runJob
(
request
:
google
.
cloud
.
run
.
v2
.
IRunJobRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls RunJob.
setIamPolicy(request, callback)
public
setIamPolicy
(
request
:
google
.
iam
.
v1
.
ISetIamPolicyRequest
,
callback
:
google
.
cloud
.
run
.
v2
.
Jobs
.
SetIamPolicyCallback
)
:
void
;
Calls SetIamPolicy.
request
callback
void
setIamPolicy(request)
public
setIamPolicy
(
request
:
google
.
iam
.
v1
.
ISetIamPolicyRequest
)
:
Promise<google
.
iam
.
v1
.
Policy
> ;
Calls SetIamPolicy.
testIamPermissions(request, callback)
public
testIamPermissions
(
request
:
google
.
iam
.
v1
.
ITestIamPermissionsRequest
,
callback
:
google
.
cloud
.
run
.
v2
.
Jobs
.
TestIamPermissionsCallback
)
:
void
;
Calls TestIamPermissions.
request
callback
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
updateJob(request, callback)
public
updateJob
(
request
:
google
.
cloud
.
run
.
v2
.
IUpdateJobRequest
,
callback
:
google
.
cloud
.
run
.
v2
.
Jobs
.
UpdateJobCallback
)
:
void
;
Calls UpdateJob.
request
callback
void
updateJob(request)
public
updateJob
(
request
:
google
.
cloud
.
run
.
v2
.
IUpdateJobRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls UpdateJob.