@autorest/python 6.28.4 → 6.29.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/generator/build/lib/pygen/codegen/templates/model_dpg.py.jinja2 +0 -10
- package/generator/build/lib/pygen/codegen/templates/serialization.py.jinja2 +1 -1
- package/generator/component-detection-pip-report.json +2 -2
- package/generator/dist/pygen-0.1.0-py3-none-any.whl +0 -0
- package/generator/pygen/codegen/templates/model_dpg.py.jinja2 +0 -10
- package/generator/pygen/codegen/templates/serialization.py.jinja2 +1 -1
- package/package.json +2 -2
- package/scripts/__pycache__/venvtools.cpython-310.pyc +0 -0
|
@@ -8,16 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
{{ serializer.discriminator_docstring(model) | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring='\n ') }}
|
|
10
10
|
{% endif %}
|
|
11
|
-
{% if model.has_readonly_or_constant_property %}
|
|
12
|
-
|
|
13
|
-
Readonly variables are only populated by the server, and will be ignored when sending a request.
|
|
14
|
-
{% endif %}
|
|
15
|
-
{% if (model.properties | selectattr('optional', "equalto", false) | first) is defined %}
|
|
16
|
-
|
|
17
|
-
{% if not model.is_usage_output %}
|
|
18
|
-
All required parameters must be populated in order to send to server.
|
|
19
|
-
{% endif %}
|
|
20
|
-
{% endif %}
|
|
21
11
|
|
|
22
12
|
{% if model.properties != None %}
|
|
23
13
|
{% for p in model.properties %}
|
|
@@ -410,7 +410,7 @@ class Model:
|
|
|
410
410
|
:param function key_extractors: A key extractor function.
|
|
411
411
|
:param str content_type: JSON by default, set application/xml if XML.
|
|
412
412
|
:returns: An instance of this model
|
|
413
|
-
:raises
|
|
413
|
+
:raises DeserializationError: if something went wrong
|
|
414
414
|
:rtype: Self
|
|
415
415
|
"""
|
|
416
416
|
deserializer = Deserializer(cls._infer_class_models())
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
"implementation_version": "3.8.10",
|
|
127
127
|
"os_name": "posix",
|
|
128
128
|
"platform_machine": "x86_64",
|
|
129
|
-
"platform_release": "5.15.0-
|
|
129
|
+
"platform_release": "5.15.0-1081-azure",
|
|
130
130
|
"platform_system": "Linux",
|
|
131
|
-
"platform_version": "#
|
|
131
|
+
"platform_version": "#90~20.04.1-Ubuntu SMP Tue Jan 28 05:34:18 UTC 2025",
|
|
132
132
|
"python_full_version": "3.8.10",
|
|
133
133
|
"platform_python_implementation": "CPython",
|
|
134
134
|
"python_version": "3.8",
|
|
Binary file
|
|
@@ -8,16 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
{{ serializer.discriminator_docstring(model) | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring='\n ') }}
|
|
10
10
|
{% endif %}
|
|
11
|
-
{% if model.has_readonly_or_constant_property %}
|
|
12
|
-
|
|
13
|
-
Readonly variables are only populated by the server, and will be ignored when sending a request.
|
|
14
|
-
{% endif %}
|
|
15
|
-
{% if (model.properties | selectattr('optional', "equalto", false) | first) is defined %}
|
|
16
|
-
|
|
17
|
-
{% if not model.is_usage_output %}
|
|
18
|
-
All required parameters must be populated in order to send to server.
|
|
19
|
-
{% endif %}
|
|
20
|
-
{% endif %}
|
|
21
11
|
|
|
22
12
|
{% if model.properties != None %}
|
|
23
13
|
{% for p in model.properties %}
|
|
@@ -410,7 +410,7 @@ class Model:
|
|
|
410
410
|
:param function key_extractors: A key extractor function.
|
|
411
411
|
:param str content_type: JSON by default, set application/xml if XML.
|
|
412
412
|
:returns: An instance of this model
|
|
413
|
-
:raises
|
|
413
|
+
:raises DeserializationError: if something went wrong
|
|
414
414
|
:rtype: Self
|
|
415
415
|
"""
|
|
416
416
|
deserializer = Deserializer(cls._infer_class_models())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/python",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.29.0",
|
|
4
4
|
"description": "The Python extension for generators in AutoRest.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@typespec/http-client-python": "~0.
|
|
22
|
+
"@typespec/http-client-python": "~0.7.0",
|
|
23
23
|
"@autorest/system-requirements": "~1.0.2",
|
|
24
24
|
"fs-extra": "~11.2.0",
|
|
25
25
|
"tsx": "~4.19.1"
|
|
Binary file
|