@autorest/python 6.1.5 → 6.1.7

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.
Files changed (29) hide show
  1. package/autorest/__init__.py +10 -3
  2. package/autorest/black/__init__.py +2 -8
  3. package/autorest/codegen/__init__.py +4 -2
  4. package/autorest/codegen/models/__init__.py +1 -1
  5. package/autorest/codegen/models/base_builder.py +4 -1
  6. package/autorest/codegen/models/client.py +5 -3
  7. package/autorest/codegen/models/combined_type.py +6 -4
  8. package/autorest/codegen/models/enum_type.py +6 -4
  9. package/autorest/codegen/models/model_type.py +30 -9
  10. package/autorest/codegen/models/operation.py +32 -0
  11. package/autorest/codegen/models/operation_group.py +11 -7
  12. package/autorest/codegen/models/parameter.py +44 -0
  13. package/autorest/codegen/models/property.py +8 -15
  14. package/autorest/codegen/models/request_builder_parameter.py +4 -2
  15. package/autorest/codegen/serializers/__init__.py +18 -2
  16. package/autorest/codegen/serializers/builder_serializer.py +64 -22
  17. package/autorest/codegen/serializers/client_serializer.py +3 -4
  18. package/autorest/codegen/serializers/general_serializer.py +8 -0
  19. package/autorest/codegen/serializers/model_serializer.py +159 -61
  20. package/autorest/codegen/templates/model_base.py.jinja2 +636 -0
  21. package/autorest/codegen/templates/model_container.py.jinja2 +6 -2
  22. package/autorest/codegen/templates/model_dpg.py.jinja2 +62 -0
  23. package/autorest/codegen/templates/model_init.py.jinja2 +0 -5
  24. package/autorest/codegen/templates/{model.py.jinja2 → model_msrest.py.jinja2} +1 -1
  25. package/autorest/codegen/templates/operation_group.py.jinja2 +1 -1
  26. package/autorest/codegen/templates/operation_groups_container.py.jinja2 +1 -1
  27. package/autorest/codegen/templates/validation.py.jinja2 +38 -0
  28. package/package.json +9 -10
  29. package/ChangeLog.md +0 -1284
