Skip to content

Commit

Permalink
Add x-ms-enum to web RP (#17056)
Browse files Browse the repository at this point in the history
* fix web

* align the enum type name with java SDK

* add x-ms-parameter-location
  • Loading branch information
ArcturusZhang authored Dec 23, 2021
1 parent 3e1f462 commit 698ebc7
Showing 1 changed file with 39 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,7 @@
"operationId": "Provider_GetAvailableStacks",
"parameters": [
{
"name": "osTypeSelected",
"in": "query",
"type": "string",
"enum": [
"Windows",
"Linux",
"WindowsFunctions",
"LinuxFunctions",
"All"
]
"$ref": "#/parameters/osTypeSelectedParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
Expand Down Expand Up @@ -69,15 +60,7 @@
"operationId": "Provider_GetFunctionAppStacks",
"parameters": [
{
"name": "stackOsType",
"in": "query",
"description": "Stack OS Type",
"type": "string",
"enum": [
"Windows",
"Linux",
"All"
]
"$ref": "#/parameters/stackOsTypeParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
Expand Down Expand Up @@ -124,15 +107,7 @@
"type": "string"
},
{
"name": "stackOsType",
"in": "query",
"description": "Stack OS Type",
"type": "string",
"enum": [
"Windows",
"Linux",
"All"
]
"$ref": "#/parameters/stackOsTypeParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
Expand Down Expand Up @@ -179,15 +154,7 @@
"type": "string"
},
{
"name": "stackOsType",
"in": "query",
"description": "Stack OS Type",
"type": "string",
"enum": [
"Windows",
"Linux",
"All"
]
"$ref": "#/parameters/stackOsTypeParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
Expand Down Expand Up @@ -264,15 +231,7 @@
"operationId": "Provider_GetWebAppStacks",
"parameters": [
{
"name": "stackOsType",
"in": "query",
"description": "Stack OS Type",
"type": "string",
"enum": [
"Windows",
"Linux",
"All"
]
"$ref": "#/parameters/stackOsTypeParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
Expand Down Expand Up @@ -312,16 +271,7 @@
"operationId": "Provider_GetAvailableStacksOnPrem",
"parameters": [
{
"name": "osTypeSelected",
"in": "query",
"type": "string",
"enum": [
"Windows",
"Linux",
"WindowsFunctions",
"LinuxFunctions",
"All"
]
"$ref": "#/parameters/osTypeSelectedParameter"
},
{
"$ref": "#/parameters/subscriptionIdParameter"
Expand Down Expand Up @@ -1094,6 +1044,39 @@
"description": "API Version",
"required": true,
"type": "string"
},
"osTypeSelectedParameter": {
"name": "osTypeSelected",
"in": "query",
"type": "string",
"enum": [
"Windows",
"Linux",
"WindowsFunctions",
"LinuxFunctions",
"All"
],
"x-ms-enum": {
"name": "ProviderOsTypeSelected",
"modelAsString": true
},
"x-ms-parameter-location": "method"
},
"stackOsTypeParameter": {
"name": "stackOsType",
"in": "query",
"description": "Stack OS Type",
"type": "string",
"enum": [
"Windows",
"Linux",
"All"
],
"x-ms-enum": {
"name": "ProviderStackOsType",
"modelAsString": true
},
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
Expand Down

0 comments on commit 698ebc7

Please sign in to comment.