@autorest/python 5.12.6 → 5.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog.md +205 -125
- package/autorest/black/__init__.py +3 -0
- package/autorest/codegen/__init__.py +120 -48
- package/autorest/codegen/models/__init__.py +2 -1
- package/autorest/codegen/models/base_schema.py +2 -6
- package/autorest/codegen/models/client.py +6 -0
- package/autorest/codegen/models/code_model.py +43 -74
- package/autorest/codegen/models/constant_schema.py +7 -7
- package/autorest/codegen/models/credential_model.py +47 -0
- package/autorest/codegen/models/credential_schema.py +5 -4
- package/autorest/codegen/models/dictionary_schema.py +7 -7
- package/autorest/codegen/models/enum_schema.py +8 -39
- package/autorest/codegen/models/imports.py +3 -1
- package/autorest/codegen/models/list_schema.py +18 -8
- package/autorest/codegen/models/lro_operation.py +3 -3
- package/autorest/codegen/models/lro_paging_operation.py +3 -3
- package/autorest/codegen/models/object_schema.py +17 -13
- package/autorest/codegen/models/operation.py +38 -10
- package/autorest/codegen/models/operation_group.py +7 -2
- package/autorest/codegen/models/paging_operation.py +3 -3
- package/autorest/codegen/models/parameter.py +71 -22
- package/autorest/codegen/models/parameter_list.py +11 -5
- package/autorest/codegen/models/primitive_schemas.py +15 -25
- package/autorest/codegen/models/property.py +5 -5
- package/autorest/codegen/models/request_builder.py +4 -4
- package/autorest/codegen/models/request_builder_parameter.py +17 -5
- package/autorest/codegen/models/schema_response.py +23 -10
- package/autorest/codegen/models/utils.py +20 -0
- package/autorest/codegen/serializers/__init__.py +184 -87
- package/autorest/codegen/serializers/builder_serializer.py +113 -47
- package/autorest/codegen/serializers/client_serializer.py +16 -6
- package/autorest/codegen/serializers/general_serializer.py +28 -4
- package/autorest/codegen/serializers/import_serializer.py +1 -1
- package/autorest/codegen/serializers/metadata_serializer.py +1 -1
- package/autorest/codegen/serializers/model_base_serializer.py +8 -0
- package/autorest/codegen/serializers/model_python3_serializer.py +2 -2
- package/autorest/codegen/serializers/operation_groups_serializer.py +1 -0
- package/autorest/codegen/serializers/patch_serializer.py +12 -3
- package/autorest/codegen/serializers/utils.py +29 -4
- package/autorest/codegen/templates/CHANGELOG.md.jinja2 +6 -0
- package/autorest/codegen/templates/LICENSE.jinja2 +21 -0
- package/autorest/codegen/templates/MANIFEST.in.jinja2 +7 -0
- package/autorest/codegen/templates/README.md.jinja2 +105 -0
- package/autorest/codegen/templates/config.py.jinja2 +4 -4
- package/autorest/codegen/templates/dev_requirements.txt.jinja2 +10 -0
- package/autorest/codegen/templates/enum.py.jinja2 +1 -1
- package/autorest/codegen/templates/enum_container.py.jinja2 +0 -1
- package/autorest/codegen/templates/init.py.jinja2 +9 -6
- package/autorest/codegen/templates/keywords.jinja2 +14 -1
- package/autorest/codegen/templates/lro_operation.py.jinja2 +1 -1
- package/autorest/codegen/templates/lro_paging_operation.py.jinja2 +1 -1
- package/autorest/codegen/templates/metadata.json.jinja2 +3 -3
- package/autorest/codegen/templates/model.py.jinja2 +1 -6
- package/autorest/codegen/templates/model_init.py.jinja2 +7 -4
- package/autorest/codegen/templates/operation.py.jinja2 +2 -3
- package/autorest/codegen/templates/operation_group.py.jinja2 +20 -17
- package/autorest/codegen/templates/operation_groups_container.py.jinja2 +0 -1
- package/autorest/codegen/templates/operations_folder_init.py.jinja2 +4 -0
- package/autorest/codegen/templates/paging_operation.py.jinja2 +1 -1
- package/autorest/codegen/templates/patch.py.jinja2 +18 -29
- package/autorest/codegen/templates/request_builder.py.jinja2 +4 -6
- package/autorest/codegen/templates/setup.py.jinja2 +79 -20
- package/autorest/codegen/templates/vendor.py.jinja2 +12 -2
- package/autorest/multiapi/models/imports.py +21 -11
- package/autorest/multiapi/serializers/import_serializer.py +3 -1
- package/autorest/namer/name_converter.py +1 -1
- package/package.json +2 -2
- package/run-python3.js +1 -7
- package/venvtools.py +2 -2
package/ChangeLog.md
CHANGED
|
@@ -1,14 +1,90 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
### 2022-04-07 - 5.15.0
|
|
4
|
+
|
|
5
|
+
| Library | Min Version |
|
|
6
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
7
|
+
| `@autorest/core` | `3.6.2` |
|
|
8
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
9
|
+
| `azure-core` dep of generated code | `1.23.0` |
|
|
10
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
11
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
12
|
+
|
|
13
|
+
**New Features**
|
|
14
|
+
|
|
15
|
+
- Add support for security configurations in the swagger. For more information, see https://github.com/Azure/autorest/blob/main/docs/generate/authentication.md #1161
|
|
16
|
+
- Add support for handwritten customizations of generated code. For more information, see https://aka.ms/azsdk/python/dpcodegen/python/customize #1153
|
|
17
|
+
- Allow `header` and `params` as kwargs in operation and request-build function to hand over REST Header and Query parameters case insensitively #1183
|
|
18
|
+
|
|
19
|
+
**Bug Fixes**
|
|
20
|
+
|
|
21
|
+
- Make `--version-tolerant` generated code mypy compatible in the `azure-sdk-for-python` repo. Tested only with the `--black` flag #1185
|
|
22
|
+
- Remove unnecessary vendored code in the `_vendor` file if the SDK has no operations #1196
|
|
23
|
+
- Fix the generation of the root `__init__` files for packages with only models #1195
|
|
24
|
+
- Add pylint and mypy support for `--version-tolerant` generations with `--models-mode=msrest` #1202
|
|
25
|
+
|
|
26
|
+
**Breaking Changes in Version Tolerant Generation**
|
|
27
|
+
|
|
28
|
+
- Change client filenames to `_client.py` #1206
|
|
29
|
+
- Change the models filename from `_models_py3.py` to `_models.py` #1204
|
|
30
|
+
- Change the enums filename to `_enums.py` #1204
|
|
31
|
+
|
|
32
|
+
### 2022-03-08 - 5.14.0
|
|
33
|
+
|
|
34
|
+
| Library | Min Version |
|
|
35
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
36
|
+
| `@autorest/core` | `3.6.2` |
|
|
37
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
38
|
+
| `azure-core` dep of generated code | `1.20.1` |
|
|
39
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
40
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
41
|
+
|
|
42
|
+
**New Features**
|
|
43
|
+
|
|
44
|
+
- Add flag `--package-mode=mgmtplane|dataplane|<custom package template folder>` to generate necessary files for package #1154
|
|
45
|
+
|
|
46
|
+
**Bug Fixes**
|
|
47
|
+
|
|
48
|
+
- Improve operation group documentation to prevent users from initializing operation groups themselves #1179
|
|
49
|
+
|
|
50
|
+
### 2022-03-03 - 5.13.0
|
|
51
|
+
|
|
52
|
+
| Library | Min Version |
|
|
53
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
54
|
+
| `@autorest/core` | `3.6.2` |
|
|
55
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
56
|
+
| `azure-core` dep of generated code | `1.20.1` |
|
|
57
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
58
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
59
|
+
|
|
60
|
+
**Breaking Changes in Version Tolerant Generation**
|
|
61
|
+
|
|
62
|
+
- We now generate with optional constant parameters as None by defaulting `--default-optional-constants-to-none` to True #1171
|
|
63
|
+
- Version tolerant paging does not reformat initial query parameters into the next link #1168
|
|
64
|
+
|
|
65
|
+
**New Features**
|
|
66
|
+
|
|
67
|
+
- Add flag `--default-optional-constants-to-none` with which optional constant parameters is default to None #1171
|
|
68
|
+
- Add flag `--reformat-next-link`, determines whether we reformat initial query parameters into the next link. Defaults to `True` for the GA generator, forced to `False` for `--version-tolerant`.
|
|
69
|
+
|
|
70
|
+
**Bug Fixes**
|
|
71
|
+
|
|
72
|
+
- Add default value consistently for parameters #1164
|
|
73
|
+
- Make `content_type` param keyword-only if there are multiple content types #1167
|
|
74
|
+
|
|
75
|
+
**Other Changes**
|
|
76
|
+
|
|
77
|
+
- Drop testing support for 2.7 packages #1175
|
|
78
|
+
|
|
3
79
|
### 2022-02-09 - 5.12.6
|
|
4
80
|
|
|
5
|
-
| Library
|
|
6
|
-
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
81
|
+
| Library | Min Version |
|
|
82
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
83
|
+
| `@autorest/core` | `3.6.2` |
|
|
84
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
85
|
+
| `azure-core` dep of generated code | `1.20.1` |
|
|
86
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
87
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
12
88
|
|
|
13
89
|
**Bug Fixes**
|
|
14
90
|
|
|
@@ -18,57 +94,57 @@
|
|
|
18
94
|
|
|
19
95
|
### 2022-01-26 - 5.12.5
|
|
20
96
|
|
|
21
|
-
| Library
|
|
22
|
-
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
97
|
+
| Library | Min Version |
|
|
98
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
99
|
+
| `@autorest/core` | `3.6.2` |
|
|
100
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
101
|
+
| `azure-core` dep of generated code | `1.20.1` |
|
|
102
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
103
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
28
104
|
|
|
29
105
|
**Bug Fixes**
|
|
30
106
|
|
|
31
|
-
- Fix usage of `--black` flag outside of repo
|
|
32
|
-
- Remove unused `metadata` value for `version-tolerant` generations
|
|
107
|
+
- Fix usage of `--black` flag outside of repo #1126
|
|
108
|
+
- Remove unused `metadata` value for `version-tolerant` generations #1127
|
|
33
109
|
|
|
34
110
|
### 2022-01-14 - 5.12.4
|
|
35
111
|
|
|
36
|
-
| Library
|
|
37
|
-
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
112
|
+
| Library | Min Version |
|
|
113
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
114
|
+
| `@autorest/core` | `3.6.2` |
|
|
115
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
116
|
+
| `azure-core` dep of generated code | `1.20.1` |
|
|
117
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
118
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
43
119
|
|
|
44
120
|
**Bug Fixes**
|
|
45
121
|
|
|
46
|
-
- Remove duplicate generation of properties in classes that inherit from multiple classes
|
|
122
|
+
- Remove duplicate generation of properties in classes that inherit from multiple classes #1120
|
|
47
123
|
|
|
48
124
|
### 2022-01-13 - 5.12.3
|
|
49
125
|
|
|
50
|
-
| Library
|
|
51
|
-
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
126
|
+
| Library | Min Version |
|
|
127
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
128
|
+
| `@autorest/core` | `3.6.2` |
|
|
129
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
130
|
+
| `azure-core` dep of generated code | `1.20.1` |
|
|
131
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
132
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
57
133
|
|
|
58
134
|
**Bug Fixes**
|
|
59
135
|
|
|
60
|
-
- Unify multiapi constant behavior with single API version
|
|
61
|
-
- Clean up docstrings by removing descriptions for client constants on methods and request builders
|
|
136
|
+
- Unify multiapi constant behavior with single API version #1119
|
|
137
|
+
- Clean up docstrings by removing descriptions for client constants on methods and request builders #1119
|
|
62
138
|
|
|
63
139
|
### 2022-01-11 - 5.12.2
|
|
64
140
|
|
|
65
|
-
| Library
|
|
66
|
-
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
141
|
+
| Library | Min Version |
|
|
142
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
143
|
+
| `@autorest/core` | `3.6.2` |
|
|
144
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
145
|
+
| `azure-core` dep of generated code | `1.20.1` |
|
|
146
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
147
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
72
148
|
|
|
73
149
|
**Bug Fixes**
|
|
74
150
|
|
|
@@ -76,81 +152,81 @@
|
|
|
76
152
|
|
|
77
153
|
### 2022-01-10 - 5.12.1
|
|
78
154
|
|
|
79
|
-
| Library
|
|
80
|
-
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
155
|
+
| Library | Min Version |
|
|
156
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
157
|
+
| `@autorest/core` | `3.6.2` |
|
|
158
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
159
|
+
| `azure-core` dep of generated code | `1.20.1` |
|
|
160
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
161
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
86
162
|
|
|
87
163
|
**Bug Fixes**
|
|
88
164
|
|
|
89
|
-
- Fix support for json merge patch
|
|
165
|
+
- Fix support for json merge patch #1117
|
|
90
166
|
|
|
91
167
|
### 2021-12-06 - 5.12.0
|
|
92
168
|
|
|
93
|
-
| Library
|
|
94
|
-
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
169
|
+
| Library | Min Version |
|
|
170
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
171
|
+
| `@autorest/core` | `3.6.2` |
|
|
172
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
173
|
+
| `azure-core` dep of generated code | `1.20.1` |
|
|
174
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
175
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
100
176
|
|
|
101
177
|
**Breaking Changes in Version Tolerant Generation**
|
|
102
178
|
|
|
103
179
|
- Remove metadata property for version tolerant and low level client generations #1090
|
|
104
|
-
- Generate SDKs with `--python3-only` defaulting to `True` for version tolerant and low level client
|
|
180
|
+
- Generate SDKs with `--python3-only` defaulting to `True` for version tolerant and low level client #1087
|
|
105
181
|
|
|
106
182
|
**New Features**
|
|
107
183
|
|
|
108
|
-
- Generate a `_patch.py` file if one does not exist. These files are used to customize the generated code
|
|
184
|
+
- Generate a `_patch.py` file if one does not exist. These files are used to customize the generated code #1092
|
|
109
185
|
|
|
110
186
|
**Bug Fixes**
|
|
111
187
|
|
|
112
188
|
- Can now handle body params with names `json`, `content`, `data`, and `files` #1081
|
|
113
|
-
- Improve generated templates for `data` and `files` input body params by adding quotes around the keys
|
|
114
|
-
- Using flag `--python3-only` will get you typed sync client and config files
|
|
115
|
-
- Pin `mistune` dependency to less than `2.x.x` so autorest can be successfully installed
|
|
189
|
+
- Improve generated templates for `data` and `files` input body params by adding quotes around the keys #1082
|
|
190
|
+
- Using flag `--python3-only` will get you typed sync client and config files #1085
|
|
191
|
+
- Pin `mistune` dependency to less than `2.x.x` so autorest can be successfully installed #1106
|
|
116
192
|
|
|
117
193
|
### 2021-11-05 - 5.11.2
|
|
118
194
|
|
|
119
|
-
| Library
|
|
120
|
-
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
195
|
+
| Library | Min Version |
|
|
196
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
197
|
+
| `@autorest/core` | `3.6.2` |
|
|
198
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
199
|
+
| `azure-core` dep of generated code | `1.20.0` |
|
|
200
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
201
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
126
202
|
|
|
127
203
|
**Bug Fixes**
|
|
128
204
|
|
|
129
|
-
- Respect no client side validation for low level client generations
|
|
205
|
+
- Respect no client side validation for low level client generations #1080
|
|
130
206
|
|
|
131
207
|
### 2021-11-05 - 5.11.1
|
|
132
208
|
|
|
133
|
-
| Library
|
|
134
|
-
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
209
|
+
| Library | Min Version |
|
|
210
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
211
|
+
| `@autorest/core` | `3.6.2` |
|
|
212
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
213
|
+
| `azure-core` dep of generated code | `1.20.0` |
|
|
214
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
215
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
140
216
|
|
|
141
217
|
**Bug Fixes**
|
|
142
218
|
|
|
143
|
-
- Hide mixin operations for version tolerant generation
|
|
219
|
+
- Hide mixin operations for version tolerant generation #1071
|
|
144
220
|
|
|
145
221
|
### 2021-11-04 - 5.11.0
|
|
146
222
|
|
|
147
|
-
| Library
|
|
148
|
-
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
223
|
+
| Library | Min Version |
|
|
224
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
225
|
+
| `@autorest/core` | `3.6.2` |
|
|
226
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
227
|
+
| `azure-core` dep of generated code | `1.20.0` |
|
|
228
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
229
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
154
230
|
|
|
155
231
|
**New Features**
|
|
156
232
|
|
|
@@ -164,68 +240,69 @@
|
|
|
164
240
|
|
|
165
241
|
### 2021-11-01 - 5.10.0
|
|
166
242
|
|
|
167
|
-
| Library
|
|
168
|
-
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
243
|
+
| Library | Min Version |
|
|
244
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
245
|
+
| `@autorest/core` | `3.6.2` |
|
|
246
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
247
|
+
| `azure-core` dep of generated code | `1.19.1` |
|
|
248
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
249
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
174
250
|
|
|
175
251
|
**New Features**
|
|
176
252
|
|
|
177
|
-
- Allow users to override constant swagger params with kwarg input
|
|
253
|
+
- Allow users to override constant swagger params with kwarg input #1060
|
|
178
254
|
|
|
179
255
|
### 2021-10-15 - 5.9.3
|
|
180
256
|
|
|
181
|
-
| Library
|
|
182
|
-
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
257
|
+
| Library | Min Version |
|
|
258
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
259
|
+
| `@autorest/core` | `3.6.2` |
|
|
260
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
261
|
+
| `azure-core` dep of generated code | `1.19.0` |
|
|
262
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
263
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
188
264
|
|
|
189
265
|
**Bug Fixes**
|
|
190
266
|
|
|
191
|
-
- Fix generation of form-data inputs
|
|
267
|
+
- Fix generation of form-data inputs #1061
|
|
192
268
|
|
|
193
269
|
### 2021-10-05 - 5.9.2
|
|
194
270
|
|
|
195
|
-
| Library
|
|
196
|
-
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
271
|
+
| Library | Min Version |
|
|
272
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
273
|
+
| `@autorest/core` | `3.6.2` |
|
|
274
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
275
|
+
| `azure-core` dep of generated code | `1.19.0` |
|
|
276
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
277
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
202
278
|
|
|
203
279
|
**New Features**
|
|
280
|
+
|
|
204
281
|
- Updating generated code for `azure-core` release `1.19.0`.
|
|
205
282
|
|
|
206
283
|
### 2021-09-27 - 5.9.1
|
|
207
284
|
|
|
208
|
-
| Library
|
|
209
|
-
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
285
|
+
| Library | Min Version |
|
|
286
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
287
|
+
| `@autorest/core` | `3.6.2` |
|
|
288
|
+
| `@autorest/modelerfour` | `4.19.1` |
|
|
289
|
+
| `azure-core` dep of generated code | `1.18.0` |
|
|
290
|
+
| `msrest` dep of generated code | `0.6.21` |
|
|
291
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
215
292
|
|
|
216
293
|
**New Features**
|
|
217
294
|
|
|
218
295
|
- We have added a **provisional** `rest` layer to our generated code. We have also added the following **provisional** flags listed [here](https://github.com/Azure/autorest.python/wiki/Generating-Low-Level-Client#generate-a-low-level-client). #875
|
|
219
|
-
- With this new release, we are also dropping support for Python 3.5 + async.
|
|
296
|
+
- With this new release, we are also dropping support for Python 3.5 + async. #875
|
|
220
297
|
- For mgmt plan SDK, default policy changes from `BearerTokenCredentialPolicy` to `ARMChallengeAuthenticationPolicy`.
|
|
221
298
|
- We now add tracing by default, the flag `--trace` now defaults to `True` if you have operations.
|
|
222
|
-
- Added flag `--python3-only` for users looking to generate SDKs that only support Python 3
|
|
299
|
+
- Added flag `--python3-only` for users looking to generate SDKs that only support Python 3 #1044
|
|
223
300
|
|
|
224
301
|
**Bug Fixes**
|
|
225
302
|
|
|
226
|
-
- Correctly pad operation groups with reserved names with `Operations`
|
|
227
|
-
- Fix the generated docstrings for input kwargs of models
|
|
228
|
-
- Pass pipeline context to `msrest` in `failsafe_deserialize` so `msrest` has access to the context
|
|
303
|
+
- Correctly pad operation groups with reserved names with `Operations` #1005
|
|
304
|
+
- Fix the generated docstrings for input kwargs of models #1026
|
|
305
|
+
- Pass pipeline context to `msrest` in `failsafe_deserialize` so `msrest` has access to the context #1030
|
|
229
306
|
|
|
230
307
|
### 2021-09-27 - 5.9.0
|
|
231
308
|
|
|
@@ -260,7 +337,7 @@ min Modelerfour version: 4.19.1
|
|
|
260
337
|
|
|
261
338
|
**Bug Fixes**
|
|
262
339
|
|
|
263
|
-
- We are now more lenient with our checks for the content type parameter
|
|
340
|
+
- We are now more lenient with our checks for the content type parameter #956
|
|
264
341
|
|
|
265
342
|
### 2021-06-16 - 5.8.1
|
|
266
343
|
|
|
@@ -271,7 +348,7 @@ min Modelerfour version: 4.19.1
|
|
|
271
348
|
**Bug Fixes**
|
|
272
349
|
|
|
273
350
|
- Fix optional properties with constant schemas. Now, properties that have constant schemas but are optional will not have the hardcoded constant value,
|
|
274
|
-
but will default to its `x-ms-client-default` or `None`
|
|
351
|
+
but will default to its `x-ms-client-default` or `None` #952
|
|
275
352
|
|
|
276
353
|
### 2021-05-17 - 5.8.0
|
|
277
354
|
|
|
@@ -281,7 +358,7 @@ min Modelerfour version: 4.19.1
|
|
|
281
358
|
|
|
282
359
|
**New Features**
|
|
283
360
|
|
|
284
|
-
- Add support for parameters and properties that can be of type "Anything".
|
|
361
|
+
- Add support for parameters and properties that can be of type "Anything". #946
|
|
285
362
|
|
|
286
363
|
### 2021-04-20 - 5.7.0
|
|
287
364
|
|
|
@@ -301,7 +378,7 @@ min Modelerfour version: 4.15.456
|
|
|
301
378
|
|
|
302
379
|
**Bug Fixes**
|
|
303
380
|
|
|
304
|
-
- Fix docstrings so they don't get split on hyphens
|
|
381
|
+
- Fix docstrings so they don't get split on hyphens #931
|
|
305
382
|
|
|
306
383
|
### 2021-04-07 - 5.6.5
|
|
307
384
|
|
|
@@ -311,7 +388,7 @@ min Modelerfour version: 4.15.456
|
|
|
311
388
|
|
|
312
389
|
**Bug Fixes**
|
|
313
390
|
|
|
314
|
-
- Fix regression in multiapi generation for multiapi versions without mixin operations
|
|
391
|
+
- Fix regression in multiapi generation for multiapi versions without mixin operations #928
|
|
315
392
|
|
|
316
393
|
### 2021-03-01 - 5.6.4
|
|
317
394
|
|
|
@@ -320,6 +397,7 @@ min Autorest core version: 3.1.0
|
|
|
320
397
|
min Modelerfour version: 4.15.456
|
|
321
398
|
|
|
322
399
|
**Bug Fixes**
|
|
400
|
+
|
|
323
401
|
- Bump `Autorest core` minimum version to be able to deal with indented `python` blocks in config files
|
|
324
402
|
|
|
325
403
|
### 2021-02-10 - 5.6.3
|
|
@@ -329,7 +407,8 @@ min Autorest core version: 3.0.6372
|
|
|
329
407
|
min Modelerfour version: 4.15.456
|
|
330
408
|
|
|
331
409
|
**Bug Fixes**
|
|
332
|
-
|
|
410
|
+
|
|
411
|
+
- Bump `Autorest core` minimum version to [correctly deal with](https://github.com/Azure/autorest/pull/3860) overriding configs. Fixes submodule-specific code in our multiapi client #880
|
|
333
412
|
|
|
334
413
|
### 2021-02-04 - 5.6.2
|
|
335
414
|
|
|
@@ -338,7 +417,8 @@ Autorest core version: 3.0.6318
|
|
|
338
417
|
Modelerfour version: 4.15.456
|
|
339
418
|
|
|
340
419
|
**Bug Fixes**
|
|
341
|
-
|
|
420
|
+
|
|
421
|
+
- Bump `Modelerfour` minimum version to [correctly deal with](https://github.com/Azure/autorest.modelerfour/pull/385) parameters specified as `'required': false` in swagger #877
|
|
342
422
|
|
|
343
423
|
### 2021-01-27 - 5.6.1
|
|
344
424
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
# --------------------------------------------------------------------------
|
|
6
6
|
import logging
|
|
7
7
|
from pathlib import Path
|
|
8
|
+
import os
|
|
8
9
|
import black
|
|
9
10
|
|
|
10
11
|
from .. import Plugin
|
|
@@ -21,6 +22,8 @@ class BlackScriptPlugin(Plugin):
|
|
|
21
22
|
output_folder_uri = self._autorestapi.get_value("outputFolderUri")
|
|
22
23
|
if output_folder_uri.startswith("file:"):
|
|
23
24
|
output_folder_uri = output_folder_uri[5:]
|
|
25
|
+
if os.name == 'nt' and output_folder_uri.startswith("///"):
|
|
26
|
+
output_folder_uri = output_folder_uri[3:]
|
|
24
27
|
self.output_folder = Path(output_folder_uri)
|
|
25
28
|
|
|
26
29
|
def process(self) -> bool:
|