Skip to content

Commit cab5894

Browse files
authored
add _api_version for mixin operation group (#30553)
1 parent b29b0db commit cab5894

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/azure-sdk-tools/packaging_tools/templates/multiapi_combiner/operation_group.py.jinja2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ class {{ operation_group.name }}{{ "(" + operation_group.name.replace("Operation
1717
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
1818
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1919
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
20+
{% else %}
21+
@property
22+
def _api_version(self)-> str:
23+
return self._get_api_version(None)
2024

2125
{% endif %}
2226
{% for operation in operation_group.operations %}

0 commit comments

Comments
 (0)