Skip to content

Commit

Permalink
Update serial console swagger (#7444)
Browse files Browse the repository at this point in the history
* Update serial console swagger 10/9/2019

* Make operationId casing consistent

* Fix formatting. Also, default is not a parameter

* Address build errors

* Describe GetOperations output

* Clarify scale set instance

* Add default back as a parameter, update examples accordingly

* Add x-ms-parameter-location

* rename GetSerialConsoleDisabledResult to SerialConsoleStatus and update example accordingly
  • Loading branch information
asinn826 authored and Zim Kalinowski committed Oct 29, 2019
1 parent 98d8ff5 commit b60da39
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
"disabled": true
}
},
"default": {
"404": {
"body": {
"errorMessage": "This message will contain details on failure"
"code": "SubscriptionNotFound",
"message": "The subscription '00000000-00000-0000-0000-000000000000' could not be found."
}
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
"disabled": false
}
},
"default": {
"404": {
"body": {
"errorMessage": "This message will contain details on failure"
"code": "SubscriptionNotFound",
"message": "The subscription '00000000-00000-0000-0000-000000000000' could not be found."
}
}
}
}

Original file line number Diff line number Diff line change
@@ -1,12 +1,42 @@
{
"parameters": {
"api-version": "2018-05-01",
"subscriptionId": "00000000-00000-0000-0000-000000000000"
"api-version": "2018-05-01"
},
"responses": {
"200": {
"body": {
"value": "Get operations response"
"value": [
{
"name": "Microsoft.SerialConsole/consoleServices/read",
"isDataAction": "false",
"display": {
"provider": "Microsoft.SerialConsole",
"resource": "Serial Console instance",
"operation": "Default",
"description": "Retrieves the current subscription state"
}
},
{
"name": "Microsoft.SerialConsole/consoleServices/disableConsole/action",
"isDataAction": "false",
"display": {
"provider": "Microsoft.SerialConsole",
"resource": "Serial Console instance",
"operation": "Disable Console",
"description": "Disable Serial Console for a subscription"
}
},
{
"name": "Microsoft.SerialConsole/consoleServices/enableConsole/action",
"isDataAction": "false",
"display": {
"provider": "Microsoft.SerialConsole",
"resource": "Serial Console instance",
"operation": "Enable Console",
"description": "Enable Serial Console for a subscription"
}
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
"disabled": true
}
},
"default": {
"404": {
"body": {
"errorMessage": "This message contains details on failure"
"code": "SubscriptionNotFound",
"message": "The subscription '00000000-00000-0000-0000-000000000000' could not be found."
}
}
}
}

Loading

0 comments on commit b60da39

Please sign in to comment.