public class ApiProductLifecycleApi extends Object
| Constructor and Description |
|---|
ApiProductLifecycleApi() |
ApiProductLifecycleApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
WorkflowResponseDTO |
changeAPIProductLifecycle(String action,
String apiProductId,
String lifecycleChecklist,
String ifMatch)
Change API Product LC Status
This operation is used to change the lifecycle of an API Product.
|
okhttp3.Call |
changeAPIProductLifecycleAsync(String action,
String apiProductId,
String lifecycleChecklist,
String ifMatch,
ApiCallback<WorkflowResponseDTO> _callback)
Change API Product LC Status (asynchronously)
This operation is used to change the lifecycle of an API Product.
|
okhttp3.Call |
changeAPIProductLifecycleCall(String action,
String apiProductId,
String lifecycleChecklist,
String ifMatch,
ApiCallback _callback)
Build call for changeAPIProductLifecycle
|
ApiResponse<WorkflowResponseDTO> |
changeAPIProductLifecycleWithHttpInfo(String action,
String apiProductId,
String lifecycleChecklist,
String ifMatch)
Change API Product LC Status
This operation is used to change the lifecycle of an API Product.
|
void |
deleteAPIProductLifecycleStatePendingTasks(String apiProductId)
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 |
deleteAPIProductLifecycleStatePendingTasksAsync(String apiProductId,
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 |
deleteAPIProductLifecycleStatePendingTasksCall(String apiProductId,
ApiCallback _callback)
Build call for deleteAPIProductLifecycleStatePendingTasks
|
ApiResponse<Void> |
deleteAPIProductLifecycleStatePendingTasksWithHttpInfo(String apiProductId)
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 |
getAPIProductLifecycleHistory(String apiProductId,
String ifNoneMatch)
Get Lifecycle State Change History of the API Products.
|
okhttp3.Call |
getAPIProductLifecycleHistoryAsync(String apiProductId,
String ifNoneMatch,
ApiCallback<LifecycleHistoryDTO> _callback)
Get Lifecycle State Change History of the API Products.
|
okhttp3.Call |
getAPIProductLifecycleHistoryCall(String apiProductId,
String ifNoneMatch,
ApiCallback _callback)
Build call for getAPIProductLifecycleHistory
|
ApiResponse<LifecycleHistoryDTO> |
getAPIProductLifecycleHistoryWithHttpInfo(String apiProductId,
String ifNoneMatch)
Get Lifecycle State Change History of the API Products.
|
LifecycleStateDTO |
getAPIProductLifecycleState(String apiProductId,
String ifNoneMatch)
Get Lifecycle State Data of the API Product.
|
okhttp3.Call |
getAPIProductLifecycleStateAsync(String apiProductId,
String ifNoneMatch,
ApiCallback<LifecycleStateDTO> _callback)
Get Lifecycle State Data of the API Product.
|
okhttp3.Call |
getAPIProductLifecycleStateCall(String apiProductId,
String ifNoneMatch,
ApiCallback _callback)
Build call for getAPIProductLifecycleState
|
ApiResponse<LifecycleStateDTO> |
getAPIProductLifecycleStateWithHttpInfo(String apiProductId,
String ifNoneMatch)
Get Lifecycle State Data of the API Product.
|
void |
setApiClient(ApiClient apiClient) |
public ApiProductLifecycleApi()
public ApiProductLifecycleApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call changeAPIProductLifecycleCall(String action, String apiProductId, String lifecycleChecklist, String ifMatch, ApiCallback _callback) throws ApiException
action - The action to demote or promote the state of the API Product. Supported actions are [ **Publish**, **Deploy as a Prototype**, **Demote to Created**, **Block**, **Deprecate**, **Re-Publish**, **Retire** ] (required)apiProductId - **API Product ID** consisting of the **UUID** of the API Product. The combination of the provider, name and the version of the API Product is also accepted as a valid API Product ID. 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 Product 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 Products 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 Product 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/v3/api-products/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 changeAPIProductLifecycle(String action, String apiProductId, String lifecycleChecklist, String ifMatch) throws ApiException
action - The action to demote or promote the state of the API Product. Supported actions are [ **Publish**, **Deploy as a Prototype**, **Demote to Created**, **Block**, **Deprecate**, **Re-Publish**, **Retire** ] (required)apiProductId - **API Product ID** consisting of the **UUID** of the API Product. The combination of the provider, name and the version of the API Product is also accepted as a valid API Product ID. 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 Product 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 Products 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 Product 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/v3/api-products/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> changeAPIProductLifecycleWithHttpInfo(String action, String apiProductId, String lifecycleChecklist, String ifMatch) throws ApiException
action - The action to demote or promote the state of the API Product. Supported actions are [ **Publish**, **Deploy as a Prototype**, **Demote to Created**, **Block**, **Deprecate**, **Re-Publish**, **Retire** ] (required)apiProductId - **API Product ID** consisting of the **UUID** of the API Product. The combination of the provider, name and the version of the API Product is also accepted as a valid API Product ID. 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 Product 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 Products 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 Product 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/v3/api-products/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 changeAPIProductLifecycleAsync(String action, String apiProductId, String lifecycleChecklist, String ifMatch, ApiCallback<WorkflowResponseDTO> _callback) throws ApiException
action - The action to demote or promote the state of the API Product. Supported actions are [ **Publish**, **Deploy as a Prototype**, **Demote to Created**, **Block**, **Deprecate**, **Re-Publish**, **Retire** ] (required)apiProductId - **API Product ID** consisting of the **UUID** of the API Product. The combination of the provider, name and the version of the API Product is also accepted as a valid API Product ID. 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 Product 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 Products 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 Product 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/v3/api-products/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 deleteAPIProductLifecycleStatePendingTasksCall(String apiProductId, ApiCallback _callback) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic void deleteAPIProductLifecycleStatePendingTasks(String apiProductId) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteAPIProductLifecycleStatePendingTasksWithHttpInfo(String apiProductId) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call deleteAPIProductLifecycleStatePendingTasksAsync(String apiProductId, ApiCallback<Void> _callback) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (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 getAPIProductLifecycleHistoryCall(String apiProductId, String ifNoneMatch, ApiCallback _callback) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (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 getAPIProductLifecycleHistory(String apiProductId, String ifNoneMatch) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (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> getAPIProductLifecycleHistoryWithHttpInfo(String apiProductId, String ifNoneMatch) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (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 getAPIProductLifecycleHistoryAsync(String apiProductId, String ifNoneMatch, ApiCallback<LifecycleHistoryDTO> _callback) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (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 getAPIProductLifecycleStateCall(String apiProductId, String ifNoneMatch, ApiCallback _callback) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (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 getAPIProductLifecycleState(String apiProductId, String ifNoneMatch) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (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> getAPIProductLifecycleStateWithHttpInfo(String apiProductId, String ifNoneMatch) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (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 getAPIProductLifecycleStateAsync(String apiProductId, String ifNoneMatch, ApiCallback<LifecycleStateDTO> _callback) throws ApiException
apiProductId - **API Product ID** consisting of the **UUID** of the API Product. Using the **UUID** in the API call is recommended. (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 © 2022 WSO2 Inc. All rights reserved.