package/ChangeLog.md DELETED
@@ -1,1284 +0,0 @@
1
- # Release History
2
-
3
- ### 2022-09-06 - 6.1.5
4
-
5
- | Library | Min Version |
6
- | ----------------------------------------------------------------------- | ----------- |
7
- | `@autorest/core` | `3.8.4` |
8
- | `@autorest/modelerfour` | `4.23.5` |
9
- | `azure-core` dep of generated code | `1.24.0` |
10
- | `isodate` dep of generated code | `0.6.1` |
11
- | `msrest` dep of generated code (If generating legacy code) | `0.7.1` |
12
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.2` |
13
-
14
- **Bug Fixes**
15
-
16
- - Fix `api_version` error when there are multi different `api-version`(not multiapi) #1429
17
- - Fix generator raising `KeyError` in corner case when generating an LRO-paging operation #1425
18
-
19
- **Other Changes**
20
-
21
- - Default `304` errors to throw `azure.core.exception.ResourceNotFoundError`s #1415
22
-
23
- ### 2022-08-31 - 6.1.4
24
-
25
- | Library | Min Version |
26
- | ----------------------------------------------------------------------- | ----------- |
27
- | `@autorest/core` | `3.8.4` |
28
- | `@autorest/modelerfour` | `4.23.5` |
29
- | `azure-core` dep of generated code | `1.24.0` |
30
- | `isodate` dep of generated code | `0.6.1` |
31
- | `msrest` dep of generated code (If generating legacy code) | `0.7.1` |
32
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.2` |
33
-
34
- **Bug Fixes**
35
-
36
- - Fix generation failure for `format: password` #1404
37
- - Fix `content_type` error when paging with body #1407
38
- - Fix excessive warning level logging in vendored `failsafe_deserialize` #1419
39
-
40
- **Other Changes**
41
-
42
- - Upgrade min dependency for `azure-mgmt-core` to `1.3.2` #1404
43
-
44
- ### 2022-08-22 - 6.1.3
45
-
46
- | Library | Min Version |
47
- | ----------------------------------------------------------------------- | ----------- |
48
- | `@autorest/core` | `3.8.4` |
49
- | `@autorest/modelerfour` | `4.23.5` |
50
- | `azure-core` dep of generated code | `1.24.0` |
51
- | `isodate` dep of generated code | `0.6.1` |
52
- | `msrest` dep of generated code (If generating legacy code) | `0.7.1` |
53
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.2` |
54
-
55
- **Bug Fixes**
56
-
57
- - Fix circular recursion for lropaging #1400
58
-
59
- ### 2022-08-16 - 6.1.2
60
-
61
- | Library | Min Version |
62
- | ----------------------------------------------------------------------- | ----------- |
63
- | `@autorest/core` | `3.8.1` |
64
- | `@autorest/modelerfour` | `4.23.5` |
65
- | `azure-core` dep of generated code | `1.24.0` |
66
- | `isodate` dep of generated code | `0.6.1` |
67
- | `msrest` dep of generated code (If generating legacy code) | `0.7.1` |
68
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
69
-
70
- **Bug Fixes**
71
-
72
- - Correctly document polymorphic page responses #1389
73
- - Add `__version__` to `__init__.py` for multiapi #1393
74
-
75
- ### 2022-07-20 - 6.1.1
76
-
77
- | Library | Min Version |
78
- | ----------------------------------------------------------------------- | ----------- |
79
- | `@autorest/core` | `3.8.1` |
80
- | `@autorest/modelerfour` | `4.23.5` |
81
- | `azure-core` dep of generated code | `1.24.0` |
82
- | `isodate` dep of generated code | `0.6.1` |
83
- | `msrest` dep of generated code (If generating legacy code) | `0.7.1` |
84
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
85
-
86
- **Other Changes**
87
-
88
- - Get skeleton for cadl generation released #1358
89
-
90
- ### 2022-07-20 - 6.1.0
91
-
92
- | Library | Min Version |
93
- | ----------------------------------------------------------------------- | ----------- |
94
- | `@autorest/core` | `3.8.1` |
95
- | `@autorest/modelerfour` | `4.23.5` |
96
- | `azure-core` dep of generated code | `1.24.0` |
97
- | `isodate` dep of generated code | `0.6.1` |
98
- | `msrest` dep of generated code (If generating legacy code) | `0.7.1` |
99
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
100
-
101
- **New Features**
102
-
103
- - Add new plugin `MultiClient` and new flag `--multiclientscript` to handle package structure of multi client #1328
104
-
105
- **Bug Fixes**
106
-
107
- - Fallback unrecognized type as string to avoid a fatal error. #1341
108
- - Fix regression in default namespace for SDKs generated without `--namespace` flag #1354
109
-
110
- **Other Changes**
111
-
112
- - Generated code no longer supports Python 3.6 #1353
113
- - Order json input and response template entries by whether they are required or not #1335
114
- - Reduce extreme amount of `black` logs when running in `--debug` mode to just log errors
115
-
116
- ### 2022-06-29 - 6.0.1
117
-
118
- | Library | Min Version |
119
- | ----------------------------------------------------------------------- | ----------- |
120
- | `@autorest/core` | `3.8.1` |
121
- | `@autorest/modelerfour` | `4.23.5` |
122
- | `azure-core` dep of generated code | `1.24.0` |
123
- | `isodate` dep of generated code | `0.6.1` |
124
- | `msrest` dep of generated code (If generating legacy code) | `0.7.1` |
125
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
126
-
127
- **Bug Fixes**
128
-
129
- - Ignore linting error for clients with no credentials #1333
130
-
131
- ### 2022-06-24 - 6.0.0
132
-
133
- | Library | Min Version |
134
- | ----------------------------------------------------------------------- | ----------- |
135
- | `@autorest/core` | `3.8.1` |
136
- | `@autorest/modelerfour` | `4.23.5` |
137
- | `azure-core` dep of generated code | `1.24.0` |
138
- | `isodate` dep of generated code | `0.6.1` |
139
- | `msrest` dep of generated code (If generating legacy code) | `0.7.1` |
140
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
141
-
142
- **Breaking Changes**
143
-
144
- - Don't generate paging variables `maxpagesize` for DPG generations. Users should pass in `maxpagesize` to the `by_page` method of their
145
- pager #1320
146
-
147
- ### 2022-06-17 - 6.0.0-rc.1
148
-
149
- | Library | Min Version |
150
- | ----------------------------------------------------------------------- | ----------- |
151
- | `@autorest/core` | `3.8.1` |
152
- | `@autorest/modelerfour` | `4.23.5` |
153
- | `azure-core` dep of generated code | `1.24.0` |
154
- | `isodate` dep of generated code | `0.6.1` |
155
- | `msrest` dep of generated code (If generating legacy code) | `0.7.1` |
156
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
157
-
158
- **Breaking Changes**
159
-
160
- - Default to generating DPG SDKs with `--version-tolerant` now defaulting to `true`. For a list of flag default changes, please
161
- see [here](https://github.com/Azure/autorest.python/issues/1186) #1304
162
- - Only generate Python3 SDKs #1297
163
- - Don't reformat initial query parameters into the next link. However, we do append `api-version` parameters if they are not present in the next link #1297 #1309
164
- - Don't generate operations with more than two body types. SDK authors need to implement this operation themselves #1300
165
-
166
- **New Features**
167
-
168
- - Automatically format generated code with `black`. To not format, pass in `--black=false` #1304
169
-
170
- **Other**
171
-
172
- - Remove testing support for `--low-level-client` SDKs #1303
173
-
174
- ### 2022-06-13 - 5.19.0
175
-
176
- | Library | Min Version |
177
- | ----------------------------------------------------------------------- | ----------- |
178
- | `@autorest/core` | `3.8.1` |
179
- | `@autorest/modelerfour` | `4.23.5` |
180
- | `azure-core` dep of generated code | `1.24.0` |
181
- | `msrest` dep of generated code | `0.7.0` |
182
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
183
-
184
- **New Features**
185
-
186
- - Add _serialization.py for `--client-side-validation=false` generation, and migrate serilization from msrest to _serialization.py #1236
187
-
188
- ### 2022-06-09 - 5.18.0
189
-
190
- | Library | Min Version |
191
- | ----------------------------------------------------------------------- | ----------- |
192
- | `@autorest/core` | `3.8.1` |
193
- | `@autorest/modelerfour` | `4.23.5` |
194
- | `azure-core` dep of generated code | `1.24.0` |
195
- | `msrest` dep of generated code | `0.7.0` |
196
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
197
-
198
- **Breaking Changes in Version Tolerant**
199
-
200
- - No longer allow users to specify `api_version` on the method level #1281
201
- - Make `content_type` param required with no default if streaming with no `application/octet-stream` #1288
202
-
203
- **Bug Fixes**
204
-
205
- - Fix duplicate params in signature with `--payload-flattening-threshold` #1289
206
- - Fix overloaded request builder signatures #1289
207
- - Improve docstring templates, specifically for polymorphic bodies #1279
208
-
209
-
210
- ### 2022-06-02 - 5.17.0
211
-
212
- | Library | Min Version |
213
- | ----------------------------------------------------------------------- | ----------- |
214
- | `@autorest/core` | `3.8.1` |
215
- | `@autorest/modelerfour` | `4.23.5` |
216
- | `azure-core` dep of generated code | `1.23.0` |
217
- | `msrest` dep of generated code | `0.6.21` |
218
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
219
-
220
- **New Features**
221
-
222
- - Hide `api_version` in doc string for singleapi SDK even if contains multi api versions #1239
223
- - Add overloads for operations with different body types. We now sniff bodies and assign content type based off of body type. #1230
224
- - Add flag `--postprocess`. Run this after doing customizations for full mypy support
225
-
226
- **Breaking Changes in Version Tolerant**
227
-
228
- - Have stream responses directly return an iterator of bytes, so you don't need to call `.iter_bytes()` on the response object. #1254
229
- - If generating with `--models-mode=msrest` in version tolerant, we hide paging models #1259
230
-
231
- **Breaking Changes in Request Builders**
232
-
233
- - Request builders for LRO operations have the `_initial` suffix removed from their name #1241
234
- - Request builders from groups with reserved words will now be padded with the word "Operations" instead of "Builders" #1243
235
-
236
- **Bug Fixes**
237
-
238
- - Make sure `any-object` schemas from swagger are typed with `MutableMapping`s #1243
239
- - Make typing for parameters `Optional` only if `None` is a valid input, not only if it is specified as `optional` in swagger #1244
240
- - Fix for render failure of `README.md` when `--package-mode==dataplane` #1247
241
- - Fix typing for stream responses to iterators of bytes. #1254
242
- - Additional linting support #1265
243
- - Fix Sphinx documentation for raised exception #1264
244
- - Use `api_version` in `_config` as default value for operation function #1268
245
-
246
- **Other Changes**
247
-
248
- - Update template files for `--package-mode` # 1248
249
-
250
- ### 2022-04-18 - 5.16.0
251
-
252
- | Library | Min Version |
253
- | ----------------------------------------------------------------------- | ----------- |
254
- | `@autorest/core` | `3.6.2` |
255
- | `@autorest/modelerfour` | `4.19.1` |
256
- | `azure-core` dep of generated code | `1.23.0` |
257
- | `msrest` dep of generated code | `0.6.21` |
258
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
259
-
260
- **Breaking Changes in Version Tolerant Generation**
261
-
262
- - We no longer generate operations for operations with multipart or urlencoded bodies. SDK writers must implement these operations in their customized patch file. See https://aka.ms/azsdk/python/dpcodegen/python/customize for how to customize generated code #1223
263
-
264
- **Bug Fixes**
265
-
266
- - Drop package dependency on "@azure-tools/extension", switch to "@autorest/system-requirements" #1229
267
- - Fix `content_type` generation in multiapi SDKs with multiple content types for bodies #1232
268
-
269
- ### 2022-04-07 - 5.15.0
270
-
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.23.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` |
278
-
279
- **New Features**
280
-
281
- - Add support for security configurations in the swagger. For more information, see https://github.com/Azure/autorest/blob/main/docs/generate/authentication.md #1161
282
- - Add support for handwritten customizations of generated code. For more information, see https://aka.ms/azsdk/python/dpcodegen/python/customize #1153
283
- - Allow `header` and `params` as kwargs in operation and request-build function to hand over REST Header and Query parameters case insensitively #1183
284
- - Typing operation parameters as JSON, Primitives or Any for `--version-tolerant` #1210
285
-
286
- **Bug Fixes**
287
-
288
- - Make `--version-tolerant` generated code mypy compatible in the `azure-sdk-for-python` repo. Tested only with the `--black` flag #1185
289
- - Remove unnecessary vendored code in the `_vendor` file if the SDK has no operations #1196
290
- - Fix the generation of the root `__init__` files for packages with only models #1195
291
- - Add pylint and mypy support for `--version-tolerant` generations with `--models-mode=msrest` #1202
292
-
293
- **Breaking Changes in Version Tolerant Generation**
294
-
295
- - Change client filenames to `_client.py` #1206
296
- - Change the models filename from `_models_py3.py` to `_models.py` #1204
297
- - Change the enums filename to `_enums.py` #1204
298
-
299
- ### 2022-03-08 - 5.14.0
300
-
301
- | Library | Min Version |
302
- | ----------------------------------------------------------------------- | ----------- |
303
- | `@autorest/core` | `3.6.2` |
304
- | `@autorest/modelerfour` | `4.19.1` |
305
- | `azure-core` dep of generated code | `1.20.1` |
306
- | `msrest` dep of generated code | `0.6.21` |
307
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
308
-
309
- **New Features**
310
-
311
- - Add flag `--package-mode=mgmtplane|dataplane|<custom package template folder>` to generate necessary files for package #1154
312
-
313
- **Bug Fixes**
314
-
315
- - Improve operation group documentation to prevent users from initializing operation groups themselves #1179
316
-
317
- ### 2022-03-03 - 5.13.0
318
-
319
- | Library | Min Version |
320
- | ----------------------------------------------------------------------- | ----------- |
321
- | `@autorest/core` | `3.6.2` |
322
- | `@autorest/modelerfour` | `4.19.1` |
323
- | `azure-core` dep of generated code | `1.20.1` |
324
- | `msrest` dep of generated code | `0.6.21` |
325
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
326
-
327
- **Breaking Changes in Version Tolerant Generation**
328
-
329
- - We now generate with optional constant parameters as None by defaulting `--default-optional-constants-to-none` to True #1171
330
- - Version tolerant paging does not reformat initial query parameters into the next link #1168
331
-
332
- **New Features**
333
-
334
- - Add flag `--default-optional-constants-to-none` with which optional constant parameters is default to None #1171
335
- - 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`.
336
-
337
- **Bug Fixes**
338
-
339
- - Add default value consistently for parameters #1164
340
- - Make `content_type` param keyword-only if there are multiple content types #1167
341
-
342
- **Other Changes**
343
-
344
- - Drop testing support for 2.7 packages #1175
345
-
346
- ### 2022-02-09 - 5.12.6
347
-
348
- | Library | Min Version |
349
- | ----------------------------------------------------------------------- | ----------- |
350
- | `@autorest/core` | `3.6.2` |
351
- | `@autorest/modelerfour` | `4.19.1` |
352
- | `azure-core` dep of generated code | `1.20.1` |
353
- | `msrest` dep of generated code | `0.6.21` |
354
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
355
-
356
- **Bug Fixes**
357
-
358
- - Remove unused `metadata` value for paging and long running operations with `version-tolerant` generations #1131
359
- - Remove name conflicts with parameters called `url`, `header_parameters`, and `query_parameters` #1143
360
- - Make `--version-tolerant` generated code pylint compatible in the `azure-sdk-for-python` repo when generated with the `--black` flag #1147, #1144, #1130
361
-
362
- ### 2022-01-26 - 5.12.5
363
-
364
- | Library | Min Version |
365
- | ----------------------------------------------------------------------- | ----------- |
366
- | `@autorest/core` | `3.6.2` |
367
- | `@autorest/modelerfour` | `4.19.1` |
368
- | `azure-core` dep of generated code | `1.20.1` |
369
- | `msrest` dep of generated code | `0.6.21` |
370
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
371
-
372
- **Bug Fixes**
373
-
374
- - Fix usage of `--black` flag outside of repo #1126
375
- - Remove unused `metadata` value for `version-tolerant` generations #1127
376
-
377
- ### 2022-01-14 - 5.12.4
378
-
379
- | Library | Min Version |
380
- | ----------------------------------------------------------------------- | ----------- |
381
- | `@autorest/core` | `3.6.2` |
382
- | `@autorest/modelerfour` | `4.19.1` |
383
- | `azure-core` dep of generated code | `1.20.1` |
384
- | `msrest` dep of generated code | `0.6.21` |
385
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
386
-
387
- **Bug Fixes**
388
-
389
- - Remove duplicate generation of properties in classes that inherit from multiple classes #1120
390
-
391
- ### 2022-01-13 - 5.12.3
392
-
393
- | Library | Min Version |
394
- | ----------------------------------------------------------------------- | ----------- |
395
- | `@autorest/core` | `3.6.2` |
396
- | `@autorest/modelerfour` | `4.19.1` |
397
- | `azure-core` dep of generated code | `1.20.1` |
398
- | `msrest` dep of generated code | `0.6.21` |
399
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
400
-
401
- **Bug Fixes**
402
-
403
- - Unify multiapi constant behavior with single API version #1119
404
- - Clean up docstrings by removing descriptions for client constants on methods and request builders #1119
405
-
406
- ### 2022-01-11 - 5.12.2
407
-
408
- | Library | Min Version |
409
- | ----------------------------------------------------------------------- | ----------- |
410
- | `@autorest/core` | `3.6.2` |
411
- | `@autorest/modelerfour` | `4.19.1` |
412
- | `azure-core` dep of generated code | `1.20.1` |
413
- | `msrest` dep of generated code | `0.6.21` |
414
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
415
-
416
- **Bug Fixes**
417
-
418
- - Fix installation of autorest python package #1118
419
-
420
- ### 2022-01-10 - 5.12.1
421
-
422
- | Library | Min Version |
423
- | ----------------------------------------------------------------------- | ----------- |
424
- | `@autorest/core` | `3.6.2` |
425
- | `@autorest/modelerfour` | `4.19.1` |
426
- | `azure-core` dep of generated code | `1.20.1` |
427
- | `msrest` dep of generated code | `0.6.21` |
428
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
429
-
430
- **Bug Fixes**
431
-
432
- - Fix support for json merge patch #1117
433
-
434
- ### 2021-12-06 - 5.12.0
435
-
436
- | Library | Min Version |
437
- | ----------------------------------------------------------------------- | ----------- |
438
- | `@autorest/core` | `3.6.2` |
439
- | `@autorest/modelerfour` | `4.19.1` |
440
- | `azure-core` dep of generated code | `1.20.1` |
441
- | `msrest` dep of generated code | `0.6.21` |
442
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
443
-
444
- **Breaking Changes in Version Tolerant Generation**
445
-
446
- - Remove metadata property for version tolerant and low level client generations #1090
447
- - Generate SDKs with `--python3-only` defaulting to `True` for version tolerant and low level client #1087
448
-
449
- **New Features**
450
-
451
- - Generate a `_patch.py` file if one does not exist. These files are used to customize the generated code #1092
452
-
453
- **Bug Fixes**
454
-
455
- - Can now handle body params with names `json`, `content`, `data`, and `files` #1081
456
- - Improve generated templates for `data` and `files` input body params by adding quotes around the keys #1082
457
- - Using flag `--python3-only` will get you typed sync client and config files #1085
458
- - Pin `mistune` dependency to less than `2.x.x` so autorest can be successfully installed #1106
459
-
460
- ### 2021-11-05 - 5.11.2
461
-
462
- | Library | Min Version |
463
- | ----------------------------------------------------------------------- | ----------- |
464
- | `@autorest/core` | `3.6.2` |
465
- | `@autorest/modelerfour` | `4.19.1` |
466
- | `azure-core` dep of generated code | `1.20.0` |
467
- | `msrest` dep of generated code | `0.6.21` |
468
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
469
-
470
- **Bug Fixes**
471
-
472
- - Respect no client side validation for low level client generations #1080
473
-
474
- ### 2021-11-05 - 5.11.1
475
-
476
- | Library | Min Version |
477
- | ----------------------------------------------------------------------- | ----------- |
478
- | `@autorest/core` | `3.6.2` |
479
- | `@autorest/modelerfour` | `4.19.1` |
480
- | `azure-core` dep of generated code | `1.20.0` |
481
- | `msrest` dep of generated code | `0.6.21` |
482
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
483
-
484
- **Bug Fixes**
485
-
486
- - Hide mixin operations for version tolerant generation #1071
487
-
488
- ### 2021-11-04 - 5.11.0
489
-
490
- | Library | Min Version |
491
- | ----------------------------------------------------------------------- | ----------- |
492
- | `@autorest/core` | `3.6.2` |
493
- | `@autorest/modelerfour` | `4.19.1` |
494
- | `azure-core` dep of generated code | `1.20.0` |
495
- | `msrest` dep of generated code | `0.6.21` |
496
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
497
-
498
- **New Features**
499
-
500
- - Add `_patch.py` support for `aio` folder #1070
501
-
502
- **Bug Fixes**
503
-
504
- - Fix documentation for HEAD calls that perform boolean checks on returned status codes in version tolerant code #1072
505
- - Fix body grouping by content types for binary bodies #1076
506
- - Fix default content type determination #1078
507
-
508
- ### 2021-11-01 - 5.10.0
509
-
510
- | Library | Min Version |
511
- | ----------------------------------------------------------------------- | ----------- |
512
- | `@autorest/core` | `3.6.2` |
513
- | `@autorest/modelerfour` | `4.19.1` |
514
- | `azure-core` dep of generated code | `1.19.1` |
515
- | `msrest` dep of generated code | `0.6.21` |
516
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
517
-
518
- **New Features**
519
-
520
- - Allow users to override constant swagger params with kwarg input #1060
521
-
522
- ### 2021-10-15 - 5.9.3
523
-
524
- | Library | Min Version |
525
- | ----------------------------------------------------------------------- | ----------- |
526
- | `@autorest/core` | `3.6.2` |
527
- | `@autorest/modelerfour` | `4.19.1` |
528
- | `azure-core` dep of generated code | `1.19.0` |
529
- | `msrest` dep of generated code | `0.6.21` |
530
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
531
-
532
- **Bug Fixes**
533
-
534
- - Fix generation of form-data inputs #1061
535
-
536
- ### 2021-10-05 - 5.9.2
537
-
538
- | Library | Min Version |
539
- | ----------------------------------------------------------------------- | ----------- |
540
- | `@autorest/core` | `3.6.2` |
541
- | `@autorest/modelerfour` | `4.19.1` |
542
- | `azure-core` dep of generated code | `1.19.0` |
543
- | `msrest` dep of generated code | `0.6.21` |
544
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
545
-
546
- **New Features**
547
-
548
- - Updating generated code for `azure-core` release `1.19.0`.
549
-
550
- ### 2021-09-27 - 5.9.1
551
-
552
- | Library | Min Version |
553
- | ----------------------------------------------------------------------- | ----------- |
554
- | `@autorest/core` | `3.6.2` |
555
- | `@autorest/modelerfour` | `4.19.1` |
556
- | `azure-core` dep of generated code | `1.18.0` |
557
- | `msrest` dep of generated code | `0.6.21` |
558
- | `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
559
-
560
- **New Features**
561
-
562
- - 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
563
- - With this new release, we are also dropping support for Python 3.5 + async. #875
564
- - For mgmt plan SDK, default policy changes from `BearerTokenCredentialPolicy` to `ARMChallengeAuthenticationPolicy`.
565
- - We now add tracing by default, the flag `--trace` now defaults to `True` if you have operations.
566
- - Added flag `--python3-only` for users looking to generate SDKs that only support Python 3 #1044
567
-
568
- **Bug Fixes**
569
-
570
- - Correctly pad operation groups with reserved names with `Operations` #1005
571
- - Fix the generated docstrings for input kwargs of models #1026
572
- - Pass pipeline context to `msrest` in `failsafe_deserialize` so `msrest` has access to the context #1030
573
-
574
- ### 2021-09-27 - 5.9.0
575
-
576
- YANKED
577
-
578
- ### 2021-07-13 - 5.8.4
579
-
580
- min Autorest core version: 3.4.5
581
-
582
- min Modelerfour version: 4.19.1
583
-
584
- **Bug Fixes**
585
-
586
- - Fix case where we have a grouped parameter whose name is a reserved property name #970
587
- - Remove all hosts from global parameters, regardless of how many m4 sends us #972
588
-
589
- ### 2021-07-06 - 5.8.3
590
-
591
- min Autorest core version: 3.3.0
592
-
593
- min Modelerfour version: 4.19.1
594
-
595
- **Bug Fixes**
596
-
597
- - Fix LRO path parameterization when we have a constant path parameter #968
598
-
599
- ### 2021-06-22 - 5.8.2
600
-
601
- min Autorest core version: 3.3.0
602
-
603
- min Modelerfour version: 4.19.1
604
-
605
- **Bug Fixes**
606
-
607
- - We are now more lenient with our checks for the content type parameter #956
608
-
609
- ### 2021-06-16 - 5.8.1
610
-
611
- min Autorest core version: 3.3.0
612
-
613
- min Modelerfour version: 4.19.1
614
-
615
- **Bug Fixes**
616
-
617
- - Fix optional properties with constant schemas. Now, properties that have constant schemas but are optional will not have the hardcoded constant value,
618
- but will default to its `x-ms-client-default` or `None` #952
619
-
620
- ### 2021-05-17 - 5.8.0
621
-
622
- min Autorest core version: 3.3.0
623
-
624
- min Modelerfour version: 4.19.1
625
-
626
- **New Features**
627
-
628
- - Add support for parameters and properties that can be of type "Anything". #946
629
-
630
- ### 2021-04-20 - 5.7.0
631
-
632
- min Autorest core version: 3.1.0
633
-
634
- min Modelerfour version: 4.15.456
635
-
636
- **Bug Fixes**
637
-
638
- - Fix data plane LRO operations so they poll by default. Bumping minor version because this bug fix will change some default behavior. #936
639
-
640
- ### 2021-04-07 - 5.6.6
641
-
642
- min Autorest core version: 3.1.0
643
-
644
- min Modelerfour version: 4.15.456
645
-
646
- **Bug Fixes**
647
-
648
- - Fix docstrings so they don't get split on hyphens #931
649
-
650
- ### 2021-04-07 - 5.6.5
651
-
652
- min Autorest core version: 3.1.0
653
-
654
- min Modelerfour version: 4.15.456
655
-
656
- **Bug Fixes**
657
-
658
- - Fix regression in multiapi generation for multiapi versions without mixin operations #928
659
-
660
- ### 2021-03-01 - 5.6.4
661
-
662
- min Autorest core version: 3.1.0
663
-
664
- min Modelerfour version: 4.15.456
665
-
666
- **Bug Fixes**
667
-
668
- - Bump `Autorest core` minimum version to be able to deal with indented `python` blocks in config files
669
-
670
- ### 2021-02-10 - 5.6.3
671
-
672
- min Autorest core version: 3.0.6372
673
-
674
- min Modelerfour version: 4.15.456
675
-
676
- **Bug Fixes**
677
-
678
- - 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
679
-
680
- ### 2021-02-04 - 5.6.2
681
-
682
- Autorest core version: 3.0.6318
683
-
684
- Modelerfour version: 4.15.456
685
-
686
- **Bug Fixes**
687
-
688
- - Bump `Modelerfour` minimum version to [correctly deal with](https://github.com/Azure/autorest.modelerfour/pull/385) parameters specified as `'required': false` in swagger #877
689
-
690
- ### 2021-01-27 - 5.6.1
691
-
692
- Autorest core version: 3.0.6318
693
-
694
- Modelerfour version: 4.15.442
695
-
696
- **Bug Fixes**
697
-
698
- - Instead of throwing a `DeserializationError` in the case of failed error model deserialization, we swallow the error and return the `HttpResponseError` to users.
699
- WARNING: You need to make sure your `msrest` version is `0.6.21` or above, or a lot of your calls will fail with an `AttributeError` message #870
700
-
701
- ### 2021-01-15 - 5.6.0
702
-
703
- Autorest core version: 3.0.6318
704
-
705
- Modelerfour version: 4.15.442
706
-
707
- **New Features**
708
-
709
- - Add support for [`black`](https://pypi.org/project/black/) formatting of your generated files. Pass flag `--black` when generating to get this behavior. #836
710
-
711
- **Bug Fixes**
712
-
713
- - Wrap individual enum descriptions #844
714
- - Bump `Modelerfour` minimum version to `4.15.442` to fix [circular reference error](https://github.com/Azure/autorest/issues/3630). Special thanks to @amrElroumy for this PR. #866
715
-
716
- ### 2020-11-12 - 5.5.0
717
-
718
- Autorest core version: 3.0.6318
719
-
720
- Modelerfour version: 4.15.421
721
-
722
- **New Features**
723
-
724
- - Can now take in custom pollers and pagers through directives. This will override the defaults (`LROPoller` and `ItemPaged`, respectively). See [this readme](https://github.com/Azure/autorest.python/tree/autorestv3/test/azure/specification/custompollerpager) for the directive to use to override. #821
725
-
726
- ### 2020-11-11 - 5.4.3
727
-
728
- Autorest core version: 3.0.6320
729
-
730
- Modelerfour version: 4.15.421
731
-
732
- **Bug Fixes**
733
-
734
- - Correctly choose schema from response with 200 status code in the case of LRO operations with multiple responses #814
735
- - Fix conflict for model deserialization when operation has input param with name `models` #819
736
-
737
- ### 2020-11-09 - 5.4.2
738
-
739
- Autorest core version: 3.0.6320
740
-
741
- Modelerfour version: 4.15.421
742
-
743
- **Bug Fixes**
744
-
745
- - Set discriminator value in cases where discriminator is readonly #815
746
-
747
- ### 2020-11-03 - 5.4.1
748
-
749
- Autorest core version: 3.0.6318
750
-
751
- Modelerfour version: 4.15.421
752
-
753
- **Bug Fixes**
754
-
755
- - Honor default value for properties if `x-ms-client-default` value is passed #798
756
- - Can now generate services with no operations #801
757
-
758
- ### 2020-10-19 - 5.4.0
759
-
760
- Autorest core version: 3.0.6318
761
-
762
- Modelerfour version: 4.15.421
763
-
764
- **New Features**
765
-
766
- - Add support for `--python.debugger`. With this flag, you can start debugging using VS Code. Make sure to still set up your [debugging configuration](https://github.com/Azure/autorest.python/wiki/Autorest-v3-based-generator-cheatsheet#vscode-debug) #790
767
-
768
- **Bug Fixes**
769
-
770
- - Correctly handling inheritance of class properties for inheritance chains > 3 levels #795
771
-
772
- ### 2020-10-06 - 5.3.5
773
-
774
- Autorest core version: 3.0.6318
775
-
776
- Modelerfour version: 4.15.421
777
-
778
- **Bug Fixes**
779
-
780
- - Can now correctly poll in the case of parameterized endpoints with relative polling urls #784
781
-
782
- ### 2020-09-24 - 5.3.4
783
-
784
- Autorest core version: 3.0.6318
785
-
786
- Modelerfour version: 4.15.421
787
-
788
- **Bug Fixes**
789
-
790
- - Include `content_type` docstrings for LRO and paging operations in the case of multiple media types #778
791
- - Return response body if its content type is `text/plain` (taken from m4 update - m4 PR #353)
792
-
793
- ### 2020-09-17 - 5.3.3
794
-
795
- Autorest core version: 3.0.6318
796
-
797
- Modelerfour version: 4.15.419
798
-
799
- **Bug fixes**
800
-
801
- - Fix trailing comma issues in metadata.json (unblocks resource multiapi generation) #777
802
-
803
- ### 2020-09-14 - 5.3.2
804
-
805
- Autorest core version: 3.0.6318
806
-
807
- Modelerfour version: 4.15.419
808
-
809
- **Bug fixes**
810
-
811
- - Allow client side validation to be turned off for multiapi mixin operations #775
812
-
813
- ### 2020-09-14 - 5.3.1
814
-
815
- Autorest core version: 3.0.6318
816
-
817
- Modelerfour version: 4.15.419
818
-
819
- **Bug fixes**
820
-
821
- - Min autorest core is now 3.0.6318 to ensure client-side-validation is disabled by default (per track2 guidelines) #772
822
-
823
- ### 2020-09-11 - 5.3.0
824
-
825
- Autorest Core version: 3.0.6306
826
-
827
- Modelerfour version: 4.15.419
828
-
829
- GA of autorest V5!
830
-
831
- **Breaking Changes**
832
-
833
- - Raise `ValueError` instead of `NotImplementedError` if API version code doesn't exist #764
834
-
835
- ### 2020-08-31 - 5.2.0-preview.1
836
-
837
- Autorest Core version: 3.0.6306
838
-
839
- Modelerfour version: 4.15.410
840
-
841
- **Breaking Changes**
842
-
843
- - Removed the `_async` suffix from async files #759
844
-
845
- **New Features**
846
-
847
- - Add mapping of 401 to `ClientAuthenticationError` for default error map #763
848
- - Updated minimum `azure-core` version to 1.8.0 #747
849
- - Updated minimum `msrest` version to 0.6.18 #747
850
- - Support for `multipart/form-data` #746
851
-
852
- **Bug fixes**
853
-
854
- - Fix "multi" in Swagger (will generate correctly multiple query param now)
855
-
856
- ### 2020-08-07 - 5.1.0-preview.7
857
-
858
- Autorest Core version: 3.0.6302
859
- Modelerfour version: 4.15.400
860
-
861
- **New Features**
862
-
863
- - Add `azure-mgmt-core` as a dependency in the generated setup.py file #738
864
- - Correct typing for `credential` when default credential policy type is `AzureKeyCredentialPolicy` #744
865
- - Replace instead of extending `credential_scopes` if user has inputted their own #745
866
-
867
- ### 2020-08-04 - 5.1.0-preview.6
868
-
869
- Autorest Core version: 3.0.6287
870
- Modelerfour version: 4.15.378
871
-
872
- **New Features**
873
-
874
- - Add support for `x-ms-text` XML extension #722
875
- - Allow users to pass the name of the key header for `AzureKeyCredentialPolicy` during generation. To use, pass in
876
- `AzureKeyCredentialPolicy` with the `--credential-default-policy-type` flag, and pass in the key header name using
877
- the `--credential-key-header-name` flag #736
878
-
879
- **Bug Fixes**
880
-
881
- - Fix duplicate type signatures in multiapi async config file #727
882
- - Allowing single quote in regexp #726
883
-
884
- ### 2020-06-23 - 5.1.0-preview.5
885
-
886
- Autorest Core version: 3.0.6287
887
- Modelerfour version: 4.15.378
888
-
889
- **Bug Fixes**
890
-
891
- - Correctly have default behavior of csv for array query parameters when collection format is not specified in the swagger
892
- (taken from m4 update - perks PR #118)
893
- - Fix bug when generating parameters with client default value and constant schema #707
894
- - Make operation mixin signatures for multiapi default to default api version #715
895
- - Fix name in setup.py to default to `package-name` if set #721
896
- - Allow different custom base url host templates across API versions #719
897
-
898
- ### 2020-07-07 - 5.1.0-preview.4
899
-
900
- Modelerfour version: 4.15.378
901
-
902
- **New Features**
903
-
904
- - Enum values are uppercase (with an alias from the lowercase version) #692
905
- - Add `http_logging_policy` setting for config, and users can override the default by passing in the kwarg `http_logging_policy` #698
906
-
907
- ### 2020-06-24 - 5.1.0-preview.3
908
-
909
- Modelerfour version: 4.13.351
910
-
911
- **New Features**
912
-
913
- - Supports a function that is both LRO and paging #689
914
- - We have added a `--credential-default-policy-type` flag. Its default value is `BearerTokenCredentialPolicy`, but it can also accept
915
- `AzureKeyCredentialPolicy`. The value passed in will be the default authentication policy in the client's config, so users using the
916
- generated library will use that auth policy unless they pass in a separate one through kwargs #686
917
- - Added support for a data plane multiapi client #693
918
-
919
- **Bug Fixes**
920
-
921
- - Fix typing for discriminator values in models, so Python 3.5 can import py3 file for models #691
922
-
923
- **Bug Fixes**
924
-
925
- - Make enum names all upper case. This fixes issues that arise if the name of an enum is also a method that can be applied to, say, a string.
926
- For example, if an enum's name is count. Made sure this fix will not break users currently accessing with lower case enum names #692
927
-
928
- ### 2020-06-08 - 5.1.0-preview.2
929
-
930
- Modelerfour version: 4.13.351
931
-
932
- **Bug Fixes**
933
-
934
- - Fixed "Failed to install or start extension" issue arising when invoking autorest from a tar file, by correcctly calling Python 3. #678
935
- - Generating correct formatting for LRO and paging operation docstrings #652
936
- - Generating correct content and formatting for LRO and paging operations in multiapi mixin #652
937
-
938
- ### 2020-06-03 - 5.1.0-preview.1
939
-
940
- Modelerfour version: 4.13.351
941
-
942
- **Disclaimer**
943
-
944
- This version requires azure-core 1.6.0 and contains features and bugfixes 5.0.0-preview.8
945
-
946
- **Features**
947
-
948
- - Refactor async LRO poller with a AsyncLROPoller class + "begin\_" prefix
949
- - Add continuation_token kwargs to LRO methods
950
-
951
- **Bug Fixes**
952
-
953
- - Corrected generation of the item name of paging response when extracting data #648
954
- - Corrected return type typing annotation for operations that return an optional body #656
955
- - Fixed mypy issue by only setting the generated `deserialized` variable to None if the operation has an optional return type #656
956
- - Fixed generation of pkgutil init files #661
957
- - Have the next operation in a paging call use the HTTP verb GET if the next operation is not defined #664
958
-
959
- ### 2020-05-22 - 5.0.0-preview.8
960
-
961
- Modelerfour version: 4.13.351
962
-
963
- **Bug Fixes**
964
-
965
- - Corrected ordering of summary and description in generated methods #640
966
- - Have `IOSchema` call super init to get all of the properties shared in `BaseType` #642
967
-
968
- ### 2020-05-15 - 5.0.0-preview.7
969
-
970
- Modelerfour version: 4.13.351
971
-
972
- **Bug Fixes**
973
-
974
- - Adding `self` as a reserved key word for parameters to avoid "duplicate argument 'self' in function definition" error #630
975
- - Removed `self` as a reserved key word for method and model names #630
976
-
977
- ### 2020-05-13 - 5.0.0-preview.6
978
-
979
- Modelerfour version: 4.13.351
980
-
981
- **Bug Fixes**
982
-
983
- - No longer assuming that response with body from an LRO call is an ObjectSchema #623
984
- - Checking whether "protocol" entry exists in yaml in name converter to remove erroneous "KeyError: 'protocol'" #628
985
-
986
- ### 2020-05-08 - 5.0.0-preview.5
987
-
988
- Modelerfour version: 4.13.351
989
-
990
- **Bug Fixes**
991
-
992
- - Users can pass in content types with ';' inside (such as 'text/plain; encoding=UTF-8') #619
993
- - Allowing parameters to be of type `IO` as well #618
994
- - Can now generate without FATAL: bad indentation error (taken from m4 update - perks PR #105)
995
-
996
- ### 2020-05-06 - 5.0.0-preview.4
997
-
998
- Modelerfour version: 4.13.346
999
-
1000
- **New Features**
1001
-
1002
- - Displaying the default and possible values for content type in the docstring for operations with multiple requests #615
1003
-
1004
- **Bug Fixes**
1005
-
1006
- - Fixing `AsyncTokenCredential` typing import and adding to service client #591
1007
- - Can now pass `content_type` and `error_map` kwargs to LRO functions without error #597
1008
- - Now making sure to include the content type of exceptions when passing content types to 'Accept' header #602
1009
- - `include_apis` in `Metrics` for tables swagger now cased correctly #603
1010
- - Corrected spacing after `if cls:` block in operations #606
1011
-
1012
- ### 2020-04-23 - 5.0.0-preview.3
1013
-
1014
- Modelerfour version: 4.12.301
1015
-
1016
- **Bug Fixes**
1017
-
1018
- - Fixed sync lro method naming in MultiAPI operation mixins #572
1019
-
1020
- ### 2020-04-22 - 5.0.0-preview.2
1021
-
1022
- Modelerfour version: 4.12.301
1023
-
1024
- **New Features**
1025
-
1026
- - User can now pass in credential scopes through kwargs #575
1027
- - Default error map always contains a mapping of 404 to `ResourceNotFoundError` and 409 to `ResourceExistsError` #580
1028
-
1029
- **Bug Fixes**
1030
-
1031
- - Not generating async multiapi client if `--no-async` flag is specified #586
1032
- - Fixes query parameter handling in paging operations #172
1033
- - Fixes losing 404/409 default is user pass a user_map #580
1034
-
1035
- ### 2020-04-16 - 5.0.0-preview.1
1036
-
1037
- Modelerfour version: 4.12.301
1038
-
1039
- **Breaking Changes**
1040
-
1041
- - If the user would like to add a patch file, they now must name the file `_patch.py` #573
1042
-
1043
- **New features**
1044
-
1045
- - Support non-ARM polling by default (azure-core 1.4.0)
1046
- - Adding multiple inheritance #567
1047
- - Accept polling_interval keyword passed to LRO operations #571
1048
-
1049
- **Bug Fixes**
1050
-
1051
- - Fixed some generated typing hints (such as LROPoller) #507
1052
-
1053
- ### 2020-04-09 - 5.0.0-dev.20200409.1
1054
-
1055
- Modelerfour version: 4.12.301
1056
-
1057
- **Bug Fixes**
1058
-
1059
- - Separating out typing imports in TYPE_CHECKING block #538
1060
- - Overriding a property inherited from a parent if they both have the same name #563
1061
-
1062
- **New Features**
1063
-
1064
- - Client side validation is now disabled by default #558
1065
- - We now also generate an async multiapi client when running multiapiscript # 480
1066
-
1067
- ### 2020-04-06 - 5.0.0-dev.20200406.1
1068
-
1069
- Modelerfour version: 4.12.294
1070
-
1071
- **New Features**
1072
-
1073
- - Can now directly patch a client by defining a `patch.py` file in the top-level of the module with a `patch_sdk` function #548
1074
- - Can now handle `time` formats #551
1075
-
1076
- ### 2020-04-03 - 5.0.0-dev.20200403.1
1077
-
1078
- Modelerfour version: 4.12.276
1079
-
1080
- **Bug Fixes**
1081
-
1082
- - Fixes parameter ordering so parameters with default values are all ordered at the end #545
1083
- - Fixes `TokenCredential` and `AsyncTokenCredential` sphinx docstring #546
1084
-
1085
- ### 2020-04-01 - 5.0.0-dev.20200401.1
1086
-
1087
- Modelerfour version: 4.12.276
1088
-
1089
- **Bug Fixes**
1090
-
1091
- - Now the generic models file and python3 models file have the same behavior in regards to required properties and their default values #532
1092
- - Can now specify non-string enums #534
1093
- - Fixes `TokenCredential` typing #535
1094
-
1095
- ### 2020-03-30 - 5.0.0-dev.20200330.1
1096
-
1097
- Modelerfour version: 4.12.276
1098
-
1099
- **Bug Fixes**
1100
-
1101
- - Fix enum default and required default #532
1102
-
1103
- ### 2020-03-26 - 5.0.0-dev.20200326.1
1104
-
1105
- Modelerfour version: 4.12.276
1106
-
1107
- **Bug Fixes**
1108
-
1109
- - Will no longer permit generated enums and models to have the same name #504
1110
- - No longer exposing models from operation groups without importing them #486
1111
- - Now correctly deserializes error's that have an empty object (AnyType) as a model #516
1112
- - Added a list of parameter names to reserved parameter words, so there won't be clashes #525
1113
- - If a property's schema is readonly, we will show that property as being readonly (taken from m4 update #234)
1114
- - Remove `"azure-"` prefix from user agent name #523
1115
- - Correcting issue in generating multiapi with submodule, where generated user agent name included the `#` #505
1116
-
1117
- ### 2020-01-17 - 4.0.74
1118
-
1119
- - Declare "self" as reserved keyword
1120
-
1121
- ### 2019-06-12 - 4.0.71
1122
-
1123
- - no-async flag to skip async code generation
1124
-
1125
- ### 2019-05-21 - 4.0.70
1126
-
1127
- - Beta version of --keep-version-file for ARM generator
1128
-
1129
- ### 2019-02-13 - 4.0.67
1130
-
1131
- - All models will now be generated in two files `_models` and `_models_py3`, and paging in a page file
1132
- - Breaking changes: Import of models and enums from package must be done from package.models
1133
-
1134
- ### 2019-02-11 - 4.0.66
1135
-
1136
- - Fix async cross-link documentation
1137
-
1138
- ### 2019-02-08 - 4.0.65
1139
-
1140
- - New version of async generation. Requires msrest 0.6.3 and msrestazure 0.6.0.
1141
-
1142
- - namespace.XXXXClientAsync is now namespace.aio.XXXClient
1143
-
1144
- - Support now MICROSOFT_MIT_SMALL and MICROSOFT_MIT_SMALL_NO_CODEGEN headers options
1145
-
1146
- ### 2019-01-08 - 4.0.64
1147
-
1148
- - New version of async generation. Requires msrest 0.6.3 and msrestazure 0.6.0.
1149
-
1150
- ### 2018-12-17 - 4.0.63
1151
-
1152
- - Autorest now generates async code.
1153
-
1154
- **This version requires EXACTLY msrest 0.6.0 to 0.6.2 and is considered deprecated. Do NOT generate with it.**
1155
-
1156
- ### 2018-07-09 - 3.0.58
1157
-
1158
- - Fix some complex XML parsing issues. Requires msrest 0.5.2
1159
-
1160
- ### 2018-07-05 - 3.0.56
1161
-
1162
- - Differentiate Default and AzureAsyncOperation LRO options
1163
- - Fix bug with operation flattenning if operation has a parameter called "foo" and model too disambiguiated as "foo1"
1164
-
1165
- ### 2018-06-13 - 3.0.54
1166
-
1167
- This version requires msrestazure 0.4.32
1168
-
1169
- - Add support for LRO options
1170
-
1171
- ### 2018-06-13 - 3.0.53
1172
-
1173
- This version requires msrest 0.5.0
1174
-
1175
- - XML support
1176
- - Big fix on headers (Accept/Content-Type) to better reflect consumes/produces of Swagger
1177
- - Refactoring of "send" to better separate request creation and request sending
1178
-
1179
- ### 2018-06-08 - 3.0.52
1180
-
1181
- - Beta version of --keep-version-file
1182
-
1183
- ### 2018-05-08 - 3.0.51
1184
-
1185
- - Py3 model files must inherit from Py3 files
1186
-
1187
- ### 2018-04-18 - 3.0.50
1188
-
1189
- - Add context manager to SDK client that keeps the same sessions across requests.
1190
-
1191
- ### 2018-04-17 - 3.0.49
1192
-
1193
- - Fix some valid discriminator + flatten scenarios #2889
1194
-
1195
- ### 2018-04-16 - 3.0.48
1196
-
1197
- - Fix bad comma on py3 models if super class has no attributes
1198
-
1199
- ### 2018-03-27 - 3.0.43
1200
-
1201
- - Add documentation to enum #49
1202
-
1203
- ### 2018-03-07 - 3.0.41
1204
-
1205
- **Breaking changes**
1206
-
1207
- - Model signatures are now using only keywords-arguments syntax. Every positional arguments are required to be rewritten as keywords-arguments.
1208
- To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "\*" syntax for keyword-only arguments.
1209
- - Enum type are now using the "str" mixin (`class AzureEnum(str, Enum)`) to improve experiences when unkown enum are met. This is not a breaking change,
1210
- but documentation about mixin enum and some recommendations should be known:
1211
- https://docs.python.org/3/library/enum.html#others
1212
- At a glance:
1213
-
1214
- - "is" should not be used at all.
1215
- - "format" will return the string value, where "%s" string formatting will return `NameOfEnum.stringvalue`. Format syntax should be used always.
1216
-
1217
- - New Long Running Operation:
1218
-
1219
- - Return type changes from msrestazure.azure_operation.AzureOperationPoller to msrest.polling.LROPoller. External API is the same.
1220
- - Return type is now **always** a msrest.polling.LROPoller, whatever the optional parameters.
1221
- - raw=True changes behavior. Instead of not polling and returning the initial call as ClientRawResponse, now we return a LROPoller as well and the final
1222
- resource is returned as a ClientRawResponse.
1223
- - Adding "polling" parameters. Polling=True is the default and poll using ARM algorithm. Polling=False does not poll and return the initial call reponse.
1224
- - Polling accept instances of subclasses of msrest.polling.PollingMethod.
1225
- - `add_done_callback` now does not fail if poller is done, but execute the callback right away.
1226
-
1227
- ### 2018-02-16 - 2.1.38
1228
-
1229
- - Externalize Url as a metadata property on operation
1230
-
1231
- ### 2018-02-06 - 2.1.35
1232
-
1233
- - Allow "baseUrl" as a custom parameter at the client level.
1234
-
1235
- ### 2018-01-04 - 2.1.34
1236
-
1237
- - Fix inheritance and additionalProperties used together
1238
-
1239
- ### 2017-12-28 - 2.1.32
1240
-
1241
- - Refactor LRO operations with an external \_XXX_initial call
1242
-
1243
- ### 2017-12-22 - 2.1.30
1244
-
1245
- - Add "async", "await" and "mro" as Python reserved keywords.
1246
-
1247
- ### 2017-12-13 - 2.1.28
1248
-
1249
- - All Model call super(XX, self).**init**()
1250
-
1251
- ### 2017-11-27 - 2.0.25
1252
-
1253
- - Add no-namespace-folders option
1254
- - Add basic-setup-py. Change the default behavior to do NOT generate the setup.py.
1255
-
1256
- ### 2017-11-22 - 2.0.23
1257
-
1258
- - Add "models" link inside operation groups
1259
- - Add help for Python
1260
-
1261
- ### 2017-10-19 - 2.0.18
1262
-
1263
- - Fix namespace folders in Vanilla generator
1264
-
1265
- ### 2017-10-10 - 2.0.17
1266
-
1267
- - Fix paging description
1268
-
1269
- ### 2017-10-10 - 2.0.16
1270
-
1271
- - Improve polymorphic discriminator documentation (#17)
1272
- - Add deprecated support (#16)
1273
- - Fix invalid headers test (#15)
1274
- - Fix invalid python code in some scenario (#14)
1275
- - Stop checking str type for client parameter (#12)
1276
- - Add client-side-validation to Autorest.Python (#11)
1277
-
1278
- ### 2017-09-27 - 2.0.14
1279
-
1280
- - Improve documentation cross-reference (#9)
1281
-
1282
- ### 2017-09-26 - 2.0.13
1283
-
1284
- - Remove constraint on array type, if array is used in the URL (#8)