Skip to content

Commit 2521cec

Browse files
author
SDKAuto
committed
CodeGen from PR 34337 in Azure/azure-rest-api-specs
Merge 83918d3b4c450b332f2e3830ff3c42177c0e9322 into 67aef4a58261c9485a320c0d5abb52c377aee72d
1 parent 2c9172e commit 2521cec

File tree

145 files changed

+11719
-2988
lines changed

Some content is hidden

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

145 files changed

+11719
-2988
lines changed

sdk/network/azure-mgmt-dns/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Release History
22

3+
## 9.0.0 (2025-04-29)
4+
5+
### Features Added
6+
7+
- Model RecordSet has a new parameter system_data
8+
- Model Resource has a new parameter system_data
9+
- Model TrackedResource has a new parameter system_data
10+
11+
### Breaking Changes
12+
13+
- Model Resource no longer has parameter location
14+
- Model Resource no longer has parameter tags
15+
- Operation DnsResourceReferenceOperations.get_by_target_resources has a new required parameter body
16+
- Operation DnsResourceReferenceOperations.get_by_target_resources no longer has parameter parameters
17+
- Operation DnssecConfigsOperations.begin_create_or_update has a new required parameter resource
18+
- Parameter value of model DnssecConfigListResult is now required
19+
- Parameter value of model RecordSetListResult is now required
20+
- Parameter value of model ZoneListResult is now required
21+
322
## 8.2.0 (2024-10-22)
423

524
### Features Added

sdk/network/azure-mgmt-dns/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure DNS Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.

sdk/network/azure-mgmt-dns/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "7189fb57f69468c56df76f9a4d68dd9ff04ab100",
2+
"commit": "16d1d38b083ac3aca22a4ae2bb6343a425f0747a",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.34.1",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/dns/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/dns/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.34.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/dns/resource-manager/readme.md",
1111
"package-2023-07-preview": "2024-01-03 09:33:30 -0800 389c6c7476ec7c6585b002b44a9dacfb5c88b71a Microsoft.Network/preview/2023-07-01-preview/dns.json",
1212
"package-2018-05": "2020-11-17 18:50:08 -0800 b47a32169e59378d8005aabb5358e3f4ddf10766 Microsoft.Network/stable/2018-05-01/dns.json",

sdk/network/azure-mgmt-dns/azure/mgmt/dns/_dns_management_client.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,27 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from typing import Any, Optional, TYPE_CHECKING
12+
from typing import Any, Optional, TYPE_CHECKING, cast
1313
from typing_extensions import Self
1414

1515
from azure.core.pipeline import policies
16+
from azure.core.settings import settings
1617
from azure.mgmt.core import ARMPipelineClient
1718
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
19+
from azure.mgmt.core.tools import get_arm_endpoints
1820
from azure.profiles import KnownProfiles, ProfileDefinition
1921
from azure.profiles.multiapiclient import MultiApiClientMixin
2022

2123
from ._configuration import DnsManagementClientConfiguration
22-
from ._serialization import Deserializer, Serializer
24+
from ._utils.serialization import Deserializer, Serializer
2325

2426
if TYPE_CHECKING:
2527
# pylint: disable=unused-import,ungrouped-imports
2628
from azure.core.credentials import TokenCredential
2729

2830
class _SDKClient(object):
2931
def __init__(self, *args, **kwargs):
30-
"""This is a fake class to support current implemetation of MultiApiClientMixin."
32+
"""This is a fake class to support current implementation of MultiApiClientMixin."
3133
Will be removed in final version of multiapi azure-core based client
3234
"""
3335
pass
@@ -70,13 +72,18 @@ def __init__(
7072
credential: "TokenCredential",
7173
subscription_id: str,
7274
api_version: Optional[str]=None,
73-
base_url: str = "https://management.azure.com",
75+
base_url: Optional[str] = None,
7476
profile: KnownProfiles=KnownProfiles.default,
7577
**kwargs: Any
7678
):
7779
if api_version:
7880
kwargs.setdefault('api_version', api_version)
79-
self._config = DnsManagementClientConfiguration(credential, subscription_id, **kwargs)
81+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
82+
_endpoints = get_arm_endpoints(_cloud)
83+
if not base_url:
84+
base_url = _endpoints["resource_manager"]
85+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
86+
self._config = DnsManagementClientConfiguration(credential, subscription_id, credential_scopes=credential_scopes, **kwargs)
8087
_policies = kwargs.pop("policies", None)
8188
if _policies is None:
8289
_policies = [
@@ -95,7 +102,7 @@ def __init__(
95102
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
96103
self._config.http_logging_policy,
97104
]
98-
self._client = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
105+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
99106
super(DnsManagementClient, self).__init__(
100107
api_version=api_version,
101108
profile=profile
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)