public class HostsResourceApi extends Object
Constructor and Description |
---|
HostsResourceApi() |
HostsResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiHostList |
createHosts(ApiHostList body)
.
|
com.squareup.okhttp.Call |
createHostsAsync(ApiHostList body,
ApiCallback<ApiHostList> callback)
.
|
com.squareup.okhttp.Call |
createHostsCall(ApiHostList body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createHosts
|
ApiResponse<ApiHostList> |
createHostsWithHttpInfo(ApiHostList body)
.
|
ApiHostList |
deleteAllHosts()
Delete all hosts in the system.
|
com.squareup.okhttp.Call |
deleteAllHostsAsync(ApiCallback<ApiHostList> callback)
Delete all hosts in the system.
|
com.squareup.okhttp.Call |
deleteAllHostsCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteAllHosts
|
ApiResponse<ApiHostList> |
deleteAllHostsWithHttpInfo()
Delete all hosts in the system.
|
ApiHost |
deleteHost(String hostId)
Delete a host from the system.
|
com.squareup.okhttp.Call |
deleteHostAsync(String hostId,
ApiCallback<ApiHost> callback)
Delete a host from the system.
|
com.squareup.okhttp.Call |
deleteHostCall(String hostId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteHost
|
ApiResponse<ApiHost> |
deleteHostWithHttpInfo(String hostId)
Delete a host from the system.
|
ApiCommand |
enterMaintenanceMode(String hostId)
Put the host into maintenance mode.
|
com.squareup.okhttp.Call |
enterMaintenanceModeAsync(String hostId,
ApiCallback<ApiCommand> callback)
Put the host into maintenance mode.
|
com.squareup.okhttp.Call |
enterMaintenanceModeCall(String hostId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for enterMaintenanceMode
|
ApiResponse<ApiCommand> |
enterMaintenanceModeWithHttpInfo(String hostId)
Put the host into maintenance mode.
|
ApiCommand |
exitMaintenanceMode(String hostId)
Take the host out of maintenance mode.
|
com.squareup.okhttp.Call |
exitMaintenanceModeAsync(String hostId,
ApiCallback<ApiCommand> callback)
Take the host out of maintenance mode.
|
com.squareup.okhttp.Call |
exitMaintenanceModeCall(String hostId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for exitMaintenanceMode
|
ApiResponse<ApiCommand> |
exitMaintenanceModeWithHttpInfo(String hostId)
Take the host out of maintenance mode.
|
ApiCommand |
generateHostCerts(String hostId,
ApiGenerateHostCertsArguments body)
Generates (or regenerates) a key and certificate for this host if Auto-TLS is enabled.
|
com.squareup.okhttp.Call |
generateHostCertsAsync(String hostId,
ApiGenerateHostCertsArguments body,
ApiCallback<ApiCommand> callback)
Generates (or regenerates) a key and certificate for this host if Auto-TLS is enabled.
|
com.squareup.okhttp.Call |
generateHostCertsCall(String hostId,
ApiGenerateHostCertsArguments body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for generateHostCerts
|
ApiResponse<ApiCommand> |
generateHostCertsWithHttpInfo(String hostId,
ApiGenerateHostCertsArguments body)
Generates (or regenerates) a key and certificate for this host if Auto-TLS is enabled.
|
ApiClient |
getApiClient() |
ApiMetricList |
getMetrics(String hostId,
String from,
List<String> ifs,
List<String> metrics,
Boolean queryNw,
Boolean queryStorage,
List<String> storageIds,
String to,
String view)
Fetch metric readings for a host.
|
com.squareup.okhttp.Call |
getMetricsAsync(String hostId,
String from,
List<String> ifs,
List<String> metrics,
Boolean queryNw,
Boolean queryStorage,
List<String> storageIds,
String to,
String view,
ApiCallback<ApiMetricList> callback)
Fetch metric readings for a host.
|
com.squareup.okhttp.Call |
getMetricsCall(String hostId,
String from,
List<String> ifs,
List<String> metrics,
Boolean queryNw,
Boolean queryStorage,
List<String> storageIds,
String to,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getMetrics
|
ApiResponse<ApiMetricList> |
getMetricsWithHttpInfo(String hostId,
String from,
List<String> ifs,
List<String> metrics,
Boolean queryNw,
Boolean queryStorage,
List<String> storageIds,
String to,
String view)
Fetch metric readings for a host.
|
ApiCommand |
migrateRoles(String hostId,
ApiMigrateRolesArguments body)
Migrate roles to a different host.
|
com.squareup.okhttp.Call |
migrateRolesAsync(String hostId,
ApiMigrateRolesArguments body,
ApiCallback<ApiCommand> callback)
Migrate roles to a different host.
|
com.squareup.okhttp.Call |
migrateRolesCall(String hostId,
ApiMigrateRolesArguments body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for migrateRoles
|
ApiResponse<ApiCommand> |
migrateRolesWithHttpInfo(String hostId,
ApiMigrateRolesArguments body)
Migrate roles to a different host.
|
ApiHost |
readHost(String hostId,
String view)
Returns a specific Host in the system.
|
com.squareup.okhttp.Call |
readHostAsync(String hostId,
String view,
ApiCallback<ApiHost> callback)
Returns a specific Host in the system.
|
com.squareup.okhttp.Call |
readHostCall(String hostId,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readHost
|
ApiConfigList |
readHostConfig(String hostId,
String view)
Retrieves the configuration of a specific host.
|
com.squareup.okhttp.Call |
readHostConfigAsync(String hostId,
String view,
ApiCallback<ApiConfigList> callback)
Retrieves the configuration of a specific host.
|
com.squareup.okhttp.Call |
readHostConfigCall(String hostId,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readHostConfig
|
ApiResponse<ApiConfigList> |
readHostConfigWithHttpInfo(String hostId,
String view)
Retrieves the configuration of a specific host.
|
ApiHostList |
readHosts(String view)
Returns the hostIds for all hosts in the system.
|
com.squareup.okhttp.Call |
readHostsAsync(String view,
ApiCallback<ApiHostList> callback)
Returns the hostIds for all hosts in the system.
|
com.squareup.okhttp.Call |
readHostsCall(String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readHosts
|
ApiResponse<ApiHostList> |
readHostsWithHttpInfo(String view)
Returns the hostIds for all hosts in the system.
|
ApiResponse<ApiHost> |
readHostWithHttpInfo(String hostId,
String view)
Returns a specific Host in the system.
|
void |
setApiClient(ApiClient apiClient) |
ApiHost |
updateHost(String hostId,
ApiHost body)
.
|
com.squareup.okhttp.Call |
updateHostAsync(String hostId,
ApiHost body,
ApiCallback<ApiHost> callback)
.
|
com.squareup.okhttp.Call |
updateHostCall(String hostId,
ApiHost body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateHost
|
ApiConfigList |
updateHostConfig(String hostId,
String message,
ApiConfigList body)
Updates the host configuration with the given values.
|
com.squareup.okhttp.Call |
updateHostConfigAsync(String hostId,
String message,
ApiConfigList body,
ApiCallback<ApiConfigList> callback)
Updates the host configuration with the given values.
|
com.squareup.okhttp.Call |
updateHostConfigCall(String hostId,
String message,
ApiConfigList body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateHostConfig
|
ApiResponse<ApiConfigList> |
updateHostConfigWithHttpInfo(String hostId,
String message,
ApiConfigList body)
Updates the host configuration with the given values.
|
ApiResponse<ApiHost> |
updateHostWithHttpInfo(String hostId,
ApiHost body)
.
|
public HostsResourceApi()
public HostsResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call createHostsCall(ApiHostList body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body
- The list of hosts to create (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostList createHosts(ApiHostList body) throws ApiException
body
- The list of hosts to create (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostList> createHostsWithHttpInfo(ApiHostList body) throws ApiException
body
- The list of hosts to create (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createHostsAsync(ApiHostList body, ApiCallback<ApiHostList> callback) throws ApiException
body
- The list of hosts 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 deleteAllHostsCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostList deleteAllHosts() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostList> deleteAllHostsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteAllHostsAsync(ApiCallback<ApiHostList> callback) throws ApiException
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 deleteHostCall(String hostId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host to remove (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHost deleteHost(String hostId) throws ApiException
hostId
- The ID of the host to remove (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHost> deleteHostWithHttpInfo(String hostId) throws ApiException
hostId
- The ID of the host to remove (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteHostAsync(String hostId, ApiCallback<ApiHost> callback) throws ApiException
hostId
- The ID of the host to remove (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 enterMaintenanceModeCall(String hostId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand enterMaintenanceMode(String hostId) throws ApiException
hostId
- The ID of the host (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> enterMaintenanceModeWithHttpInfo(String hostId) throws ApiException
hostId
- The ID of the host (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call enterMaintenanceModeAsync(String hostId, ApiCallback<ApiCommand> callback) throws ApiException
hostId
- The ID of the host (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 exitMaintenanceModeCall(String hostId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand exitMaintenanceMode(String hostId) throws ApiException
hostId
- The ID of the host (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> exitMaintenanceModeWithHttpInfo(String hostId) throws ApiException
hostId
- The ID of the host (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call exitMaintenanceModeAsync(String hostId, ApiCallback<ApiCommand> callback) throws ApiException
hostId
- The ID of the host (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 generateHostCertsCall(String hostId, ApiGenerateHostCertsArguments body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host to generate a certificate for. (required)body
- (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand generateHostCerts(String hostId, ApiGenerateHostCertsArguments body) throws ApiException
hostId
- The ID of the host to generate a certificate for. (required)body
- (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> generateHostCertsWithHttpInfo(String hostId, ApiGenerateHostCertsArguments body) throws ApiException
hostId
- The ID of the host to generate a certificate for. (required)body
- (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call generateHostCertsAsync(String hostId, ApiGenerateHostCertsArguments body, ApiCallback<ApiCommand> callback) throws ApiException
hostId
- The ID of the host to generate a certificate for. (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 objectpublic com.squareup.okhttp.Call getMetricsCall(String hostId, String from, List<String> ifs, List<String> metrics, Boolean queryNw, Boolean queryStorage, List<String> storageIds, String to, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The host's ID. (required)from
- Start of the period to query. (optional)ifs
- Network interfaces to query for metrics (default = all). (optional)metrics
- Filter for which metrics to query. (optional)queryNw
- Whether to query for network interface metrics. (optional, default to true)queryStorage
- Whether to query for storage metrics. (optional, default to true)storageIds
- Storage context IDs to query for metrics (default = all). (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiMetricList getMetrics(String hostId, String from, List<String> ifs, List<String> metrics, Boolean queryNw, Boolean queryStorage, List<String> storageIds, String to, String view) throws ApiException
hostId
- The host's ID. (required)from
- Start of the period to query. (optional)ifs
- Network interfaces to query for metrics (default = all). (optional)metrics
- Filter for which metrics to query. (optional)queryNw
- Whether to query for network interface metrics. (optional, default to true)queryStorage
- Whether to query for storage metrics. (optional, default to true)storageIds
- Storage context IDs to query for metrics (default = all). (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiMetricList> getMetricsWithHttpInfo(String hostId, String from, List<String> ifs, List<String> metrics, Boolean queryNw, Boolean queryStorage, List<String> storageIds, String to, String view) throws ApiException
hostId
- The host's ID. (required)from
- Start of the period to query. (optional)ifs
- Network interfaces to query for metrics (default = all). (optional)metrics
- Filter for which metrics to query. (optional)queryNw
- Whether to query for network interface metrics. (optional, default to true)queryStorage
- Whether to query for storage metrics. (optional, default to true)storageIds
- Storage context IDs to query for metrics (default = all). (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getMetricsAsync(String hostId, String from, List<String> ifs, List<String> metrics, Boolean queryNw, Boolean queryStorage, List<String> storageIds, String to, String view, ApiCallback<ApiMetricList> callback) throws ApiException
hostId
- The host's ID. (required)from
- Start of the period to query. (optional)ifs
- Network interfaces to query for metrics (default = all). (optional)metrics
- Filter for which metrics to query. (optional)queryNw
- Whether to query for network interface metrics. (optional, default to true)queryStorage
- Whether to query for storage metrics. (optional, default to true)storageIds
- Storage context IDs to query for metrics (default = all). (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)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 migrateRolesCall(String hostId, ApiMigrateRolesArguments body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host on which the roles to migrate currently reside (required)body
- Arguments for the command. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand migrateRoles(String hostId, ApiMigrateRolesArguments body) throws ApiException
hostId
- The ID of the host on which the roles to migrate currently reside (required)body
- Arguments for the command. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> migrateRolesWithHttpInfo(String hostId, ApiMigrateRolesArguments body) throws ApiException
hostId
- The ID of the host on which the roles to migrate currently reside (required)body
- Arguments for the command. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call migrateRolesAsync(String hostId, ApiMigrateRolesArguments body, ApiCallback<ApiCommand> callback) throws ApiException
hostId
- The ID of the host on which the roles to migrate currently reside (required)body
- Arguments for the command. (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 readHostCall(String hostId, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host to read. (required)view
- The view to materialize. Defaults to 'full'. (optional, default to full)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHost readHost(String hostId, String view) throws ApiException
hostId
- The ID of the host to read. (required)view
- The view to materialize. Defaults to 'full'. (optional, default to full)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHost> readHostWithHttpInfo(String hostId, String view) throws ApiException
hostId
- The ID of the host to read. (required)view
- The view to materialize. Defaults to 'full'. (optional, default to full)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readHostAsync(String hostId, String view, ApiCallback<ApiHost> callback) throws ApiException
hostId
- The ID of the host to read. (required)view
- The view to materialize. Defaults to 'full'. (optional, default to full)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 readHostConfigCall(String hostId, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host. (required)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiConfigList readHostConfig(String hostId, String view) throws ApiException
hostId
- The ID of the host. (required)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiConfigList> readHostConfigWithHttpInfo(String hostId, String view) throws ApiException
hostId
- The ID of the host. (required)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readHostConfigAsync(String hostId, String view, ApiCallback<ApiConfigList> callback) throws ApiException
hostId
- The ID of the host. (required)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)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 readHostsCall(String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
view
- The view to materialize (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostList readHosts(String view) throws ApiException
view
- The view to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostList> readHostsWithHttpInfo(String view) throws ApiException
view
- The view to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readHostsAsync(String view, ApiCallback<ApiHostList> callback) throws ApiException
view
- The view to materialize (optional, default to summary)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 updateHostCall(String hostId, ApiHost body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The hostId to update (required)body
- The updated host object. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHost updateHost(String hostId, ApiHost body) throws ApiException
hostId
- The hostId to update (required)body
- The updated host object. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHost> updateHostWithHttpInfo(String hostId, ApiHost body) throws ApiException
hostId
- The hostId to update (required)body
- The updated host object. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateHostAsync(String hostId, ApiHost body, ApiCallback<ApiHost> callback) throws ApiException
hostId
- The hostId to update (required)body
- The updated host object. (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 updateHostConfigCall(String hostId, String message, ApiConfigList body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host. (required)message
- Optional message describing the changes. (optional)body
- Configuration changes. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiConfigList updateHostConfig(String hostId, String message, ApiConfigList body) throws ApiException
hostId
- The ID of the host. (required)message
- Optional message describing the changes. (optional)body
- Configuration changes. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiConfigList> updateHostConfigWithHttpInfo(String hostId, String message, ApiConfigList body) throws ApiException
hostId
- The ID of the host. (required)message
- Optional message describing the changes. (optional)body
- Configuration changes. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateHostConfigAsync(String hostId, String message, ApiConfigList body, ApiCallback<ApiConfigList> callback) throws ApiException
hostId
- The ID of the host. (required)message
- Optional message describing the changes. (optional)body
- Configuration changes. (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.