Package com.vmware.vra.jenkinsplugin.vra
Class VraClient
java.lang.Object
com.vmware.vra.jenkinsplugin.vra.VraClient
- All Implemented Interfaces:
Serializable
public class VraClient extends Object implements Serializable
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected void
authenticate(String token)
protected void
authenticate(String domain, String username, String password)
String
delete(String url, Map<String,String> query)
<R> R
delete(String url, Map<String,String> query, Class<R> responseClass)
String
executeRequest(org.apache.http.client.methods.HttpUriRequest rq)
String
get(String url, Map<String,String> query)
<R> R
get(String url, Map<String,String> query, Class<R> responseClass)
<R> R
post(String url, Map<String,String> query, Object request, Class<R> responseClass)
String
post(String url, Map<String,String> query, String payload)
-
Constructor Details
-
VraClient
-
VraClient
- Throws:
VRAException
-
VraClient
public VraClient(String baseUrl, String domain, String username, String password, boolean trustSelfSignedCert) throws VRAException- Throws:
VRAException
-
-
Method Details
-
authenticate
- Throws:
VRAException
-
authenticate
- Throws:
VRAException
-
post
public <R> R post(String url, Map<String,String> query, Object request, Class<R> responseClass) throws VRAException- Throws:
VRAException
-
post
public String post(String url, Map<String,String> query, String payload) throws IOException, VRAException- Throws:
IOException
VRAException
-
get
- Throws:
IOException
VRAException
-
delete
- Throws:
IOException
VRAException
-
executeRequest
public String executeRequest(@Nonnull org.apache.http.client.methods.HttpUriRequest rq) throws IOException, VRAException- Throws:
IOException
VRAException
-
get
public <R> R get(String url, Map<String,String> query, Class<R> responseClass) throws VRAException- Throws:
VRAException
-
delete
public <R> R delete(String url, Map<String,String> query, Class<R> responseClass) throws VRAException- Throws:
VRAException
-