public class AgentOperationsClient
extends MindsphereAPIClient
Modifier and Type | Class and Description |
---|---|
static class |
AgentOperationsClient.ClientBuilder |
Constructor and Description |
---|
AgentOperationsClient(AgentOperationsClient.ClientBuilder builder) |
Modifier and Type | Method and Description |
---|---|
PagedAgent |
agentsGet(String filter,
Integer size,
Integer page,
String sort)
Get agents
Gets the agents for the given filter.
|
void |
agentsIdDelete(String agentId,
String ifMatch)
Delete agent
Deletes the agent for the given agent id.
|
Agent |
agentsIdGet(String agentId)
Get agent
Gets the agent for the given agent id.
|
Agent |
agentsIdPut(String agentId,
AgentUpdate agent,
String ifMatch)
Update agent
Updates the agent for the given agent id with given parameters.
|
OnlineStatus |
agentsIdStatusGet(String agentId)
Get online status
Gets online status.
|
Agent |
agentsPost(AgentInput agent)
Create agent
Creates a new agent.
|
static AgentOperationsClient.ClientBuilder |
builder() |
public AgentOperationsClient(AgentOperationsClient.ClientBuilder builder)
public static AgentOperationsClient.ClientBuilder builder()
public PagedAgent agentsGet(String filter, Integer size, Integer page, String sort) throws MindsphereException
200 - Array of agents
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - unexpected error
0 - Other error with any status code and response body format.
filter
- JSON based filter.size
- The maximum number of elements in a page.page
- The (0-based) index of page.sort
- The order of returned elements. Multiple fields could be used
separated by commas (e.g. ''field1,field2'').
Descending order could be requested by appending
'',desc'' at the end of parameter.(e.g.
''field1,field2,desc'')'MindsphereException
- if an error occurs while attempting to invoke the APIpublic void agentsIdDelete(String agentId, String ifMatch) throws MindsphereException
204 - No Content
400 - Bad Request
401 - Unauthorized
403 - Forbidden
404 - Not Found
412 - Precondition Failed
500 - unexpected error
0 - Other error with any status code and response body format.
agentId
- Unique identifier of the agent.ifMatch
- ETag number of resource.MindsphereException
- if an error occurs while attempting to invoke the APIpublic Agent agentsIdGet(String agentId) throws MindsphereException
200 - OK
400 - Bad Request
401 - Unauthorized
403 - Forbidden
404 - Not Found
500 - unexpected error
0 - Other error with any status code and response body format.
agentId
- Unique identifier of the agent.MindsphereException
- if an error occurs while attempting to invoke the APIpublic Agent agentsIdPut(String agentId, AgentUpdate agent, String ifMatch) throws MindsphereException
200 - OK
400 - Bad Request
401 - Unauthorized
403 - Forbidden
404 - Not Found
409 - Resource is already available.
412 - Precondition Failed
500 - unexpected error
0 - Other error with any status code and response body format.
agentId
- Unique identifier of the agent.agent
- Agent update dto to update agent.ifMatch
- ETag number of resource.MindsphereException
- if an error occurs while attempting to invoke the APIpublic OnlineStatus agentsIdStatusGet(String agentId) throws MindsphereException
200 - OK
400 - Bad Request
401 - Unauthorized
403 - Forbidden
404 - Not Found
500 - unexpected error
0 - Other error with any status code and response body format.
agentId
- Unique identifier of the agent.MindsphereException
- if an error occurs while attempting to invoke the APIpublic Agent agentsPost(AgentInput agent) throws MindsphereException
201 - Created
400 - Bad Request
401 - Unauthorized
403 - Forbidden
409 - Resource is already available.
500 - unexpected error
0 - Other error with any status code and response body format.
agent
- Object describing new agent resource.MindsphereException
- if an error occurs while attempting to invoke the API