public class GpuDeviceApi extends Object
| 构造器和说明 |
|---|
GpuDeviceApi() |
GpuDeviceApi(ApiClient apiClient) |
public GpuDeviceApi()
public GpuDeviceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public String getCustomBaseUrl()
public void setCustomBaseUrl(String customBaseUrl)
public okhttp3.Call getDetailVmInfoByGpuDevicesCall(GetGpuDevicesRequestBody getGpuDevicesRequestBody, ApiCallback _callback) throws ApiException
getGpuDevicesRequestBody - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public List<GpuVmInfo> getDetailVmInfoByGpuDevices(GetGpuDevicesRequestBody getGpuDevicesRequestBody) throws ApiException
getGpuDevicesRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<List<GpuVmInfo>> getDetailVmInfoByGpuDevicesWithHttpInfo(GetGpuDevicesRequestBody getGpuDevicesRequestBody) throws ApiException
getGpuDevicesRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getDetailVmInfoByGpuDevicesAsync(GetGpuDevicesRequestBody getGpuDevicesRequestBody, ApiCallback<List<GpuVmInfo>> _callback) throws ApiException
getGpuDevicesRequestBody - (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 object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getGpuDevicesCall(GetGpuDevicesRequestBody getGpuDevicesRequestBody, ApiCallback _callback) throws ApiException
getGpuDevicesRequestBody - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public List<GpuDevice> getGpuDevices(GetGpuDevicesRequestBody getGpuDevicesRequestBody) throws ApiException
getGpuDevicesRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<List<GpuDevice>> getGpuDevicesWithHttpInfo(GetGpuDevicesRequestBody getGpuDevicesRequestBody) throws ApiException
getGpuDevicesRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getGpuDevicesAsync(GetGpuDevicesRequestBody getGpuDevicesRequestBody, ApiCallback<List<GpuDevice>> _callback) throws ApiException
getGpuDevicesRequestBody - (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 object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getGpuDevicesConnectionCall(GetGpuDevicesConnectionRequestBody getGpuDevicesConnectionRequestBody, ApiCallback _callback) throws ApiException
getGpuDevicesConnectionRequestBody - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public GpuDeviceConnection getGpuDevicesConnection(GetGpuDevicesConnectionRequestBody getGpuDevicesConnectionRequestBody) throws ApiException
getGpuDevicesConnectionRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<GpuDeviceConnection> getGpuDevicesConnectionWithHttpInfo(GetGpuDevicesConnectionRequestBody getGpuDevicesConnectionRequestBody) throws ApiException
getGpuDevicesConnectionRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getGpuDevicesConnectionAsync(GetGpuDevicesConnectionRequestBody getGpuDevicesConnectionRequestBody, ApiCallback<GpuDeviceConnection> _callback) throws ApiException
getGpuDevicesConnectionRequestBody - (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 object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call switchGpuDeviceSriovCall(GpuDeviceSriovSwitchParams gpuDeviceSriovSwitchParams, ApiCallback _callback) throws ApiException
gpuDeviceSriovSwitchParams - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public List<WithTaskGpuDevice> switchGpuDeviceSriov(GpuDeviceSriovSwitchParams gpuDeviceSriovSwitchParams) throws ApiException
gpuDeviceSriovSwitchParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<List<WithTaskGpuDevice>> switchGpuDeviceSriovWithHttpInfo(GpuDeviceSriovSwitchParams gpuDeviceSriovSwitchParams) throws ApiException
gpuDeviceSriovSwitchParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call switchGpuDeviceSriovAsync(GpuDeviceSriovSwitchParams gpuDeviceSriovSwitchParams, ApiCallback<List<WithTaskGpuDevice>> _callback) throws ApiException
gpuDeviceSriovSwitchParams - (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 object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call updateGpuDeviceDescriptionCall(GpuDeviceDescriptionUpdationParams gpuDeviceDescriptionUpdationParams, ApiCallback _callback) throws ApiException
gpuDeviceDescriptionUpdationParams - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public List<WithTaskGpuDevice> updateGpuDeviceDescription(GpuDeviceDescriptionUpdationParams gpuDeviceDescriptionUpdationParams) throws ApiException
gpuDeviceDescriptionUpdationParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<List<WithTaskGpuDevice>> updateGpuDeviceDescriptionWithHttpInfo(GpuDeviceDescriptionUpdationParams gpuDeviceDescriptionUpdationParams) throws ApiException
gpuDeviceDescriptionUpdationParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call updateGpuDeviceDescriptionAsync(GpuDeviceDescriptionUpdationParams gpuDeviceDescriptionUpdationParams, ApiCallback<List<WithTaskGpuDevice>> _callback) throws ApiException
gpuDeviceDescriptionUpdationParams - (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 object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call updateGpuDeviceUsageCall(GpuDeviceUsageUpdationParams gpuDeviceUsageUpdationParams, ApiCallback _callback) throws ApiException
gpuDeviceUsageUpdationParams - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public List<WithTaskGpuDevice> updateGpuDeviceUsage(GpuDeviceUsageUpdationParams gpuDeviceUsageUpdationParams) throws ApiException
gpuDeviceUsageUpdationParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<List<WithTaskGpuDevice>> updateGpuDeviceUsageWithHttpInfo(GpuDeviceUsageUpdationParams gpuDeviceUsageUpdationParams) throws ApiException
gpuDeviceUsageUpdationParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call updateGpuDeviceUsageAsync(GpuDeviceUsageUpdationParams gpuDeviceUsageUpdationParams, ApiCallback<List<WithTaskGpuDevice>> _callback) throws ApiException
gpuDeviceUsageUpdationParams - (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 object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
Copyright © 2025. All rights reserved.