Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add swagger for Spring Cloud Gateway response cache in 2023-11-01-preview #25924

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
},
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
"resourceRequests": {
"cpu": "1",
"memory": "1G"
},
"responseCacheProperties": {
"responseCacheType": "LocalCachePerRoute",
"size": "5MB",
"timeToLive": "300s"
}
},
"sku": {
Expand All @@ -41,6 +46,11 @@
"cpu": "1",
"memory": "1G"
},
"responseCacheProperties": {
"responseCacheType": "LocalCachePerRoute",
"size": "5MB",
"timeToLive": "300s"
},
"instances": [
{
"name": "instance1",
Expand Down Expand Up @@ -102,6 +112,11 @@
"cpu": "1",
"memory": "1G"
},
"responseCacheProperties": {
"responseCacheType": "LocalCachePerRoute",
"size": "5MB",
"timeToLive": "300s"
},
"instances": [
{
"name": "instance1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"cpu": "1",
"memory": "1G"
},
"responseCacheProperties": {
"responseCacheType": "LocalCachePerRoute",
"size": "5MB",
"timeToLive": "300s"
},
"instances": [
{
"name": "instance1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
"cpu": "1",
"memory": "1G"
},
"responseCacheProperties": {
"responseCacheType": "LocalCachePerRoute",
"size": "5MB",
"timeToLive": "300s"
},
"instances": [
{
"name": "instance1",
Expand Down