Skip to content

Commit f4c8a8c

Browse files
msyycSDKAutoRAY-316
authored
[AutoRelease] t2-dns-2021-04-14-12237 (Azure#18039)
* CodeGen from PR 13923 in Azure/azure-rest-api-specs dns t2 readme config (Azure#13923) * version,CHANGELOG * test * test config * dns changelog config * test config Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed <601306339@qq.com> Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com>
1 parent f394ae8 commit f4c8a8c

40 files changed

+847
-662
lines changed

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

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

3+
## 8.0.0 (2021-04-14)
4+
5+
-GA release
6+
37
## 8.0.0b1 (2021-03-10)
48

59
This is beta preview version.

sdk/network/azure-mgmt-dns/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "3.3.0",
3+
"use": "@autorest/python@5.6.5",
4+
"commit": "6fa6101166a28f1fd82d6a60b8038c9af236e2be",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/dns/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.5 --version=3.3.0",
7+
"readme": "specification/dns/resource-manager/readme.md"
8+
}

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@
88
# Changes may cause incorrect behavior and will be lost if the code is
99
# regenerated.
1010
# --------------------------------------------------------------------------
11-
from typing import Any
11+
from typing import TYPE_CHECKING
1212

1313
from azure.core.configuration import Configuration
1414
from azure.core.pipeline import policies
1515
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1616

1717
from ._version import VERSION
1818

19+
if TYPE_CHECKING:
20+
# pylint: disable=unused-import,ungrouped-imports
21+
from typing import Any
22+
23+
from azure.core.credentials import TokenCredential
1924

2025
class DnsManagementClientConfiguration(Configuration):
2126
"""Configuration for DnsManagementClient.

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

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,22 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from azure.mgmt.core import ARMPipelineClient
13-
from msrest import Serializer, Deserializer
12+
from typing import TYPE_CHECKING
1413

14+
from azure.mgmt.core import ARMPipelineClient
1515
from azure.profiles import KnownProfiles, ProfileDefinition
1616
from azure.profiles.multiapiclient import MultiApiClientMixin
17+
from msrest import Deserializer, Serializer
18+
1719
from ._configuration import DnsManagementClientConfiguration
1820

21+
if TYPE_CHECKING:
22+
# pylint: disable=unused-import,ungrouped-imports
23+
from typing import Any, Optional
24+
25+
from azure.core.credentials import TokenCredential
26+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
27+
1928
class _SDKClient(object):
2029
def __init__(self, *args, **kwargs):
2130
"""This is a fake class to support current implemetation of MultiApiClientMixin."
@@ -38,9 +47,10 @@ class DnsManagementClient(MultiApiClientMixin, _SDKClient):
3847
:type credential: ~azure.core.credentials.TokenCredential
3948
:param subscription_id: Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
4049
:type subscription_id: str
41-
:param str api_version: API version to use if no profile is provided, or if
42-
missing in profile.
43-
:param str base_url: Service URL
50+
:param api_version: API version to use if no profile is provided, or if missing in profile.
51+
:type api_version: str
52+
:param base_url: Service URL
53+
:type base_url: str
4454
:param profile: A profile definition, from KnownProfiles to dict.
4555
:type profile: azure.profiles.KnownProfiles
4656
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
@@ -59,9 +69,9 @@ def __init__(
5969
self,
6070
credential, # type: "TokenCredential"
6171
subscription_id, # type: str
62-
api_version=None,
63-
base_url=None,
64-
profile=KnownProfiles.default,
72+
api_version=None, # type: Optional[str]
73+
base_url=None, # type: Optional[str]
74+
profile=KnownProfiles.default, # type: KnownProfiles
6575
**kwargs # type: Any
6676
):
6777
if not base_url:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "8.0.0b1"
12+
VERSION = "8.0.0"
1313

sdk/network/azure-mgmt-dns/azure/mgmt/dns/aio/_configuration.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@
88
# Changes may cause incorrect behavior and will be lost if the code is
99
# regenerated.
1010
# --------------------------------------------------------------------------
11-
from typing import Any
11+
from typing import Any, TYPE_CHECKING
1212

1313
from azure.core.configuration import Configuration
1414
from azure.core.pipeline import policies
1515
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1616

1717
from .._version import VERSION
1818

19+
if TYPE_CHECKING:
20+
# pylint: disable=unused-import,ungrouped-imports
21+
from azure.core.credentials_async import AsyncTokenCredential
1922

2023
class DnsManagementClientConfiguration(Configuration):
2124
"""Configuration for DnsManagementClient.
@@ -31,8 +34,8 @@ class DnsManagementClientConfiguration(Configuration):
3134

3235
def __init__(
3336
self,
34-
credential, # type: "AsyncTokenCredential"
35-
subscription_id, # type: str
37+
credential: "AsyncTokenCredential",
38+
subscription_id: str,
3639
**kwargs # type: Any
3740
) -> None:
3841
if credential is None:

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

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from azure.mgmt.core import AsyncARMPipelineClient
13-
from msrest import Serializer, Deserializer
12+
from typing import Any, Optional, TYPE_CHECKING
1413

14+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
15+
from azure.mgmt.core import AsyncARMPipelineClient
1516
from azure.profiles import KnownProfiles, ProfileDefinition
1617
from azure.profiles.multiapiclient import MultiApiClientMixin
18+
from msrest import Deserializer, Serializer
19+
1720
from ._configuration import DnsManagementClientConfiguration
1821

22+
if TYPE_CHECKING:
23+
# pylint: disable=unused-import,ungrouped-imports
24+
from azure.core.credentials_async import AsyncTokenCredential
25+
1926
class _SDKClient(object):
2027
def __init__(self, *args, **kwargs):
2128
"""This is a fake class to support current implemetation of MultiApiClientMixin."
@@ -38,9 +45,10 @@ class DnsManagementClient(MultiApiClientMixin, _SDKClient):
3845
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3946
:param subscription_id: Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
4047
:type subscription_id: str
41-
:param str api_version: API version to use if no profile is provided, or if
42-
missing in profile.
43-
:param str base_url: Service URL
48+
:param api_version: API version to use if no profile is provided, or if missing in profile.
49+
:type api_version: str
50+
:param base_url: Service URL
51+
:type base_url: str
4452
:param profile: A profile definition, from KnownProfiles to dict.
4553
:type profile: azure.profiles.KnownProfiles
4654
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
@@ -57,11 +65,11 @@ class DnsManagementClient(MultiApiClientMixin, _SDKClient):
5765

5866
def __init__(
5967
self,
60-
credential, # type: "AsyncTokenCredential"
61-
subscription_id, # type: str
62-
api_version=None,
63-
base_url=None,
64-
profile=KnownProfiles.default,
68+
credential: "AsyncTokenCredential",
69+
subscription_id: str,
70+
api_version: Optional[str] = None,
71+
base_url: Optional[str] = None,
72+
profile: KnownProfiles = KnownProfiles.default,
6573
**kwargs # type: Any
6674
) -> None:
6775
if not base_url:

sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# --------------------------------------------------------------------------
88

99
from ._dns_management_client import DnsManagementClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
1013
__all__ = ['DnsManagementClient']
1114

1215
try:

sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from ._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from typing import Any
1820

1921
from azure.core.credentials import TokenCredential
2022

21-
VERSION = "unknown"
2223

2324
class DnsManagementClientConfiguration(Configuration):
2425
"""Configuration for DnsManagementClient.

0 commit comments

Comments
 (0)