Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions specification/cosmos-db/data-plane/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,29 +203,7 @@ 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>`.

``` yaml $(python)
python-mode: create
python:
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.tables
package-name: azure-tables
clear-output-folder: true
no-namespace-folders: true
```

### Tag: package-2019-02 and python

These settings apply only when `--tag=package-2019-02 --python` is specified on the command line.

``` yaml $(tag) == 'package-2019-02' && $(python)
python:
namespace: azure.tables.storage.v2019_02_02
output-folder: $(python-sdks-folder)/azure-tables-storage/azure/tables/storage/v2019_02_02
```
See configuration in [readme.python.md](./readme.python.md)

## Go

Expand Down
38 changes: 38 additions & 0 deletions specification/cosmos-db/data-plane/readme.python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## 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>`.

``` yaml $(python)
python-mode: create
python:
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.table
package-name: azure-table
clear-output-folder: true
no-namespace-folders: true
enable-xml: true
vanilla: true
output-folder: "$(python-sdks-folder)/sdk/cosmos/azure-cosmos-table/azure/table/_generated"
package-version: "2019-02-02"
```

### Use strings for dates when python doesn't have enough precision
``` yaml
directive:
- from: swagger-document
where: $.definitions.AccessPolicy.properties
transform: >
$.Start.format = "str";
$.Expiry.format = "str";
```

### SignedIdentifier shouldn't require an AccessPolicy, only ID
``` yaml
directive:
- from: swagger-document
where: $.definitions.SignedIdentifier
transform: >
$.required = [ "Id" ];
```