-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Move ManagementGroups out of Resources to a separate folder #2469
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
Changes from 10 commits
50ef23a
457f726
3fb5b09
733ad67
a21fc25
c0ef0b8
ce5b89e
8c2f6ae
16f4982
e731940
5bc0b51
6d8ea21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,171 @@ | ||
| # Management Groups | ||
|
|
||
| > see https://aka.ms/autorest | ||
|
|
||
| This is the AutoRest configuration file for Management Groups. | ||
|
|
||
|
|
||
|
|
||
| --- | ||
| ## Getting Started | ||
| To build the SDK for Management Groups, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: | ||
|
|
||
| > `autorest` | ||
|
|
||
| To see additional help and options, run: | ||
|
|
||
| > `autorest --help` | ||
| --- | ||
|
|
||
| ## Configuration | ||
|
|
||
| ### Basic Information | ||
| These are the global settings for the API. | ||
|
|
||
| ``` yaml | ||
| openapi-type: arm | ||
| tag: package-2017-11 | ||
| ``` | ||
|
|
||
| ### Tag: package-2018-01 | ||
| These settings apply only when `--tag=package-2018-01` is specified on the command line. | ||
|
|
||
| ``` yaml $(tag) == 'package-2018-01' | ||
| input-file: | ||
| - Microsoft.Management/preview/2018-01-01-preview/management.json | ||
| ``` | ||
|
|
||
| ### Tag: package-2017-11 | ||
| These settings apply only when `--tag=package-2017-11` is specified on the command line. | ||
|
|
||
| ``` yaml $(tag) == 'package-2017-11' | ||
| input-file: | ||
| - Microsoft.Management/preview/2017-11-01-preview/management.json | ||
| ``` | ||
|
|
||
| ### Tag: package-2017-08 | ||
| These settings apply only when `--tag=package-2017-08` is specified on the command line. | ||
|
|
||
| ``` yaml $(tag) == 'package-2017-08' | ||
| input-file: | ||
| - Microsoft.Management/preview/2017-08-31-preview/management.json | ||
| ``` | ||
|
|
||
| --- | ||
| # Code Generation | ||
|
|
||
|
|
||
| ## Swagger to SDK | ||
|
|
||
| This section describes what SDK should be generated by the automatic system. | ||
| This is not used by Autorest itself. | ||
|
|
||
| ``` yaml $(swagger-to-sdk) | ||
| swagger-to-sdk: | ||
| - repo: azure-sdk-for-python | ||
| - repo: azure-libraries-for-java | ||
| - repo: azure-sdk-for-go | ||
| ``` | ||
|
|
||
| ## C# | ||
|
|
||
| These settings apply only when `--csharp` is specified on the command line. | ||
| Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`. | ||
|
|
||
| ``` yaml $(csharp) | ||
| csharp: | ||
| azure-arm: true | ||
| license-header: MICROSOFT_MIT_NO_VERSION | ||
| namespace: Microsoft.Azure.Management.ManagementGroups | ||
| output-folder: $(csharp-sdks-folder)/ManagementGroups/Management.ManagementGroups/Generated | ||
| clear-output-folder: true | ||
| ``` | ||
|
|
||
| ## Python | ||
|
|
||
| These settings apply only when `--python` is specified on the command line. | ||
| Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`. | ||
| Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. | ||
|
|
||
| ``` yaml $(python) | ||
| python-mode: create | ||
| python: | ||
| azure-arm: true | ||
| license-header: MICROSOFT_MIT_NO_VERSION | ||
| payload-flattening-threshold: 1 | ||
| namespace: azure.mgmt.managementgroups | ||
| package-name: azure-mgmt-managementgroups | ||
| clear-output-folder: true | ||
| ``` | ||
| ``` yaml $(python) && $(python-mode) == 'update' | ||
| python: | ||
| no-namespace-folders: true | ||
| output-folder: $(python-sdks-folder)/azure-mgmt-managementgroups/azure/mgmt/managementgroups | ||
| ``` | ||
| ``` yaml $(python) && $(python-mode) == 'create' | ||
| python: | ||
| basic-setup-py: true | ||
| output-folder: $(python-sdks-folder)/azure-mgmt-managementgroups | ||
| ``` | ||
|
|
||
| ## Go | ||
|
|
||
| These settings apply only when `--go` is specified on the command line. | ||
|
|
||
| ``` yaml $(go) | ||
| go: | ||
| license-header: MICROSOFT_APACHE_NO_VERSION | ||
| clear-output-folder: true | ||
| namespace: managementgroups | ||
| ``` | ||
|
|
||
| ### Go multi-api | ||
|
|
||
| ``` yaml $(go) && $(multiapi) | ||
| batch: | ||
| - tag: package-2018-01 | ||
| - tag: package-2017-11 | ||
| - tag: package-2017-08 | ||
| ``` | ||
|
|
||
| ### Tag: package-2018-01 and go | ||
|
|
||
| These settings apply only when `--tag=package-2018-01 --go` is specified on the command line. | ||
| Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`. | ||
|
|
||
| ``` yaml $(tag)=='package-2018-01' && $(go) | ||
| output-folder: $(go-sdk-folder)/services/managementgroups/mgmt/2018-01-01-preview/managementgroups | ||
| ``` | ||
|
|
||
| ### Tag: package-2017-11 and go | ||
|
|
||
| These settings apply only when `--tag=package-2017-11 --go` is specified on the command line. | ||
| Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`. | ||
|
|
||
| ``` yaml $(tag)=='package-2017-11' && $(go) | ||
| output-folder: $(go-sdk-folder)/services/managementgroups/mgmt/2017-11-01-preview/managementgroups | ||
| ``` | ||
|
|
||
| ### Tag: package-2017-08 and go | ||
|
|
||
| These settings apply only when `--tag=package-2017-08 --go` is specified on the command line. | ||
| Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`. | ||
|
|
||
| ``` yaml $(tag)=='package-2017-08' && $(go) | ||
| output-folder: $(go-sdk-folder)/services/managementgroups/mgmt/2017-08-31-preview/managementgroups | ||
|
Member
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. The Go SDK has already shipped these clients to the former locations, as seen here: Seeing as this would cause a breaking change for us, I'd like to leave the
Contributor
Author
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. Done. However, I can keep the new paths for the later api versions right? Thanks! |
||
| ``` | ||
|
|
||
| ## Java | ||
|
|
||
| These settings apply only when `--java` is specified on the command line. | ||
| Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`. | ||
|
|
||
| ``` yaml $(java) | ||
| java: | ||
| azure-arm: true | ||
| fluent: true | ||
| namespace: com.microsoft.azure.management.managementgroups | ||
| license-header: MICROSOFT_MIT_NO_CODEGEN | ||
| payload-flattening-threshold: 1 | ||
| output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-managementgroups | ||
| ``` | ||
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.
Sorry I wasn't specific enough, please make this change to all of the go packages that you're modifying. :)
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.
Done. Thanks