-
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
Updating readme for MySQL and PostgreSQL to include new flexible server namespace #10710
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c4dda8d
Updating readme files to include multi api capability and new namespace
mjain2 697058c
Removing minor addition to cli.md
mjain2 ed410cf
Revert Csharp changes since multiapi isn't used
gechris 359bd37
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
mjain2 ce7aeae
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
mjain2 1944aca
Updating PythonSDK namespaces
mjain2 1ac45f3
Removing unnecessary batchapiscript from Python.md
mjain2 1b5edee
Removing unnecessary package tags
mjain2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## AZ | ||
|
||
These settings apply only when `--az` is specified on the command line. | ||
|
||
``` yaml $(az) | ||
az: | ||
extensions: mysql | ||
namespace: azure.mgmt.mysql | ||
package-name: azure-mgmt-mysql | ||
az-output-folder: $(azure-cli-extension-folder)/src/mysql | ||
python-sdk-output-folder: "$(az-output-folder)/azext_mysql/vendored_sdks/mysql" | ||
# add additinal configuration here specific for Azure CLI | ||
# refer to the faq.md for more details | ||
``` |
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
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,67 @@ | ||
## 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 !$(track2) | ||
python: | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
payload-flattening-threshold: 2 | ||
package-name: azure-mgmt-rdbms | ||
clear-output-folder: true | ||
no-namespace-folders: true | ||
``` | ||
|
||
These settings apply only when `--track2` is specified on the command line. | ||
|
||
``` yaml $(track2) | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
package-name: azure-mgmt-rdbms | ||
no-namespace-folders: true | ||
``` | ||
|
||
### Python multi-api | ||
|
||
Generate all API versions currently shipped for this package | ||
|
||
```yaml !$(track2) | ||
batch: | ||
- tag: package-2020-01-01 | ||
- tag: package-2020-07-01-privatepreview | ||
``` | ||
|
||
```yaml $(track2) | ||
clear-output-folder: true | ||
batch: | ||
- tag: package-2020-01-01 | ||
- tag: package-2020-07-01-privatepreview | ||
``` | ||
|
||
### Tag: package-2020-01-01 and python | ||
|
||
These settings apply only when `--tag=package-2020-01-01 --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>`. | ||
|
||
``` yaml $(tag) == 'package-2020-01-01' && $(python) | ||
namespace: azure.mgmt.rdbms.mysql | ||
output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql | ||
python: | ||
namespace: azure.mgmt.rdbms.mysql | ||
output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql | ||
``` | ||
|
||
### Tag: package-2020-07-01-privatepreview and python | ||
|
||
These settings apply only when `--tag=package-2020-07-01-privatepreview --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>`. | ||
|
||
``` yaml $(tag) == 'package-2020-07-01-privatepreview' && $(python) | ||
namespace: azure.mgmt.rdbms.mysql_flexibleservers | ||
output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers | ||
python: | ||
namespace: azure.mgmt.rdbms.mysql_flexibleservers | ||
output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers | ||
``` |
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,14 @@ | ||
## AZ | ||
|
||
These settings apply only when `--az` is specified on the command line. | ||
|
||
``` yaml $(az) | ||
az: | ||
extensions: postgresql | ||
namespace: azure.mgmt.postgresql | ||
package-name: azure-mgmt-postgresql | ||
az-output-folder: $(azure-cli-extension-folder)/src/postgresql | ||
python-sdk-output-folder: "$(az-output-folder)/azext_postgresql/vendored_sdks/postgresql" | ||
# add additinal configuration here specific for Azure CLI | ||
# refer to the faq.md for more details | ||
``` |
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
67 changes: 67 additions & 0 deletions
67
specification/postgresql/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,67 @@ | ||
## 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 !$(track2) | ||
python: | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
payload-flattening-threshold: 2 | ||
package-name: azure-mgmt-rdbms | ||
clear-output-folder: true | ||
no-namespace-folders: true | ||
``` | ||
|
||
These settings apply only when `--track2` is specified on the command line. | ||
|
||
``` yaml $(track2) | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
package-name: azure-mgmt-rdbms | ||
no-namespace-folders: true | ||
``` | ||
|
||
### Python multi-api | ||
|
||
Generate all API versions currently shipped for this package | ||
|
||
```yaml !$(track2) | ||
batch: | ||
- tag: package-2020-01-01 | ||
- tag: package-2020-02-14-privatepreview | ||
``` | ||
|
||
```yaml $(track2) | ||
clear-output-folder: true | ||
batch: | ||
- tag: package-2020-01-01 | ||
- tag: package-2020-02-14-privatepreview | ||
``` | ||
|
||
### Tag: package-2020-01-01 and python | ||
|
||
These settings apply only when `--tag=package-2020-01-01 --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>`. | ||
|
||
``` yaml $(tag) == 'package-2020-01-01' && $(python) | ||
namespace: azure.mgmt.rdbms.postgresql | ||
output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql | ||
python: | ||
namespace: azure.mgmt.rdbms.postgresql | ||
output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql | ||
``` | ||
|
||
### Tag: package-2020-02-14-privatepreview and python | ||
|
||
These settings apply only when `--tag=package-2020-02-14-privatepreview --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>`. | ||
|
||
``` yaml $(tag) == 'package-2020-02-14-privatepreview' && $(python) | ||
namespace: azure.mgmt.rdbms.postgresql_flexibleservers | ||
output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers | ||
python: | ||
namespace: azure.mgmt.rdbms.postgresql_flexibleservers | ||
output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers | ||
``` |
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.
I am not quite sure if we could add this new variable here... could we just hard code this rpname in? like this: