Skip to content

Commit fdc2665

Browse files
author
SDKAuto
committed
CodeGen from PR 18839 in Azure/azure-rest-api-specs
Correct Probe enums (#18839) * fix probe enums * Fix revision mode enum * Fix patch example
1 parent c7e3b09 commit fdc2665

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed

schemas/2022-01-01-preview/Microsoft.App.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,8 @@
904904
{
905905
"type": "string",
906906
"enum": [
907-
"multiple",
908-
"single"
907+
"Multiple",
908+
"Single"
909909
]
910910
},
911911
{
@@ -1158,9 +1158,9 @@
11581158
{
11591159
"type": "string",
11601160
"enum": [
1161-
"liveness",
1162-
"readiness",
1163-
"startup"
1161+
"Liveness",
1162+
"Readiness",
1163+
"Startup"
11641164
]
11651165
},
11661166
{
@@ -1209,7 +1209,18 @@
12091209
"description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."
12101210
},
12111211
"scheme": {
1212-
"type": "string",
1212+
"oneOf": [
1213+
{
1214+
"type": "string",
1215+
"enum": [
1216+
"HTTP",
1217+
"HTTPS"
1218+
]
1219+
},
1220+
{
1221+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
1222+
}
1223+
],
12131224
"description": "Scheme to use for connecting to the host. Defaults to HTTP."
12141225
}
12151226
},

schemas/2022-03-01/Microsoft.App.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,8 @@
904904
{
905905
"type": "string",
906906
"enum": [
907-
"multiple",
908-
"single"
907+
"Multiple",
908+
"Single"
909909
]
910910
},
911911
{
@@ -1158,9 +1158,9 @@
11581158
{
11591159
"type": "string",
11601160
"enum": [
1161-
"liveness",
1162-
"readiness",
1163-
"startup"
1161+
"Liveness",
1162+
"Readiness",
1163+
"Startup"
11641164
]
11651165
},
11661166
{
@@ -1209,7 +1209,18 @@
12091209
"description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."
12101210
},
12111211
"scheme": {
1212-
"type": "string",
1212+
"oneOf": [
1213+
{
1214+
"type": "string",
1215+
"enum": [
1216+
"HTTP",
1217+
"HTTPS"
1218+
]
1219+
},
1220+
{
1221+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
1222+
}
1223+
],
12131224
"description": "Scheme to use for connecting to the host. Defaults to HTTP."
12141225
}
12151226
},

0 commit comments

Comments
 (0)