public class HostTemplatesResourceApi extends Object
Constructor and Description |
---|
HostTemplatesResourceApi() |
HostTemplatesResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiCommand |
applyHostTemplate(String clusterName,
String hostTemplateName,
Boolean startRoles,
ApiHostRefList body)
Applies a host template to a collection of hosts.
|
com.squareup.okhttp.Call |
applyHostTemplateAsync(String clusterName,
String hostTemplateName,
Boolean startRoles,
ApiHostRefList body,
ApiCallback<ApiCommand> callback)
Applies a host template to a collection of hosts.
|
com.squareup.okhttp.Call |
applyHostTemplateCall(String clusterName,
String hostTemplateName,
Boolean startRoles,
ApiHostRefList body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for applyHostTemplate
|
ApiResponse<ApiCommand> |
applyHostTemplateWithHttpInfo(String clusterName,
String hostTemplateName,
Boolean startRoles,
ApiHostRefList body)
Applies a host template to a collection of hosts.
|
ApiHostTemplateList |
createHostTemplates(String clusterName,
ApiHostTemplateList body)
Creates new host templates.
|
com.squareup.okhttp.Call |
createHostTemplatesAsync(String clusterName,
ApiHostTemplateList body,
ApiCallback<ApiHostTemplateList> callback)
Creates new host templates.
|
com.squareup.okhttp.Call |
createHostTemplatesCall(String clusterName,
ApiHostTemplateList body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createHostTemplates
|
ApiResponse<ApiHostTemplateList> |
createHostTemplatesWithHttpInfo(String clusterName,
ApiHostTemplateList body)
Creates new host templates.
|
ApiHostTemplate |
deleteHostTemplate(String clusterName,
String hostTemplateName)
Deletes a host template.
|
com.squareup.okhttp.Call |
deleteHostTemplateAsync(String clusterName,
String hostTemplateName,
ApiCallback<ApiHostTemplate> callback)
Deletes a host template.
|
com.squareup.okhttp.Call |
deleteHostTemplateCall(String clusterName,
String hostTemplateName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteHostTemplate
|
ApiResponse<ApiHostTemplate> |
deleteHostTemplateWithHttpInfo(String clusterName,
String hostTemplateName)
Deletes a host template.
|
ApiClient |
getApiClient() |
ApiHostTemplate |
readHostTemplate(String clusterName,
String hostTemplateName)
Retrieves information about a host template.
|
com.squareup.okhttp.Call |
readHostTemplateAsync(String clusterName,
String hostTemplateName,
ApiCallback<ApiHostTemplate> callback)
Retrieves information about a host template.
|
com.squareup.okhttp.Call |
readHostTemplateCall(String clusterName,
String hostTemplateName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readHostTemplate
|
ApiHostTemplateList |
readHostTemplates(String clusterName)
Lists all host templates in a cluster.
|
com.squareup.okhttp.Call |
readHostTemplatesAsync(String clusterName,
ApiCallback<ApiHostTemplateList> callback)
Lists all host templates in a cluster.
|
com.squareup.okhttp.Call |
readHostTemplatesCall(String clusterName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readHostTemplates
|
ApiResponse<ApiHostTemplateList> |
readHostTemplatesWithHttpInfo(String clusterName)
Lists all host templates in a cluster.
|
ApiResponse<ApiHostTemplate> |
readHostTemplateWithHttpInfo(String clusterName,
String hostTemplateName)
Retrieves information about a host template.
|
void |
setApiClient(ApiClient apiClient) |
ApiHostTemplate |
updateHostTemplate(String clusterName,
String hostTemplateName,
ApiHostTemplate body)
Updates an existing host template.
|
com.squareup.okhttp.Call |
updateHostTemplateAsync(String clusterName,
String hostTemplateName,
ApiHostTemplate body,
ApiCallback<ApiHostTemplate> callback)
Updates an existing host template.
|
com.squareup.okhttp.Call |
updateHostTemplateCall(String clusterName,
String hostTemplateName,
ApiHostTemplate body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateHostTemplate
|
ApiResponse<ApiHostTemplate> |
updateHostTemplateWithHttpInfo(String clusterName,
String hostTemplateName,
ApiHostTemplate body)
Updates an existing host template.
|
public HostTemplatesResourceApi()
public HostTemplatesResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call applyHostTemplateCall(String clusterName, String hostTemplateName, Boolean startRoles, ApiHostRefList body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)startRoles
- Whether to start the newly created roles or not. (optional)body
- List of hosts to apply the host template to. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand applyHostTemplate(String clusterName, String hostTemplateName, Boolean startRoles, ApiHostRefList body) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)startRoles
- Whether to start the newly created roles or not. (optional)body
- List of hosts to apply the host template to. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> applyHostTemplateWithHttpInfo(String clusterName, String hostTemplateName, Boolean startRoles, ApiHostRefList body) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)startRoles
- Whether to start the newly created roles or not. (optional)body
- List of hosts to apply the host template to. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call applyHostTemplateAsync(String clusterName, String hostTemplateName, Boolean startRoles, ApiHostRefList body, ApiCallback<ApiCommand> callback) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)startRoles
- Whether to start the newly created roles or not. (optional)body
- List of hosts to apply the host template to. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call createHostTemplatesCall(String clusterName, ApiHostTemplateList body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)body
- The list of host templates to create. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostTemplateList createHostTemplates(String clusterName, ApiHostTemplateList body) throws ApiException
clusterName
- (required)body
- The list of host templates to create. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostTemplateList> createHostTemplatesWithHttpInfo(String clusterName, ApiHostTemplateList body) throws ApiException
clusterName
- (required)body
- The list of host templates to create. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createHostTemplatesAsync(String clusterName, ApiHostTemplateList body, ApiCallback<ApiHostTemplateList> callback) throws ApiException
clusterName
- (required)body
- The list of host templates to create. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deleteHostTemplateCall(String clusterName, String hostTemplateName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to delete. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostTemplate deleteHostTemplate(String clusterName, String hostTemplateName) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to delete. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostTemplate> deleteHostTemplateWithHttpInfo(String clusterName, String hostTemplateName) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to delete. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteHostTemplateAsync(String clusterName, String hostTemplateName, ApiCallback<ApiHostTemplate> callback) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to delete. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readHostTemplateCall(String clusterName, String hostTemplateName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)hostTemplateName
- (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostTemplate readHostTemplate(String clusterName, String hostTemplateName) throws ApiException
clusterName
- (required)hostTemplateName
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostTemplate> readHostTemplateWithHttpInfo(String clusterName, String hostTemplateName) throws ApiException
clusterName
- (required)hostTemplateName
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readHostTemplateAsync(String clusterName, String hostTemplateName, ApiCallback<ApiHostTemplate> callback) throws ApiException
clusterName
- (required)hostTemplateName
- (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readHostTemplatesCall(String clusterName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostTemplateList readHostTemplates(String clusterName) throws ApiException
clusterName
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostTemplateList> readHostTemplatesWithHttpInfo(String clusterName) throws ApiException
clusterName
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readHostTemplatesAsync(String clusterName, ApiCallback<ApiHostTemplateList> callback) throws ApiException
clusterName
- (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call updateHostTemplateCall(String clusterName, String hostTemplateName, ApiHostTemplate body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)hostTemplateName
- Host template with updated fields. (required)body
- (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostTemplate updateHostTemplate(String clusterName, String hostTemplateName, ApiHostTemplate body) throws ApiException
clusterName
- (required)hostTemplateName
- Host template with updated fields. (required)body
- (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostTemplate> updateHostTemplateWithHttpInfo(String clusterName, String hostTemplateName, ApiHostTemplate body) throws ApiException
clusterName
- (required)hostTemplateName
- Host template with updated fields. (required)body
- (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateHostTemplateAsync(String clusterName, String hostTemplateName, ApiHostTemplate body, ApiCallback<ApiHostTemplate> callback) throws ApiException
clusterName
- (required)hostTemplateName
- Host template with updated fields. (required)body
- (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2019. All rights reserved.