Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release History

## 1.0.0b1 (2026-04-28)
## 1.0.0b1 (2026-05-19)

### Other Changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"apiVersions": {
"Microsoft.DomainRegistration": "2024-11-01"
},
"commit": "0bbf3007108984bcabfdcee134f1dfc9cb3e678e",
"commit": "b59aeff7f87d58a631c71fb0533f99ed91d54d71",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration",
"emitterVersion": "0.61.3"
"emitterVersion": "0.62.1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@
"azure.mgmt.domainregistration.aio.operations.TopLevelDomainsOperations.list_agreements": "Microsoft.DomainRegistration.TopLevelDomains.listAgreements",
"azure.mgmt.domainregistration.operations.DomainRegistrationProviderOperations.list_operations": "Azure.ResourceManager.Legacy.Operations.list",
"azure.mgmt.domainregistration.aio.operations.DomainRegistrationProviderOperations.list_operations": "Azure.ResourceManager.Legacy.Operations.list"
}
},
"CrossLanguageVersion": "5137c6f71ea1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# --------------------------------------------------------------------------

from copy import deepcopy
import sys
from typing import Any, Optional, TYPE_CHECKING, cast
from typing_extensions import Self

from azure.core.pipeline import policies
from azure.core.rest import HttpRequest, HttpResponse
Expand All @@ -21,6 +21,11 @@
from ._utils.serialization import Deserializer, Serializer
from .operations import DomainRegistrationProviderOperations, DomainsOperations, TopLevelDomainsOperations

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self # type: ignore

if TYPE_CHECKING:
from azure.core import AzureClouds
from azure.core.credentials import TokenCredential
Expand All @@ -45,7 +50,7 @@ class DomainRegistrationMgmtClient:
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:paramtype cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Known values are "2024-11-01".
:keyword api_version: The API version to use for this operation. Known value is "2024-11-01".
Default value is "2024-11-01". Note that overriding this default value may result in
unsupported behavior.
:paramtype api_version: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class DomainRegistrationMgmtClientConfiguration: # pylint: disable=too-many-ins
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:type cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Known values are "2024-11-01".
Default value is "2024-11-01". Note that overriding this default value may result in
unsupported behavior.
:keyword api_version: The API version to use for this operation. Known values are "2024-11-01"
and None. Default value is None. If not set, the operation's default API version will be used.
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@
from json import JSONEncoder
import xml.etree.ElementTree as ET
from collections.abc import MutableMapping
from typing_extensions import Self
import isodate
from azure.core.exceptions import DeserializationError
from azure.core import CaseInsensitiveEnumMeta
from azure.core.pipeline import PipelineResponse
from azure.core.serialization import _Null

from azure.core.rest import HttpResponse

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self

_LOGGER = logging.getLogger(__name__)

__all__ = ["SdkJSONEncoder", "Model", "rest_field", "rest_discriminator"]
Expand Down Expand Up @@ -595,11 +600,7 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
class_name = self.__class__.__name__
if len(args) > 1:
raise TypeError(f"{class_name}.__init__() takes 2 positional arguments but {len(args) + 1} were given")
dict_to_pass = {
rest_field._rest_name: rest_field._default
for rest_field in self._attr_to_rest_field.values()
if rest_field._default is not _UNSET
}
dict_to_pass: dict[str, typing.Any] = {}
if args:
if isinstance(args[0], ET.Element):
dict_to_pass.update(self._init_from_xml(args[0]))
Expand All @@ -619,6 +620,14 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
if v is not None
}
)
# Apply client default values for fields the caller didn't set so that
# defaults are part of `_data` and therefore included during serialization.
for rf in self._attr_to_rest_field.values():
if rf._default is _UNSET:
continue
if rf._rest_name in dict_to_pass:
continue
dict_to_pass[rf._rest_name] = _create_value(rf, rf._default)
super().__init__(dict_to_pass)

def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]:
Expand Down Expand Up @@ -1113,7 +1122,10 @@ def __get__(self, obj: Model, type=None): # pylint: disable=redefined-builtin
# by this point, type and rest_name will have a value bc we default
# them in __new__ of the Model class
# Use _data.get() directly to avoid triggering __getitem__ which clears the cache
item = obj._data.get(self._rest_name)
item = obj._data.get(self._rest_name, _UNSET)
if item is _UNSET:
# Field not set by user; return the client default if one exists, otherwise None
return self._default if self._default is not _UNSET else None
if item is None:
return item
if self._is_model:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@
import xml.etree.ElementTree as ET

import isodate # type: ignore
from typing_extensions import Self

from azure.core.exceptions import DeserializationError, SerializationError
from azure.core.serialization import NULL as CoreNull

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self

_BOM = codecs.BOM_UTF8.decode(encoding="utf-8")

JSON = MutableMapping[str, Any]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# --------------------------------------------------------------------------

from copy import deepcopy
import sys
from typing import Any, Awaitable, Optional, TYPE_CHECKING, cast
from typing_extensions import Self

from azure.core.pipeline import policies
from azure.core.rest import AsyncHttpResponse, HttpRequest
Expand All @@ -21,6 +21,11 @@
from ._configuration import DomainRegistrationMgmtClientConfiguration
from .operations import DomainRegistrationProviderOperations, DomainsOperations, TopLevelDomainsOperations

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self # type: ignore

if TYPE_CHECKING:
from azure.core import AzureClouds
from azure.core.credentials_async import AsyncTokenCredential
Expand All @@ -46,7 +51,7 @@ class DomainRegistrationMgmtClient:
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:paramtype cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Known values are "2024-11-01".
:keyword api_version: The API version to use for this operation. Known value is "2024-11-01".
Default value is "2024-11-01". Note that overriding this default value may result in
unsupported behavior.
:paramtype api_version: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class DomainRegistrationMgmtClientConfiguration: # pylint: disable=too-many-ins
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:type cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Known values are "2024-11-01".
Default value is "2024-11-01". Note that overriding this default value may result in
unsupported behavior.
:keyword api_version: The API version to use for this operation. Known values are "2024-11-01"
and None. Default value is None. If not set, the operation's default API version will be used.
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -785,7 +788,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -1576,7 +1582,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -1949,7 +1958,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -2130,7 +2142,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -2309,7 +2324,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -2423,7 +2441,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -1315,7 +1318,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -2108,7 +2114,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -2477,7 +2486,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -2657,7 +2669,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -2832,7 +2847,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down Expand Up @@ -2946,7 +2964,10 @@ def prepare_request(next_link=None):
)
_next_request_params["api-version"] = self._config.api_version
_request = HttpRequest(
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
"GET",
urllib.parse.urljoin(next_link, _parsed_next_link.path),
headers=_headers,
params=_next_request_params,
)
path_format_arguments = {
"endpoint": self._serialize.url(
Expand Down
Loading
Loading