Commit bb28865
UsageV3 S360 Updates (Azure#22637)
* UsageV3 S360 Updates
Corrected three items that were flagging for swagger compliance in S360.
Added definitions for 202 responses and added 'error' as a property to definition for 'ErrorResponse'.
* Removed 202 Response for Ratecard
Removed the 202 response for Ratecard
Ratecard is a different service that is not getting flagged for in S360 and does not support 202 response code.
* Undo ErrorMessage Properties
Swagger will not let ErrorResponse contain an error property with subproperties.
Reverting ErrorResponse to contain "code" and "message" as its properties.
* Ran Prettier
Ran prettier in order to address Pull Request check.
* Added xm-ms-long-running-operation Property
Added xm-ms-long-running-operation Property to the UsageAggregates_List get call in order to justify the addition of the 202 response.
* Added x-ms-long-running-operation-options
Added x-ms-long-running-operation-options.
Adding a 202 response requires that these options be set.
* Prettier Run
Reran prettier after the last commit to correct formatting issues.
* Added x-ms-example for GetUsageAggregates_List
Added x-ms-example for GetUsageAggregates_List. PR check was flagging because there was no example present. Will create the referenced json file in the next commit.
* Added example file for UsageAggregates List
There was previously no example for UsageAggregates List, but there was one for RateCard.
The following documentation was used to generate this example file.
https://learn.microsoft.com/en-us/previous-versions/azure/reference/mt219001(v=azure.100)?redirectedfrom=MSDN#sample-responses
* Corrected Formatting for UsageAggregatesList Example
Value Array was missing brackets for its element.
* Corrected Example File Name
Corrected the file name to exclude an underscore.
* Added Location Header to 202 Response
Added location header to the 202 response.
* Corrected Location to use double quotes
Corrected formatting issue with the previous commit that added a location header to the 202 response.
* Updated Example Fields
Updated infofields to match the example given in the api documentation.
* Added 202 Response
Added a 202 response to the example file.
* GetUsageAggregatesList.json Prettier Update
Reran Prettier script on GetUsageAggregatesList.json
* Updated case 'Daily' and Example 202 Response
Updated case 'Daily' and Example 202 Response. These changes were made previously, but lost at some point.
* Removed Error from 202 Body
Error property not allowed in the response.
* Removed InfoFields properties.
Removed all subproperties for InfoFields. Our api no longer returns any properties for InfoFields.
* Removed Infofields properties.
Removed Infofields properties. Our api no longer returns any of these properties in a 200 response.
* Removed InfoFields Properties
Removed Property from InfoFields. This should have been removed along with the other properties in the previous commit.
* Removed LongRunning operation
Removed longrunning operation from UsageAggregates_List.
* Removed Location Header
Location header no longer needed.1 parent 14bf0f3 commit bb28865
File tree
2 files changed
+53
-6
lines changed- specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview
- examples
2 files changed
+53
-6
lines changedLines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
| |||
150 | 161 | | |
151 | 162 | | |
152 | 163 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
| |||
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments