Skip to content

Commit 3a52c16

Browse files
author
swatikanaujia
committed
Fix tool errors.
1 parent 3bd947d commit 3a52c16

File tree

7 files changed

+51
-43
lines changed

7 files changed

+51
-43
lines changed

specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/common.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"swagger": "2.0",
33
"info": {
44
"title": "HybridNetworkManagementClient",
5-
"description": "The defintions in this swagger specification will be used to manage the hybrid network resources.",
5+
"description": "The definitions in this swagger specification will be used to manage the hybrid network resources.",
66
"version": "2020-01-01-preview"
77
},
88
"host": "management.azure.com",
@@ -36,21 +36,28 @@
3636
"paths": {},
3737
"definitions": {
3838
"ErrorDetails": {
39-
"description": "Error details.",
39+
"description": "The error response that indicates why an operation has failed.",
40+
"type": "object",
41+
"properties": {
42+
"error": {
43+
"$ref": "#/definitions/ErrorResponse"
44+
}
45+
}
46+
},
47+
"ErrorResponse": {
48+
"description": "The error response details containing error code and error message",
4049
"type": "object",
4150
"additionalProperties": true,
42-
"required": [
43-
"code",
44-
"message"
45-
],
4651
"properties": {
4752
"code": {
48-
"description": "Error code.",
49-
"type": "string"
53+
"description": "The error code.",
54+
"type": "string",
55+
"readOnly": true
5056
},
5157
"message": {
52-
"description": "Error message.",
53-
"type": "string"
58+
"description": "The error message.",
59+
"type": "string",
60+
"readOnly": true
5461
}
5562
}
5663
},
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"parameters": {
3-
"api-version": "2020-01-01-preview",
4-
"subscriptionId": "subid",
5-
"vendorName": "TestVendor",
6-
"skuName": "TestSku"
7-
},
8-
"responses": {
9-
"200": {
10-
"body": {
11-
"value": [
12-
{
13-
"id": "/subscriptions/subid/providers/Microsoft.HybridNetwork/vendors/TestVendor/vendorskus/TestSku/previewsubscriptions/previewSub1",
14-
"name": "previewSub1",
15-
"type": "Microsoft.HybridNetwork/vendors/vendorskus/previewsubscriptions"
16-
},
17-
{
18-
"id": "/subscriptions/subid/providers/Microsoft.HybridNetwork/vendors/TestVendor/vendorskus/TestSku/previewsubscriptions/previewSub2",
19-
"name": "previewSub2",
20-
"type": "Microsoft.HybridNetwork/vendors/vendorskus/previewsubscriptions"
21-
}
22-
]
23-
}
24-
}
25-
}
2+
"parameters": {
3+
"api-version": "2020-01-01-preview",
4+
"subscriptionId": "subid",
5+
"vendorName": "TestVendor",
6+
"skuName": "TestSku"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/subid/providers/Microsoft.HybridNetwork/vendors/TestVendor/vendorskus/TestSku/previewsubscriptions/previewSub1",
14+
"name": "previewSub1",
15+
"type": "Microsoft.HybridNetwork/vendors/vendorskus/previewsubscriptions"
16+
},
17+
{
18+
"id": "/subscriptions/subid/providers/Microsoft.HybridNetwork/vendors/TestVendor/vendorskus/TestSku/previewsubscriptions/previewSub2",
19+
"name": "previewSub2",
20+
"type": "Microsoft.HybridNetwork/vendors/vendorskus/previewsubscriptions"
21+
}
22+
]
23+
}
24+
}
25+
}
2626
}

specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/examples/VendorCreate.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"api-version": "2020-01-01-preview",
44
"subscriptionId": "subid",
55
"vendorName": "TestVendor",
6-
"parameters": {
7-
}
6+
"parameters": {}
87
},
98
"responses": {
109
"200": {

specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/examples/VendorGet.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
{
1717
"id": "/subscriptions/subid/providers/Microsoft.HybridNetwork/vendors/TestVendor/skus/TestVendorSku"
1818
}
19-
2019
]
2120
}
2221
}

specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/examples/VendorSkuCreate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
]
6363
}
6464
}
65-
}
65+
}
6666
},
6767
"responses": {
6868
"200": {

specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/vendor.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"description": "OK. Request is successful."
6262
},
6363
"202": {
64-
"description": "Accepted. Sets provisiningState to 'Deleting' until the operation is completed. Returns an operation URI that can be queried to find the current state of the operation."
64+
"description": "Accepted. Sets provisioningState to 'Deleting' until the operation is completed. Returns an operation URI that can be queried to find the current state of the operation."
6565
},
6666
"204": {
6767
"description": "Request successful. Resource does not exist."
@@ -577,7 +577,7 @@
577577
"tags": [
578578
"VendorVirtualNetworkFunctions"
579579
],
580-
"operationId": "VendorVnfs_List",
580+
"operationId": "VendorVirtualNetworkFunctions_List",
581581
"description": "List all the vendor virtual network function sub resources in an azure region. Filter by skuType, skuName, vendorProvisioningState",
582582
"parameters": [
583583
{
@@ -676,7 +676,7 @@
676676
}
677677
},
678678
"x-ms-examples": {
679-
"Get all preview subscriptions of vendor skub sub resource": {
679+
"Get all preview subscriptions of vendor sku sub resource": {
680680
"$ref": "./examples/GetVendorSkuPreviews.json"
681681
}
682682
},
@@ -1228,7 +1228,10 @@
12281228
"adminPassword": {
12291229
"type": "string",
12301230
"x-ms-secret": true,
1231-
"x-ms-mutability": [ "create", "update" ],
1231+
"x-ms-mutability": [
1232+
"create",
1233+
"update"
1234+
],
12321235
"description": "Specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\\W_]) <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)."
12331236
},
12341237
"sshPublicKey": {

specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/virtualNetworkFunctionVendors.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
"items": {
283283
"$ref": "#/definitions/SkuOverview"
284284
},
285-
"description": "The virtual netwwork function vendor sku overview properties."
285+
"description": "The virtual network function vendor sku overview properties."
286286
},
287287
"nextLink": {
288288
"type": "string",

0 commit comments

Comments
 (0)