public class ApiLifecycleApi extends Object
| Constructor and Description |
|---|
ApiLifecycleApi() |
ApiLifecycleApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
LifecycleHistoryDTO |
apisApiIdLifecycleHistoryGet(String apiId,
String ifNoneMatch)
Get Lifecycle state change history of the API.
|
com.squareup.okhttp.Call |
apisApiIdLifecycleHistoryGetAsync(String apiId,
String ifNoneMatch,
ApiCallback<LifecycleHistoryDTO> callback)
Get Lifecycle state change history of the API.
|
com.squareup.okhttp.Call |
apisApiIdLifecycleHistoryGetCall(String apiId,
String ifNoneMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisApiIdLifecycleHistoryGet
|
ApiResponse<LifecycleHistoryDTO> |
apisApiIdLifecycleHistoryGetWithHttpInfo(String apiId,
String ifNoneMatch)
Get Lifecycle state change history of the API.
|
LifecycleStateDTO |
apisApiIdLifecycleStateGet(String apiId,
String ifNoneMatch)
Get Lifecycle state data of the API.
|
com.squareup.okhttp.Call |
apisApiIdLifecycleStateGetAsync(String apiId,
String ifNoneMatch,
ApiCallback<LifecycleStateDTO> callback)
Get Lifecycle state data of the API.
|
com.squareup.okhttp.Call |
apisApiIdLifecycleStateGetCall(String apiId,
String ifNoneMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisApiIdLifecycleStateGet
|
ApiResponse<LifecycleStateDTO> |
apisApiIdLifecycleStateGetWithHttpInfo(String apiId,
String ifNoneMatch)
Get Lifecycle state data of the API.
|
void |
apisApiIdLifecycleStatePendingTasksDelete(String apiId)
Delete pending lifecycle state change tasks.
|
com.squareup.okhttp.Call |
apisApiIdLifecycleStatePendingTasksDeleteAsync(String apiId,
ApiCallback<Void> callback)
Delete pending lifecycle state change tasks.
|
com.squareup.okhttp.Call |
apisApiIdLifecycleStatePendingTasksDeleteCall(String apiId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisApiIdLifecycleStatePendingTasksDelete
|
ApiResponse<Void> |
apisApiIdLifecycleStatePendingTasksDeleteWithHttpInfo(String apiId)
Delete pending lifecycle state change tasks.
|
WorkflowResponseDTO |
apisChangeLifecyclePost(String action,
String apiId,
String lifecycleChecklist,
String ifMatch)
Change API Status
This operation is used to change the lifecycle of an API.
|
com.squareup.okhttp.Call |
apisChangeLifecyclePostAsync(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.
|
com.squareup.okhttp.Call |
apisChangeLifecyclePostCall(String action,
String apiId,
String lifecycleChecklist,
String ifMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisChangeLifecyclePost
|
ApiResponse<WorkflowResponseDTO> |
apisChangeLifecyclePostWithHttpInfo(String action,
String apiId,
String lifecycleChecklist,
String ifMatch)
Change API Status
This operation is used to change the lifecycle of an API.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public ApiLifecycleApi()
public ApiLifecycleApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call apisApiIdLifecycleHistoryGetCall(String apiId, String ifNoneMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) 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)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic LifecycleHistoryDTO apisApiIdLifecycleHistoryGet(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> apisApiIdLifecycleHistoryGetWithHttpInfo(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 com.squareup.okhttp.Call apisApiIdLifecycleHistoryGetAsync(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 com.squareup.okhttp.Call apisApiIdLifecycleStateGetCall(String apiId, String ifNoneMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) 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)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic LifecycleStateDTO apisApiIdLifecycleStateGet(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> apisApiIdLifecycleStateGetWithHttpInfo(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 com.squareup.okhttp.Call apisApiIdLifecycleStateGetAsync(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 objectpublic com.squareup.okhttp.Call apisApiIdLifecycleStatePendingTasksDeleteCall(String apiId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void apisApiIdLifecycleStatePendingTasksDelete(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> apisApiIdLifecycleStatePendingTasksDeleteWithHttpInfo(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 com.squareup.okhttp.Call apisApiIdLifecycleStatePendingTasksDeleteAsync(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 com.squareup.okhttp.Call apisChangeLifecyclePostCall(String action, String apiId, String lifecycleChecklist, String ifMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) 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, Demote to Prototyped, 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**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Require Re-Subscription**: 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: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/v1/apis/change-lifecycle?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish&lifecycleChecklist=Deprecate Old Versions:true,Require Re-Subscription:true\" (optional)ifMatch - Validator for conditional requests; based on ETag. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic WorkflowResponseDTO apisChangeLifecyclePost(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, Demote to Prototyped, 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**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Require Re-Subscription**: 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: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/v1/apis/change-lifecycle?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish&lifecycleChecklist=Deprecate Old Versions:true,Require Re-Subscription:true\" (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> apisChangeLifecyclePostWithHttpInfo(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, Demote to Prototyped, 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**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Require Re-Subscription**: 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: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/v1/apis/change-lifecycle?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish&lifecycleChecklist=Deprecate Old Versions:true,Require Re-Subscription:true\" (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 com.squareup.okhttp.Call apisChangeLifecyclePostAsync(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, Demote to Prototyped, 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**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Require Re-Subscription**: 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: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/v1/apis/change-lifecycle?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish&lifecycleChecklist=Deprecate Old Versions:true,Require Re-Subscription:true\" (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 objectCopyright © 2020 WSO2 Inc. All rights reserved.