Skip to content

Commit 5e93aa4

Browse files
harsh007kumaraviyerMSFT
authored andcommitted
fixed the Linter Validation Error ( LRO_RESPONSE_HEADER ) for Microsoft.Logz (Liftr-Logz) (Azure#22737)
* fixed the Linter Validation Error ( LRO_RESPONSE_HEADER ) for Microsoft.Logz * added location in header in status code 202 to fix LRO_RESPONSE_CODE * added location in header in status code 202 for SubAccounts-Delete operation to fix LRO_RESPONSE_CODE
1 parent a057996 commit 5e93aa4

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

specification/logz/resource-manager/Microsoft.Logz/stable/2020-10-01/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.Logz/monitor/monitorname?api-version=2020-10-01"
13+
}
14+
},
1115
"204": {}
1216
}
1317
}

specification/logz/resource-manager/Microsoft.Logz/stable/2020-10-01/examples/SubAccount_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.Logz/monitor/monitorname/accounts/subaccountname?api-version=2020-10-01"
14+
}
15+
},
1216
"204": {}
1317
}
1418
}

specification/logz/resource-manager/Microsoft.Logz/stable/2020-10-01/logz.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,10 @@
366366
],
367367
"summary": "Delete a monitor resource. This delete operation can take upto 10 minutes to complete.",
368368
"operationId": "Monitors_Delete",
369+
"x-ms-long-running-operation": true,
370+
"x-ms-long-running-operation-options": {
371+
"final-state-via": "location"
372+
},
369373
"produces": [
370374
"application/json"
371375
],
@@ -406,10 +410,6 @@
406410
}
407411
}
408412
},
409-
"x-ms-long-running-operation": true,
410-
"x-ms-long-running-operation-options": {
411-
"final-state-via": "location"
412-
},
413413
"x-ms-examples": {
414414
"Monitors_Delete": {
415415
"$ref": "./examples/Monitors_Delete.json"
@@ -968,6 +968,10 @@
968968
],
969969
"summary": "Delete a sub account resource. This delete operation can take upto 10 minutes to complete.",
970970
"operationId": "SubAccount_Delete",
971+
"x-ms-long-running-operation": true,
972+
"x-ms-long-running-operation-options": {
973+
"final-state-via": "location"
974+
},
971975
"produces": [
972976
"application/json"
973977
],
@@ -1011,10 +1015,6 @@
10111015
}
10121016
}
10131017
},
1014-
"x-ms-long-running-operation": true,
1015-
"x-ms-long-running-operation-options": {
1016-
"final-state-via": "location"
1017-
},
10181018
"x-ms-examples": {
10191019
"SubAccount_Delete": {
10201020
"$ref": "./examples/SubAccount_Delete.json"

0 commit comments

Comments
 (0)