-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating readme for MySQL and PostgreSQL to include new flexible serv…
…er namespace (#10710) * Updating readme files to include multi api capability and new namespace * Removing minor addition to cli.md * Revert Csharp changes since multiapi isn't used * Updating PythonSDK namespaces * Removing unnecessary batchapiscript from Python.md * Removing unnecessary package tags Co-authored-by: George Christoglou <gechris@microsoft.com>
- Loading branch information
Showing
8 changed files
with
194 additions
and
52 deletions.
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 | ||
``` |