Class ApiIndividualApi
- java.lang.Object
-
- org.wso2.am.integration.clients.admin.api.ApiIndividualApi
-
public class ApiIndividualApi extends Object
-
-
Constructor Summary
Constructors Constructor Description ApiIndividualApi()ApiIndividualApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileexportApiGet(String name, String version, String providerName, String format, Boolean preserveStatus)Export an API This operation can be used to export the details of a particular API as a zip file.okhttp3.CallexportApiGetAsync(String name, String version, String providerName, String format, Boolean preserveStatus, ApiCallback<File> _callback)Export an API (asynchronously) This operation can be used to export the details of a particular API as a zip file.okhttp3.CallexportApiGetCall(String name, String version, String providerName, String format, Boolean preserveStatus, ApiCallback _callback)Build call for exportApiGetApiResponse<File>exportApiGetWithHttpInfo(String name, String version, String providerName, String format, Boolean preserveStatus)Export an API This operation can be used to export the details of a particular API as a zip file.ApiClientgetApiClient()voidimportApiPost(File file, Boolean preserveProvider, Boolean overwrite)Import an API This operation can be used to import an API.okhttp3.CallimportApiPostAsync(File file, Boolean preserveProvider, Boolean overwrite, ApiCallback<Void> _callback)Import an API (asynchronously) This operation can be used to import an API.okhttp3.CallimportApiPostCall(File file, Boolean preserveProvider, Boolean overwrite, ApiCallback _callback)Build call for importApiPostApiResponse<Void>importApiPostWithHttpInfo(File file, Boolean preserveProvider, Boolean overwrite)Import an API This operation can be used to import an API.voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
ApiIndividualApi
public ApiIndividualApi()
-
ApiIndividualApi
public ApiIndividualApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
exportApiGetCall
public okhttp3.Call exportApiGetCall(String name, String version, String providerName, String format, Boolean preserveStatus, ApiCallback _callback) throws ApiException
Build call for exportApiGet- Parameters:
name- API Name (required)version- Version of the API (required)providerName- Provider name of the API (optional)format- Format of output documents. Can be YAML or JSON. (optional)preserveStatus- Preserve API Status on export (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
exportApiGet
public File exportApiGet(String name, String version, String providerName, String format, Boolean preserveStatus) throws ApiException
Export an API This operation can be used to export the details of a particular API as a zip file.- Parameters:
name- API Name (required)version- Version of the API (required)providerName- Provider name of the API (optional)format- Format of output documents. Can be YAML or JSON. (optional)preserveStatus- Preserve API Status on export (optional)- Returns:
- File
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
exportApiGetWithHttpInfo
public ApiResponse<File> exportApiGetWithHttpInfo(String name, String version, String providerName, String format, Boolean preserveStatus) throws ApiException
Export an API This operation can be used to export the details of a particular API as a zip file.- Parameters:
name- API Name (required)version- Version of the API (required)providerName- Provider name of the API (optional)format- Format of output documents. Can be YAML or JSON. (optional)preserveStatus- Preserve API Status on export (optional)- Returns:
- ApiResponse<File>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
exportApiGetAsync
public okhttp3.Call exportApiGetAsync(String name, String version, String providerName, String format, Boolean preserveStatus, ApiCallback<File> _callback) throws ApiException
Export an API (asynchronously) This operation can be used to export the details of a particular API as a zip file.- Parameters:
name- API Name (required)version- Version of the API (required)providerName- Provider name of the API (optional)format- Format of output documents. Can be YAML or JSON. (optional)preserveStatus- Preserve API Status on export (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
importApiPostCall
public okhttp3.Call importApiPostCall(File file, Boolean preserveProvider, Boolean overwrite, ApiCallback _callback) throws ApiException
Build call for importApiPost- Parameters:
file- Zip archive consisting on exported api configuration (required)preserveProvider- Preserve Original Provider of the API. This is the user choice to keep or replace the API provider. (optional)overwrite- Whether to update the API or not. This is used when updating already existing APIs. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
importApiPost
public void importApiPost(File file, Boolean preserveProvider, Boolean overwrite) throws ApiException
Import an API This operation can be used to import an API.- Parameters:
file- Zip archive consisting on exported api configuration (required)preserveProvider- Preserve Original Provider of the API. This is the user choice to keep or replace the API provider. (optional)overwrite- Whether to update the API or not. This is used when updating already existing APIs. (optional)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
importApiPostWithHttpInfo
public ApiResponse<Void> importApiPostWithHttpInfo(File file, Boolean preserveProvider, Boolean overwrite) throws ApiException
Import an API This operation can be used to import an API.- Parameters:
file- Zip archive consisting on exported api configuration (required)preserveProvider- Preserve Original Provider of the API. This is the user choice to keep or replace the API provider. (optional)overwrite- Whether to update the API or not. This is used when updating already existing APIs. (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
importApiPostAsync
public okhttp3.Call importApiPostAsync(File file, Boolean preserveProvider, Boolean overwrite, ApiCallback<Void> _callback) throws ApiException
Import an API (asynchronously) This operation can be used to import an API.- Parameters:
file- Zip archive consisting on exported api configuration (required)preserveProvider- Preserve Original Provider of the API. This is the user choice to keep or replace the API provider. (optional)overwrite- Whether to update the API or not. This is used when updating already existing APIs. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
-