@autorest/python 6.1.2 → 6.1.3

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # Release History
2
2
 
3
+ ### 2022-08-22 - 6.1.3
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 circular recursion for lropaging #1400
17
+
3
18
  ### 2022-08-16 - 6.1.2
4
19
 
5
20
  | Library | Min Version |
@@ -263,28 +263,37 @@ class PreProcessPlugin(YamlUpdatePlugin): # pylint: disable=abstract-method
263
263
  )
264
264
 
265
265
  def update_lro_paging_operation(
266
- self, code_model: Dict[str, Any], yaml_data: Dict[str, Any]
266
+ self,
267
+ code_model: Dict[str, Any],
268
+ yaml_data: Dict[str, Any],
269
+ is_overload: bool = False,
267
270
  ) -> None:
268
- self.update_lro_operation(code_model, yaml_data)
269
- self.update_paging_operation(code_model, yaml_data)
271
+ self.update_lro_operation(code_model, yaml_data, is_overload=is_overload)
272
+ self.update_paging_operation(code_model, yaml_data, is_overload=is_overload)
270
273
  yaml_data["discriminator"] = "lropaging"
271
274
  for response in yaml_data.get("responses", []):
272
275
  response["discriminator"] = "lropaging"
273
276
  for overload in yaml_data.get("overloads", []):
274
- self.update_lro_paging_operation(code_model, overload)
277
+ self.update_lro_paging_operation(code_model, overload, is_overload=True)
275
278
 
276
279
  def update_lro_operation(
277
- self, code_model: Dict[str, Any], yaml_data: Dict[str, Any]
280
+ self,
281
+ code_model: Dict[str, Any],
282
+ yaml_data: Dict[str, Any],
283
+ is_overload: bool = False,
278
284
  ) -> None:
279
- self.update_operation(code_model, yaml_data)
285
+ self.update_operation(code_model, yaml_data, is_overload=is_overload)
280
286
  self._update_lro_operation_helper(yaml_data)
281
287
  for overload in yaml_data.get("overloads", []):
282
288
  self._update_lro_operation_helper(overload)
283
289
 
284
290
  def update_paging_operation(
285
- self, code_model: Dict[str, Any], yaml_data: Dict[str, Any]
291
+ self,
292
+ code_model: Dict[str, Any],
293
+ yaml_data: Dict[str, Any],
294
+ is_overload: bool = False,
286
295
  ) -> None:
287
- self.update_operation(code_model, yaml_data)
296
+ self.update_operation(code_model, yaml_data, is_overload=is_overload)
288
297
  if not yaml_data.get("pagerSync"):
289
298
  yaml_data["pagerSync"] = "azure.core.paging.ItemPaged"
290
299
  if not yaml_data.get("pagerAsync"):
@@ -319,7 +328,7 @@ class PreProcessPlugin(YamlUpdatePlugin): # pylint: disable=abstract-method
319
328
  update_paging_response(response)
320
329
  response["itemType"] = item_type
321
330
  for overload in yaml_data.get("overloads", []):
322
- self.update_paging_operation(code_model, overload)
331
+ self.update_paging_operation(code_model, overload, is_overload=True)
323
332
 
324
333
  def update_operation_groups(self, yaml_data: Dict[str, Any]) -> None:
325
334
  operation_groups_yaml_data = yaml_data["operationGroups"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/python",
3
- "version": "6.1.2",
3
+ "version": "6.1.3",
4
4
  "description": "The Python extension for generators in AutoRest.",
5
5
  "scripts": {
6
6
  "prepare": "node run-python3.js prepare.py",