Skip to content

Commit

Permalink
CodeGen from PR 12832 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 64b2e0f8247a9b5ea20c6252032ba64a43434eb7 into 78b6780
  • Loading branch information
SDKAuto committed Feb 7, 2021
1 parent 5aa3396 commit 43d695a
Show file tree
Hide file tree
Showing 44 changed files with 1,410 additions and 1,626 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .private_dns_management_client import PrivateDnsManagementClient
from .version import VERSION
from ._configuration import PrivateDnsManagementClientConfiguration
from ._private_dns_management_client import PrivateDnsManagementClient
__all__ = ['PrivateDnsManagementClient', 'PrivateDnsManagementClientConfiguration']

__all__ = ['PrivateDnsManagementClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class PrivateDnsManagementClientConfiguration(AzureConfiguration):
"""Configuration for PrivateDnsManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Gets subscription credentials which uniquely
identify Microsoft Azure subscription. The subscription ID forms part of
the URI for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(PrivateDnsManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-privatedns/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,12 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.private_zones_operations import PrivateZonesOperations
from .operations.virtual_network_links_operations import VirtualNetworkLinksOperations
from .operations.record_sets_operations import RecordSetsOperations
from . import models


class PrivateDnsManagementClientConfiguration(AzureConfiguration):
"""Configuration for PrivateDnsManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Gets subscription credentials which uniquely
identify Microsoft Azure subscription. The subscription ID forms part of
the URI for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(PrivateDnsManagementClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-privatedns/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import PrivateDnsManagementClientConfiguration
from .operations import PrivateZonesOperations
from .operations import VirtualNetworkLinksOperations
from .operations import RecordSetsOperations
from . import models


class PrivateDnsManagementClient(SDKClient):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,62 +10,62 @@
# --------------------------------------------------------------------------

try:
from .private_zone_py3 import PrivateZone
from .sub_resource_py3 import SubResource
from .virtual_network_link_py3 import VirtualNetworkLink
from .arecord_py3 import ARecord
from .aaaa_record_py3 import AaaaRecord
from .cname_record_py3 import CnameRecord
from .mx_record_py3 import MxRecord
from .ptr_record_py3 import PtrRecord
from .soa_record_py3 import SoaRecord
from .srv_record_py3 import SrvRecord
from .txt_record_py3 import TxtRecord
from .record_set_py3 import RecordSet
from .resource_py3 import Resource
from .tracked_resource_py3 import TrackedResource
from .proxy_resource_py3 import ProxyResource
from ._models_py3 import AaaaRecord
from ._models_py3 import ARecord
from ._models_py3 import CnameRecord
from ._models_py3 import MxRecord
from ._models_py3 import PrivateZone
from ._models_py3 import ProxyResource
from ._models_py3 import PtrRecord
from ._models_py3 import RecordSet
from ._models_py3 import Resource
from ._models_py3 import SoaRecord
from ._models_py3 import SrvRecord
from ._models_py3 import SubResource
from ._models_py3 import TrackedResource
from ._models_py3 import TxtRecord
from ._models_py3 import VirtualNetworkLink
except (SyntaxError, ImportError):
from .private_zone import PrivateZone
from .sub_resource import SubResource
from .virtual_network_link import VirtualNetworkLink
from .arecord import ARecord
from .aaaa_record import AaaaRecord
from .cname_record import CnameRecord
from .mx_record import MxRecord
from .ptr_record import PtrRecord
from .soa_record import SoaRecord
from .srv_record import SrvRecord
from .txt_record import TxtRecord
from .record_set import RecordSet
from .resource import Resource
from .tracked_resource import TrackedResource
from .proxy_resource import ProxyResource
from .private_zone_paged import PrivateZonePaged
from .virtual_network_link_paged import VirtualNetworkLinkPaged
from .record_set_paged import RecordSetPaged
from .private_dns_management_client_enums import (
from ._models import AaaaRecord
from ._models import ARecord
from ._models import CnameRecord
from ._models import MxRecord
from ._models import PrivateZone
from ._models import ProxyResource
from ._models import PtrRecord
from ._models import RecordSet
from ._models import Resource
from ._models import SoaRecord
from ._models import SrvRecord
from ._models import SubResource
from ._models import TrackedResource
from ._models import TxtRecord
from ._models import VirtualNetworkLink
from ._paged_models import PrivateZonePaged
from ._paged_models import RecordSetPaged
from ._paged_models import VirtualNetworkLinkPaged
from ._private_dns_management_client_enums import (
ProvisioningState,
VirtualNetworkLinkState,
RecordType,
)

__all__ = [
'PrivateZone',
'SubResource',
'VirtualNetworkLink',
'ARecord',
'AaaaRecord',
'ARecord',
'CnameRecord',
'MxRecord',
'PrivateZone',
'ProxyResource',
'PtrRecord',
'SoaRecord',
'SrvRecord',
'TxtRecord',
'RecordSet',
'Resource',
'SoaRecord',
'SrvRecord',
'SubResource',
'TrackedResource',
'ProxyResource',
'TxtRecord',
'VirtualNetworkLink',
'PrivateZonePaged',
'VirtualNetworkLinkPaged',
'RecordSetPaged',
Expand Down
Loading

0 comments on commit 43d695a

Please sign in to comment.