-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Adding Azure CLI build configuration for Quota APIs #13202
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
3a31345
1.Breaking Change - Removing duplicate autoQuotaIncreaseState from su…
rahuls-microsoft 2d30c2d
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
rahuls-microsoft d6599d1
Updating Provider name in example.
rahuls-microsoft 4b1565d
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
rahuls-microsoft 15e533d
Capacity RP Quota APIs for GA
rahuls-microsoft 8f96e78
Adding preview version to stable dir as base files.
rahuls-microsoft 8beb75c
Files from preview version, which will be removed.
rahuls-microsoft b034d7f
Updating to GA Version.
rahuls-microsoft cd7674b
Merge branch 'master' of https://github.com/rahuls-microsoft/azure-re…
rahuls-microsoft 6311684
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
rahuls-microsoft 14c272b
1. Updated reservation version tag to - Microsoft.Capacity/preview/20…
rahuls-microsoft 436af3a
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
rahuls-microsoft d77efa6
Documentation updates for put and patch request, which includes only …
rahuls-microsoft 265aa4e
Merge branch 'master' of https://github.com/rahuls-microsoft/azure-re…
rahuls-microsoft 8fcb79f
Update documenation for put.
rahuls-microsoft add00fa
Doc update.
rahuls-microsoft 53031a3
Adding -preview tag for GO sdk.
rahuls-microsoft a7963c7
Updating Go settings for output folder to be -preview.
rahuls-microsoft 8ea3dc3
Adding preview subdir for GO package.
rahuls-microsoft 69ffa31
Adding preview subdir to Go sdk path.
rahuls-microsoft 3cd5abd
Removing tag - tag: package-2020-10-25-preview
rahuls-microsoft 8f58d34
introduce a new tag to keep the go sdk package unchanged
ArcturusZhang ba279fb
Revert "introduce a new tag to keep the go sdk package unchanged"
ArcturusZhang ab2682f
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
rahuls-microsoft a0c7ca6
Adding Azure CLI readme configuration.
rahuls-microsoft e9d42c5
Updating the ReadMe configurations.
rahuls-microsoft a6dfdee
Updating readme.md
rahuls-microsoft 903c03f
Removing duplicate cli: tag.
rahuls-microsoft 6c5235b
Fixing build issues.
rahuls-microsoft bbf7bea
Removing Parameter alias.
rahuls-microsoft c6932ae
cli config changes.
rahuls-microsoft cd9c3f0
Updating the package name to reservation.
rahuls-microsoft 5ddb176
Updates - removin .az.md.
rahuls-microsoft 8d9ab59
Updating Example names to be unique for Get PUT
rahuls-microsoft 6e9e11b
Adding operations and python-sdk-output-folder.
rahuls-microsoft bb11c65
Updates.
rahuls-microsoft 4f763bd
Removing unused file.
rahuls-microsoft 60c520e
Revert "Removing unused file."
rahuls-microsoft 312e0bc
Revert "Revert "Removing unused file.""
rahuls-microsoft 6142b0c
Add reference to python readme.md file.
rahuls-microsoft 01d34bd
Merge branch 'master' into cli
rahuls-microsoft 4efa54e
Adding python readme file.
rahuls-microsoft 461f3f4
Adding Operations for test-scenario
rahuls-microsoft d3fd8b8
Adding split
rahuls-microsoft be8d817
Disabling few operation, which is not needed.
rahuls-microsoft f4f56d3
Removing split for Operation
rahuls-microsoft 5bb57ba
Disabling the reservation Operations.
rahuls-microsoft d98cbcb
Disable reservation operations.
rahuls-microsoft dd5fef9
Revert "Disable reservation operations."
rahuls-microsoft 0bb090c
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
rahuls-microsoft f08558b
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
rahuls-microsoft f525855
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
rahuls-microsoft fb18c89
Adding client-subscription-bound: false
rahuls-microsoft 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 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
This file contains 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,13 @@ | ||
# AZ reservations | ||
|
||
These settings apply only when `--az` is specified on the command line. | ||
|
||
``` yaml $(az) | ||
az: | ||
extensions: quota | ||
namespace: azure.mgmt.reservations | ||
package-name: azure-mgmt-reservations | ||
client-subscription-bound: false | ||
az-output-folder: $(azure-cli-extension-folder)/src/reservations | ||
python-sdk-output-folder: "$(az-output-folder)/azext_reservations/vendored_sdks/quota" | ||
``` | ||
This file contains 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,61 @@ | ||
## CLI | ||
|
||
These settings apply only when `--cli` is specified on the command line. | ||
|
||
``` yaml $(cli) | ||
cli: | ||
cli-name: reservations | ||
package-name: azure-mgmt-reservations | ||
namespace: azure.mgmt.reservations | ||
flatten-all: true | ||
test-scenario: | ||
- name: /Operation/get/GetOperations | ||
disabled: true | ||
- split: quota | ||
- name: /Quota/put/Quotas_Request_PutForCompute | ||
- name: /Quota/put/Quotas_Request_PutForMachineLearningServices_DedicatedResource | ||
- name: /Quota/put/Quotas_Request_PutForMachineLearningServices_LowPriorityResource | ||
- name: /Quota/get/Quotas_listUsagesForCompute | ||
- name: /Quota/get/Quotas_listUsagesMachineLearningServices | ||
- name: /Quota/get/Quotas_Request_ForCompute | ||
- name: /Quota/patch/Quotas_Request_PatchForCompute | ||
- split: quotaRequests | ||
- name: /QuotaRequestStatus/get/QuotaRequestFailed | ||
disabled: true | ||
- name: /QuotaRequestStatus/get/QuotaRequestHistory | ||
- name: /QuotaRequestStatus/get/QuotaRequestInProgress | ||
disabled: true | ||
- name: /QuotaRequestStatus/get/QuotaRequestStatus | ||
- split: exchange | ||
- name: /CalculateExchange/post/CalculateExchange | ||
disabled: true | ||
- name: /Exchange/post/Exchange | ||
disabled: true | ||
- name: /quota/get/AppliedReservationList | ||
- name: /quota/get/Catalog | ||
- split: reservations | ||
- name: /Reservation/get/GetReservation | ||
disabled: true | ||
- name: /Reservation/get/ReservationList | ||
disabled: true | ||
- name: /Reservation/get/ReservationRevisions | ||
disabled: true | ||
- name: /Reservation/patch/PatchReservation | ||
disabled: true | ||
- name: /Reservation/post/AvailableScopes | ||
disabled: true | ||
- name: /Reservation/post/Merge | ||
disabled: true | ||
- name: /Reservation/post/Split | ||
disabled: true | ||
- name: /ReservationOrder/put/Purchase | ||
disabled: true | ||
- name: /ReservationOrder/get/GetReservation | ||
disabled: true | ||
- name: /ReservationOrder/get/GetReservationWithExpandPayments | ||
disabled: true | ||
- name: /ReservationOrder/get/ReservationOrderList | ||
disabled: true | ||
- name: /ReservationOrder/post/Purchase | ||
disabled: true | ||
``` |
This file contains 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 |
---|---|---|
|
@@ -78,6 +78,7 @@ These settings apply only when `--tag=package-preview-2019-04` is specified on t | |
input-file: | ||
- Microsoft.Capacity/preview/2019-04-01/reservations.json | ||
``` | ||
|
||
### Tag: package-2018-06 | ||
|
||
These settings apply only when `--tag=package-2018-06` is specified on the command line. | ||
|
@@ -112,6 +113,7 @@ swagger-to-sdk: | |
- repo: azure-sdk-for-go | ||
- repo: azure-sdk-for-js | ||
- repo: azure-sdk-for-node | ||
- repo: azure-cli-extensions | ||
- repo: azure-resource-manager-schemas | ||
after_scripts: | ||
- node sdkauto_afterscript.js reservations/resource-manager | ||
|
@@ -133,50 +135,15 @@ csharp: | |
|
||
## 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. | ||
See configuration in [readme.python.md](./readme.python.md) | ||
|
||
``` yaml $(python) && !$(track2) | ||
python-mode: create | ||
python: | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
payload-flattening-threshold: 2 | ||
namespace: azure.mgmt.reservations | ||
package-name: azure-mgmt-reservations | ||
package-version: 0.3.2 | ||
clear-output-folder: true | ||
``` | ||
``` yaml $(python) && $(track2) | ||
python-mode: create | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
namespace: azure.mgmt.reservations | ||
package-name: azure-mgmt-reservations | ||
package-version: 0.3.2 | ||
clear-output-folder: true | ||
``` | ||
## CLI | ||
|
||
``` yaml $(python) && $(python-mode) == 'update' && !$(track2) | ||
python: | ||
no-namespace-folders: true | ||
output-folder: $(python-sdks-folder)/reservations/azure-mgmt-reservations/azure/mgmt/reservations | ||
``` | ||
``` yaml $(python) && $(python-mode) == 'create' && !$(track2) | ||
python: | ||
basic-setup-py: true | ||
output-folder: $(python-sdks-folder)/reservations/azure-mgmt-reservations | ||
``` | ||
See configuration in [readme.cli.md](./readme.cli.md) | ||
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. actually readme.az.md is for azure-cli readme.cli,md is meant to for all command line tools |
||
|
||
``` yaml $(python) && $(python-mode) == 'update' && $(track2) | ||
no-namespace-folders: true | ||
output-folder: $(python-sdks-folder)/reservations/azure-mgmt-reservations/azure/mgmt/reservations | ||
``` | ||
``` yaml $(python) && $(python-mode) == 'create' && $(track2) | ||
basic-setup-py: true | ||
output-folder: $(python-sdks-folder)/reservations/azure-mgmt-reservations | ||
``` | ||
## AZ | ||
|
||
See configuration in [readme.az.md](./readme.az.md) | ||
|
||
## Go | ||
|
||
|
46 changes: 46 additions & 0 deletions
46
specification/reservations/resource-manager/readme.python.md
This file contains 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,46 @@ | ||
## 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) && !$(track2) | ||
python-mode: create | ||
python: | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
payload-flattening-threshold: 2 | ||
namespace: azure.mgmt.reservations | ||
package-name: azure-mgmt-reservations | ||
package-version: 0.3.2 | ||
clear-output-folder: true | ||
``` | ||
``` yaml $(python) && $(track2) | ||
python-mode: create | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
namespace: azure.mgmt.reservations | ||
package-name: azure-mgmt-reservations | ||
package-version: 0.3.2 | ||
clear-output-folder: true | ||
``` | ||
|
||
``` yaml $(python) && $(python-mode) == 'update' && !$(track2) | ||
python: | ||
no-namespace-folders: true | ||
output-folder: $(python-sdks-folder)/reservations/azure-mgmt-reservations/azure/mgmt/reservations | ||
``` | ||
``` yaml $(python) && $(python-mode) == 'create' && !$(track2) | ||
python: | ||
basic-setup-py: true | ||
output-folder: $(python-sdks-folder)/reservations/azure-mgmt-reservations | ||
``` | ||
|
||
``` yaml $(python) && $(python-mode) == 'update' && $(track2) | ||
no-namespace-folders: true | ||
output-folder: $(python-sdks-folder)/reservations/azure-mgmt-reservations/azure/mgmt/reservations | ||
``` | ||
``` yaml $(python) && $(python-mode) == 'create' && $(track2) | ||
basic-setup-py: true | ||
output-folder: $(python-sdks-folder)/reservations/azure-mgmt-reservations | ||
``` |
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.
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.
based on the scenario that quota and reservation is functionally independent, I would suggest you to use multi-package https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/code-gen/configure-cli.md#multi-packages