public class ServersApi extends Object
| Constructor and Description |
|---|
ServersApi(ApiClient api)
ServersApi constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Server> |
all()
Get all servers.
|
List<Server> |
all(Options options)
Get all servers.
|
Msg |
delete(long serverId)
Delete a specific server.
|
Server |
getServer(long serverId)
Get the a specific server by his id.
|
Server |
getServer(long serverId,
Options options)
Get the a specific server by his id.
|
Server |
insert(ServerInsert serverInsert)
Insert a new server.
|
public ServersApi(ApiClient api)
api - ApiClient.public List<Server> all() throws IOException
IOExceptionpublic List<Server> all(Options options) throws IOException
options - which contain query parametersIOExceptionpublic Server getServer(long serverId) throws IOException
serverId - the id of the server.IOExceptionpublic Server getServer(long serverId, Options options) throws IOException
serverId - the id of the server.options - which contain query parametersIOExceptionpublic Server insert(ServerInsert serverInsert) throws IOException
serverInsert - the server to be added.IOExceptionpublic Msg delete(long serverId) throws IOException
serverId - the id of the server to be deleted.IOExceptionCopyright © 2016. All rights reserved.