public class JobsClient extends MindsphereAPIClient
Modifier and Type | Class and Description |
---|---|
static class |
JobsClient.ClientBuilder |
MindsphereAPIClient.Builder<T extends MindsphereAPIClient.Builder<T>>
credentials, restClientConfig, restTemplate
Constructor and Description |
---|
JobsClient(JobsClient.ClientBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static JobsClient.ClientBuilder |
builder() |
JobResource |
createCreateEventsJob(CreateEventsJob createEventsJob)
Create a create events job.
|
JobResource |
createDeleteEventsJob(DeleteEventsJob deleteEventsJob)
Create a delete events job.
|
CreateJobResource |
getCreateEventsJobById(String jobId)
Get a create events job Returns a create events job state by ID.
|
DeleteJobResource |
getDeleteEventsJobById(String jobId)
Get a delete events job.
|
public JobsClient(JobsClient.ClientBuilder builder)
public static JobsClient.ClientBuilder builder()
public JobResource createCreateEventsJob(CreateEventsJob createEventsJob) throws MindsphereException
202 - ACCEPTED
400 - The request will return 400 BAD REQUEST if there are more than 50 events in the payload
401 - Unauthorized
403 - The user does not have the right permission
500 - Internal Server Error
createEventsJob
- - CreateEventsJob instance with operation content to perform
asynchronous create events jobMindsphereException
- if an error occurs while attempting to invoke the
APIpublic JobResource createDeleteEventsJob(DeleteEventsJob deleteEventsJob) throws MindsphereException
202 - ACCEPTED
400 - The request will return 400 BAD REQUEST if filter is not valid JSON or there is no 'typeId' in the filter expression
401 - Unauthorized
403 - The user does not have the right permission
500 - Internal Server Error
deleteEventsJob
- - CreateEventsJob instance with operation content to perform asynchronous
delete events jobMindsphereException
- if an error occurs while attempting to invoke the
APIpublic CreateJobResource getCreateEventsJobById(String jobId) throws MindsphereException
200 - OK
401 - Unauthorized
403 - The user does not have the right permission
404 - Not Found
500 - Internal Server Error
jobId
- - Job Id of the job to be fetchedMindsphereException
- if an error occurs while attempting to invoke the
APIpublic DeleteJobResource getDeleteEventsJobById(String jobId) throws MindsphereException
200 - OK
401 - Unauthorized
403 - The user does not have the right permission
404 - Not Found
500 - Internal Server Error
jobId
- - Job Id of the job to be fetchedMindsphereException
- if an error occurs while attempting to invoke the
API