Skip to content

Commit 673e34e

Browse files
pachaturvediaviyerMSFT
authored andcommitted
Pachaturvedi/elastic new version 2022 09 01 preview (Azure#21670)
* base commit * update elastic.json & examples * Sync with azure-rest-api-specs-pr for 2022-09-01-preview * Update 202 response for long-running-operations in 2022-07-01 * Addressed review comments to fix ApiVersionParameter * Update response status to 200 for TrafficFilterCreate * Fix Swagger model validation error * fix prettier check * Update api version in examples * Addressed Review comments * Add Long running operation opeions
1 parent 4dcc2c1 commit 673e34e

39 files changed

+3214
-127
lines changed

specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/elastic.json

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,9 +1080,12 @@
10801080
}
10811081
],
10821082
"responses": {
1083-
"201": {
1083+
"200": {
10841084
"description": "Success"
10851085
},
1086+
"202": {
1087+
"description": "Accepted"
1088+
},
10861089
"default": {
10871090
"description": "Default error response.",
10881091
"schema": {
@@ -1091,6 +1094,9 @@
10911094
}
10921095
},
10931096
"x-ms-long-running-operation": true,
1097+
"x-ms-long-running-operation-options": {
1098+
"final-state-via": "location"
1099+
},
10941100
"x-ms-examples": {
10951101
"createAndAssociateIPFilter_Create": {
10961102
"$ref": "./examples/IPTrafficFilter_Create.json"
@@ -1141,9 +1147,12 @@
11411147
}
11421148
],
11431149
"responses": {
1144-
"201": {
1150+
"200": {
11451151
"description": "Success"
11461152
},
1153+
"202": {
1154+
"description": "Accepted"
1155+
},
11471156
"default": {
11481157
"description": "Default error response.",
11491158
"schema": {
@@ -1152,6 +1161,9 @@
11521161
}
11531162
},
11541163
"x-ms-long-running-operation": true,
1164+
"x-ms-long-running-operation-options": {
1165+
"final-state-via": "location"
1166+
},
11551167
"x-ms-examples": {
11561168
"createAndAssociatePLFilter_Create": {
11571169
"$ref": "./examples/PrivateLinkTrafficFilters_Create.json"
@@ -1191,7 +1203,7 @@
11911203
],
11921204
"responses": {
11931205
"202": {
1194-
"description": "Success"
1206+
"description": "Accepted"
11951207
},
11961208
"default": {
11971209
"description": "Default error response.",
@@ -1201,6 +1213,9 @@
12011213
}
12021214
},
12031215
"x-ms-long-running-operation": true,
1216+
"x-ms-long-running-operation-options": {
1217+
"final-state-via": "location"
1218+
},
12041219
"x-ms-examples": {
12051220
"AssociateTrafficFilter_Associate": {
12061221
"$ref": "./examples/AssociateTrafficFilter_Update.json"
@@ -1288,7 +1303,7 @@
12881303
],
12891304
"responses": {
12901305
"202": {
1291-
"description": "Success"
1306+
"description": "Accepted"
12921307
},
12931308
"default": {
12941309
"description": "Default error response.",
@@ -1298,6 +1313,9 @@
12981313
}
12991314
},
13001315
"x-ms-long-running-operation": true,
1316+
"x-ms-long-running-operation-options": {
1317+
"final-state-via": "location"
1318+
},
13011319
"x-ms-examples": {
13021320
"DetachTrafficFilter_Update": {
13031321
"$ref": "./examples/DetachTrafficFilters_Update.json"

specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/AssociateTrafficFilter_Update.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"rulesetId": "31d91b5afb6f4c2eaaf104c97b1991dd"
88
},
99
"responses": {
10-
"202": {}
10+
"202": {
11+
"headers": {
12+
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Elastic/monitor/monitorname/associateTrafficFilter?api-version=2022-07-01-preview"
13+
}
14+
}
1115
}
1216
}

specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/DetachTrafficFilters_Update.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"rulesetId": "31d91b5afb6f4c2eaaf104c97b1991dd"
88
},
99
"responses": {
10-
"202": {}
10+
"202": {
11+
"headers": {
12+
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Elastic/monitor/monitorname/createAndAssociateIPFilter?api-version=2022-07-01-preview"
13+
}
14+
}
1115
}
1216
}

specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/IPTrafficFilter_Create.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
"ips": "192.168.131.0, 192.168.132.6/22"
99
},
1010
"responses": {
11-
"201": {}
11+
"200": {},
12+
"202": {
13+
"headers": {
14+
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Elastic/monitor/monitorname/createAndAssociateIPFilter?api-version=2022-07-01-preview"
15+
}
16+
}
1217
}
1318
}

specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/Monitor_Upgrade.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
}
1010
},
1111
"responses": {
12-
"202": {}
12+
"202": {
13+
"headers": {
14+
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Elastic/monitor/monitorname/upgrade?api-version=2022-07-01-preview"
15+
}
16+
}
1317
}
1418
}

specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/Monitors_Delete.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
},
88
"responses": {
99
"200": {},
10-
"202": {},
10+
"202": {
11+
"headers": {
12+
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Elastic/monitor/monitorname?api-version=2022-07-01-preview"
13+
}
14+
},
1115
"204": {}
1216
}
1317
}

specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/PrivateLinkTrafficFilters_Create.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"privateEndpointGuid": "fdb54d3b-e85e-4d08-8958-0d2f7g523df9"
1010
},
1111
"responses": {
12-
"201": {}
12+
"200": {},
13+
"202": {
14+
"headers": {
15+
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Elastic/monitor/monitorname/createAndAssociatePLFilter?api-version=2022-07-01-preview"
16+
}
17+
}
1318
}
1419
}

specification/elastic/resource-manager/Microsoft.Elastic/preview/2022-07-01-preview/examples/TagRules_Delete.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/subid/resourceGroups/resourceGroup/providers/Microsoft.Elastic/monitor/monitorname/tagRules/tagRuleName?api-version=2022-07-01-preview"
14+
}
15+
},
1216
"204": {}
1317
}
1418
}

0 commit comments

Comments
 (0)