Skip to content
Merged
Changes from 1 commit
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
23 changes: 15 additions & 8 deletions specification/deviceupdate/data-plane/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ 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
azure-arm: false
license-header: MICROSOFT_MIT_SMALL_NO_CODEGEN
namespace: azure.deviceupdate
package-name: azure-deviceupdate
package-version: 2020-09-01-preview
python-mode: create
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by default, you will be creating a whole new generated folder. For subsequent generations once, you can add --python-mode=update to your command line to avoid generating everything again

license-header: MICROSOFT_MIT_NO_VERSION
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed your license-header since it appears you were using one not recognized by autorest. AFAIK, all sdks are generated with this license header

namespace: azure.iot.deviceupdate
package-name: azure-iot-deviceupdate
package-version: 1.0.0b1
clear-output-folder: true
add-credentials: true
add-credentials: true
credential-scopes: 6ee392c4-d339-4083-b04d-6b7947c6cf78/.default
no-namespace-folders: true
output-folder: $(python-sdks-folder)/sdk/deviceupdate/azure-deviceupdate/azure/deviceupdate
```

```yaml $(python-mode) == 'create'
output-folder: $(python-sdks-folder)/sdk/deviceupdate/azure-iot-deviceupdate
```

```yaml $(python-mode) == 'update'
no-namespace-folders: true
output-folder: $(python-sdks-folder)/sdk/deviceupdate/azure-iot-deviceupdate/azure/iot/deviceupdate
```