Skip to content

Commit c4fd94c

Browse files
committed
fix sku swagger not aligned with service problem
1 parent ee3e96b commit c4fd94c

File tree

2 files changed

+40
-54
lines changed

2 files changed

+40
-54
lines changed

specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-06-01/examples/ListSkus.json

Lines changed: 22 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -9,67 +9,35 @@
99
"value": [
1010
{
1111
"resourceType": "workspaces",
12-
"name": "Basic",
13-
"tier": "Basic",
14-
"locations": [
15-
"westus"
16-
],
17-
"locationInfo": [
12+
"skus": [
1813
{
19-
"location": "westus",
20-
"zones": [
21-
"westus-AZ02",
22-
"westus-AZ01"
23-
]
24-
}
25-
],
26-
"capabilities": [
27-
{
28-
"name": "automatedml_readhyperdrivesdk",
29-
"value": "{\n \"id\": \"automatedml_ readhyperdrivesdk\",\n \"name\": \"Read hyperdrive SDK\",\n \"description\": \"Read only access to Hyperdrive in the SDK\"\n}"
30-
},
31-
{
32-
"name": "workspace_upgradeworkspacesdk",
33-
"value": "{\n \"id\": \"workspace_upgradeworkspacesdk\",\n \"name\": \"Upgrade workspace SDK\",\n \"description\": \"Upgrade workspace from Basic to enterprise from the SDK\"\n}"
34-
}
35-
],
36-
"restrictions": []
37-
},
38-
{
39-
"resourceType": "workspaces",
40-
"name": "Enterprise",
41-
"tier": "Enterprise",
42-
"locations": [
43-
"westus"
44-
],
45-
"locationInfo": [
46-
{
47-
"location": "westus",
48-
"zones": [
49-
"westus-AZ01"
14+
"name": "Basic",
15+
"tier": "Basic",
16+
"locations": [
17+
"westus"
5018
],
51-
"zoneDetails": [
19+
"locationInfo": [
5220
{
53-
"name": [
21+
"location": "westus",
22+
"zones": [
23+
"westus-AZ02",
5424
"westus-AZ01"
55-
],
56-
"capabilities": [
57-
{
58-
"name": "automatedml_createeditexperimentssdk",
59-
"value": "{\n \"id\": \"automatedml_createeditexperimentssdk\",\n \"name\": \"Create edit experiments SDK\",\n \"description\": \"Create, edit or delete AutoML experiments in the SDK\"\n}"
60-
}
6125
]
6226
}
63-
]
64-
}
65-
],
66-
"capabilities": [
67-
{
68-
"name": "automatedml_createeditexperimentssdk",
69-
"value": "{\n \"id\": \"automatedml_createeditexperimentssdk\",\n \"name\": \"Create edit experiments SDK\",\n \"description\": \"Create, edit or delete AutoML experiments in the SDK\"\n}"
27+
],
28+
"capabilities": [
29+
{
30+
"name": "automatedml_readhyperdrivesdk",
31+
"value": "{\n \"id\": \"automatedml_ readhyperdrivesdk\",\n \"name\": \"Read hyperdrive SDK\",\n \"description\": \"Read only access to Hyperdrive in the SDK\"\n}"
32+
},
33+
{
34+
"name": "workspace_upgradeworkspacesdk",
35+
"value": "{\n \"id\": \"workspace_upgradeworkspacesdk\",\n \"name\": \"Upgrade workspace SDK\",\n \"description\": \"Upgrade workspace from Basic to enterprise from the SDK\"\n}"
36+
}
37+
],
38+
"restrictions": []
7039
}
71-
],
72-
"restrictions": []
40+
]
7341
}
7442
],
7543
"nextLink": null

specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-06-01/machineLearningServices.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3537,6 +3537,24 @@
35373537
"description": "Describes The zonal capabilities of a SKU."
35383538
},
35393539
"WorkspaceSku": {
3540+
"type": "object",
3541+
"description": "AML workspace sku information",
3542+
"properties": {
3543+
"resourceType": {
3544+
"readOnly": true,
3545+
"type": "string"
3546+
},
3547+
"skus": {
3548+
"readOnly": true,
3549+
"type": "array",
3550+
"items": {
3551+
"$ref": "#/definitions/SkuSettings"
3552+
},
3553+
"description": "The list of workspace sku settings"
3554+
}
3555+
}
3556+
},
3557+
"SkuSettings": {
35403558
"description": "Describes Workspace Sku details and features",
35413559
"type": "object",
35423560
"properties": {

0 commit comments

Comments
 (0)