Skip to content
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

datafactory t2 readme config #14025

Merged
merged 12 commits into from
May 6, 2021
4 changes: 3 additions & 1 deletion specification/datafactory/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
Expand All @@ -92,7 +92,9 @@ csharp:
output-folder: $(csharp-sdks-folder)/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated
clear-output-folder: true
```
## Python

See configuration in [readme.python.md](./readme.python.md)

## Go

Expand Down
64 changes: 47 additions & 17 deletions specification/datafactory/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,54 @@ 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)
``` yaml $(python) && $(track2)
python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.datafactory
package-name: azure-mgmt-datafactory
package-version: 1.0.0
clear-output-folder: true
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.datafactory
package-name: azure-mgmt-datafactory
package-version: 1.0.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/datafactory/azure-mgmt-datafactory
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/datafactory/azure-mgmt-datafactory
```

``` yaml $(python) && $(track2)
modelerfour:
lenient-model-deduplication: true
directive:
- from: swagger-document
where: $.definitions.JsonFormatFilePattern
transform: >
$['type'] = 'string';
- from: swagger-document
where: $.definitions.CompressionLevel
transform: >
$['type'] = 'string';
- from: swagger-document
where: $.definitions.DynamicsLinkedServiceTypeProperties.properties.servicePrincipalCredentialType
transform: >
$['type'] = 'string';
- from: swagger-document
where: $.definitions.ScriptAction.properties.roles
transform: >
$['type'] = 'string';
- from: swagger-document
where: $.definitions.DataFlow
transform: >
$['required'] = ['type'];
- from: swagger-document
where: $.definitions.ManagedPrivateEndpoint
transform: >
$['required'] = ['type'];
- from: swagger-document
where: $.definitions.ManagedVirtualNetwork
transform: >
$['required'] = ['type'];
```