Skip to content
This repository was archived by the owner on May 22, 2026. It is now read-only.

Commit 63763aa

Browse files
AutoPrFromHttpClientPythonAutoPrFromHttpClientPython
authored andcommitted
Regenerate for typespec-python (2026-05-12 00:14:32)
1 parent f760cd3 commit 63763aa

300 files changed

Lines changed: 15917 additions & 6 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/typespec-python/tests/generated/azure/authentication-api-key/authentication/apikey/_utils/model_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
620620
if v is not None
621621
}
622622
)
623+
# Apply client default values for fields the caller didn't set so that
624+
# defaults are part of `_data` and therefore included during serialization.
625+
for rf in self._attr_to_rest_field.values():
626+
if rf._default is _UNSET:
627+
continue
628+
if rf._rest_name in dict_to_pass:
629+
continue
630+
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
623631
super().__init__(dict_to_pass)
624632

625633
def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:

packages/typespec-python/tests/generated/azure/authentication-http-custom/authentication/http/custom/_utils/model_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
620620
if v is not None
621621
}
622622
)
623+
# Apply client default values for fields the caller didn't set so that
624+
# defaults are part of `_data` and therefore included during serialization.
625+
for rf in self._attr_to_rest_field.values():
626+
if rf._default is _UNSET:
627+
continue
628+
if rf._rest_name in dict_to_pass:
629+
continue
630+
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
623631
super().__init__(dict_to_pass)
624632

625633
def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:

packages/typespec-python/tests/generated/azure/authentication-noauth-union/authentication/noauth/union/_utils/model_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
620620
if v is not None
621621
}
622622
)
623+
# Apply client default values for fields the caller didn't set so that
624+
# defaults are part of `_data` and therefore included during serialization.
625+
for rf in self._attr_to_rest_field.values():
626+
if rf._default is _UNSET:
627+
continue
628+
if rf._rest_name in dict_to_pass:
629+
continue
630+
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
623631
super().__init__(dict_to_pass)
624632

625633
def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:

packages/typespec-python/tests/generated/azure/authentication-oauth2/authentication/oauth2/_utils/model_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
620620
if v is not None
621621
}
622622
)
623+
# Apply client default values for fields the caller didn't set so that
624+
# defaults are part of `_data` and therefore included during serialization.
625+
for rf in self._attr_to_rest_field.values():
626+
if rf._default is _UNSET:
627+
continue
628+
if rf._rest_name in dict_to_pass:
629+
continue
630+
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
623631
super().__init__(dict_to_pass)
624632

625633
def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:

packages/typespec-python/tests/generated/azure/authentication-union/authentication/union/_utils/model_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
620620
if v is not None
621621
}
622622
)
623+
# Apply client default values for fields the caller didn't set so that
624+
# defaults are part of `_data` and therefore included during serialization.
625+
for rf in self._attr_to_rest_field.values():
626+
if rf._default is _UNSET:
627+
continue
628+
if rf._rest_name in dict_to_pass:
629+
continue
630+
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
623631
super().__init__(dict_to_pass)
624632

625633
def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:

packages/typespec-python/tests/generated/azure/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/_utils/model_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
620620
if v is not None
621621
}
622622
)
623+
# Apply client default values for fields the caller didn't set so that
624+
# defaults are part of `_data` and therefore included during serialization.
625+
for rf in self._attr_to_rest_field.values():
626+
if rf._default is _UNSET:
627+
continue
628+
if rf._rest_name in dict_to_pass:
629+
continue
630+
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
623631
super().__init__(dict_to_pass)
624632

625633
def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:

packages/typespec-python/tests/generated/azure/azure-client-generator-core-alternate-type/specs/azure/clientgenerator/core/alternatetype/_utils/model_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
634634
if v is not None
635635
}
636636
)
637+
# Apply client default values for fields the caller didn't set so that
638+
# defaults are part of `_data` and therefore included during serialization.
639+
for rf in self._attr_to_rest_field.values():
640+
if rf._default is _UNSET:
641+
continue
642+
if rf._rest_name in dict_to_pass:
643+
continue
644+
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
637645
super().__init__(dict_to_pass)
638646

639647
def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:

packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_utils/model_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
620620
if v is not None
621621
}
622622
)
623+
# Apply client default values for fields the caller didn't set so that
624+
# defaults are part of `_data` and therefore included during serialization.
625+
for rf in self._attr_to_rest_field.values():
626+
if rf._default is _UNSET:
627+
continue
628+
if rf._rest_name in dict_to_pass:
629+
continue
630+
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
623631
super().__init__(dict_to_pass)
624632

625633
def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:

packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_utils/model_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
620620
if v is not None
621621
}
622622
)
623+
# Apply client default values for fields the caller didn't set so that
624+
# defaults are part of `_data` and therefore included during serialization.
625+
for rf in self._attr_to_rest_field.values():
626+
if rf._default is _UNSET:
627+
continue
628+
if rf._rest_name in dict_to_pass:
629+
continue
630+
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
623631
super().__init__(dict_to_pass)
624632

625633
def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:

packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_utils/model_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
620620
if v is not None
621621
}
622622
)
623+
# Apply client default values for fields the caller didn't set so that
624+
# defaults are part of `_data` and therefore included during serialization.
625+
for rf in self._attr_to_rest_field.values():
626+
if rf._default is _UNSET:
627+
continue
628+
if rf._rest_name in dict_to_pass:
629+
continue
630+
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
623631
super().__init__(dict_to_pass)
624632

625633
def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:

0 commit comments

Comments
 (0)