Skip to content
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

[Hub Generated] Review request for Microsoft.Consumption to add version preview/2019-04-01-preview #5622

Conversation

ampravinr
Copy link
Contributor

If you are a MSFT employee you can view your work branch via this link.

Contribution checklist:

ampravinr and others added 19 commits April 11, 2019 10:57
Usage Details API Contract changes
- Usage Details model changes
- Usage details sample changes for the new model
- Usage Details download operation details
- Sample for usage details download
- Removed used oprerations and samples
- Added new samples for the query parameters
- Changed the "in" from path to query since this is optional query parameter.
Included the samples in the consumption list
- Change in samples
- changed the sample values
Changed the sample value
Upated the sample file name in consumption.json
- added the scope parameters for the samples
Scope parameter fixed in samples
Scope parameters added to the samples
added scope parameter to the samples
Scope parameter changes
Tags scope changes
Fixed date and download issues
UsageDetails_Download operation id change
@AutorestCI
Copy link

AutorestCI commented Apr 12, 2019

Automation for azure-sdk-for-python

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-python#2158

@AutorestCI
Copy link

AutorestCI commented Apr 12, 2019

Automation for azure-sdk-for-js

A 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:
Azure/azure-sdk-for-js#2667

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Apr 12, 2019

Automation for azure-sdk-for-ruby

Nothing to generate for azure-sdk-for-ruby

@AutorestCI
Copy link

AutorestCI commented Apr 12, 2019

Automation for azure-sdk-for-go

Nothing to generate for azure-sdk-for-go

adxsdknet added a commit to adxsdknet/azure-sdk-for-net that referenced this pull request Apr 12, 2019
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit
@ampravinr
Copy link
Contributor Author

ampravinr commented Apr 19, 2019 via email

defined allowed values for the metricParameter enum
Changed the download samples accordingly
@veronicagg
Copy link
Contributor

@ampravinr ok, please work with ARM team on the ARM changes, so they sign off on the PR.
Regarding CI I see python SDK for example failing to generate with this error: System.InvalidOperationException: Values specified by 'enum' mismatch those specified by 'x-ms-enum' (name: 'metrictype'): 'daily', 'monthly' vs 'usage', 'actualcost', 'amortizedcost'. Please take a look.

Fixed the enum values for metric types
changed the sample to match the enum case
@ampravinr
Copy link
Contributor Author

@ampravinr ok, please work with ARM team on the ARM changes, so they sign off on the PR.
Regarding CI I see python SDK for example failing to generate with this error: System.InvalidOperationException: Values specified by 'enum' mismatch those specified by 'x-ms-enum' (name: 'metrictype'): 'daily', 'monthly' vs 'usage', 'actualcost', 'amortizedcost'. Please take a look.

@veronicagg - thanks for pointing me the error. I have fixed it. Please review and let me know if any issues.

adxsdknet added a commit to adxsdknet/azure-sdk-for-net that referenced this pull request Apr 25, 2019
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit
@veronicagg
Copy link
Contributor

I'm good from my side, approval pending on ARM team's signoff. Thanks!

Removed additional property for OData-EntityId.
Removed Odata-EntityId from samples
Based on the Doc Preview generated we want to change how the name appears. So changing the operation name for downloads.
adxsdknet added a commit to adxsdknet/azure-sdk-for-net that referenced this pull request Apr 26, 2019
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit
@ms-premp
Copy link
Contributor

@ravbhatnagar we are waiting on ARM Feedback on this PR. Please have a look. Our public announcements for this preview version is at present waiting on this swagger changes.

@ravbhatnagar
Copy link
Contributor

Two concerns around this were discussed - 1. RBAC 2. Activity Log + Alert story. With this kind of modeling of action over collection. ARM will not parse the authorization action correctly as the instance segment is missing. hence what gets put in activity log will be wrong. And similarly RBAC will not be over the action which is what this API is. But since this is tenant level, RP handles its own RBAC. And since its tenant level, such logs dont get shown in activity log today. So these concerns are mitigated. ARM should look at this pattern and see if it makes sense to support it.
The RP has agreed that this approval is for preview only. We will have another discussion for the GA story.
Signing off from ARM side.

@ravbhatnagar ravbhatnagar added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels May 2, 2019
@ampravinr
Copy link
Contributor Author

@veronicagg - we have the Arm sign off. Could you please merge these changes.

@ampravinr
Copy link
Contributor Author

ampravinr commented May 2, 2019 via email

dsgouda pushed a commit to Azure/azure-sdk-for-net that referenced this pull request May 2, 2019
* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit
mentat9 pushed a commit to mentat9/azure-sdk-for-net that referenced this pull request Jun 10, 2019
* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Consumption'
REST Spec PR 'Azure/azure-rest-api-specs#5622'
REST Spec PR Author 'ampravinr'
REST Spec PR Last commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review
Projects
None yet
Development

Successfully merging this pull request may close these issues.