azure.mgmt.dns.models module

class azure.mgmt.dns.models.ARecord(ipv4_address=None)[source]

Bases: msrest.serialization.Model

An A record.

Parameters:ipv4_address (str) – The IPv4 address of this A record.
class azure.mgmt.dns.models.AaaaRecord(ipv6_address=None)[source]

Bases: msrest.serialization.Model

An AAAA record.

Parameters:ipv6_address (str) – The IPv6 address of this AAAA record.
class azure.mgmt.dns.models.MxRecord(preference=None, exchange=None)[source]

Bases: msrest.serialization.Model

An MX record.

Parameters:
  • preference (int) – The preference value for this MX record.
  • exchange (str) – The domain name of the mail host for this MX record.
class azure.mgmt.dns.models.NsRecord(nsdname=None)[source]

Bases: msrest.serialization.Model

An NS record.

Parameters:nsdname (str) – The name server name for this NS record.
class azure.mgmt.dns.models.PtrRecord(ptrdname=None)[source]

Bases: msrest.serialization.Model

A PTR record.

Parameters:ptrdname (str) – The PTR target domain name for this PTR record.
class azure.mgmt.dns.models.SrvRecord(priority=None, weight=None, port=None, target=None)[source]

Bases: msrest.serialization.Model

An SRV record.

Parameters:
  • priority (int) – The priority value for this SRV record.
  • weight (int) – The weight value for this SRV record.
  • port (int) – The port value for this SRV record.
  • target (str) – The target domain name for this SRV record.
class azure.mgmt.dns.models.TxtRecord(value=None)[source]

Bases: msrest.serialization.Model

A TXT record.

Parameters:value (list of str) – The text value of this TXT record.
class azure.mgmt.dns.models.CnameRecord(cname=None)[source]

Bases: msrest.serialization.Model

A CNAME record.

Parameters:cname (str) – The canonical name for this CNAME record.
class azure.mgmt.dns.models.SoaRecord(host=None, email=None, serial_number=None, refresh_time=None, retry_time=None, expire_time=None, minimum_ttl=None)[source]

Bases: msrest.serialization.Model

An SOA record.

Parameters:
  • host (str) – The domain name of the authoritative name server for this SOA record.
  • email (str) – The email contact for this SOA record.
  • serial_number (long) – The serial number for this SOA record.
  • refresh_time (long) – The refresh value for this SOA record.
  • retry_time (long) – The retry time for this SOA record.
  • expire_time (long) – The expire time for this SOA record.
  • minimum_ttl (long) – The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
class azure.mgmt.dns.models.RecordSet(id=None, name=None, type=None, etag=None, metadata=None, ttl=None, arecords=None, aaaa_records=None, mx_records=None, ns_records=None, ptr_records=None, srv_records=None, txt_records=None, cname_record=None, soa_record=None)[source]

Bases: msrest.serialization.Model

Describes a DNS record set (a collection of DNS records with the same name and type).

Parameters:
  • id (str) – The ID of the record set.
  • name (str) – The name of the record set.
  • type (str) – The type of the record set.
  • etag (str) – The etag of the record set.
  • metadata (dict) – The metadata attached to the record set.
  • ttl (long) – The TTL (time-to-live) of the records in the record set.
  • arecords (list of ARecord) – The list of A records in the record set.
  • aaaa_records (list of AaaaRecord) – The list of AAAA records in the record set.
  • mx_records (list of MxRecord) – The list of MX records in the record set.
  • ns_records (list of NsRecord) – The list of NS records in the record set.
  • ptr_records (list of PtrRecord) – The list of PTR records in the record set.
  • srv_records (list of SrvRecord) – The list of SRV records in the record set.
  • txt_records (list of TxtRecord) – The list of TXT records in the record set.
  • cname_record (CnameRecord) – The CNAME record in the record set.
  • soa_record (SoaRecord) – The SOA record in the record set.
class azure.mgmt.dns.models.RecordSetUpdateParameters(record_set=None)[source]

Bases: msrest.serialization.Model

Parameters supplied to update a record set.

Parameters:record_set (RecordSet) – Specifies information about the record set being updated.
class azure.mgmt.dns.models.Zone(location, tags=None, etag=None, max_number_of_record_sets=None, number_of_record_sets=None)[source]

Bases: azure.mgmt.dns.models.resource.Resource

Describes a DNS zone.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – Resource ID.
  • name (str) – Resource name.
  • type (str) – Resource type.
  • name_servers (list of str) – The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
Parameters:
  • location (str) – Resource location.
  • tags (dict) – Resource tags.
  • etag (str) – The etag of the zone.
  • max_number_of_record_sets (long) – The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
  • number_of_record_sets (long) – The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
