public class ImportExportApi extends Object
| Constructor and Description |
|---|
ImportExportApi() |
ImportExportApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
File |
exportAPI(String apiId,
String name,
String version,
String revisionNumber,
String providerName,
String format,
Boolean preserveStatus,
Boolean latestRevision)
Export an API
This operation can be used to export the details of a particular API as a zip file.
|
okhttp3.Call |
exportAPIAsync(String apiId,
String name,
String version,
String revisionNumber,
String providerName,
String format,
Boolean preserveStatus,
Boolean latestRevision,
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.Call |
exportAPICall(String apiId,
String name,
String version,
String revisionNumber,
String providerName,
String format,
Boolean preserveStatus,
Boolean latestRevision,
ApiCallback _callback)
Build call for exportAPI
|
File |
exportAPIProduct(String name,
String version,
String providerName,
String revisionNumber,
String format,
Boolean preserveStatus,
Boolean latestRevision)
Export an API Product
This operation can be used to export the details of a particular API Product as a zip file.
|
okhttp3.Call |
exportAPIProductAsync(String name,
String version,
String providerName,
String revisionNumber,
String format,
Boolean preserveStatus,
Boolean latestRevision,
ApiCallback<File> _callback)
Export an API Product (asynchronously)
This operation can be used to export the details of a particular API Product as a zip file.
|
okhttp3.Call |
exportAPIProductCall(String name,
String version,
String providerName,
String revisionNumber,
String format,
Boolean preserveStatus,
Boolean latestRevision,
ApiCallback _callback)
Build call for exportAPIProduct
|
ApiResponse<File> |
exportAPIProductWithHttpInfo(String name,
String version,
String providerName,
String revisionNumber,
String format,
Boolean preserveStatus,
Boolean latestRevision)
Export an API Product
This operation can be used to export the details of a particular API Product as a zip file.
|
ApiResponse<File> |
exportAPIWithHttpInfo(String apiId,
String name,
String version,
String revisionNumber,
String providerName,
String format,
Boolean preserveStatus,
Boolean latestRevision)
Export an API
This operation can be used to export the details of a particular API as a zip file.
|
ApiClient |
getApiClient() |
void |
importAPI(File file,
Boolean preserveProvider,
Boolean rotateRevision,
Boolean overwrite)
Import an API
This operation can be used to import an API.
|
okhttp3.Call |
importAPIAsync(File file,
Boolean preserveProvider,
Boolean rotateRevision,
Boolean overwrite,
ApiCallback<Void> _callback)
Import an API (asynchronously)
This operation can be used to import an API.
|
okhttp3.Call |
importAPICall(File file,
Boolean preserveProvider,
Boolean rotateRevision,
Boolean overwrite,
ApiCallback _callback)
Build call for importAPI
|
void |
importAPIProduct(File file,
Boolean preserveProvider,
Boolean rotateRevision,
Boolean importAPIs,
Boolean overwriteAPIProduct,
Boolean overwriteAPIs)
Import an API Product
This operation can be used to import an API Product.
|
okhttp3.Call |
importAPIProductAsync(File file,
Boolean preserveProvider,
Boolean rotateRevision,
Boolean importAPIs,
Boolean overwriteAPIProduct,
Boolean overwriteAPIs,
ApiCallback<Void> _callback)
Import an API Product (asynchronously)
This operation can be used to import an API Product.
|
okhttp3.Call |
importAPIProductCall(File file,
Boolean preserveProvider,
Boolean rotateRevision,
Boolean importAPIs,
Boolean overwriteAPIProduct,
Boolean overwriteAPIs,
ApiCallback _callback)
Build call for importAPIProduct
|
ApiResponse<Void> |
importAPIProductWithHttpInfo(File file,
Boolean preserveProvider,
Boolean rotateRevision,
Boolean importAPIs,
Boolean overwriteAPIProduct,
Boolean overwriteAPIs)
Import an API Product
This operation can be used to import an API Product.
|
ApiResponse<Void> |
importAPIWithHttpInfo(File file,
Boolean preserveProvider,
Boolean rotateRevision,
Boolean overwrite)
Import an API
This operation can be used to import an API.
|
void |
setApiClient(ApiClient apiClient) |
public ImportExportApi()
public ImportExportApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call exportAPICall(String apiId, String name, String version, String revisionNumber, String providerName, String format, Boolean preserveStatus, Boolean latestRevision, ApiCallback _callback) throws ApiException
apiId - UUID of the API (optional)name - API Name (optional)version - Version of the API (optional)revisionNumber - Revision number of the API artifact (optional)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)latestRevision - Export the latest revision of the API (optional, default to false)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic File exportAPI(String apiId, String name, String version, String revisionNumber, String providerName, String format, Boolean preserveStatus, Boolean latestRevision) throws ApiException
apiId - UUID of the API (optional)name - API Name (optional)version - Version of the API (optional)revisionNumber - Revision number of the API artifact (optional)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)latestRevision - Export the latest revision of the API (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> exportAPIWithHttpInfo(String apiId, String name, String version, String revisionNumber, String providerName, String format, Boolean preserveStatus, Boolean latestRevision) throws ApiException
apiId - UUID of the API (optional)name - API Name (optional)version - Version of the API (optional)revisionNumber - Revision number of the API artifact (optional)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)latestRevision - Export the latest revision of the API (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call exportAPIAsync(String apiId, String name, String version, String revisionNumber, String providerName, String format, Boolean preserveStatus, Boolean latestRevision, ApiCallback<File> _callback) throws ApiException
apiId - UUID of the API (optional)name - API Name (optional)version - Version of the API (optional)revisionNumber - Revision number of the API artifact (optional)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)latestRevision - Export the latest revision of the API (optional, default to false)_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 exportAPIProductCall(String name, String version, String providerName, String revisionNumber, String format, Boolean preserveStatus, Boolean latestRevision, ApiCallback _callback) throws ApiException
name - API Product Name (optional)version - Version of the API Product (optional)providerName - Provider name of the API Product (optional)revisionNumber - Revision number of the API Product (optional)format - Format of output documents. Can be YAML or JSON. (optional)preserveStatus - Preserve API Product Status on export (optional)latestRevision - Export the latest revision of the API Product (optional, default to false)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic File exportAPIProduct(String name, String version, String providerName, String revisionNumber, String format, Boolean preserveStatus, Boolean latestRevision) throws ApiException
name - API Product Name (optional)version - Version of the API Product (optional)providerName - Provider name of the API Product (optional)revisionNumber - Revision number of the API Product (optional)format - Format of output documents. Can be YAML or JSON. (optional)preserveStatus - Preserve API Product Status on export (optional)latestRevision - Export the latest revision of the API Product (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> exportAPIProductWithHttpInfo(String name, String version, String providerName, String revisionNumber, String format, Boolean preserveStatus, Boolean latestRevision) throws ApiException
name - API Product Name (optional)version - Version of the API Product (optional)providerName - Provider name of the API Product (optional)revisionNumber - Revision number of the API Product (optional)format - Format of output documents. Can be YAML or JSON. (optional)preserveStatus - Preserve API Product Status on export (optional)latestRevision - Export the latest revision of the API Product (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call exportAPIProductAsync(String name, String version, String providerName, String revisionNumber, String format, Boolean preserveStatus, Boolean latestRevision, ApiCallback<File> _callback) throws ApiException
name - API Product Name (optional)version - Version of the API Product (optional)providerName - Provider name of the API Product (optional)revisionNumber - Revision number of the API Product (optional)format - Format of output documents. Can be YAML or JSON. (optional)preserveStatus - Preserve API Product Status on export (optional)latestRevision - Export the latest revision of the API Product (optional, default to false)_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 importAPICall(File file, Boolean preserveProvider, Boolean rotateRevision, Boolean overwrite, ApiCallback _callback) throws ApiException
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)rotateRevision - Once the revision max limit reached, undeploy and delete the earliest revision and create a new revision (optional)overwrite - Whether to update the API or not. This is used when updating already existing APIs (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic void importAPI(File file, Boolean preserveProvider, Boolean rotateRevision, Boolean overwrite) throws ApiException
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)rotateRevision - Once the revision max limit reached, undeploy and delete the earliest revision and create a new revision (optional)overwrite - Whether to update the API or not. This is used when updating already existing APIs (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> importAPIWithHttpInfo(File file, Boolean preserveProvider, Boolean rotateRevision, Boolean overwrite) throws ApiException
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)rotateRevision - Once the revision max limit reached, undeploy and delete the earliest revision and create a new revision (optional)overwrite - Whether to update the API or not. This is used when updating already existing APIs (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call importAPIAsync(File file, Boolean preserveProvider, Boolean rotateRevision, Boolean overwrite, ApiCallback<Void> _callback) throws ApiException
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)rotateRevision - Once the revision max limit reached, undeploy and delete the earliest revision and create a new revision (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 finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call importAPIProductCall(File file, Boolean preserveProvider, Boolean rotateRevision, Boolean importAPIs, Boolean overwriteAPIProduct, Boolean overwriteAPIs, ApiCallback _callback) throws ApiException
file - Zip archive consisting on exported API Product configuration (required)preserveProvider - Preserve Original Provider of the API Product. This is the user choice to keep or replace the API Product provider (optional)rotateRevision - Once the revision max limit reached, undeploy and delete the earliest revision and create a new revision (optional)importAPIs - Whether to import the dependent APIs or not. (optional)overwriteAPIProduct - Whether to update the API Product or not. This is used when updating already existing API Products. (optional)overwriteAPIs - Whether to update the dependent APIs or not. This is used when updating already existing dependent APIs of an API Product. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic void importAPIProduct(File file, Boolean preserveProvider, Boolean rotateRevision, Boolean importAPIs, Boolean overwriteAPIProduct, Boolean overwriteAPIs) throws ApiException
file - Zip archive consisting on exported API Product configuration (required)preserveProvider - Preserve Original Provider of the API Product. This is the user choice to keep or replace the API Product provider (optional)rotateRevision - Once the revision max limit reached, undeploy and delete the earliest revision and create a new revision (optional)importAPIs - Whether to import the dependent APIs or not. (optional)overwriteAPIProduct - Whether to update the API Product or not. This is used when updating already existing API Products. (optional)overwriteAPIs - Whether to update the dependent APIs or not. This is used when updating already existing dependent APIs of an API Product. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> importAPIProductWithHttpInfo(File file, Boolean preserveProvider, Boolean rotateRevision, Boolean importAPIs, Boolean overwriteAPIProduct, Boolean overwriteAPIs) throws ApiException
file - Zip archive consisting on exported API Product configuration (required)preserveProvider - Preserve Original Provider of the API Product. This is the user choice to keep or replace the API Product provider (optional)rotateRevision - Once the revision max limit reached, undeploy and delete the earliest revision and create a new revision (optional)importAPIs - Whether to import the dependent APIs or not. (optional)overwriteAPIProduct - Whether to update the API Product or not. This is used when updating already existing API Products. (optional)overwriteAPIs - Whether to update the dependent APIs or not. This is used when updating already existing dependent APIs of an API Product. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call importAPIProductAsync(File file, Boolean preserveProvider, Boolean rotateRevision, Boolean importAPIs, Boolean overwriteAPIProduct, Boolean overwriteAPIs, ApiCallback<Void> _callback) throws ApiException
file - Zip archive consisting on exported API Product configuration (required)preserveProvider - Preserve Original Provider of the API Product. This is the user choice to keep or replace the API Product provider (optional)rotateRevision - Once the revision max limit reached, undeploy and delete the earliest revision and create a new revision (optional)importAPIs - Whether to import the dependent APIs or not. (optional)overwriteAPIProduct - Whether to update the API Product or not. This is used when updating already existing API Products. (optional)overwriteAPIs - Whether to update the dependent APIs or not. This is used when updating already existing dependent APIs of an API Product. (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 © 2021 WSO2 Inc. All rights reserved.