-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Added schema spec for cost allocation tags #2742
Conversation
Added Tags filter for budgets and updated the api version
Updated comments
Incorporated review comments
Incorporated review comments
Incorporated review comment
Added Tags filter and grouping for UsageDetails
Added reservation recommendations and tags
Incorporated review comments
Incorporated review comments
Removed unwanted space
Removed extra whitespace
Added schema spec for cost allocation tags
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-libraries-for-javaNothing to generate for azure-libraries-for-java |
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-goA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
"in": "path", | ||
"description": "Azure Billing Account ID.", | ||
"required": true, | ||
"type": "string" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This causes a breaking change in the sdk. Refer to this comment.
This parameter should have "x-ms-parameter-location": "method"
extension applied.
Whoever merged the PR last time did not catch that grainParameter defined below also has missing"x-ms-parameter-location": "method"
extension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been caught when this PR was sent 9 days ago.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marstr - Please take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added "x-ms-parameter-location": "method" for grainParameter.
billing accounts parameter requires some other changes from our end. Will update that shortly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. But please make sure to add "x-ms-parameter-location": "method"
for "billingAccountIdParameter"
as well.
Updated Get Operation
Incorporated review comments
@amarzavery Could you confirm that the issue is fixed? |
@ravbhatnagar new operations. |
@sergey-shandar - The issue has been fixed for grainParameter but not for "billingAccountIdParameter". That should also have |
@amarzavery thank you. @asarkar84 could you fix |
Review comments incorporated
billingAccountIdParameter is fixed as well. |
Updated path
"id": "providers/Microsoft.CostManagement/billingAccounts/{billingaccount-id}/providers/Microsoft.Consumption/costAllocationTags/costAllocationTags1", | ||
"name": "costAllocationTags1", | ||
"type": "Microsoft.Consumption/costAllocationTags", | ||
"eTag": "\"1d34d012214157f\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asarkar84 - As per the definition of "eTag" in the spec, it is a string.
What is the reason behind escaping the quotes "\"1d34d012214157f\""
? Wouldn't this "1d34d012214157f"
be sufficient? Why is the service sending a string with quotes in it ?
/cc @sergey-shandar - FYI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how azure services or apis do eTag: " For example, I checked the CosmosDB data explorer which is publicly available. I found _eTag property exposed there and the service returns it with quotes. Storage also has quotes in their eTag. Since 2 double quotes are not accepted in json we need to escape one which is inside the value.
PFB the CosmosDB example for reference:
_etag": ""00000e3a-0000-0000-0000-59c94cd20000"",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amarzavery Just refer any public API for reference, eTag will have quote. Escape char is used as per json standard since it will not accept 2 quotes like this ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the explanation. That makes sense.
@amarzavery @sergey-shandar Just wanted to know for my own understanding, what is the use of this: "x-ms-parameter-location": "method" why this is not required for apiVersionParameter and subscriptionIdParameter? It will be good for me to know this in future. |
@asarkar8 - You can find detailed explanation about the extension |
I appreciate! This is helpful. |
The path has been finalized at our end. Please resume the review and merge the PR if it looks good. |
Signing off from ARM side. |
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-version
in the path should match theapi-version
in the spec).Quality of Swagger