From dbdc8c73f1e829752e6a5caf07a1f5aae6f14b3c Mon Sep 17 00:00:00 2001 From: Krishanx92 Date: Wed, 20 Mar 2024 17:54:40 +0530 Subject: [PATCH] Remove CC Policies --- .../specifications/addQueryParam_v1.json | 3 +- .../specifications/ccAddHeader_v2.json | 35 ------------------- .../specifications/ccChangeHTTPMethod_v2.json | 27 -------------- .../specifications/ccRemoveHeader_v2.json | 27 -------------- .../specifications/opaPolicy_v1.json | 3 +- .../rewriteResourcePath_v3.json | 3 +- 6 files changed, 3 insertions(+), 95 deletions(-) delete mode 100644 modules/distribution/resources/operation_policies/specifications/ccAddHeader_v2.json delete mode 100644 modules/distribution/resources/operation_policies/specifications/ccChangeHTTPMethod_v2.json delete mode 100644 modules/distribution/resources/operation_policies/specifications/ccRemoveHeader_v2.json diff --git a/modules/distribution/resources/operation_policies/specifications/addQueryParam_v1.json b/modules/distribution/resources/operation_policies/specifications/addQueryParam_v1.json index 70928ee274..d97cd95931 100644 --- a/modules/distribution/resources/operation_policies/specifications/addQueryParam_v1.json +++ b/modules/distribution/resources/operation_policies/specifications/addQueryParam_v1.json @@ -26,8 +26,7 @@ "request" ], "supportedGateways": [ - "Synapse", - "ChoreoConnect" + "Synapse" ], "supportedApiTypes": [ "HTTP" diff --git a/modules/distribution/resources/operation_policies/specifications/ccAddHeader_v2.json b/modules/distribution/resources/operation_policies/specifications/ccAddHeader_v2.json deleted file mode 100644 index 08ab0e8300..0000000000 --- a/modules/distribution/resources/operation_policies/specifications/ccAddHeader_v2.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "category": "Mediation", - "name": "ccAddHeader", - "version": "v2", - "displayName": "Add Header", - "description": "This policy allows you to add a new header to the request", - "policyAttributes": [ - { - "name": "headerName", - "displayName": "Header Name", - "description": "Name of the header to be added", - "validationRegex": "^([a-zA-Z_\\:][a-zA-Z\\d_\\-\\ ]*)$", - "type": "String", - "required": true - }, - { - "name": "headerValue", - "displayName": "Header Value", - "description": "Value of the header", - "validationRegex": "^.+$", - "type": "String", - "required": true - } - ], - "applicableFlows": [ - "request", - "response" - ], - "supportedGateways": [ - "ChoreoConnect" - ], - "supportedApiTypes": [ - "HTTP" - ] -} \ No newline at end of file diff --git a/modules/distribution/resources/operation_policies/specifications/ccChangeHTTPMethod_v2.json b/modules/distribution/resources/operation_policies/specifications/ccChangeHTTPMethod_v2.json deleted file mode 100644 index 169c6275f9..0000000000 --- a/modules/distribution/resources/operation_policies/specifications/ccChangeHTTPMethod_v2.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "category": "Mediation", - "name": "ccChangeHTTPMethod", - "version": "v2", - "displayName": "Change HTTP Method", - "description": "This policy allows you to change the HTTP Method", - "policyAttributes": [ - { - "name": "updatedMethod", - "displayName": "Updated HTTP Method", - "description": "New updated method of the HTTP request", - "validationRegex": "^(GET|PUT|POST|PATCH|DELETE|HEAD|OPTIONS)$", - "type": "Enum", - "allowedValues" : ["GET","PUT","POST","PATCH","DELETE","HEAD","OPTIONS"], - "required": true - } - ], - "applicableFlows": [ - "request" - ], - "supportedGateways": [ - "ChoreoConnect" - ], - "supportedApiTypes": [ - "HTTP" - ] -} \ No newline at end of file diff --git a/modules/distribution/resources/operation_policies/specifications/ccRemoveHeader_v2.json b/modules/distribution/resources/operation_policies/specifications/ccRemoveHeader_v2.json deleted file mode 100644 index a02aa69cda..0000000000 --- a/modules/distribution/resources/operation_policies/specifications/ccRemoveHeader_v2.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "category": "Mediation", - "name": "ccRemoveHeader", - "version": "v2", - "displayName": "Remove Header", - "description": "This policy allows you to remove a header from the request", - "policyAttributes": [ - { - "name": "headerName", - "displayName": "Header Name", - "description": "Name of the header to be removed", - "validationRegex": "^([a-zA-Z_\\:][a-zA-Z\\d_\\-\\ ]*)$", - "type": "String", - "required": true - } - ], - "applicableFlows": [ - "request", - "response" - ], - "supportedGateways": [ - "ChoreoConnect" - ], - "supportedApiTypes": [ - "HTTP" - ] -} \ No newline at end of file diff --git a/modules/distribution/resources/operation_policies/specifications/opaPolicy_v1.json b/modules/distribution/resources/operation_policies/specifications/opaPolicy_v1.json index 8e21e3d660..1c641db632 100644 --- a/modules/distribution/resources/operation_policies/specifications/opaPolicy_v1.json +++ b/modules/distribution/resources/operation_policies/specifications/opaPolicy_v1.json @@ -75,8 +75,7 @@ "request" ], "supportedGateways": [ - "Synapse", - "ChoreoConnect" + "Synapse" ], "supportedApiTypes": [ "HTTP" diff --git a/modules/distribution/resources/operation_policies/specifications/rewriteResourcePath_v3.json b/modules/distribution/resources/operation_policies/specifications/rewriteResourcePath_v3.json index be8aab1956..2e528cc7b3 100644 --- a/modules/distribution/resources/operation_policies/specifications/rewriteResourcePath_v3.json +++ b/modules/distribution/resources/operation_policies/specifications/rewriteResourcePath_v3.json @@ -27,8 +27,7 @@ "request" ], "supportedGateways": [ - "Synapse", - "ChoreoConnect" + "Synapse" ], "supportedApiTypes": [ "HTTP"