class azure.mgmt.dns.models.ZoneDeleteResult(azure_async_operation=None, status=None, status_code=None, request_id=None)[source]

Bases: msrest.serialization.Model

The response to a Zone Delete operation.

Parameters:
  • azure_async_operation (str) – Users can perform a Get on Azure-AsyncOperation to get the status of their delete Zone operations.
  • status (str or OperationStatus) – Possible values include: ‘InProgress’, ‘Succeeded’, ‘Failed’
  • status_code (str or HttpStatusCode) – Possible values include: ‘Continue’, ‘SwitchingProtocols’, ‘OK’, ‘Created’, ‘Accepted’, ‘NonAuthoritativeInformation’, ‘NoContent’, ‘ResetContent’, ‘PartialContent’, ‘MultipleChoices’, ‘Ambiguous’, ‘MovedPermanently’, ‘Moved’, ‘Found’, ‘Redirect’, ‘SeeOther’, ‘RedirectMethod’, ‘NotModified’, ‘UseProxy’, ‘Unused’, ‘TemporaryRedirect’, ‘RedirectKeepVerb’, ‘BadRequest’, ‘Unauthorized’, ‘PaymentRequired’, ‘Forbidden’, ‘NotFound’, ‘MethodNotAllowed’, ‘NotAcceptable’, ‘ProxyAuthenticationRequired’, ‘RequestTimeout’, ‘Conflict’, ‘Gone’, ‘LengthRequired’, ‘PreconditionFailed’, ‘RequestEntityTooLarge’, ‘RequestUriTooLong’, ‘UnsupportedMediaType’, ‘RequestedRangeNotSatisfiable’, ‘ExpectationFailed’, ‘UpgradeRequired’, ‘InternalServerError’, ‘NotImplemented’, ‘BadGateway’, ‘ServiceUnavailable’, ‘GatewayTimeout’, ‘HttpVersionNotSupported’
  • request_id (str) –
class azure.mgmt.dns.models.Resource(location, tags=None)[source]

Bases: msrest.serialization.Model

Resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
Parameters:
  • location (str) – Resource location.
  • tags (dict) – Resource tags.
class azure.mgmt.dns.models.RecordSetPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of RecordSet object

class azure.mgmt.dns.models.ZonePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Zone object

class azure.mgmt.dns.models.OperationStatus[source]

Bases: enum.Enum

failed = 'Failed'
in_progress = 'InProgress'
succeeded = 'Succeeded'
class azure.mgmt.dns.models.HttpStatusCode[source]

Bases: enum.Enum

accepted = 'Accepted'
ambiguous = 'Ambiguous'
bad_gateway = 'BadGateway'
bad_request = 'BadRequest'
conflict = 'Conflict'
continue_enum = 'Continue'
created = 'Created'
expectation_failed = 'ExpectationFailed'
forbidden = 'Forbidden'
found = 'Found'
gateway_timeout = 'GatewayTimeout'
gone = 'Gone'
http_version_not_supported = 'HttpVersionNotSupported'
internal_server_error = 'InternalServerError'
length_required = 'LengthRequired'
method_not_allowed = 'MethodNotAllowed'
moved = 'Moved'
moved_permanently = 'MovedPermanently'
multiple_choices = 'MultipleChoices'
no_content = 'NoContent'
non_authoritative_information = 'NonAuthoritativeInformation'
not_acceptable = 'NotAcceptable'
not_found = 'NotFound'
not_implemented = 'NotImplemented'
not_modified = 'NotModified'
ok = 'OK'
partial_content = 'PartialContent'
payment_required = 'PaymentRequired'
precondition_failed = 'PreconditionFailed'
proxy_authentication_required = 'ProxyAuthenticationRequired'
redirect = 'Redirect'
redirect_keep_verb = 'RedirectKeepVerb'
redirect_method = 'RedirectMethod'
request_entity_too_large = 'RequestEntityTooLarge'
request_timeout = 'RequestTimeout'
request_uri_too_long = 'RequestUriTooLong'
requested_range_not_satisfiable = 'RequestedRangeNotSatisfiable'
reset_content = 'ResetContent'
see_other = 'SeeOther'
service_unavailable = 'ServiceUnavailable'
switching_protocols = 'SwitchingProtocols'
temporary_redirect = 'TemporaryRedirect'
unauthorized = 'Unauthorized'
unsupported_media_type = 'UnsupportedMediaType'
unused = 'Unused'
upgrade_required = 'UpgradeRequired'
use_proxy = 'UseProxy'
class azure.mgmt.dns.models.RecordType[source]

Bases: enum.Enum

a = 'A'
aaaa = 'AAAA'
cname = 'CNAME'
mx = 'MX'
ns = 'NS'
ptr = 'PTR'
soa = 'SOA'
srv = 'SRV'
txt = 'TXT'