Skip to content

Commit 390ef48

Browse files
authored
Sync x-mx-enum change from 2021-03-01 (#19728)
* Sync x-mx-enum change from 2021-03-01 * Update Provider.json
1 parent 4f7f612 commit 390ef48

File tree

1 file changed

+39
-56
lines changed
  • specification/web/resource-manager/Microsoft.Web/stable/2022-03-01

1 file changed

+39
-56
lines changed

specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/Provider.json

Lines changed: 39 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,7 @@
2525
"operationId": "Provider_GetAvailableStacks",
2626
"parameters": [
2727
{
28-
"name": "osTypeSelected",
29-
"in": "query",
30-
"type": "string",
31-
"enum": [
32-
"Windows",
33-
"Linux",
34-
"WindowsFunctions",
35-
"LinuxFunctions",
36-
"All"
37-
]
28+
"$ref": "#/parameters/osTypeSelectedParameter"
3829
},
3930
{
4031
"$ref": "#/parameters/apiVersionParameter"
@@ -69,15 +60,7 @@
6960
"operationId": "Provider_GetFunctionAppStacks",
7061
"parameters": [
7162
{
72-
"name": "stackOsType",
73-
"in": "query",
74-
"description": "Stack OS Type",
75-
"type": "string",
76-
"enum": [
77-
"Windows",
78-
"Linux",
79-
"All"
80-
]
63+
"$ref": "#/parameters/stackOsTypeParameter"
8164
},
8265
{
8366
"$ref": "#/parameters/apiVersionParameter"
@@ -124,15 +107,7 @@
124107
"type": "string"
125108
},
126109
{
127-
"name": "stackOsType",
128-
"in": "query",
129-
"description": "Stack OS Type",
130-
"type": "string",
131-
"enum": [
132-
"Windows",
133-
"Linux",
134-
"All"
135-
]
110+
"$ref": "#/parameters/stackOsTypeParameter"
136111
},
137112
{
138113
"$ref": "#/parameters/apiVersionParameter"
@@ -179,15 +154,7 @@
179154
"type": "string"
180155
},
181156
{
182-
"name": "stackOsType",
183-
"in": "query",
184-
"description": "Stack OS Type",
185-
"type": "string",
186-
"enum": [
187-
"Windows",
188-
"Linux",
189-
"All"
190-
]
157+
"$ref": "#/parameters/stackOsTypeParameter"
191158
},
192159
{
193160
"$ref": "#/parameters/apiVersionParameter"
@@ -264,15 +231,7 @@
264231
"operationId": "Provider_GetWebAppStacks",
265232
"parameters": [
266233
{
267-
"name": "stackOsType",
268-
"in": "query",
269-
"description": "Stack OS Type",
270-
"type": "string",
271-
"enum": [
272-
"Windows",
273-
"Linux",
274-
"All"
275-
]
234+
"$ref": "#/parameters/stackOsTypeParameter"
276235
},
277236
{
278237
"$ref": "#/parameters/apiVersionParameter"
@@ -312,16 +271,7 @@
312271
"operationId": "Provider_GetAvailableStacksOnPrem",
313272
"parameters": [
314273
{
315-
"name": "osTypeSelected",
316-
"in": "query",
317-
"type": "string",
318-
"enum": [
319-
"Windows",
320-
"Linux",
321-
"WindowsFunctions",
322-
"LinuxFunctions",
323-
"All"
324-
]
274+
"$ref": "#/parameters/osTypeSelectedParameter"
325275
},
326276
{
327277
"$ref": "#/parameters/subscriptionIdParameter"
@@ -1118,6 +1068,39 @@
11181068
"description": "API Version",
11191069
"required": true,
11201070
"type": "string"
1071+
},
1072+
"osTypeSelectedParameter": {
1073+
"name": "osTypeSelected",
1074+
"in": "query",
1075+
"type": "string",
1076+
"enum": [
1077+
"Windows",
1078+
"Linux",
1079+
"WindowsFunctions",
1080+
"LinuxFunctions",
1081+
"All"
1082+
],
1083+
"x-ms-enum": {
1084+
"name": "ProviderOsTypeSelected",
1085+
"modelAsString": true
1086+
},
1087+
"x-ms-parameter-location": "method"
1088+
},
1089+
"stackOsTypeParameter": {
1090+
"name": "stackOsType",
1091+
"in": "query",
1092+
"description": "Stack OS Type",
1093+
"type": "string",
1094+
"enum": [
1095+
"Windows",
1096+
"Linux",
1097+
"All"
1098+
],
1099+
"x-ms-enum": {
1100+
"name": "ProviderStackOsType",
1101+
"modelAsString": true
1102+
},
1103+
"x-ms-parameter-location": "method"
11211104
}
11221105
},
11231106
"securityDefinitions": {

0 commit comments

Comments
 (0)