Package com.azure.quantum.jobs
Class JobsAsyncClient
java.lang.Object
com.azure.quantum.jobs.JobsAsyncClient
Initializes a new instance of the asynchronous QuantumClient type.
-
Method Summary
Modifier and TypeMethodDescriptionCancel a job.cancelWithResponse
(String jobId) Cancel a job.create
(String jobId, JobDetails job) Create a job.createWithResponse
(String jobId, JobDetails job) Create a job.Get job by id.getWithResponse
(String jobId) Get job by id.list()
List jobs.listNextSinglePage
(String nextLink) Get the next page of items.List jobs.
-
Method Details
-
listSinglePage
List jobs.- Returns:
- list of job details.
- Throws:
HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
List jobs.- Returns:
- list of job details.
- Throws:
HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
Get job by id.- Parameters:
jobId
- Id of the job.- Returns:
- job by id.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.RestErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Get job by id.- Parameters:
jobId
- Id of the job.- Returns:
- job by id.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.RestErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createWithResponse
Create a job.- Parameters:
jobId
- Id of the job.job
- The complete metadata of the job to submit.- Returns:
- job details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.RestErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
create
Create a job.- Parameters:
jobId
- Id of the job.job
- The complete metadata of the job to submit.- Returns:
- job details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.RestErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
cancelWithResponse
Cancel a job.- Parameters:
jobId
- Id of the job.- Returns:
- the completion.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.RestErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
cancel
Cancel a job.- Parameters:
jobId
- Id of the job.- Returns:
- the completion.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.RestErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listNextSinglePage
Get the next page of items.- Parameters:
nextLink
- The nextLink parameter.- Returns:
- list of job details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-