Constructor
new Jobs(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Jobs service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
createJob(request, callback) → {undefined}
Calls CreateJob.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.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:
Type | Description |
---|---|
undefined |
createJob(request) → {Promise.<google.longrunning.Operation>}
Calls CreateJob.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.ICreateJobRequest |
CreateJobRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
deleteJob(request, callback) → {undefined}
Calls DeleteJob.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
deleteJob(request) → {Promise.<google.longrunning.Operation>}
Calls DeleteJob.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.IDeleteJobRequest |
DeleteJobRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
getIamPolicy(request, callback) → {undefined}
Calls GetIamPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.iam.v1.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:
Type | Description |
---|---|
undefined |
getIamPolicy(request) → {Promise.<google.iam.v1.Policy>}
Calls GetIamPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.iam.v1.IGetIamPolicyRequest |
GetIamPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.iam.v1.Policy> |
Promise |
getJob(request, callback) → {undefined}
Calls GetJob.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.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:
Type | Description |
---|---|
undefined |
getJob(request) → {Promise.<google.cloud.run.v2.Job>}
Calls GetJob.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.IGetJobRequest |
GetJobRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.run.v2.Job> |
Promise |
listJobs(request, callback) → {undefined}
Calls ListJobs.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.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:
Type | Description |
---|---|
undefined |
listJobs(request) → {Promise.<google.cloud.run.v2.ListJobsResponse>}
Calls ListJobs.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.IListJobsRequest |
ListJobsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.run.v2.ListJobsResponse> |
Promise |
runJob(request, callback) → {undefined}
Calls RunJob.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.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:
Type | Description |
---|---|
undefined |
runJob(request) → {Promise.<google.longrunning.Operation>}
Calls RunJob.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.IRunJobRequest |
RunJobRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
setIamPolicy(request, callback) → {undefined}
Calls SetIamPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.iam.v1.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:
Type | Description |
---|---|
undefined |
setIamPolicy(request) → {Promise.<google.iam.v1.Policy>}
Calls SetIamPolicy.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.iam.v1.ISetIamPolicyRequest |
SetIamPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.iam.v1.Policy> |
Promise |
testIamPermissions(request, callback) → {undefined}
Calls TestIamPermissions.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
testIamPermissions(request) → {Promise.<google.iam.v1.TestIamPermissionsResponse>}
Calls TestIamPermissions.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.iam.v1.ITestIamPermissionsRequest |
TestIamPermissionsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.iam.v1.TestIamPermissionsResponse> |
Promise |
updateJob(request, callback) → {undefined}
Calls UpdateJob.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.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:
Type | Description |
---|---|
undefined |
updateJob(request) → {Promise.<google.longrunning.Operation>}
Calls UpdateJob.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.run.v2.IUpdateJobRequest |
UpdateJobRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Jobs}
Creates new Jobs service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
Jobs |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreateJobCallback(error, responseopt)
Callback as used by createJob.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
DeleteJobCallback(error, responseopt)
Callback as used by deleteJob.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
GetIamPolicyCallback(error, responseopt)
Callback as used by getIamPolicy.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.iam.v1.Policy |
<optional> |
Policy |
GetJobCallback(error, responseopt)
Callback as used by getJob.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.run.v2.Job |
<optional> |
Job |
ListJobsCallback(error, responseopt)
Callback as used by listJobs.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.run.v2.ListJobsResponse |
<optional> |
ListJobsResponse |
RunJobCallback(error, responseopt)
Callback as used by runJob.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
SetIamPolicyCallback(error, responseopt)
Callback as used by setIamPolicy.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.iam.v1.Policy |
<optional> |
Policy |
TestIamPermissionsCallback(error, responseopt)
Callback as used by testIamPermissions.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.iam.v1.TestIamPermissionsResponse |
<optional> |
TestIamPermissionsResponse |
UpdateJobCallback(error, responseopt)
Callback as used by updateJob.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |