-
Notifications
You must be signed in to change notification settings - Fork 5.5k
UsageV3 S360 Updates #22637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
xiaoxuqi-ms
merged 23 commits into
main
from
JoeBeach-msft-commerce-Microsoft.Commerce-2015-06-01-preview
Mar 3, 2023
Merged
UsageV3 S360 Updates #22637
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
aee0c7f
UsageV3 S360 Updates
JoeBeach-msft ec6e963
Removed 202 Response for Ratecard
JoeBeach-msft db07b08
Undo ErrorMessage Properties
JoeBeach-msft 84ba8cf
Ran Prettier
JoeBeach-msft 3100822
Added xm-ms-long-running-operation Property
JoeBeach-msft d06261e
Added x-ms-long-running-operation-options
JoeBeach-msft 965a325
Prettier Run
JoeBeach-msft fe55db3
Added x-ms-example for GetUsageAggregates_List
JoeBeach-msft 8adaf21
Added example file for UsageAggregates List
JoeBeach-msft 6d3a7ac
Corrected Formatting for UsageAggregatesList Example
JoeBeach-msft e2c79ac
Corrected Example File Name
JoeBeach-msft 9d55593
Added Location Header to 202 Response
JoeBeach-msft 370ac6a
Corrected Location to use double quotes
JoeBeach-msft 32c5ae1
Updated Example Fields
JoeBeach-msft e3be735
Added 202 Response
JoeBeach-msft 443f9df
GetUsageAggregatesList.json Prettier Update
JoeBeach-msft ebbcd6f
Updated case 'Daily' and Example 202 Response
JoeBeach-msft 2252fc6
Removed Error from 202 Body
JoeBeach-msft 09e8436
Removed InfoFields properties.
JoeBeach-msft 00f2b16
Removed Infofields properties.
JoeBeach-msft 95bf03e
Removed InfoFields Properties
JoeBeach-msft 01250ea
Removed LongRunning operation
JoeBeach-msft c80b871
Removed Location Header
JoeBeach-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,16 @@ | |
"externalDocs": { | ||
"url": "https://docs.microsoft.com/rest/api/commerce/usageaggregates" | ||
}, | ||
"x-ms-examples": { | ||
"GetUsageAggregatesList": { | ||
"$ref": "./examples/GetUsageAggregatesList.json" | ||
} | ||
}, | ||
"x-ms-long-running-operation": true, | ||
"x-ms-long-running-operation-options": { | ||
"final-state-via": "location", | ||
"final-state-schema": "#/definitions/UsageAggregationListResult" | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "reportedStartTime", | ||
|
@@ -88,6 +98,17 @@ | |
"$ref": "#/definitions/UsageAggregationListResult" | ||
} | ||
}, | ||
"202": { | ||
"description": "Response indicating that a request has been accepted for processing. However, the processing has not been completed.", | ||
JoeBeach-msft marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"headers": { | ||
"Location": { | ||
JoeBeach-msft marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"type": "string" | ||
} | ||
}, | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This 202 is wrong. Why 202 returns ErrorResponse? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And what 202 do for a GET (and it is not LRO)? |
||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
|
@@ -150,12 +171,6 @@ | |
}, | ||
"definitions": { | ||
"InfoField": { | ||
"properties": { | ||
"project": { | ||
"type": "string", | ||
"description": "Identifies the name of the instance provisioned by the user." | ||
} | ||
}, | ||
"description": "Key-value pairs of instance details in the legacy format." | ||
}, | ||
"UsageSample": { | ||
|
42 changes: 42 additions & 0 deletions
42
...anager/Microsoft.Commerce/preview/2015-06-01-preview/examples/GetUsageAggregatesList.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"title": "Get UsageAggregatesList", | ||
"parameters": { | ||
"subscriptionId": "f68815e6-3c41-45ef-bbd8-5f83303c396b", | ||
"api-version": "2015-06-01-preview", | ||
"reportedStartTime": "2014-05-01T00:00:00+00:00", | ||
"reportedEndTime": "2015-06-01T00:00:00+00:00", | ||
"aggregationGranularity": "Daily", | ||
"showDetails": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/f68815e6-3c41-45ef-bbd8-5f83303c396b/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20140501_0000", | ||
"name": "Daily_BRSDT_20140501_0000", | ||
"type": "Microsoft.Commerce/UsageAggregate", | ||
"properties": { | ||
"subscriptionId": "f68815e6-3c41-45ef-bbd8-5f83303c396b", | ||
"usageStartTime": "2015-03-03T00:00:00+00:00", | ||
"usageEndTime": "2015-03-04T00:00:00+00:00", | ||
"meterName": "Standard IO – Page Blob/Disk (GB)", | ||
"meterCategory": "Storage", | ||
"meterSubCategory": "Geo Redundant", | ||
"unit": "GB", | ||
"meterId": "0e9d0c9b-ab6d-4312-9c7e-3794e22af9c4", | ||
"infoFields": {}, | ||
"quantity": 0.057865 | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"code": "aaaaaaaaaaaaaaaaaaaaaa", | ||
"message": "aaaaaaaaaaaaaaaaaaaa" | ||
} | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.