Class CloudHubRequestUtils
- java.lang.Object
-
- org.jenkinsci.plugins.cloudhubdeployer.utils.CloudHubRequestUtils
-
public final class CloudHubRequestUtils extends Object
Utility class for HTTP requests to CloudHub REST API.- Version:
- 1.0.0
- Author:
- Vikas Chaudhary
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
apiList(CloudHubRequest cloudhubRequest)
static String
apiStatus(CloudHubRequest cloudhubRequest)
static String
create(CloudHubRequest cloudhubRequest)
static String
createAutoScalePolicy(CloudHubRequest cloudhubRequest)
static String
delete(CloudHubRequest cloudhubRequest)
static String
envList(CloudHubRequest cloudhubRequest)
static String
getAutoScalePolicy(CloudHubRequest cloudhubRequest)
static String
login(CloudHubRequest cloudhubRequest)
static String
restart(CloudHubRequest cloudhubRequest)
static String
update(CloudHubRequest cloudhubRequest)
static String
updateAutoScalePolicy(CloudHubRequest cloudhubRequest)
static String
updateFile(CloudHubRequest cloudhubRequest)
-
-
-
Method Detail
-
login
public static String login(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
envList
public static String envList(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
create
public static String create(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
update
public static String update(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
updateFile
public static String updateFile(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
delete
public static String delete(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
restart
public static String restart(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
apiStatus
public static String apiStatus(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
apiList
public static String apiList(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
createAutoScalePolicy
public static String createAutoScalePolicy(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
getAutoScalePolicy
public static String getAutoScalePolicy(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
updateAutoScalePolicy
public static String updateAutoScalePolicy(CloudHubRequest cloudhubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
-