Skip to content

Commit

Permalink
datafactory t2 readme config (#14025)
Browse files Browse the repository at this point in the history
* datafactory t2 readme config

* Update DataFlow.json

* Update DataFlow.json

* Update DataFlow.json

* Update DataFlow.json

* track2 failure

* track2 failure

* track2 failure

* Update readme.python.md

* Update readme.python.md

* Update readme.python.md

* directive in readme.md instead of eidting swagger files

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
  • Loading branch information
RAY-316 and msyyc authored May 6, 2021
1 parent 6e76538 commit 4a63ff8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 18 deletions.
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 @@ -90,7 +90,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'];
```

0 comments on commit 4a63ff8

Please sign in to comment.