Skip to content

Commit

Permalink
Fix Swagger Correctness. (Azure#12271)
Browse files Browse the repository at this point in the history
* Fix Swagger Correctness.

* Fix Prettier.

* Fix file mode.

* Update 2020-07-01 as well.
  • Loading branch information
bowen5 authored and mkarmark committed Jul 20, 2021
1 parent 6cce6be commit 1a4cfd9
Show file tree
Hide file tree
Showing 15 changed files with 573 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2386,11 +2386,13 @@
"properties": {
"name": {
"description": "Name of the Sku",
"type": "string"
"type": "string",
"default": "S0"
},
"tier": {
"description": "Tier of the Sku",
"type": "string"
"type": "string",
"default": "Standard"
},
"capacity": {
"format": "int32",
Expand Down Expand Up @@ -2500,6 +2502,60 @@
"description": "A list of public IP addresses."
}
}
},
"requiredTraffics": {
"description": "Required inbound or outbound traffics for Azure Spring Cloud instance.",
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/RequiredTraffic"
}
}
}
},
"RequiredTraffic": {
"description": "Required inbound or outbound traffic for Azure Spring Cloud instance.",
"type": "object",
"properties": {
"protocol": {
"description": "The protocol of required traffic",
"type": "string",
"readOnly": true
},
"port": {
"description": "The port of required traffic",
"type": "integer",
"format": "int32",
"readOnly": true
},
"ips": {
"description": "The ip list of required traffic",
"type": "array",
"readOnly": true,
"items": {
"type": "string"
}
},
"fqdns": {
"description": "The FQDN list of required traffic",
"type": "array",
"readOnly": true,
"items": {
"type": "string"
}
},
"direction": {
"description": "The direction of required traffic",
"type": "string",
"readOnly": true,
"enum": [
"Inbound",
"Outbound"
],
"x-ms-enum": {
"name": "trafficDirection",
"modelAsString": true
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,36 @@
"20.39.3.173",
"40.64.67.13"
]
}
},
"requiredTraffics": [
{
"protocol": "TCP",
"port": 443,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "UDP",
"port": 1194,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "TCP",
"port": 9000,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
}
]
}
},
"type": "Microsoft.AppPlatform/Spring",
Expand Down Expand Up @@ -105,7 +134,36 @@
"20.39.3.173",
"40.64.67.13"
]
}
},
"requiredTraffics": [
{
"protocol": "TCP",
"port": 443,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "UDP",
"port": 1194,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "TCP",
"port": 9000,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
}
]
}
},
"type": "Microsoft.AppPlatform/Spring",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,36 @@
"publicIPs": [
"40.64.67.13"
]
}
},
"requiredTraffics": [
{
"protocol": "TCP",
"port": 443,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "UDP",
"port": 1194,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "TCP",
"port": 9000,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
}
]
},
"serviceId": "12345678abcd1234abcd12345678abcd"
},
Expand Down Expand Up @@ -70,7 +99,36 @@
"publicIPs": [
"40.64.67.13"
]
}
},
"requiredTraffics": [
{
"protocol": "TCP",
"port": 443,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "UDP",
"port": 1194,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "TCP",
"port": 9000,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
}
]
},
"serviceId": "12345678abcd1234abcd12345678abcd"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,36 @@
"20.39.3.173",
"40.64.67.13"
]
}
},
"requiredTraffics": [
{
"protocol": "TCP",
"port": 443,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "UDP",
"port": 1194,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "TCP",
"port": 9000,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
}
]
}
},
"type": "Microsoft.AppPlatform/Spring",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,36 @@
"20.39.3.173",
"40.64.67.13"
]
}
},
"requiredTraffics": [
{
"protocol": "TCP",
"port": 443,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "UDP",
"port": 1194,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "TCP",
"port": 9000,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
}
]
}
},
"type": "Microsoft.AppPlatform/Spring",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,36 @@
"20.39.3.173",
"40.64.67.13"
]
}
},
"requiredTraffics": [
{
"protocol": "TCP",
"port": 443,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "UDP",
"port": 1194,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
},
{
"protocol": "TCP",
"port": 9000,
"ips": [
"20.62.211.25",
"52.188.47.226"
],
"direction": "Outbound"
}
]
}
},
"type": "Microsoft.AppPlatform/Spring",
Expand Down
Loading

0 comments on commit 1a4cfd9

Please sign in to comment.