From 5801196ec8c617eca0a7e4b2146dc5f31708e96e Mon Sep 17 00:00:00 2001 From: Nimsara Fernando Date: Sat, 19 Oct 2024 14:55:15 +0530 Subject: [PATCH] Remove unused `aiConfiguration` from subscription validation flow --- .../apimgt/api/model/subscription/API.java | 10 --- .../impl/dao/SubscriptionValidationDAO.java | 21 ----- .../SubscriptionValidationSQLConstants.java | 11 +-- .../service/dto/AIConfigurationDTO.java | 78 ------------------- .../apimgt/internal/service/dto/APIDTO.java | 23 +----- .../utils/SubscriptionValidationDataUtil.java | 13 ---- .../src/main/resources/api.yaml | 12 --- .../swagger.json | 15 +--- .../apimgt/keymgt/model/entity/API.java | 10 --- 9 files changed, 4 insertions(+), 189 deletions(-) delete mode 100644 components/apimgt/org.wso2.carbon.apimgt.internal.service/src/gen/java/org/wso2/carbon/apimgt/internal/service/dto/AIConfigurationDTO.java diff --git a/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/model/subscription/API.java b/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/model/subscription/API.java index 555d09529a7b..face9dc8dd46 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/model/subscription/API.java +++ b/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/model/subscription/API.java @@ -18,7 +18,6 @@ package org.wso2.carbon.apimgt.api.model.subscription; -import org.wso2.carbon.apimgt.api.model.AIConfiguration; import org.wso2.carbon.apimgt.api.model.OperationPolicy; import org.wso2.carbon.apimgt.api.model.policy.APIPolicy; @@ -47,7 +46,6 @@ public class API implements CacheableEntity { private String organization; private Set apiPolicies = new HashSet<>(); private boolean isSubscriptionValidationDisabled = false; - private AIConfiguration aiConfiguration; private int isEgress; private String subtype; @@ -227,14 +225,6 @@ public void setSubscriptionValidationDisabled(boolean subscriptionValidationDisa isSubscriptionValidationDisabled = subscriptionValidationDisabled; } - public AIConfiguration getAiConfiguration() { - return aiConfiguration; - } - - public void setAiConfiguration(AIConfiguration aiConfiguration) { - this.aiConfiguration = aiConfiguration; - } - public int isEgress() { return isEgress; } diff --git a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/SubscriptionValidationDAO.java b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/SubscriptionValidationDAO.java index 0b0540521388..6c2b241379aa 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/SubscriptionValidationDAO.java +++ b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/SubscriptionValidationDAO.java @@ -26,7 +26,6 @@ import org.wso2.carbon.apimgt.api.SubscriptionAlreadyExistingException; import org.wso2.carbon.apimgt.api.dto.ConditionDTO; import org.wso2.carbon.apimgt.api.dto.ConditionGroupDTO; -import org.wso2.carbon.apimgt.api.model.AIConfiguration; import org.wso2.carbon.apimgt.api.model.OperationPolicy; import org.wso2.carbon.apimgt.api.model.policy.AIAPIQuotaLimit; import org.wso2.carbon.apimgt.api.model.policy.BandwidthLimit; @@ -1142,11 +1141,6 @@ public List getAllApis(String organization, String deployment, boolean isEx api.setStatus(resultSet.getString("STATUS")); api.setPolicy(resultSet.getString("API_TIER")); api.setOrganization(resultSet.getString("ORGANIZATION")); - if (resultSet.getString("AI_CONFIGURATION_UUID") != null) { - AIConfiguration aiConfiguration = new AIConfiguration(); - aiConfiguration.setLlmProviderId(resultSet.getString("LLM_PROVIDER_UUID")); - api.setAiConfiguration(aiConfiguration); - } if (resultSet.getString("IS_EGRESS") != null) { api.setEgress(parseInt(resultSet.getString("IS_EGRESS"))); } @@ -1277,11 +1271,6 @@ public API getAPIByContextAndVersion(String context, String version, String depl api.setStatus(resultSet.getString("STATUS")); api.setOrganization(resultSet.getString("ORGANIZATION")); api.setIsDefaultVersion(isAPIDefaultVersion(connection, provider, name, version)); - if (resultSet.getString("AI_CONFIGURATION_UUID") != null) { - AIConfiguration aiConfiguration = new AIConfiguration(); - aiConfiguration.setLlmProviderId(resultSet.getString("LLM_PROVIDER_UUID")); - api.setAiConfiguration(aiConfiguration); - } if (resultSet.getString("IS_EGRESS") != null) { api.setEgress(parseInt(resultSet.getString("IS_EGRESS"))); } @@ -1497,11 +1486,6 @@ public API getApiByUUID(String apiId, String deployment, String organization, bo api.setPolicy(resultSet.getString("API_TIER")); api.setContext(context); api.setStatus(resultSet.getString("STATUS")); - if (resultSet.getString("AI_CONFIGURATION_UUID") != null) { - AIConfiguration aiConfiguration = new AIConfiguration(); - aiConfiguration.setLlmProviderId(resultSet.getString("LLM_PROVIDER_UUID")); - api.setAiConfiguration(aiConfiguration); - } if (resultSet.getString("IS_EGRESS") != null) { api.setEgress(parseInt(resultSet.getString("IS_EGRESS"))); } @@ -1597,11 +1581,6 @@ public List getAllApisByLabel(String gatewayLabel, Boolean expand) { String revision = resultSet.getString("REVISION_UUID"); api.setRevision(revision); api.setEnvironment(deploymentName); - if (resultSet.getString("AI_CONFIGURATION_UUID") != null) { - AIConfiguration aiConfiguration = new AIConfiguration(); - aiConfiguration.setLlmProviderId(resultSet.getString("LLM_PROVIDER_UUID")); - api.setAiConfiguration(aiConfiguration); - } if (resultSet.getString("IS_EGRESS") != null) { api.setEgress(parseInt(resultSet.getString("IS_EGRESS"))); } diff --git a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/constants/SubscriptionValidationSQLConstants.java b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/constants/SubscriptionValidationSQLConstants.java index dd5d2104b99f..b60316ca35e8 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/constants/SubscriptionValidationSQLConstants.java +++ b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/constants/SubscriptionValidationSQLConstants.java @@ -602,15 +602,12 @@ public class SubscriptionValidationSQLConstants { "AM_API.API_ID, AM_API.API_TIER, AM_API.API_VERSION, AM_API.API_TYPE, AM_API.STATUS, " + "AM_REVISION.REVISION_UUID AS REVISION_UUID,AM_DEPLOYMENT_REVISION_MAPPING.NAME AS " + "DEPLOYMENT_NAME,AM_API.ORGANIZATION, " + - "AM_API_AI_CONFIGURATION.AI_CONFIGURATION_UUID AS AI_CONFIGURATION_UUID, " + - "AM_API_AI_CONFIGURATION.LLM_PROVIDER_UUID AS LLM_PROVIDER_UUID, " + "AM_API.API_SUBTYPE AS API_SUBTYPE, " + "AM_API.IS_EGRESS AS IS_EGRESS " + "FROM " + "AM_API LEFT JOIN AM_REVISION ON AM_API.API_UUID = AM_REVISION.API_UUID " + "LEFT JOIN AM_DEPLOYMENT_REVISION_MAPPING " + "ON AM_REVISION.REVISION_UUID=AM_DEPLOYMENT_REVISION_MAPPING.REVISION_UUID " + - "LEFT JOIN AM_API_AI_CONFIGURATION ON AM_API_AI_CONFIGURATION.API_REVISION_UUID = AM_REVISION.REVISION_UUID " + "WHERE AM_API.API_UUID = ? AND AM_DEPLOYMENT_REVISION_MAPPING.NAME = ? "; public static final String GET_DEFAULT_VERSION_API_SQL = "SELECT PUBLISHED_DEFAULT_API_VERSION FROM " + @@ -641,16 +638,13 @@ public class SubscriptionValidationSQLConstants { ".API_TYPE,AM_API.STATUS,AM_REVISION.REVISION_UUID AS REVISION_UUID,AM_DEPLOYMENT_REVISION_MAPPING.NAME " + "AS DEPLOYMENT_NAME, " + "AM_API_DEFAULT_VERSION.PUBLISHED_DEFAULT_API_VERSION AS PUBLISHED_DEFAULT_API_VERSION,AM_API.ORGANIZATION, " + - "AM_API_AI_CONFIGURATION.AI_CONFIGURATION_UUID AS AI_CONFIGURATION_UUID, " + - "AM_API_AI_CONFIGURATION.LLM_PROVIDER_UUID AS LLM_PROVIDER_UUID, " + "AM_API.API_SUBTYPE AS API_SUBTYPE, " + "AM_API.IS_EGRESS AS IS_EGRESS " + "FROM AM_API LEFT JOIN AM_REVISION ON AM_API.API_UUID=AM_REVISION.API_UUID LEFT JOIN " + "AM_DEPLOYMENT_REVISION_MAPPING ON AM_REVISION.REVISION_UUID=AM_DEPLOYMENT_REVISION_MAPPING.REVISION_UUID" + " LEFT JOIN AM_API_DEFAULT_VERSION ON AM_API_DEFAULT_VERSION.API_NAME = AM_API.API_NAME AND " + "AM_API_DEFAULT_VERSION.API_PROVIDER=AM_API.API_PROVIDER AND " + - "AM_API_DEFAULT_VERSION.ORGANIZATION = AM_API.ORGANIZATION " + - "LEFT JOIN AM_API_AI_CONFIGURATION ON AM_API_AI_CONFIGURATION.API_REVISION_UUID = AM_REVISION.REVISION_UUID "; + "AM_API_DEFAULT_VERSION.ORGANIZATION = AM_API.ORGANIZATION "; public static final String GET_ALL_API_PRODUCT_URI_TEMPLATES_SQL = "SELECT AM_API_URL_MAPPING.URL_MAPPING_ID," + "AM_API_URL_MAPPING.HTTP_METHOD,AM_API_URL_MAPPING.AUTH_SCHEME,AM_API_URL_MAPPING.URL_PATTERN," + @@ -662,14 +656,11 @@ public class SubscriptionValidationSQLConstants { "AM_API.CONTEXT, AM_API.CONTEXT_TEMPLATE, AM_API.API_UUID, AM_API.API_ID,AM_API.API_TIER, " + "AM_API.API_VERSION, AM_API.API_TYPE, AM_API.STATUS, AM_REVISION.REVISION_UUID AS REVISION_UUID, " + "AM_DEPLOYMENT_REVISION_MAPPING.NAME AS DEPLOYMENT_NAME, AM_API.ORGANIZATION, " + - "AM_API_AI_CONFIGURATION.AI_CONFIGURATION_UUID AS AI_CONFIGURATION_UUID, " + - "AM_API_AI_CONFIGURATION.LLM_PROVIDER_UUID AS LLM_PROVIDER_UUID, " + "AM_API.API_SUBTYPE AS API_SUBTYPE, " + "AM_API.IS_EGRESS AS IS_EGRESS " + "FROM AM_API LEFT JOIN AM_REVISION ON AM_API.API_UUID=AM_REVISION.API_UUID " + "LEFT JOIN AM_DEPLOYMENT_REVISION_MAPPING ON " + "AM_REVISION.REVISION_UUID=AM_DEPLOYMENT_REVISION_MAPPING.REVISION_UUID " + - "LEFT JOIN AM_API_AI_CONFIGURATION ON AM_API_AI_CONFIGURATION.API_REVISION_UUID = AM_REVISION.REVISION_UUID " + "WHERE ((AM_API.CONTEXT_TEMPLATE IS NULL AND AM_API.CONTEXT = ?) " + "OR (AM_API.CONTEXT_TEMPLATE IS NOT NULL AND AM_API.CONTEXT = ?)) AND AM_API.API_VERSION = ?"; diff --git a/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/gen/java/org/wso2/carbon/apimgt/internal/service/dto/AIConfigurationDTO.java b/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/gen/java/org/wso2/carbon/apimgt/internal/service/dto/AIConfigurationDTO.java deleted file mode 100644 index ef6d8bb92dea..000000000000 --- a/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/gen/java/org/wso2/carbon/apimgt/internal/service/dto/AIConfigurationDTO.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.wso2.carbon.apimgt.internal.service.dto; - -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import javax.validation.constraints.*; - - -import io.swagger.annotations.*; -import java.util.Objects; - -import javax.xml.bind.annotation.*; -import org.wso2.carbon.apimgt.rest.api.common.annotations.Scope; -import com.fasterxml.jackson.annotation.JsonCreator; - - - -public class AIConfigurationDTO { - - private String llmProviderId = null; - - /** - * UUID of the LLM (Large Language Model) provider. - **/ - public AIConfigurationDTO llmProviderId(String llmProviderId) { - this.llmProviderId = llmProviderId; - return this; - } - - - @ApiModelProperty(value = "UUID of the LLM (Large Language Model) provider.") - @JsonProperty("llmProviderId") - public String getLlmProviderId() { - return llmProviderId; - } - public void setLlmProviderId(String llmProviderId) { - this.llmProviderId = llmProviderId; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AIConfigurationDTO aiConfiguration = (AIConfigurationDTO) o; - return Objects.equals(llmProviderId, aiConfiguration.llmProviderId); - } - - @Override - public int hashCode() { - return Objects.hash(llmProviderId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AIConfigurationDTO {\n"); - - sb.append(" llmProviderId: ").append(toIndentedString(llmProviderId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/gen/java/org/wso2/carbon/apimgt/internal/service/dto/APIDTO.java b/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/gen/java/org/wso2/carbon/apimgt/internal/service/dto/APIDTO.java index 75fe33e6d335..a3b0254a41a9 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/gen/java/org/wso2/carbon/apimgt/internal/service/dto/APIDTO.java +++ b/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/gen/java/org/wso2/carbon/apimgt/internal/service/dto/APIDTO.java @@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.ArrayList; import java.util.List; -import org.wso2.carbon.apimgt.internal.service.dto.AIConfigurationDTO; import org.wso2.carbon.apimgt.internal.service.dto.OperationPolicyDTO; import org.wso2.carbon.apimgt.internal.service.dto.URLMappingDTO; import javax.validation.constraints.*; @@ -36,7 +35,6 @@ public class APIDTO { private List urlMappings = new ArrayList<>(); private String securityScheme = null; private Boolean isSubscriptionValidationDisabled = false; - private AIConfigurationDTO aiConfiguration = null; private Boolean isEgress = null; private String subtype = null; @@ -307,23 +305,6 @@ public void setIsSubscriptionValidationDisabled(Boolean isSubscriptionValidation this.isSubscriptionValidationDisabled = isSubscriptionValidationDisabled; } - /** - **/ - public APIDTO aiConfiguration(AIConfigurationDTO aiConfiguration) { - this.aiConfiguration = aiConfiguration; - return this; - } - - - @ApiModelProperty(value = "") - @JsonProperty("aiConfiguration") - public AIConfigurationDTO getAiConfiguration() { - return aiConfiguration; - } - public void setAiConfiguration(AIConfigurationDTO aiConfiguration) { - this.aiConfiguration = aiConfiguration; - } - /** * Indicates if the API is an egress API. **/ @@ -385,14 +366,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(urlMappings, API.urlMappings) && Objects.equals(securityScheme, API.securityScheme) && Objects.equals(isSubscriptionValidationDisabled, API.isSubscriptionValidationDisabled) && - Objects.equals(aiConfiguration, API.aiConfiguration) && Objects.equals(isEgress, API.isEgress) && Objects.equals(subtype, API.subtype); } @Override public int hashCode() { - return Objects.hash(uuid, apiId, provider, name, version, context, policy, apiType, status, organization, isDefaultVersion, apiPolicies, urlMappings, securityScheme, isSubscriptionValidationDisabled, aiConfiguration, isEgress, subtype); + return Objects.hash(uuid, apiId, provider, name, version, context, policy, apiType, status, organization, isDefaultVersion, apiPolicies, urlMappings, securityScheme, isSubscriptionValidationDisabled, isEgress, subtype); } @Override @@ -415,7 +395,6 @@ public String toString() { sb.append(" urlMappings: ").append(toIndentedString(urlMappings)).append("\n"); sb.append(" securityScheme: ").append(toIndentedString(securityScheme)).append("\n"); sb.append(" isSubscriptionValidationDisabled: ").append(toIndentedString(isSubscriptionValidationDisabled)).append("\n"); - sb.append(" aiConfiguration: ").append(toIndentedString(aiConfiguration)).append("\n"); sb.append(" isEgress: ").append(toIndentedString(isEgress)).append("\n"); sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); sb.append("}"); diff --git a/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/main/java/org/wso2/carbon/apimgt/internal/service/utils/SubscriptionValidationDataUtil.java b/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/main/java/org/wso2/carbon/apimgt/internal/service/utils/SubscriptionValidationDataUtil.java index bf08e7741d77..f365b212aafb 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/main/java/org/wso2/carbon/apimgt/internal/service/utils/SubscriptionValidationDataUtil.java +++ b/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/main/java/org/wso2/carbon/apimgt/internal/service/utils/SubscriptionValidationDataUtil.java @@ -25,7 +25,6 @@ import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.APIProvider; import org.wso2.carbon.apimgt.api.dto.ConditionDTO; -import org.wso2.carbon.apimgt.api.model.AIConfiguration; import org.wso2.carbon.apimgt.api.model.ApiTypeWrapper; import org.wso2.carbon.apimgt.api.model.OperationPolicy; import org.wso2.carbon.apimgt.api.model.Scope; @@ -119,12 +118,6 @@ private static APIDTO fromAPItoDTO(API model) throws APIManagementException { } apidto.setApiPolicies(apiPolicies); apidto.setUrlMappings(urlMappingsDTO); - AIConfiguration aiConfiguration = model.getAiConfiguration(); - if (aiConfiguration != null) { - AIConfigurationDTO aiConfigurationDTO = new AIConfigurationDTO(); - aiConfigurationDTO.setLlmProviderId(aiConfiguration.getLlmProviderId()); - apidto.setAiConfiguration(aiConfigurationDTO); - } apidto.setIsEgress(model.isEgress() != 0); apidto.setSubtype(model.getSubtype()); } @@ -187,12 +180,6 @@ public static APIListDTO fromAPIToAPIListDTO(API model) throws APIManagementExce } apidto.setApiPolicies(apiPolicies); apidto.setUrlMappings(urlMappingsDTO); - AIConfiguration aiConfiguration = model.getAiConfiguration(); - if (aiConfiguration != null) { - AIConfigurationDTO aiConfigurationDTO = new AIConfigurationDTO(); - aiConfigurationDTO.setLlmProviderId(aiConfiguration.getLlmProviderId()); - apidto.setAiConfiguration(aiConfigurationDTO); - } apidto.setIsEgress(model.isEgress() != 0); apidto.setSubtype(model.getSubtype()); apiListdto.setCount(1); diff --git a/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/main/resources/api.yaml b/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/main/resources/api.yaml index e92e71ed9ecb..12aa6724d9d7 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/main/resources/api.yaml +++ b/components/apimgt/org.wso2.carbon.apimgt.internal.service/src/main/resources/api.yaml @@ -1080,8 +1080,6 @@ definitions: description: Whether subscription validation is disabled. default: false example: false - aiConfiguration: - $ref: '#/definitions/AIConfiguration' isEgress: type: boolean description: Indicates if the API is an egress API. @@ -1091,16 +1089,6 @@ definitions: description: The subtype of the API. example: Default - - #----------------------------------------------------- - # The AIConfiguration resource - #----------------------------------------------------- - AIConfiguration: - properties: - llmProviderId: - type: string - description: UUID of the LLM (Large Language Model) provider. - #----------------------------------------------------- # synapse Artifact resource #----------------------------------------------------- diff --git a/components/apimgt/org.wso2.carbon.apimgt.internal.service/swagger.json b/components/apimgt/org.wso2.carbon.apimgt.internal.service/swagger.json index 88312334d6c0..d81009e30f7b 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.internal.service/swagger.json +++ b/components/apimgt/org.wso2.carbon.apimgt.internal.service/swagger.json @@ -1384,9 +1384,6 @@ "description" : "Whether subscription validation is disabled.", "default" : false }, - "aiConfiguration" : { - "$ref" : "#/definitions/AIConfiguration" - }, "isEgress" : { "type" : "boolean", "example" : false, @@ -1399,14 +1396,6 @@ } } }, - "AIConfiguration" : { - "properties" : { - "llmProviderId" : { - "type" : "string", - "description" : "UUID of the LLM (Large Language Model) provider." - } - } - }, "synapseArtifact" : { "properties" : { "apiId" : { @@ -1536,8 +1525,8 @@ "type" : "string", "example" : "EXCHANGED", "description" : "The type of the tokens to be used (exchanged or without exchanged). Accepted values are EXCHANGED, DIRECT or BOTH.", - "enum" : [ "EXCHANGED", "DIRECT", "BOTH" ], - "default" : "DIRECT" + "default" : "DIRECT", + "enum" : [ "EXCHANGED", "DIRECT", "BOTH" ] } } }, diff --git a/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/model/entity/API.java b/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/model/entity/API.java index 46fe84bf9eeb..faaf8bcb5086 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/model/entity/API.java +++ b/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/model/entity/API.java @@ -18,7 +18,6 @@ package org.wso2.carbon.apimgt.keymgt.model.entity; -import org.wso2.carbon.apimgt.api.model.AIConfiguration; import org.wso2.carbon.apimgt.api.model.OperationPolicy; import org.wso2.carbon.apimgt.api.model.subscription.CacheableEntity; import org.wso2.carbon.apimgt.api.model.subscription.URLMapping; @@ -46,7 +45,6 @@ public class API implements CacheableEntity { private String revisionId; private List apiPolicies = new ArrayList<>(); private boolean isSubscriptionValidationDisabled = false; - private AIConfiguration aiConfiguration; private Boolean isEgress = null; private String subtype = null; @@ -339,14 +337,6 @@ public void setSubscriptionValidationDisabled(boolean subscriptionValidationDisa isSubscriptionValidationDisabled = subscriptionValidationDisabled; } - public AIConfiguration getAiConfiguration() { - return aiConfiguration; - } - - public void setAiConfiguration(AIConfiguration aiConfiguration) { - this.aiConfiguration = aiConfiguration; - } - public Boolean getEgress() { return isEgress; }