Skip to content

Commit 0f21c21

Browse files
azgcloudevaldairzamoramsftmadhura-np
authored
Improvement of Post examples (Azure#28055)
* prettier write * improve examples for post requests * add excepiton for error Unknown word (clientsession), please fix the error. See https://aka.ms/ci-fix#spell-check path: Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json#L134:51 * fix error: MISSING_RESOURCE_ID * Fix error: LRO_RESPONSE_HEADER * Fix error: INVALID_REQUEST_PARAMETER: api-version 2020-08-01 is not equal to swagger version * More fixes to MISSING_RESOURCE_ID, LRO_RESPONSE_HEADER and OBJECT_ADDITIONAL_PROPERTIES * add excepiton for error Unknown word (clientsession) * Fix new OBJECT_ADDITIONAL_PROPERTIES and LRO_RESPONSE_HEADER errors * Fix new OBJECT_ADDITIONAL_PROPERTIES error * Fix new OBJECT_ADDITIONAL_PROPERTIES error * Location typo fix * Update SystemEvents.json revert change * Revert "Update SystemEvents.json" This reverts commit ce5e931. * Revert "prettier write" system.events This reverts commit 33c30bf. --------- Co-authored-by: Aldair Zamora <aldairzamora@microsoft.com> Co-authored-by: madhura <56606095+madhura-np@users.noreply.github.com>
1 parent 8f19688 commit 0f21c21

File tree

52 files changed

+409
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+409
-192
lines changed

cSpell.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@
372372
"Regenerte"
373373
]
374374
},
375+
{
376+
"filename": "**/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json",
377+
"words": [
378+
"clientsession"
379+
]
380+
},
375381
{
376382
"filename": "**/specification/keyvault/data-plane/Microsoft.KeyVault/**/storage.json",
377383
"words": [

specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ConfigurationPolicyGroupDelete.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
},
99
"responses": {
1010
"200": {},
11-
"202": {},
11+
"202": {
12+
"headers": {
13+
"Location": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Network/locations/region/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01"
14+
}
15+
},
1216
"204": {}
1317
}
1418
}

specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/EffectiveRoutesListForConnection.json

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,37 @@
1212
"responses": {
1313
"200": {
1414
"body": {
15-
"status": "Succeeded",
16-
"properties": {
17-
"output": {
18-
"value": [
19-
{
20-
"addressPrefixes": [
21-
"10.147.128.0/17"
22-
],
23-
"nextHops": [
24-
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0"
25-
],
26-
"nextHopType": "Remote Hub",
27-
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0",
28-
"asPath": "65520-65520"
29-
},
30-
{
31-
"addressPrefixes": [
32-
"10.0.0.0/16"
33-
],
34-
"nextHops": [
35-
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1"
36-
],
37-
"nextHopType": "ExpressRouteGateway",
38-
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1",
39-
"asPath": "12076-12076"
40-
}
41-
]
15+
"value": [
16+
{
17+
"addressPrefixes": [
18+
"10.147.128.0/17"
19+
],
20+
"nextHops": [
21+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0"
22+
],
23+
"nextHopType": "Remote Hub",
24+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0",
25+
"asPath": "65520-65520"
26+
},
27+
{
28+
"addressPrefixes": [
29+
"10.0.0.0/16"
30+
],
31+
"nextHops": [
32+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1"
33+
],
34+
"nextHopType": "ExpressRouteGateway",
35+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1",
36+
"asPath": "12076-12076"
4237
}
43-
}
38+
]
4439
}
4540
},
4641
"202": {
47-
"description": "Accepted and the operation will complete asynchronously."
42+
"description": "Accepted and the operation will complete asynchronously.",
43+
"headers": {
44+
"Location": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Network/locations/region/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01"
45+
}
4846
}
4947
}
5048
}

specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/EffectiveRoutesListForRouteTable.json

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,37 @@
1212
"responses": {
1313
"200": {
1414
"body": {
15-
"status": "Succeeded",
16-
"properties": {
17-
"output": {
18-
"value": [
19-
{
20-
"addressPrefixes": [
21-
"10.147.128.0/17"
22-
],
23-
"nextHops": [
24-
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0"
25-
],
26-
"nextHopType": "Remote Hub",
27-
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0",
28-
"asPath": "65520-65520"
29-
},
30-
{
31-
"addressPrefixes": [
32-
"10.0.0.0/16"
33-
],
34-
"nextHops": [
35-
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1"
36-
],
37-
"nextHopType": "ExpressRouteGateway",
38-
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1",
39-
"asPath": "12076-12076"
40-
}
41-
]
15+
"value": [
16+
{
17+
"addressPrefixes": [
18+
"10.147.128.0/17"
19+
],
20+
"nextHops": [
21+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0"
22+
],
23+
"nextHopType": "Remote Hub",
24+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0",
25+
"asPath": "65520-65520"
26+
},
27+
{
28+
"addressPrefixes": [
29+
"10.0.0.0/16"
30+
],
31+
"nextHops": [
32+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1"
33+
],
34+
"nextHopType": "ExpressRouteGateway",
35+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1",
36+
"asPath": "12076-12076"
4237
}
43-
}
38+
]
4439
}
4540
},
4641
"202": {
47-
"description": "Accepted and the operation will complete asynchronously."
42+
"description": "Accepted and the operation will complete asynchronously.",
43+
"headers": {
44+
"Location": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Network/locations/region/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01"
45+
}
4846
}
4947
}
5048
}

specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/EffectiveRoutesListForVirtualHub.json

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,37 @@
99
"responses": {
1010
"200": {
1111
"body": {
12-
"status": "Succeeded",
13-
"properties": {
14-
"output": {
15-
"value": [
16-
{
17-
"addressPrefixes": [
18-
"10.147.128.0/17"
19-
],
20-
"nextHops": [
21-
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0"
22-
],
23-
"nextHopType": "Remote Hub",
24-
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0",
25-
"asPath": "65520-65520"
26-
},
27-
{
28-
"addressPrefixes": [
29-
"10.0.0.0/16"
30-
],
31-
"nextHops": [
32-
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1"
33-
],
34-
"nextHopType": "ExpressRouteGateway",
35-
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1",
36-
"asPath": "12076-12076"
37-
}
38-
]
12+
"value": [
13+
{
14+
"addressPrefixes": [
15+
"10.147.128.0/17"
16+
],
17+
"nextHops": [
18+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0"
19+
],
20+
"nextHopType": "Remote Hub",
21+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/virtualHubs/hub0",
22+
"asPath": "65520-65520"
23+
},
24+
{
25+
"addressPrefixes": [
26+
"10.0.0.0/16"
27+
],
28+
"nextHops": [
29+
"/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1"
30+
],
31+
"nextHopType": "ExpressRouteGateway",
32+
"routeOrigin": "/subscriptions/testSub/resourceGroups/testRg/providers/Microsoft.Network/expressRouteGateways/ErGw1",
33+
"asPath": "12076-12076"
3934
}
40-
}
35+
]
4136
}
4237
},
4338
"202": {
44-
"description": "Accepted and the operation will complete asynchronously."
39+
"description": "Accepted and the operation will complete asynchronously.",
40+
"headers": {
41+
"Location": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Network/locations/region/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01"
42+
}
4543
}
4644
}
4745
}

specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteConnectionDelete.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
"subscriptionId": "subid"
88
},
99
"responses": {
10-
"202": {},
10+
"202": {
11+
"headers": {
12+
"Location": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Network/locations/region/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01"
13+
}
14+
},
1115
"200": {},
1216
"204": {}
1317
}

specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteGatewayDelete.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
"subscriptionId": "subid"
77
},
88
"responses": {
9-
"202": {},
9+
"202": {
10+
"headers": {
11+
"Location": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Network/locations/region/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01"
12+
}
13+
},
1014
"200": {},
1115
"204": {}
1216
}

specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteGatewayUpdateTags.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
}
1313
},
1414
"responses": {
15-
"202": {},
15+
"202": {
16+
"headers": {
17+
"Location": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Network/locations/region/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01"
18+
}
19+
},
1620
"200": {
1721
"body": {
1822
"name": "expressRouteGatewayName",

specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/GenerateVirtualWanVpnServerConfigurationVpnProfile.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
}
1111
},
1212
"responses": {
13-
"202": {},
13+
"202": {
14+
"headers": {
15+
"Location": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Network/locations/region/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01"
16+
}
17+
},
1418
"200": {
1519
"body": {
1620
"profileUrl": "aaaaaaaaaaaaaaaaaaaaaaaaaaa"

specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/GetInboundRoutes.json

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,25 @@
1212
"responses": {
1313
"200": {
1414
"body": {
15-
"status": "Succeeded",
16-
"properties": {
17-
"output": {
18-
"value": [
19-
{
20-
"prefix": "192.168.50.0/24",
21-
"asPath": "65520-65520",
22-
"bgpCommunities": "4293853166,12076,51004"
23-
},
24-
{
25-
"prefix": "10.200.0.0/16",
26-
"asPath": "65520-65520-12076-12076",
27-
"bgpCommunities": "4293787629,12076,51027,4293734188"
28-
}
29-
]
15+
"value": [
16+
{
17+
"prefix": "192.168.50.0/24",
18+
"asPath": "65520-65520",
19+
"bgpCommunities": "4293853166,12076,51004"
20+
},
21+
{
22+
"prefix": "10.200.0.0/16",
23+
"asPath": "65520-65520-12076-12076",
24+
"bgpCommunities": "4293787629,12076,51027,4293734188"
3025
}
31-
}
26+
]
3227
}
3328
},
3429
"202": {
35-
"description": "Accepted and the operation will complete asynchronously."
30+
"description": "Accepted and the operation will complete asynchronously.",
31+
"headers": {
32+
"Location": "https://management.azure.com/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Network/locations/region/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01"
33+
}
3634
}
3735
}
3836
}

0 commit comments

Comments
 (0)