Skip to content

Commit 9f17038

Browse files
rguptarannegeorge17
authored andcommitted
[Hub Generated] Publish private branch 'guptar/serialconsole' (#26358)
* Copy existing api specs * Add 2023-01-01 specs * Address avocado lint * prettier lint * Correct serialconsole object * fix lintdiff issues * fix cloudError path * missing s * default description missing * fixing ProxyResource definition * fix prettier * run prettier * fix proxyresource path * fix path again * fix file path again * remove ProxyResource duplicate * remove resource --------- Co-authored-by: annegeorge17 <149191796+annegeorge17@users.noreply.github.com>
1 parent c03b969 commit 9f17038

17 files changed

+1073
-17
lines changed

specification/serialconsole/resource-manager/Microsoft.SerialConsole/stable/2018-05-01/examples/DisableConsoleExamples.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"responses": {
88
"200": {
99
"body": {
10-
"disabled": true
10+
"properties": {
11+
"disabled": true
12+
}
1113
}
1214
},
1315
"404": {

specification/serialconsole/resource-manager/Microsoft.SerialConsole/stable/2018-05-01/examples/EnableConsoleExamples.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"responses": {
88
"200": {
99
"body": {
10-
"disabled": false
10+
"properties": {
11+
"disabled": false
12+
}
1113
}
1214
},
1315
"404": {

specification/serialconsole/resource-manager/Microsoft.SerialConsole/stable/2018-05-01/examples/SerialConsoleStatus.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"responses": {
88
"200": {
99
"body": {
10-
"disabled": true
10+
"properties": {
11+
"disabled": false
12+
}
1113
}
1214
},
1315
"404": {
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01",
4+
"subscriptionId": "00000000-00000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"resourceProviderNamespace": "Microsoft.Compute",
7+
"parentResourceType": "virtualMachines",
8+
"parentResource": "myVM",
9+
"serialPort": "0",
10+
"parameters": {
11+
"properties": {
12+
"state": "enabled"
13+
}
14+
}
15+
},
16+
"responses": {
17+
"201": {
18+
"body": {
19+
"name": "0",
20+
"id": "/subscriptions/00000000-00000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM/providers/Microsoft.SerialConsole/serialPorts/0",
21+
"type": "Microsoft.SerialConsole/serialPorts",
22+
"properties": {
23+
"state": "enabled",
24+
"connectionState": "inactive"
25+
}
26+
}
27+
}
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01",
4+
"subscriptionId": "00000000-00000-0000-0000-000000000000",
5+
"default": "default"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"disabled": true
11+
}
12+
},
13+
"404": {
14+
"body": {
15+
"code": "SubscriptionNotFound",
16+
"message": "The subscription '00000000-00000-0000-0000-000000000000' could not be found."
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01",
4+
"subscriptionId": "00000000-00000-0000-0000-000000000000",
5+
"default": "default"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"disabled": false
11+
}
12+
},
13+
"404": {
14+
"body": {
15+
"code": "SubscriptionNotFound",
16+
"message": "The subscription '00000000-00000-0000-0000-000000000000' could not be found."
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.SerialConsole/consoleServices/read",
11+
"isDataAction": "false",
12+
"display": {
13+
"provider": "Microsoft.SerialConsole",
14+
"resource": "Serial Console instance",
15+
"operation": "Default",
16+
"description": "Retrieves the current subscription state"
17+
}
18+
},
19+
{
20+
"name": "Microsoft.SerialConsole/consoleServices/disableConsole/action",
21+
"isDataAction": "false",
22+
"display": {
23+
"provider": "Microsoft.SerialConsole",
24+
"resource": "Serial Console instance",
25+
"operation": "Disable Console",
26+
"description": "Disable Serial Console for a subscription"
27+
}
28+
},
29+
{
30+
"name": "Microsoft.SerialConsole/consoleServices/enableConsole/action",
31+
"isDataAction": "false",
32+
"display": {
33+
"provider": "Microsoft.SerialConsole",
34+
"resource": "Serial Console instance",
35+
"operation": "Enable Console",
36+
"description": "Enable Serial Console for a subscription"
37+
}
38+
}
39+
]
40+
}
41+
}
42+
}
43+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01",
4+
"subscriptionId": "00000000-00000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"resourceProviderNamespace": "Microsoft.Compute",
7+
"parentResourceType": "virtualMachines",
8+
"parentResource": "myVM",
9+
"serialPort": "0"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"name": "0",
15+
"id": "/subscriptions/00000000-00000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM/providers/Microsoft.SerialConsole/serialPorts/0",
16+
"type": "Microsoft.SerialConsole/serialPorts",
17+
"properties": {
18+
"state": "enabled",
19+
"connectionState": "inactive"
20+
}
21+
}
22+
}
23+
}
24+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01",
4+
"subscriptionId": "00000000-00000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"resourceProviderNamespace": "Microsoft.Compute",
7+
"parentResourceType": "virtualMachines",
8+
"parentResource": "myVM"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"name": "0",
16+
"id": "/subscriptions/00000000-00000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM/providers/Microsoft.SerialConsole/serialPorts/0",
17+
"type": "Microsoft.SerialConsole/serialPorts",
18+
"properties": {
19+
"state": "enabled",
20+
"connectionState": "inactive"
21+
}
22+
}
23+
]
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-01-01",
4+
"subscriptionId": "00000000-00000-0000-0000-000000000000"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"name": "0",
12+
"id": "/subscriptions/00000000-00000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM/providers/Microsoft.SerialConsole/serialPorts/0",
13+
"type": "Microsoft.SerialConsole/serialPorts",
14+
"properties": {
15+
"state": "enabled"
16+
}
17+
}
18+
]
19+
}
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)