Skip to content

Commit

Permalink
Generated from 13dceb7
Browse files Browse the repository at this point in the history
  • Loading branch information
SwaggerToSDK Automation committed Nov 1, 2016
1 parent ef1f1c0 commit b4bdca9
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 24 deletions.
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(


class DnsManagementClient(object):
"""DnsManagementClient
"""The DNS Management Client.
:ivar config: Configuration for client.
:vartype config: DnsManagementClientConfiguration
Expand Down
4 changes: 2 additions & 2 deletions azure-mgmt-dns/azure/mgmt/dns/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from .zone_paged import ZonePaged
from .dns_management_client_enums import (
OperationStatus,
HtpStatusCode,
HttpStatusCode,
RecordType,
)

Expand All @@ -49,6 +49,6 @@
'RecordSetPaged',
'ZonePaged',
'OperationStatus',
'HtpStatusCode',
'HttpStatusCode',
'RecordType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class OperationStatus(Enum):
failed = "Failed"


class HtpStatusCode(Enum):
class HttpStatusCode(Enum):

continue_enum = "Continue"
switching_protocols = "SwitchingProtocols"
Expand Down
6 changes: 3 additions & 3 deletions azure-mgmt-dns/azure/mgmt/dns/models/zone_delete_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ class ZoneDeleteResult(Model):
'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired',
'InternalServerError', 'NotImplemented', 'BadGateway',
'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported'
:type status_code: str or :class:`HtpStatusCode
<azure.mgmt.dns.models.HtpStatusCode>`
:type status_code: str or :class:`HttpStatusCode
<azure.mgmt.dns.models.HttpStatusCode>`
:param request_id:
:type request_id: str
"""

_attribute_map = {
'azure_async_operation': {'key': 'azureAsyncOperation', 'type': 'str'},
'status': {'key': 'status', 'type': 'OperationStatus'},
'status_code': {'key': 'statusCode', 'type': 'HtpStatusCode'},
'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'},
'request_id': {'key': 'requestId', 'type': 'str'},
}

Expand Down
22 changes: 14 additions & 8 deletions azure-mgmt-dns/azure/mgmt/dns/operations/record_sets_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def update(
:rtype: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}/{recordType}/{relativeRecordSetName}'
Expand Down Expand Up @@ -148,6 +149,7 @@ def create_or_update(
:rtype: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}/{recordType}/{relativeRecordSetName}'
Expand Down Expand Up @@ -235,6 +237,7 @@ def delete(
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}/{recordType}/{relativeRecordSetName}'
Expand Down Expand Up @@ -301,6 +304,7 @@ def get(
:rtype: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}/{recordType}/{relativeRecordSetName}'
Expand Down Expand Up @@ -362,15 +366,16 @@ def list_by_type(
'SRV', 'TXT'
:type record_type: str or :class:`RecordType
<azure.mgmt.dns.models.RecordType>`
:param top: Query parameters. If null is passed returns the default
number of zones.
:type top: str
:param top: Query parameters. If not specified returns the default
number of recordsets.
:type top: int
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`RecordSetPaged <azure.mgmt.dns.models.RecordSetPaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):

Expand All @@ -388,7 +393,7 @@ def internal_paging(next_link=None, raw=False):
# Construct parameters
query_parameters = {}
if top is not None:
query_parameters['$top'] = self._serialize.query("top", top, 'str')
query_parameters['$top'] = self._serialize.query("top", top, 'int')
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')

else:
Expand Down Expand Up @@ -427,7 +432,7 @@ def internal_paging(next_link=None, raw=False):

return deserialized

def list_all_in_resource_group(
def list_by_dns_zone(
self, resource_group_name, zone_name, top=None, custom_headers=None, raw=False, **operation_config):
"""Lists all RecordSets in a DNS zone.
Expand All @@ -437,15 +442,16 @@ def list_all_in_resource_group(
:param zone_name: The name of the zone from which to enumerate
RecordSets.
:type zone_name: str
:param top: Query parameters. If null is passed returns the default
:param top: Query parameters. If not specified returns the default
number of zones.
:type top: str
:type top: int
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`RecordSetPaged <azure.mgmt.dns.models.RecordSetPaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):

Expand All @@ -462,7 +468,7 @@ def internal_paging(next_link=None, raw=False):
# Construct parameters
query_parameters = {}
if top is not None:
query_parameters['$top'] = self._serialize.query("top", top, 'str')
query_parameters['$top'] = self._serialize.query("top", top, 'int')
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')

else:
Expand Down
23 changes: 14 additions & 9 deletions azure-mgmt-dns/azure/mgmt/dns/operations/zones_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def create_or_update(
:rtype: :class:`Zone <azure.mgmt.dns.models.Zone>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}'
Expand Down Expand Up @@ -137,6 +138,7 @@ def delete(
<azure.mgmt.dns.models.ZoneDeleteResult>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}'
Expand Down Expand Up @@ -224,6 +226,7 @@ def get(
:rtype: :class:`Zone <azure.mgmt.dns.models.Zone>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}'
Expand Down Expand Up @@ -268,21 +271,22 @@ def get(

return deserialized

def list_in_resource_group(
def list_by_resource_group(
self, resource_group_name, top=None, custom_headers=None, raw=False, **operation_config):
"""Lists the DNS zones within a resource group.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param top: Query parameters. If null is passed returns the default
:param top: Query parameters. If not specified returns the default
number of zones.
:type top: str
:type top: int
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`ZonePaged <azure.mgmt.dns.models.ZonePaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):

Expand All @@ -298,7 +302,7 @@ def internal_paging(next_link=None, raw=False):
# Construct parameters
query_parameters = {}
if top is not None:
query_parameters['$top'] = self._serialize.query("top", top, 'str')
query_parameters['$top'] = self._serialize.query("top", top, 'int')
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')

else:
Expand Down Expand Up @@ -337,19 +341,20 @@ def internal_paging(next_link=None, raw=False):

return deserialized

def list_in_subscription(
def list(
self, top=None, custom_headers=None, raw=False, **operation_config):
"""Lists the DNS zones within a resource group.
"""Lists the DNS zones within subscription.
:param top: Query parameters. If null is passed returns the default
:param top: Query parameters. If not specified returns the default
number of zones.
:type top: str
:type top: int
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`ZonePaged <azure.mgmt.dns.models.ZonePaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):

Expand All @@ -364,7 +369,7 @@ def internal_paging(next_link=None, raw=False):
# Construct parameters
query_parameters = {}
if top is not None:
query_parameters['$top'] = self._serialize.query("top", top, 'str')
query_parameters['$top'] = self._serialize.query("top", top, 'int')
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')

else:
Expand Down

0 comments on commit b4bdca9

Please sign in to comment.