@Generated(value="class io.swagger.codegen.languages.JavaClientCodegen", date="2017-02-24T16:43:30.269+01:00") public class ServerManagementAPIApi extends Object
| Constructor and Description |
|---|
ServerManagementAPIApi() |
ServerManagementAPIApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ExtendedServerInfo |
createServer(String xPostmarkAccountToken,
CreateServerPayload body)
Create a Server
|
void |
deleteServer(String xPostmarkAccountToken,
Integer serverid)
Delete a Server
|
ExtendedServerInfo |
editServerInformation(String xPostmarkAccountToken,
Integer serverid,
EditServerPayload body)
Edit a Server
|
ApiClient |
getApiClient() |
ExtendedServerInfo |
getServerInformation(String xPostmarkAccountToken,
Integer serverid)
Get a Server
|
ServerListingResponse |
listServers(String xPostmarkAccountToken,
Integer count,
Integer offset,
String name)
List servers
|
void |
setApiClient(ApiClient apiClient) |
public ServerManagementAPIApi()
public ServerManagementAPIApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public ExtendedServerInfo createServer(String xPostmarkAccountToken, CreateServerPayload body) throws ApiException
xPostmarkAccountToken - The token associated with the Account on which this request will operate. (required)body - (optional)ApiException - if fails to make API callpublic void deleteServer(String xPostmarkAccountToken, Integer serverid) throws ApiException
xPostmarkAccountToken - The token associated with the Account on which this request will operate. (required)serverid - The ID of the Server that should be deleted. (required)ApiException - if fails to make API callpublic ExtendedServerInfo editServerInformation(String xPostmarkAccountToken, Integer serverid, EditServerPayload body) throws ApiException
xPostmarkAccountToken - The token associated with the Account on which this request will operate. (required)serverid - The ID of the Server to update. (required)body - (optional)ApiException - if fails to make API callpublic ExtendedServerInfo getServerInformation(String xPostmarkAccountToken, Integer serverid) throws ApiException
xPostmarkAccountToken - The token associated with the Account on which this request will operate. (required)serverid - The ID of the Server to get. (required)ApiException - if fails to make API callpublic ServerListingResponse listServers(String xPostmarkAccountToken, Integer count, Integer offset, String name) throws ApiException
xPostmarkAccountToken - The token associated with the Account on which this request will operate. (required)count - Number of servers to return per request. (required)offset - Number of servers to skip. (required)name - Filter by a specific server name (optional)ApiException - if fails to make API callCopyright © 2019. All rights reserved.