public class HostTemplatesResourceApi extends Object
Constructor and Description |
---|
HostTemplatesResourceApi() |
HostTemplatesResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiCommand |
applyHostTemplate(String clusterName,
String hostTemplateName,
ApiHostRefList body,
Boolean runConfigRules,
Boolean startRoles)
Applies a host template to a collection of hosts.
|
okhttp3.Call |
applyHostTemplateAsync(String clusterName,
String hostTemplateName,
ApiHostRefList body,
Boolean runConfigRules,
Boolean startRoles,
ApiCallback<ApiCommand> callback)
Applies a host template to a collection of hosts.
|
okhttp3.Call |
applyHostTemplateCall(String clusterName,
String hostTemplateName,
ApiHostRefList body,
Boolean runConfigRules,
Boolean startRoles,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for applyHostTemplate
|
ApiResponse<ApiCommand> |
applyHostTemplateWithHttpInfo(String clusterName,
String hostTemplateName,
ApiHostRefList body,
Boolean runConfigRules,
Boolean startRoles)
Applies a host template to a collection of hosts.
|
ApiHostTemplateList |
createHostTemplates(String clusterName,
ApiHostTemplateList body)
Creates new host templates.
|
okhttp3.Call |
createHostTemplatesAsync(String clusterName,
ApiHostTemplateList body,
ApiCallback<ApiHostTemplateList> callback)
Creates new host templates.
|
okhttp3.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.
|
okhttp3.Call |
deleteHostTemplateAsync(String clusterName,
String hostTemplateName,
ApiCallback<ApiHostTemplate> callback)
Deletes a host template.
|
okhttp3.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.
|
okhttp3.Call |
readHostTemplateAsync(String clusterName,
String hostTemplateName,
ApiCallback<ApiHostTemplate> callback)
Retrieves information about a host template.
|
okhttp3.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.
|
okhttp3.Call |
readHostTemplatesAsync(String clusterName,
ApiCallback<ApiHostTemplateList> callback)
Lists all host templates in a cluster.
|
okhttp3.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.
|
ApiCommand |
reapplyHostTemplateOnHosts(String clusterName,
String hostTemplateName,
Boolean deleteRoles,
Boolean startRoles)
Reapplies a host template on all the hosts associated with the host template.
|
okhttp3.Call |
reapplyHostTemplateOnHostsAsync(String clusterName,
String hostTemplateName,
Boolean deleteRoles,
Boolean startRoles,
ApiCallback<ApiCommand> callback)
Reapplies a host template on all the hosts associated with the host template.
|
okhttp3.Call |
reapplyHostTemplateOnHostsCall(String clusterName,
String hostTemplateName,
Boolean deleteRoles,
Boolean startRoles,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for reapplyHostTemplateOnHosts
|
ApiResponse<ApiCommand> |
reapplyHostTemplateOnHostsWithHttpInfo(String clusterName,
String hostTemplateName,
Boolean deleteRoles,
Boolean startRoles)
Reapplies a host template on all the hosts associated with the host template.
|
void |
setApiClient(ApiClient apiClient) |
ApiHostTemplate |
updateHostTemplate(String clusterName,
String hostTemplateName,
ApiHostTemplate body)
Updates an existing host template.
|
okhttp3.Call |
updateHostTemplateAsync(String clusterName,
String hostTemplateName,
ApiHostTemplate body,
ApiCallback<ApiHostTemplate> callback)
Updates an existing host template.
|
okhttp3.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 okhttp3.Call applyHostTemplateCall(String clusterName, String hostTemplateName, ApiHostRefList body, Boolean runConfigRules, Boolean startRoles, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)body
- List of hosts to apply the host template to. (optional)runConfigRules
- Whether to run the rules engine to automatically configure roles present on the hosts (optional, default to false)startRoles
- Whether to start the newly created roles or not. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand applyHostTemplate(String clusterName, String hostTemplateName, ApiHostRefList body, Boolean runConfigRules, Boolean startRoles) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)body
- List of hosts to apply the host template to. (optional)runConfigRules
- Whether to run the rules engine to automatically configure roles present on the hosts (optional, default to false)startRoles
- Whether to start the newly created roles or not. (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, ApiHostRefList body, Boolean runConfigRules, Boolean startRoles) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)body
- List of hosts to apply the host template to. (optional)runConfigRules
- Whether to run the rules engine to automatically configure roles present on the hosts (optional, default to false)startRoles
- Whether to start the newly created roles or not. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call applyHostTemplateAsync(String clusterName, String hostTemplateName, ApiHostRefList body, Boolean runConfigRules, Boolean startRoles, ApiCallback<ApiCommand> callback) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)body
- List of hosts to apply the host template to. (optional)runConfigRules
- Whether to run the rules engine to automatically configure roles present on the hosts (optional, default to false)startRoles
- Whether to start the newly created roles or not. (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 okhttp3.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 okhttp3.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 okhttp3.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 okhttp3.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 okhttp3.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 okhttp3.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 okhttp3.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 okhttp3.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 okhttp3.Call reapplyHostTemplateOnHostsCall(String clusterName, String hostTemplateName, Boolean deleteRoles, Boolean startRoles, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)deleteRoles
- Whether to delete roles on host if RCG is deleted from host template . (optional)startRoles
- Whether to start the newly created roles or not. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand reapplyHostTemplateOnHosts(String clusterName, String hostTemplateName, Boolean deleteRoles, Boolean startRoles) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)deleteRoles
- Whether to delete roles on host if RCG is deleted from host template . (optional)startRoles
- Whether to start the newly created roles or not. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> reapplyHostTemplateOnHostsWithHttpInfo(String clusterName, String hostTemplateName, Boolean deleteRoles, Boolean startRoles) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)deleteRoles
- Whether to delete roles on host if RCG is deleted from host template . (optional)startRoles
- Whether to start the newly created roles or not. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call reapplyHostTemplateOnHostsAsync(String clusterName, String hostTemplateName, Boolean deleteRoles, Boolean startRoles, ApiCallback<ApiCommand> callback) throws ApiException
clusterName
- (required)hostTemplateName
- Host template to apply. (required)deleteRoles
- Whether to delete roles on host if RCG is deleted from host template . (optional)startRoles
- Whether to start the newly created roles or not. (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 okhttp3.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 okhttp3.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 © 2024. All rights reserved.