Skip to content

Commit 7752728

Browse files
authored
Correct Probe enums (#18839)
* fix probe enums * Fix revision mode enum * Fix patch example
1 parent 50ed15b commit 7752728

File tree

7 files changed

+35
-19
lines changed

7 files changed

+35
-19
lines changed

specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/CommonDefinitions.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,15 @@
172172
},
173173
"scheme": {
174174
"description": "Scheme to use for connecting to the host. Defaults to HTTP.",
175-
"type": "string"
175+
"enum": [
176+
"HTTP",
177+
"HTTPS"
178+
],
179+
"type": "string",
180+
"x-ms-enum": {
181+
"name": "Scheme",
182+
"modelAsString": true
183+
}
176184
}
177185
}
178186
},
@@ -222,9 +230,9 @@
222230
"type": {
223231
"description": "The type of probe.",
224232
"enum": [
225-
"liveness",
226-
"readiness",
227-
"startup"
233+
"Liveness",
234+
"Readiness",
235+
"Startup"
228236
],
229237
"type": "string",
230238
"x-ms-enum": {

specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/ContainerApps.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@
427427
"activeRevisionsMode": {
428428
"description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\n<list><item>Multiple: multiple revisions can be active. If no value if provided, this is the default</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode</item></list>",
429429
"enum": [
430-
"multiple",
431-
"single"
430+
"Multiple",
431+
"Single"
432432
],
433433
"type": "string",
434434
"x-ms-enum": {

specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/ContainerApps_CreateOrUpdate.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"name": "testcontainerApp0",
3939
"probes": [
4040
{
41-
"type": "liveness",
41+
"type": "Liveness",
4242
"httpGet": {
4343
"path": "/health",
4444
"port": 8080,
@@ -122,7 +122,7 @@
122122
},
123123
"probes": [
124124
{
125-
"type": "liveness",
125+
"type": "Liveness",
126126
"httpGet": {
127127
"path": "/health",
128128
"port": 8080,
@@ -192,7 +192,7 @@
192192
},
193193
"probes": [
194194
{
195-
"type": "liveness",
195+
"type": "Liveness",
196196
"httpGet": {
197197
"path": "/health",
198198
"port": 8080,

specification/app/resource-manager/Microsoft.App/stable/2022-03-01/CommonDefinitions.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,15 @@
172172
},
173173
"scheme": {
174174
"description": "Scheme to use for connecting to the host. Defaults to HTTP.",
175-
"type": "string"
175+
"enum": [
176+
"HTTP",
177+
"HTTPS"
178+
],
179+
"type": "string",
180+
"x-ms-enum": {
181+
"name": "Scheme",
182+
"modelAsString": true
183+
}
176184
}
177185
}
178186
},
@@ -222,9 +230,9 @@
222230
"type": {
223231
"description": "The type of probe.",
224232
"enum": [
225-
"liveness",
226-
"readiness",
227-
"startup"
233+
"Liveness",
234+
"Readiness",
235+
"Startup"
228236
],
229237
"type": "string",
230238
"x-ms-enum": {

specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@
425425
"activeRevisionsMode": {
426426
"description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\n<list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>",
427427
"enum": [
428-
"multiple",
429-
"single"
428+
"Multiple",
429+
"Single"
430430
],
431431
"type": "string",
432432
"x-ms-enum": {

specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_CreateOrUpdate.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"name": "testcontainerApp0",
4646
"probes": [
4747
{
48-
"type": "liveness",
48+
"type": "Liveness",
4949
"httpGet": {
5050
"path": "/health",
5151
"port": 8080,
@@ -140,7 +140,7 @@
140140
},
141141
"probes": [
142142
{
143-
"type": "liveness",
143+
"type": "Liveness",
144144
"httpGet": {
145145
"path": "/health",
146146
"port": 8080,
@@ -221,7 +221,7 @@
221221
},
222222
"probes": [
223223
{
224-
"type": "liveness",
224+
"type": "Liveness",
225225
"httpGet": {
226226
"path": "/health",
227227
"port": 8080,

specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_Patch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"name": "testcontainerApp0",
4949
"probes": [
5050
{
51-
"type": "liveness",
51+
"type": "Liveness",
5252
"httpGet": {
5353
"path": "/health",
5454
"port": 8080,

0 commit comments

Comments
 (0)