Skip to content

Commit 0307bdd

Browse files
msyycCopilot
andauthored
[python][iothub] Update readme.python.md to convert to singleapi package (#35940)
* Initial plan * Update IoT Hub readme.python.md to singleapi package format Co-authored-by: msyyc <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]>
1 parent 15aab4e commit 0307bdd

File tree

1 file changed

+5
-61
lines changed

1 file changed

+5
-61
lines changed

specification/iothub/resource-manager/readme.python.md

Lines changed: 5 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -2,74 +2,18 @@
22

33
These settings apply only when `--python` is specified on the command line.
44
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
5-
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
65

76
``` yaml $(python)
7+
title: IotHubClient
88
azure-arm: true
99
license-header: MICROSOFT_MIT_NO_VERSION
10-
namespace: azure.mgmt.iothub
1110
package-name: azure-mgmt-iothub
11+
namespace: azure.mgmt.iothub
1212
package-version: 1.0.0b1
1313
clear-output-folder: true
14-
no-namespace-folders: true
15-
```
16-
17-
### Python multi-api
18-
19-
Generate all API versions currently shipped for this package
20-
21-
```yaml $(python)
22-
multiapi: true
23-
default-api-version: "2023-06-30"
24-
batch:
25-
- tag: package-2023-06
26-
- tag: package-preview-2023-06
27-
- tag: package-preview-2019-07
28-
- tag: package-2019-03
29-
- multiapiscript: true
3014
```
3115
32-
``` yaml $(multiapiscript)
33-
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/
34-
perform-load: false
35-
```
36-
37-
### Tag: package-2023-06 and python
38-
39-
These settings apply only when `--tag=package-2023-06 --python` is specified on the command line.
40-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
41-
42-
``` yaml $(tag) == 'package-2023-06' && $(python)
43-
namespace: azure.mgmt.iothub.v2023_06_30
44-
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2023_06_30
45-
```
46-
47-
### Tag: package-preview-2023-06 and python
48-
49-
These settings apply only when `--tag=package-preview-2023-06 --python` is specified on the command line.
50-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
51-
52-
``` yaml $(tag) == 'package-preview-2023-06' && $(python)
53-
namespace: azure.mgmt.iothub.v2023_06_30_preview
54-
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2023_06_30_preview
55-
```
56-
57-
### Tag: package-preview-2019-07 and python
58-
59-
These settings apply only when `--tag=package-preview-2019-07 --python` is specified on the command line.
60-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
61-
62-
``` yaml $(tag) == 'package-preview-2019-07' && $(python)
63-
namespace: azure.mgmt.iothub.v2019_07_01_preview
64-
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_07_01_preview
65-
```
66-
67-
### Tag: package-2019-03 and python
68-
69-
These settings apply only when `--tag=package-2019-03 --python` is specified on the command line.
70-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
71-
72-
``` yaml $(tag) == 'package-2019-03' && $(python)
73-
namespace: azure.mgmt.iothub.v2019_03_22
74-
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22
16+
``` yaml $(python)
17+
no-namespace-folders: true
18+
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub
7519
```

0 commit comments

Comments
 (0)