-
Notifications
You must be signed in to change notification settings - Fork 5.6k
specs changes for azure databox ga #3885
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
Conversation
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-rubyThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-javaEncountered a Subprocess error: (azure-sdk-for-java)
Command: bundle install && rake arm:regen_all_profiles['azure_mgmt_databox'] Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Could not locate Gemfile |
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-goThe initial PR has been merged into your service PR: |
|
Can one of the admins verify this patch? |
anuchandy
left a comment
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.
in general modelAsString:false has extensibility constrain, i.e. if service introduce a new value for the enum in the same api-version then SDKs can break. If we are not anticipating any new values in the current api-version then we are good here otherwise keep modelAsString:false. (for the discriminator specific enums you can keep modelAsString:false).
specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/databox.json
Show resolved
Hide resolved
specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/databox.json
Show resolved
Hide resolved
specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/databox.json
Show resolved
Hide resolved
specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/databox.json
Outdated
Show resolved
Hide resolved
specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/databox.json
Outdated
Show resolved
Hide resolved
specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/databox.json
Show resolved
Hide resolved
|
@ravbhatnagar please take a look, this is preview feature additions. Also need your input on linked access refer this. |
|
@sojain between you will need to update your readme file to have tags, like below: DataBoxThis is the AutoRest configuration file for DataBox. Getting StartedTo build the SDK for DataBox, simply Install AutoRest and in this folder, run:
To see additional help and options, run:
ConfigurationBasic InformationThese are the global settings for the DataBox API. openapi-type: arm
tag: package-2018-01Tag: package-2018-01These settings apply only when input-file:
- Microsoft.DataBox\preview\2018-01-01\databox.jsonSuppressiondirective:
- suppress:
- R2016 #to suppress (PatchBodyParametersSchema/R2016/RPCViolation)
- R2062 #to suppress (XmsResourceInPutResponse/R2062/RPCViolation)Code GenerationSwagger to SDKThis section describes what SDK should be generated by the automatic system. swagger-to-sdk:
- repo: azure-sdk-for-go
- repo: azure-sdk-for-nodeC#These settings apply only when csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.DataBox
output-folder: $(csharp-sdks-folder)/DataBox/Management.DataBox/Generated
clear-output-folder: trueGoThese settings apply only when go:
license-header: MICROSOFT_APACHE_NO_VERSION
namespace: databox
clear-output-folder: trueGo multi-apibatch:
- tag: package-2018-01Tag: package-2018-01 and goPlease also specify output-folder: $(go-sdk-folder)/services/preview/databox/mgmt/2018-01-01/databoxJavaThese settings apply only when java:
azure-arm: true
fluent: true
namespace: com.microsoft.azure.management.databox
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/databoxJava multi-apibatch:
- tag: package-2018-01Tag: package-2018-05 and javaThese settings apply only when java:
namespace: com.microsoft.azure.management.databox.v2018_01_01
output-folder: $(azure-libraries-for-java-folder)/databox/resource-manager/v2018_01_01
regenerate-manager: true
generate-interface: true |
specification/databox/resource-manager/Microsoft.DataBox/preview/2018-01-01/databox.json
Show resolved
Hide resolved
KrisBash
left a comment
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.
Even though this is a preview version, these changes need to correspond to a new API version to avoid breaking customers. Some of these deleted POST apis are actively being used, and a deprecation plan is advised.
1) Removing unnecessary fields 2) Correctly populating modelasstring as modelasextensible 3) adding descriptions for enum
|
@anuchandy , i have taken most of the comments and also the readme update, however post that build is not working, can you help me in finding the root cause Looks like there was a space issue, fixed it |
2) Moving to stable folder
|
@sojain I've created readme file for databox here https://raw.githubusercontent.com/anuchandy/sample-readme/master/readme.md which includes settings for all languages. Can you try this? |
|
@anuchandy , thanks for sharing this. This failed with It works if I remove bundle command, any suggestions. Also just fo rmy knowledge did you some tool to generate the readme.md |
|
@lmazuel the readme's swagger-to-sdk section looks like below: swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-node
- repo: azure-sdk-for-go
- repo: azure-sdk-for-ruby
- repo: azure-sdk-for-java
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_databox']The command Talked to @sarangan12 about this, he mentioned that this command shouldn't be run as a root user. Can you take a look and help here? |
|
@sojain i manually author the readme, it's not generated. |
|
@anuchandy The error is expected. It is not because of the root user. The azure_mgmt_databox is a new gem which does not have a skeleton structure. So, it is failing. You can ignore this error |
|
thanks @anuchandy for all the help, who can help me in closing this pull request given I have arm signoff |
|
@sojain - is this api-version deployed to at least one production region? if yes, we're good to merge. let me know. |
|
@anuchandy yes api version is deployed to all regions |
|
@anuchandy, sorry to bother, but can you please help in completing this pull request, we have GA at ignite on 24th and hence the urgency |
Automation for azure-sdk-for-jsNothing to generate for azure-sdk-for-js |
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-versionin the path should match theapi-versionin the spec).Quality of Swagger
Currently raised against preview, once signed off will move it to stable