Skip to content

Commit

Permalink
fixed the Linter Validation Error ( LRO_RESPONSE_HEADER ) for Microso…
Browse files Browse the repository at this point in the history
…ft.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
  • Loading branch information
harsh007kumar authored and aviyerMSFT committed Mar 22, 2023
1 parent a057996 commit 5e93aa4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
},
"responses": {
"200": {},
"202": {},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Logz/monitor/monitorname?api-version=2020-10-01"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
},
"responses": {
"200": {},
"202": {},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Logz/monitor/monitorname/accounts/subaccountname?api-version=2020-10-01"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@
],
"summary": "Delete a monitor resource. This delete operation can take upto 10 minutes to complete.",
"operationId": "Monitors_Delete",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"produces": [
"application/json"
],
Expand Down Expand Up @@ -406,10 +410,6 @@
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"Monitors_Delete": {
"$ref": "./examples/Monitors_Delete.json"
Expand Down Expand Up @@ -968,6 +968,10 @@
],
"summary": "Delete a sub account resource. This delete operation can take upto 10 minutes to complete.",
"operationId": "SubAccount_Delete",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"produces": [
"application/json"
],
Expand Down Expand Up @@ -1011,10 +1015,6 @@
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"SubAccount_Delete": {
"$ref": "./examples/SubAccount_Delete.json"
Expand Down

0 comments on commit 5e93aa4

Please sign in to comment.