public class CreateVersion extends Endpoint<ProjectVersion,CreateVersion.CreateVersionRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateVersion.CreateVersionRequest
This class is used to represent the request.
|
| Constructor and Description |
|---|
CreateVersion(HttpClient client,
com.google.gson.Gson gson)
This constructor is used to create a new instance of the endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEndpoint()
Returns the endpoint.
|
String |
getMethod()
Returns the method to use.
|
com.google.gson.reflect.TypeToken<CreateVersion.CreateVersionRequest> |
getRequestClass()
Returns the request class to use.
|
com.google.gson.reflect.TypeToken<ProjectVersion> |
getResponseClass()
Returns the response class to use.
|
CompletableFuture<ProjectVersion> |
sendRequest(CreateVersion.CreateVersionRequest request,
Map<String,String> urlParams)
This method will send the request.
|
checkBodyForErrors, executeRequest, getReplacedUrl, isJsonBody, readFile, readStream, requiresBody, sendRequestpublic CreateVersion(HttpClient client, com.google.gson.Gson gson)
client - - The client to use.gson - - The gson instance to use.public String getEndpoint()
getEndpoint in class Endpoint<ProjectVersion,CreateVersion.CreateVersionRequest>public CompletableFuture<ProjectVersion> sendRequest(CreateVersion.CreateVersionRequest request, Map<String,String> urlParams)
sendRequest in class Endpoint<ProjectVersion,CreateVersion.CreateVersionRequest>request - - The request to use.urlParams - - The URL parameters to use.CompletableFuture that will return the response.public com.google.gson.reflect.TypeToken<CreateVersion.CreateVersionRequest> getRequestClass()
getRequestClass in class Endpoint<ProjectVersion,CreateVersion.CreateVersionRequest>TypeToken of the request.public com.google.gson.reflect.TypeToken<ProjectVersion> getResponseClass()
getResponseClass in class Endpoint<ProjectVersion,CreateVersion.CreateVersionRequest>TypeToken of the response.public String getMethod()
getMethod in class Endpoint<ProjectVersion,CreateVersion.CreateVersionRequest>Copyright © 2026. All rights reserved.