public class ApiLifecycleApi extends Object
| Constructor and Description |
|---|
ApiLifecycleApi() |
ApiLifecycleApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
WorkflowResponseDTO |
changeAPILifecycle(String action,
String apiId,
String lifecycleChecklist,
String ifMatch)
Change API Status
This operation is used to change the lifecycle of an API.
|
okhttp3.Call |
changeAPILifecycleAsync(String action,
String apiId,
String lifecycleChecklist,
String ifMatch,
ApiCallback<WorkflowResponseDTO> _callback)
Change API Status (asynchronously)
This operation is used to change the lifecycle of an API.
|
okhttp3.Call |
changeAPILifecycleCall(String action,
String apiId,
String lifecycleChecklist,
String ifMatch,
ApiCallback _callback)
Build call for changeAPILifecycle
|
ApiResponse<WorkflowResponseDTO> |
changeAPILifecycleWithHttpInfo(String action,
String apiId,
String lifecycleChecklist,
String ifMatch)
Change API Status
This operation is used to change the lifecycle of an API.
|
void |
deleteAPILifecycleStatePendingTasks(String apiId)
Delete Pending Lifecycle State Change Tasks
This operation can be used to remove pending lifecycle state change requests that are in pending state
|
okhttp3.Call |
deleteAPILifecycleStatePendingTasksAsync(String apiId,
ApiCallback<Void> _callback)
Delete Pending Lifecycle State Change Tasks (asynchronously)
This operation can be used to remove pending lifecycle state change requests that are in pending state
|
okhttp3.Call |
deleteAPILifecycleStatePendingTasksCall(String apiId,
ApiCallback _callback)
Build call for deleteAPILifecycleStatePendingTasks
|
ApiResponse<Void> |
deleteAPILifecycleStatePendingTasksWithHttpInfo(String apiId)
Delete Pending Lifecycle State Change Tasks
This operation can be used to remove pending lifecycle state change requests that are in pending state
|
ApiClient |
getApiClient() |
LifecycleHistoryDTO |
getAPILifecycleHistory(String apiId,
String ifNoneMatch)
Get Lifecycle State Change History of the API.
|
okhttp3.Call |
getAPILifecycleHistoryAsync(String apiId,
String ifNoneMatch,
ApiCallback<LifecycleHistoryDTO> _callback)
Get Lifecycle State Change History of the API.
|
okhttp3.Call |
getAPILifecycleHistoryCall(String apiId,
String ifNoneMatch,
ApiCallback _callback)
Build call for getAPILifecycleHistory
|
ApiResponse<LifecycleHistoryDTO> |
getAPILifecycleHistoryWithHttpInfo(String apiId,
String ifNoneMatch)
Get Lifecycle State Change History of the API.
|
LifecycleStateDTO |
getAPILifecycleState(String apiId,
String ifNoneMatch)
Get Lifecycle State Data of the API.
|
okhttp3.Call |
getAPILifecycleStateAsync(String apiId,
String ifNoneMatch,
ApiCallback<LifecycleStateDTO> _callback)
Get Lifecycle State Data of the API.
|
okhttp3.Call |
getAPILifecycleStateCall(String apiId,
String ifNoneMatch,
ApiCallback _callback)
Build call for getAPILifecycleState
|
ApiResponse<LifecycleStateDTO> |
getAPILifecycleStateWithHttpInfo(String apiId,
String ifNoneMatch)
Get Lifecycle State Data of the API.
|
void |
setApiClient(ApiClient apiClient) |
public ApiLifecycleApi()
public ApiLifecycleApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call changeAPILifecycleCall(String action, String apiId, String lifecycleChecklist, String ifMatch, ApiCallback _callback) throws ApiException
action - The action to demote or promote the state of the API. Supported actions are [ **Publish**, **Deploy as a Prototype**, **Demote to Created**, **Block**, **Deprecate**, **Re-Publish**, **Retire** ] (required)apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)lifecycleChecklist - Supported checklist items are as follows. 1. **Deprecate old versions after publishing the API**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Requires re-subscription when publishing the API**: If you set this to true, users need to re subscribe to the API although they may have subscribed to an older version. You can specify additional checklist items by using an **\"attribute:\"** modifier. Eg: \"Deprecate old versions after publishing the API:true\" will deprecate older versions of a particular API when it is promoted to Published state from Created state. Multiple checklist items can be given in \"attribute1:true, attribute2:false\" format. **Sample CURL :** curl -k -H \"Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8\" -X POST \"https://localhost:9443/api/am/publisher/v2/apis/change-lifecycle?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish&lifecycleChecklist=Deprecate%20old%20versions%20after%20publishing%20the%20API%3Atrue,Requires%20re-subscription%20when%20publishing%20the%20API%3Afalse\" (optional)ifMatch - Validator for conditional requests; based on ETag. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic WorkflowResponseDTO changeAPILifecycle(String action, String apiId, String lifecycleChecklist, String ifMatch) throws ApiException
action - The action to demote or promote the state of the API. Supported actions are [ **Publish**, **Deploy as a Prototype**, **Demote to Created**, **Block**, **Deprecate**, **Re-Publish**, **Retire** ] (required)apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)lifecycleChecklist - Supported checklist items are as follows. 1. **Deprecate old versions after publishing the API**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Requires re-subscription when publishing the API**: If you set this to true, users need to re subscribe to the API although they may have subscribed to an older version. You can specify additional checklist items by using an **\"attribute:\"** modifier. Eg: \"Deprecate old versions after publishing the API:true\" will deprecate older versions of a particular API when it is promoted to Published state from Created state. Multiple checklist items can be given in \"attribute1:true, attribute2:false\" format. **Sample CURL :** curl -k -H \"Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8\" -X POST \"https://localhost:9443/api/am/publisher/v2/apis/change-lifecycle?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish&lifecycleChecklist=Deprecate%20old%20versions%20after%20publishing%20the%20API%3Atrue,Requires%20re-subscription%20when%20publishing%20the%20API%3Afalse\" (optional)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<WorkflowResponseDTO> changeAPILifecycleWithHttpInfo(String action, String apiId, String lifecycleChecklist, String ifMatch) throws ApiException
action - The action to demote or promote the state of the API. Supported actions are [ **Publish**, **Deploy as a Prototype**, **Demote to Created**, **Block**, **Deprecate**, **Re-Publish**, **Retire** ] (required)apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)lifecycleChecklist - Supported checklist items are as follows. 1. **Deprecate old versions after publishing the API**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Requires re-subscription when publishing the API**: If you set this to true, users need to re subscribe to the API although they may have subscribed to an older version. You can specify additional checklist items by using an **\"attribute:\"** modifier. Eg: \"Deprecate old versions after publishing the API:true\" will deprecate older versions of a particular API when it is promoted to Published state from Created state. Multiple checklist items can be given in \"attribute1:true, attribute2:false\" format. **Sample CURL :** curl -k -H \"Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8\" -X POST \"https://localhost:9443/api/am/publisher/v2/apis/change-lifecycle?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish&lifecycleChecklist=Deprecate%20old%20versions%20after%20publishing%20the%20API%3Atrue,Requires%20re-subscription%20when%20publishing%20the%20API%3Afalse\" (optional)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call changeAPILifecycleAsync(String action, String apiId, String lifecycleChecklist, String ifMatch, ApiCallback<WorkflowResponseDTO> _callback) throws ApiException
action - The action to demote or promote the state of the API. Supported actions are [ **Publish**, **Deploy as a Prototype**, **Demote to Created**, **Block**, **Deprecate**, **Re-Publish**, **Retire** ] (required)apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)lifecycleChecklist - Supported checklist items are as follows. 1. **Deprecate old versions after publishing the API**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Requires re-subscription when publishing the API**: If you set this to true, users need to re subscribe to the API although they may have subscribed to an older version. You can specify additional checklist items by using an **\"attribute:\"** modifier. Eg: \"Deprecate old versions after publishing the API:true\" will deprecate older versions of a particular API when it is promoted to Published state from Created state. Multiple checklist items can be given in \"attribute1:true, attribute2:false\" format. **Sample CURL :** curl -k -H \"Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8\" -X POST \"https://localhost:9443/api/am/publisher/v2/apis/change-lifecycle?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish&lifecycleChecklist=Deprecate%20old%20versions%20after%20publishing%20the%20API%3Atrue,Requires%20re-subscription%20when%20publishing%20the%20API%3Afalse\" (optional)ifMatch - Validator for conditional requests; based on ETag. (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 deleteAPILifecycleStatePendingTasksCall(String apiId, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic void deleteAPILifecycleStatePendingTasks(String apiId) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteAPILifecycleStatePendingTasksWithHttpInfo(String apiId) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call deleteAPILifecycleStatePendingTasksAsync(String apiId, ApiCallback<Void> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (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 getAPILifecycleHistoryCall(String apiId, String ifNoneMatch, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic LifecycleHistoryDTO getAPILifecycleHistory(String apiId, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<LifecycleHistoryDTO> getAPILifecycleHistoryWithHttpInfo(String apiId, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getAPILifecycleHistoryAsync(String apiId, String ifNoneMatch, ApiCallback<LifecycleHistoryDTO> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (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 getAPILifecycleStateCall(String apiId, String ifNoneMatch, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic LifecycleStateDTO getAPILifecycleState(String apiId, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<LifecycleStateDTO> getAPILifecycleStateWithHttpInfo(String apiId, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getAPILifecycleStateAsync(String apiId, String ifNoneMatch, ApiCallback<LifecycleStateDTO> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (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.