diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/appplatform.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/appplatform.json index 55957d0ddfbc..7d66fc915044 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/appplatform.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/appplatform.json @@ -13890,6 +13890,11 @@ "operatorProperties": { "$ref": "#/definitions/GatewayOperatorProperties", "readOnly": true + }, + "responseCacheProperties": { + "$ref": "#/definitions/GatewayResponseCacheProperties", + "description": "The properties to configure different types of response cache for Spring Cloud Gateway.", + "x-ms-client-flatten": false } } }, @@ -14288,6 +14293,70 @@ } } }, + "GatewayResponseCacheProperties": { + "description": "Spring Cloud Gateway response cache properties.", + "required": [ + "responseCacheType" + ], + "type": "object", + "properties": { + "responseCacheType": { + "description": "The type of the response cache.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + } + }, + "discriminator": "responseCacheType" + }, + "GatewayLocalResponseCachePerRouteProperties": { + "description": "Spring Cloud Gateway local response cache per route properties.", + "required": [ + "responseCacheType" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GatewayResponseCacheProperties" + } + ], + "properties": { + "size": { + "description": "Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries.", + "type": "string" + }, + "timeToLive": { + "description": "Time before a cached entry is expired (300s, 5m, 1h...)", + "type": "string" + } + }, + "x-ms-discriminator-value": "LocalCachePerRoute" + }, + "GatewayLocalResponseCachePerInstanceProperties": { + "description": "Spring Cloud Gateway local response cache per instance properties.", + "required": [ + "responseCacheType" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/GatewayResponseCacheProperties" + } + ], + "properties": { + "size": { + "description": "Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to evict some entries", + "type": "string" + }, + "timeToLive": { + "description": "Time before a cached entry is expired (300s, 5m, 1h...)", + "type": "string" + } + }, + "x-ms-discriminator-value": "LocalCachePerInstance" + }, "ApiPortalResourceCollection": { "description": "Object that includes an array of API portal resources and a possible link for next set", "type": "object", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_CreateOrUpdate.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_CreateOrUpdate.json index c00dd28a8241..841b70cc6d34 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_CreateOrUpdate.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_CreateOrUpdate.json @@ -16,6 +16,11 @@ "resourceRequests": { "cpu": "1", "memory": "1G" + }, + "responseCacheProperties": { + "responseCacheType": "LocalCachePerRoute", + "size": "5MB", + "timeToLive": "300s" } }, "sku": { @@ -41,6 +46,11 @@ "cpu": "1", "memory": "1G" }, + "responseCacheProperties": { + "responseCacheType": "LocalCachePerRoute", + "size": "5MB", + "timeToLive": "300s" + }, "instances": [ { "name": "instance1", @@ -102,6 +112,11 @@ "cpu": "1", "memory": "1G" }, + "responseCacheProperties": { + "responseCacheType": "LocalCachePerRoute", + "size": "5MB", + "timeToLive": "300s" + }, "instances": [ { "name": "instance1", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_Get.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_Get.json index 6ada3971dc69..2d95b9ab7ee3 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_Get.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_Get.json @@ -17,6 +17,11 @@ "cpu": "1", "memory": "1G" }, + "responseCacheProperties": { + "responseCacheType": "LocalCachePerRoute", + "size": "5MB", + "timeToLive": "300s" + }, "instances": [ { "name": "instance1", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_List.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_List.json index 24efc6826288..478bcf1b9e93 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_List.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/Gateways_List.json @@ -18,6 +18,11 @@ "cpu": "1", "memory": "1G" }, + "responseCacheProperties": { + "responseCacheType": "LocalCachePerRoute", + "size": "5MB", + "timeToLive": "300s" + }, "instances": [ { "name": "instance1",