Skip to content

Commit

Permalink
Generated from 7aa3a52
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel committed Oct 10, 2017
1 parent fdf8f53 commit f73f7c8
Show file tree
Hide file tree
Showing 25 changed files with 302 additions and 79 deletions.
Empty file modified azure-mgmt-dns/azure/mgmt/dns/__init__.py
100755 → 100644
Empty file.
6 changes: 2 additions & 4 deletions azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ def __init__(
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not isinstance(subscription_id, str):
raise TypeError("Parameter 'subscription_id' must be str.")
if not base_url:
base_url = 'https://management.azure.com'

Expand All @@ -60,9 +58,9 @@ class DnsManagementClient(object):
:vartype config: DnsManagementClientConfiguration
:ivar record_sets: RecordSets operations
:vartype record_sets: .operations.RecordSetsOperations
:vartype record_sets: azure.mgmt.dns.operations.RecordSetsOperations
:ivar zones: Zones operations
:vartype zones: .operations.ZonesOperations
:vartype zones: azure.mgmt.dns.operations.ZonesOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/__init__.py
100755 → 100644
Empty file.
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/aaaa_record.py
100755 → 100644
Empty file.
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/arecord.py
100755 → 100644
Empty file.
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/cname_record.py
100755 → 100644
Empty file.
Empty file.
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/mx_record.py
100755 → 100644
Empty file.
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/ns_record.py
100755 → 100644
Empty file.
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/ptr_record.py
100755 → 100644
Empty file.
27 changes: 10 additions & 17 deletions azure-mgmt-dns/azure/mgmt/dns/models/record_set.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,27 @@ class RecordSet(Model):
:param etag: The etag of the record set.
:type etag: str
:param metadata: The metadata attached to the record set.
:type metadata: dict
:type metadata: dict[str, str]
:param ttl: The TTL (time-to-live) of the records in the record set.
:type ttl: long
:param arecords: The list of A records in the record set.
:type arecords: list of :class:`ARecord <azure.mgmt.dns.models.ARecord>`
:type arecords: list[~azure.mgmt.dns.models.ARecord]
:param aaaa_records: The list of AAAA records in the record set.
:type aaaa_records: list of :class:`AaaaRecord
<azure.mgmt.dns.models.AaaaRecord>`
:type aaaa_records: list[~azure.mgmt.dns.models.AaaaRecord]
:param mx_records: The list of MX records in the record set.
:type mx_records: list of :class:`MxRecord
<azure.mgmt.dns.models.MxRecord>`
:type mx_records: list[~azure.mgmt.dns.models.MxRecord]
:param ns_records: The list of NS records in the record set.
:type ns_records: list of :class:`NsRecord
<azure.mgmt.dns.models.NsRecord>`
:type ns_records: list[~azure.mgmt.dns.models.NsRecord]
:param ptr_records: The list of PTR records in the record set.
:type ptr_records: list of :class:`PtrRecord
<azure.mgmt.dns.models.PtrRecord>`
:type ptr_records: list[~azure.mgmt.dns.models.PtrRecord]
:param srv_records: The list of SRV records in the record set.
:type srv_records: list of :class:`SrvRecord
<azure.mgmt.dns.models.SrvRecord>`
:type srv_records: list[~azure.mgmt.dns.models.SrvRecord]
:param txt_records: The list of TXT records in the record set.
:type txt_records: list of :class:`TxtRecord
<azure.mgmt.dns.models.TxtRecord>`
:type txt_records: list[~azure.mgmt.dns.models.TxtRecord]
:param cname_record: The CNAME record in the record set.
:type cname_record: :class:`CnameRecord
<azure.mgmt.dns.models.CnameRecord>`
:type cname_record: ~azure.mgmt.dns.models.CnameRecord
:param soa_record: The SOA record in the record set.
:type soa_record: :class:`SoaRecord <azure.mgmt.dns.models.SoaRecord>`
:type soa_record: ~azure.mgmt.dns.models.SoaRecord
"""

_attribute_map = {
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/record_set_paged.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class RecordSetPaged(Paged):
"""
A paging container for iterating over a list of RecordSet object
A paging container for iterating over a list of :class:`RecordSet <azure.mgmt.dns.models.RecordSet>` object
"""

_attribute_map = {
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/record_set_update_parameters.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RecordSetUpdateParameters(Model):
:param record_set: Specifies information about the record set being
updated.
:type record_set: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:type record_set: ~azure.mgmt.dns.models.RecordSet
"""

_attribute_map = {
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/resource.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Resource(Model):
:param location: Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict
:type tags: dict[str, str]
"""

_validation = {
Expand Down
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/soa_record.py
100755 → 100644
Empty file.
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/srv_record.py
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/txt_record.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TxtRecord(Model):
"""A TXT record.
:param value: The text value of this TXT record.
:type value: list of str
:type value: list[str]
"""

_attribute_map = {
Expand Down
4 changes: 2 additions & 2 deletions azure-mgmt-dns/azure/mgmt/dns/models/zone.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Zone(Resource):
:param location: Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict
:type tags: dict[str, str]
:param etag: The etag of the zone.
:type etag: str
:param max_number_of_record_sets: The maximum number of record sets that
Expand All @@ -40,7 +40,7 @@ class Zone(Resource):
:type number_of_record_sets: long
:ivar name_servers: The name servers for this DNS zone. This is a
read-only property and any attempt to set this value will be ignored.
:vartype name_servers: list of str
:vartype name_servers: list[str]
"""

_validation = {
Expand Down
6 changes: 2 additions & 4 deletions azure-mgmt-dns/azure/mgmt/dns/models/zone_delete_result.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class ZoneDeleteResult(Model):
:type azure_async_operation: str
:param status: Possible values include: 'InProgress', 'Succeeded',
'Failed'
:type status: str or :class:`OperationStatus
<azure.mgmt.dns.models.OperationStatus>`
:type status: str or ~azure.mgmt.dns.models.OperationStatus
:param status_code: Possible values include: 'Continue',
'SwitchingProtocols', 'OK', 'Created', 'Accepted',
'NonAuthoritativeInformation', 'NoContent', 'ResetContent',
Expand All @@ -36,8 +35,7 @@ class ZoneDeleteResult(Model):
'ExpectationFailed', 'UpgradeRequired', 'InternalServerError',
'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout',
'HttpVersionNotSupported'
:type status_code: str or :class:`HttpStatusCode
<azure.mgmt.dns.models.HttpStatusCode>`
:type status_code: str or ~azure.mgmt.dns.models.HttpStatusCode
:param request_id:
:type request_id: str
"""
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/zone_paged.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class ZonePaged(Paged):
"""
A paging container for iterating over a list of Zone object
A paging container for iterating over a list of :class:`Zone <azure.mgmt.dns.models.Zone>` object
"""

_attribute_map = {
Expand Down
Empty file modified azure-mgmt-dns/azure/mgmt/dns/operations/__init__.py
100755 → 100644
Empty file.
70 changes: 41 additions & 29 deletions azure-mgmt-dns/azure/mgmt/dns/operations/record_sets_operations.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# regenerated.
# --------------------------------------------------------------------------

import uuid
from msrest.pipeline import ClientRawResponse
from msrestazure.azure_exceptions import CloudError
import uuid

from .. import models

Expand Down Expand Up @@ -50,10 +50,9 @@ def update(
:param record_type: The type of DNS record in this record set.
Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR',
'SOA', 'SRV', 'TXT'
:type record_type: str or :class:`RecordType
<azure.mgmt.dns.models.RecordType>`
:type record_type: str or ~azure.mgmt.dns.models.RecordType
:param parameters: Parameters supplied to the Update operation.
:type parameters: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:type parameters: ~azure.mgmt.dns.models.RecordSet
:param if_match: The etag of the record set. Omit this value to always
overwrite the current record set. Specify the last-seen etag value to
prevent accidentally overwritting concurrent changes.
Expand All @@ -63,9 +62,9 @@ def update(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:return: RecordSet or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.dns.models.RecordSet or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
Expand Down Expand Up @@ -135,11 +134,10 @@ def create_or_update(
sets of type SOA can be updated but not created (they are created when
the DNS zone is created). Possible values include: 'A', 'AAAA',
'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT'
:type record_type: str or :class:`RecordType
<azure.mgmt.dns.models.RecordType>`
:type record_type: str or ~azure.mgmt.dns.models.RecordType
:param parameters: Parameters supplied to the CreateOrUpdate
operation.
:type parameters: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:type parameters: ~azure.mgmt.dns.models.RecordSet
:param if_match: The etag of the record set. Omit this value to always
overwrite the current record set. Specify the last-seen etag value to
prevent accidentally overwritting any concurrent changes.
Expand All @@ -153,9 +151,9 @@ def create_or_update(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:return: RecordSet or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.dns.models.RecordSet or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
Expand Down Expand Up @@ -229,8 +227,7 @@ def delete(
sets of type SOA cannot be deleted (they are deleted when the DNS zone
is deleted). Possible values include: 'A', 'AAAA', 'CNAME', 'MX',
'NS', 'PTR', 'SOA', 'SRV', 'TXT'
:type record_type: str or :class:`RecordType
<azure.mgmt.dns.models.RecordType>`
:type record_type: str or ~azure.mgmt.dns.models.RecordType
:param if_match: The etag of the record set. Omit this value to always
delete the current record set. Specify the last-seen etag value to
prevent accidentally deleting any concurrent changes.
Expand All @@ -240,9 +237,8 @@ def delete(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
Expand Down Expand Up @@ -300,16 +296,15 @@ def get(
:param record_type: The type of DNS record in this record set.
Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR',
'SOA', 'SRV', 'TXT'
:type record_type: str or :class:`RecordType
<azure.mgmt.dns.models.RecordType>`
:type record_type: str or ~azure.mgmt.dns.models.RecordType
: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:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:return: RecordSet or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.dns.models.RecordSet or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
Expand Down Expand Up @@ -358,7 +353,7 @@ def get(
return deserialized

def list_by_type(
self, resource_group_name, zone_name, record_type, top=None, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, zone_name, record_type, top=None, recordsetnamesuffix=None, custom_headers=None, raw=False, **operation_config):
"""Lists the record sets of a specified type in a DNS zone.
:param resource_group_name: The name of the resource group.
Expand All @@ -369,17 +364,23 @@ def list_by_type(
:param record_type: The type of record sets to enumerate. Possible
values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV',
'TXT'
:type record_type: str or :class:`RecordType
<azure.mgmt.dns.models.RecordType>`
:type record_type: str or ~azure.mgmt.dns.models.RecordType
:param top: The maximum number of record sets to return. If not
specified, returns up to 100 record sets.
:type top: int
:param recordsetnamesuffix: The suffix label of the record set name
that has to be used to filter the record set enumerations. If this
parameter is specified, Enumeration will return only records that end
with .<recordSetNameSuffix>
:type recordsetnamesuffix: str
: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>`
:return: An iterator like instance of RecordSet
:rtype:
~azure.mgmt.dns.models.RecordSetPaged[~azure.mgmt.dns.models.RecordSet]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):
Expand All @@ -399,6 +400,8 @@ def internal_paging(next_link=None, raw=False):
query_parameters = {}
if top is not None:
query_parameters['$top'] = self._serialize.query("top", top, 'int')
if recordsetnamesuffix is not None:
query_parameters['$recordsetnamesuffix'] = self._serialize.query("recordsetnamesuffix", recordsetnamesuffix, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

else:
Expand Down Expand Up @@ -438,7 +441,7 @@ def internal_paging(next_link=None, raw=False):
return deserialized

def list_by_dns_zone(
self, resource_group_name, zone_name, top=None, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, zone_name, top=None, recordsetnamesuffix=None, custom_headers=None, raw=False, **operation_config):
"""Lists all record sets in a DNS zone.
:param resource_group_name: The name of the resource group.
Expand All @@ -449,12 +452,19 @@ def list_by_dns_zone(
:param top: The maximum number of record sets to return. If not
specified, returns up to 100 record sets.
:type top: int
:param recordsetnamesuffix: The suffix label of the record set name
that has to be used to filter the record set enumerations. If this
parameter is specified, Enumeration will return only records that end
with .<recordSetNameSuffix>
:type recordsetnamesuffix: str
: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>`
:return: An iterator like instance of RecordSet
:rtype:
~azure.mgmt.dns.models.RecordSetPaged[~azure.mgmt.dns.models.RecordSet]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):
Expand All @@ -473,6 +483,8 @@ def internal_paging(next_link=None, raw=False):
query_parameters = {}
if top is not None:
query_parameters['$top'] = self._serialize.query("top", top, 'int')
if recordsetnamesuffix is not None:
query_parameters['$recordsetnamesuffix'] = self._serialize.query("recordsetnamesuffix", recordsetnamesuffix, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

else:
Expand Down
Loading

0 comments on commit f73f7c8

Please sign in to comment.