Skip to content

Commit 959259a

Browse files
author
SDK Automation
committed
Generated from 23bcbdbab81104a92f2f24b59e03438bee900144
1 parent df84a01 commit 959259a

Some content is hidden

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

47 files changed

+1426
-1647
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
recursive-include tests *.py *.yaml
12
include *.md
23
include azure/__init__.py
34
include azure/mgmt/__init__.py
Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
## Microsoft Azure SDK for Python
1+
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure DNS Private Zones Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
46

5-
Azure Resource Manager (ARM) is the next generation of management APIs
6-
that replace the old Azure Service Management (ASM).
77

8-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
8+
# Usage
99

10-
For the older Azure Service Management (ASM) libraries, see
11-
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
12-
library.
10+
For code examples, see [DNS Private Zones](https://docs.microsoft.com/python/api/overview/azure/)
11+
on docs.microsoft.com.
1312

14-
For a more complete set of Azure libraries, see the
15-
[azure sdk python release](https://aka.ms/azsdk/python/all).
1613

17-
## Usage
14+
# Provide Feedback
1815

19-
For code examples, see [DNS Private
20-
Zones](https://docs.microsoft.com/python/api/overview/azure/) on
21-
docs.microsoft.com.
22-
23-
## Provide Feedback
24-
25-
If you encounter any bugs or have suggestions, please file an issue in
26-
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
2718
section of the project.
2819

29-
![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-privatedns%2FREADME.png)
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-privatedns%2FREADME.png)

sdk/network/azure-mgmt-privatedns/azure/mgmt/privatedns/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .private_dns_management_client import PrivateDnsManagementClient
13-
from .version import VERSION
12+
from ._configuration import PrivateDnsManagementClientConfiguration
13+
from ._private_dns_management_client import PrivateDnsManagementClient
14+
__all__ = ['PrivateDnsManagementClient', 'PrivateDnsManagementClientConfiguration']
1415

15-
__all__ = ['PrivateDnsManagementClient']
16+
from .version import VERSION
1617

1718
__version__ = VERSION
1819

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class PrivateDnsManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for PrivateDnsManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: Gets subscription credentials which uniquely
25+
identify Microsoft Azure subscription. The subscription ID forms part of
26+
the URI for every service call.
27+
:type subscription_id: str
28+
:param str base_url: Service URL
29+
"""
30+
31+
def __init__(
32+
self, credentials, subscription_id, base_url=None):
33+
34+
if credentials is None:
35+
raise ValueError("Parameter 'credentials' must not be None.")
36+
if subscription_id is None:
37+
raise ValueError("Parameter 'subscription_id' must not be None.")
38+
if not base_url:
39+
base_url = 'https://management.azure.com'
40+
41+
super(PrivateDnsManagementClientConfiguration, self).__init__(base_url)
42+
43+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
44+
self.keep_alive = True
45+
46+
self.add_user_agent('azure-mgmt-privatedns/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id

sdk/network/azure-mgmt-privatedns/azure/mgmt/privatedns/private_dns_management_client.py renamed to sdk/network/azure-mgmt-privatedns/azure/mgmt/privatedns/_private_dns_management_client.py

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,12 @@
1111

1212
from msrest.service_client import SDKClient
1313
from msrest import Serializer, Deserializer
14-
from msrestazure import AzureConfiguration
15-
from .version import VERSION
16-
from .operations.private_zones_operations import PrivateZonesOperations
17-
from .operations.virtual_network_links_operations import VirtualNetworkLinksOperations
18-
from .operations.record_sets_operations import RecordSetsOperations
19-
from . import models
20-
21-
22-
class PrivateDnsManagementClientConfiguration(AzureConfiguration):
23-
"""Configuration for PrivateDnsManagementClient
24-
Note that all parameters used to create this instance are saved as instance
25-
attributes.
26-
27-
:param credentials: Credentials needed for the client to connect to Azure.
28-
:type credentials: :mod:`A msrestazure Credentials
29-
object<msrestazure.azure_active_directory>`
30-
:param subscription_id: Gets subscription credentials which uniquely
31-
identify Microsoft Azure subscription. The subscription ID forms part of
32-
the URI for every service call.
33-
:type subscription_id: str
34-
:param str base_url: Service URL
35-
"""
36-
37-
def __init__(
38-
self, credentials, subscription_id, base_url=None):
39-
40-
if credentials is None:
41-
raise ValueError("Parameter 'credentials' must not be None.")
42-
if subscription_id is None:
43-
raise ValueError("Parameter 'subscription_id' must not be None.")
44-
if not base_url:
45-
base_url = 'https://management.azure.com'
46-
47-
super(PrivateDnsManagementClientConfiguration, self).__init__(base_url)
4814

49-
self.add_user_agent('azure-mgmt-privatedns/{}'.format(VERSION))
50-
self.add_user_agent('Azure-SDK-For-Python')
51-
52-
self.credentials = credentials
53-
self.subscription_id = subscription_id
15+
from ._configuration import PrivateDnsManagementClientConfiguration
16+
from .operations import PrivateZonesOperations
17+
from .operations import VirtualNetworkLinksOperations
18+
from .operations import RecordSetsOperations
19+
from . import models
5420

5521

5622
class PrivateDnsManagementClient(SDKClient):

sdk/network/azure-mgmt-privatedns/azure/mgmt/privatedns/models/__init__.py

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,62 +10,62 @@
1010
# --------------------------------------------------------------------------
1111

1212
try:
13-
from .private_zone_py3 import PrivateZone
14-
from .sub_resource_py3 import SubResource
15-
from .virtual_network_link_py3 import VirtualNetworkLink
16-
from .arecord_py3 import ARecord
17-
from .aaaa_record_py3 import AaaaRecord
18-
from .cname_record_py3 import CnameRecord
19-
from .mx_record_py3 import MxRecord
20-
from .ptr_record_py3 import PtrRecord
21-
from .soa_record_py3 import SoaRecord
22-
from .srv_record_py3 import SrvRecord
23-
from .txt_record_py3 import TxtRecord
24-
from .record_set_py3 import RecordSet
25-
from .resource_py3 import Resource
26-
from .tracked_resource_py3 import TrackedResource
27-
from .proxy_resource_py3 import ProxyResource
13+
from ._models_py3 import AaaaRecord
14+
from ._models_py3 import ARecord
15+
from ._models_py3 import CnameRecord
16+
from ._models_py3 import MxRecord
17+
from ._models_py3 import PrivateZone
18+
from ._models_py3 import ProxyResource
19+
from ._models_py3 import PtrRecord
20+
from ._models_py3 import RecordSet
21+
from ._models_py3 import Resource
22+
from ._models_py3 import SoaRecord
23+
from ._models_py3 import SrvRecord
24+
from ._models_py3 import SubResource
25+
from ._models_py3 import TrackedResource
26+
from ._models_py3 import TxtRecord
27+
from ._models_py3 import VirtualNetworkLink
2828
except (SyntaxError, ImportError):
29-
from .private_zone import PrivateZone
30-
from .sub_resource import SubResource
31-
from .virtual_network_link import VirtualNetworkLink
32-
from .arecord import ARecord
33-
from .aaaa_record import AaaaRecord
34-
from .cname_record import CnameRecord
35-
from .mx_record import MxRecord
36-
from .ptr_record import PtrRecord
37-
from .soa_record import SoaRecord
38-
from .srv_record import SrvRecord
39-
from .txt_record import TxtRecord
40-
from .record_set import RecordSet
41-
from .resource import Resource
42-
from .tracked_resource import TrackedResource
43-
from .proxy_resource import ProxyResource
44-
from .private_zone_paged import PrivateZonePaged
45-
from .virtual_network_link_paged import VirtualNetworkLinkPaged
46-
from .record_set_paged import RecordSetPaged
47-
from .private_dns_management_client_enums import (
29+
from ._models import AaaaRecord
30+
from ._models import ARecord
31+
from ._models import CnameRecord
32+
from ._models import MxRecord
33+
from ._models import PrivateZone
34+
from ._models import ProxyResource
35+
from ._models import PtrRecord
36+
from ._models import RecordSet
37+
from ._models import Resource
38+
from ._models import SoaRecord
39+
from ._models import SrvRecord
40+
from ._models import SubResource
41+
from ._models import TrackedResource
42+
from ._models import TxtRecord
43+
from ._models import VirtualNetworkLink
44+
from ._paged_models import PrivateZonePaged
45+
from ._paged_models import RecordSetPaged
46+
from ._paged_models import VirtualNetworkLinkPaged
47+
from ._private_dns_management_client_enums import (
4848
ProvisioningState,
4949
VirtualNetworkLinkState,
5050
RecordType,
5151
)
5252

5353
__all__ = [
54-
'PrivateZone',
55-
'SubResource',
56-
'VirtualNetworkLink',
57-
'ARecord',
5854
'AaaaRecord',
55+
'ARecord',
5956
'CnameRecord',
6057
'MxRecord',
58+
'PrivateZone',
59+
'ProxyResource',
6160
'PtrRecord',
62-
'SoaRecord',
63-
'SrvRecord',
64-
'TxtRecord',
6561
'RecordSet',
6662
'Resource',
63+
'SoaRecord',
64+
'SrvRecord',
65+
'SubResource',
6766
'TrackedResource',
68-
'ProxyResource',
67+
'TxtRecord',
68+
'VirtualNetworkLink',
6969
'PrivateZonePaged',
7070
'VirtualNetworkLinkPaged',
7171
'RecordSetPaged',

0 commit comments

Comments
 (0)