Skip to content

Commit

Permalink
Update READMEs. (#14501)
Browse files Browse the repository at this point in the history
* Readme Updates

* Code review feedback.
  • Loading branch information
tjprescott authored Jun 8, 2021
1 parent 2485a9e commit f97d1d9
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ directive:
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.
May need to supply `--version=V2` on the command line.

``` yaml $(python)
python-mode: create
Expand All @@ -133,11 +134,13 @@ add-credentials: true
payload-flattening-threshold: 2
namespace: azure.cognitiveservices.vision.computervision
package-name: azure-cognitiveservices-vision-computervision
package-version: 0.9.0
clear-output-folder: true
use: "@microsoft.azure/autorest.python@~4.0.71"
version: V2
multiapi: true
no-async: true
client-side-validation: false
directive:
from: source-file-python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

> see https://aka.ms/autorest
The current release is `release_1_0`. A preview release release_1_0 is also available
The current release is `release_1_0`. A preview release release_1_1_preview.1 is also available

``` yaml
tag: release_1_0
tag: release_1_1_preview.1
add-credentials: true
openapi-type: data-plane
```
Expand All @@ -28,7 +28,7 @@ input-file:
- preview/v1.0/Personalizer.json
```

### Release 1.0-Preview
### Release 1.1-Preview
These settings apply only when `--tag=release_1_1_preview.1` is specified on the command line.

``` yaml $(tag) == 'release_1_1_preview.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,27 @@
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.
When used on the command line, you may need to specify `--verison=V2`.

``` yaml $(python)
python-mode: create
python:
license-header: MICROSOFT_MIT_NO_VERSION
add-credentials: true
payload-flattening-threshold: 2
namespace: azure.cognitiveservices.personalizer
package-name: azure-cognitiveservices-personalizer
clear-output-folder: true
package-version: 0.2.0
license-header: MICROSOFT_MIT_NO_VERSION
add-credentials: true
payload-flattening-threshold: 2
namespace: azure.cognitiveservices.personalizer
package-name: azure-cognitiveservices-personalizer
use: "@microsoft.azure/autorest.python@~4.0.71"
version: V2
multiapi: true
no-async: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer
no-namespace-folders: true
clear-output-folder: false
output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-personalizer
basic-setup-py: true
clear-output-folder: true
output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-personalizer
```
30 changes: 15 additions & 15 deletions specification/servicefabric/data-plane/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml $(python)
python-mode: create
python:
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.servicefabric
package-name: azure-servicefabric
package-version: 8.0.0.0
add-credentials: true
clear-output-folder: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.servicefabric
package-name: azure-servicefabric
package-version: 8.0.0.0
add-credentials: true
clear-output-folder: true
use: "@microsoft.azure/autorest.python@~4.0.71"
version: V2
multiapi: true
no-async: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/servicefabric/azure-servicefabric/azure/servicefabric
no-namespace-folders: true
output-folder: $(python-sdks-folder)/servicefabric/azure-servicefabric/azure/servicefabric
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/servicefabric/azure-servicefabric
basic-setup-py: true
output-folder: $(python-sdks-folder)/servicefabric/azure-servicefabric
```

0 comments on commit f97d1d9

Please sign in to comment.