public class AnypointClient extends Object implements Closeable, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected HttpHelper |
httpHelper |
protected JsonHelper |
jsonHelper |
static String |
LOGIN_PATH |
| Constructor and Description |
|---|
AnypointClient()
Contructor used for serialization only
|
AnypointClient(String username,
String password) |
AnypointClient(String username,
String password,
int maxParallelDeployments) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyAlerts(File alertsJsonFile) |
String |
authenticate(String username,
String password) |
void |
close() |
Organization |
createOrganization(String name) |
Organization |
createOrganization(String name,
String ownerId,
boolean createSubOrgs,
boolean createEnvironments) |
Organization |
createOrganization(String name,
String ownerId,
boolean createSubOrgs,
boolean createEnvironments,
boolean globalDeployment,
int vCoresProduction,
int vCoresSandbox,
int vCoresDesign,
int staticIps,
int vpcs,
int loadBalancer) |
protected @NotNull Organization |
createOrganizationObject() |
Environment |
findEnvironment(String organizationName,
String environmentName,
boolean createOrganization,
boolean createEnvironment,
Environment.Type createEnvironmentType) |
@NotNull Organization |
findOrganization(String name) |
Organization |
findOrganizationById(String id) |
List<Organization> |
findOrganizations() |
DeploymentService |
getDeploymentService() |
HttpHelper |
getHttpHelper() |
JsonHelper |
getJsonHelper() |
int |
getMaxParallelDeployments() |
User |
getUser()
Return details on the account used to administer anypoint
|
String |
getUserId() |
void |
setHttpHelper(HttpHelper httpHelper) |
void |
setMaxParallelDeployments(int maxParallelDeployments) |
void |
setProxy(String scheme,
String host,
int port,
String username,
String password) |
void |
unsetProxy() |
public static final String LOGIN_PATH
protected JsonHelper jsonHelper
protected HttpHelper httpHelper
public int getMaxParallelDeployments()
public void setMaxParallelDeployments(int maxParallelDeployments)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic List<Organization> findOrganizations() throws HttpException
HttpException@NotNull public @NotNull Organization findOrganization(String name) throws NotFoundException, HttpException
NotFoundExceptionHttpExceptionpublic Organization findOrganizationById(String id) throws HttpException, NotFoundException
HttpExceptionNotFoundExceptionpublic User getUser() throws HttpException
HttpExceptionpublic Organization createOrganization(String name) throws HttpException
HttpExceptionpublic Organization createOrganization(String name, String ownerId, boolean createSubOrgs, boolean createEnvironments) throws HttpException
HttpExceptionpublic Organization createOrganization(String name, String ownerId, boolean createSubOrgs, boolean createEnvironments, boolean globalDeployment, int vCoresProduction, int vCoresSandbox, int vCoresDesign, int staticIps, int vpcs, int loadBalancer) throws HttpException
HttpExceptionpublic JsonHelper getJsonHelper()
public HttpHelper getHttpHelper()
public void setHttpHelper(HttpHelper httpHelper)
public String authenticate(String username, String password) throws HttpException
HttpExceptionpublic Environment findEnvironment(String organizationName, String environmentName, boolean createOrganization, boolean createEnvironment, Environment.Type createEnvironmentType) throws NotFoundException, HttpException
NotFoundExceptionHttpExceptionpublic String getUserId() throws HttpException
HttpExceptionpublic DeploymentService getDeploymentService()
public void applyAlerts(File alertsJsonFile) throws IOException, HttpException
IOExceptionHttpException@NotNull protected @NotNull Organization createOrganizationObject()
public void setProxy(String scheme, String host, int port, String username, String password)
public void unsetProxy()
Copyright © 2019 Kloudtek. All rights reserved.