# azure.mgmt.dns.models module

class `azure.mgmt.dns.models.``ARecord`(ipv4_address=None)

  Bases: `msrest.serialization.Model`

  An A record.

  Parameters: | ipv4_address (str) – Gets or sets the IPv4 address of this A record in string notation.

class `azure.mgmt.dns.models.``AaaaRecord`(ipv6_address=None)

  Bases: `msrest.serialization.Model`

  An AAAA record.

  Parameters: | ipv6_address (str) – Gets or sets the IPv6 address of this AAAA record in string notation.

class `azure.mgmt.dns.models.``MxRecord`(preference=None, exchange=None)

  Bases: `msrest.serialization.Model`

  An MX record.

  Parameters:

  - preference (int) – Gets or sets the preference metric for this record.
  - exchange (str) – Gets or sets the domain name of the mail host, without a terminating dot.

class `azure.mgmt.dns.models.``NsRecord`(nsdname=None)

  Bases: `msrest.serialization.Model`

  An NS record.

  Parameters: | nsdname (str) – Gets or sets the name server name for this record, without a terminating dot.

class `azure.mgmt.dns.models.``PtrRecord`(ptrdname=None)

  Bases: `msrest.serialization.Model`

  A PTR record.

  Parameters: | ptrdname (str) – Gets or sets the PTR target domain name for this record without a terminating dot.

class `azure.mgmt.dns.models.``SrvRecord`(priority=None, weight=None, port=None, target=None)

  Bases: `msrest.serialization.Model`

  An SRV record.

  Parameters:

  - priority (int) – Gets or sets the priority metric for this record.
  - weight (int) – Gets or sets the weight metric for this this record.
  - port (int) – Gets or sets the port of the service for this record.
  - target (str) – Gets or sets the domain name of the target for this record, without a terminating dot.

class `azure.mgmt.dns.models.``TxtRecord`(value=None)

  Bases: `msrest.serialization.Model`

  A TXT record.

  Parameters: | value (list of str) – Gets or sets the text value of this record.

class `azure.mgmt.dns.models.``CnameRecord`(cname=None)

  Bases: `msrest.serialization.Model`

  A CNAME record.

  Parameters: | cname (str) – Gets or sets the canonical name for this record without a terminating dot.

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)

  Bases: `msrest.serialization.Model`

  An SOA record.

  Parameters:

  - host (str) – Gets or sets the domain name of the authoritative name server, without a temrinating dot.
  - email (str) – Gets or sets the email for this record.
  - serial_number (long) – Gets or sets the serial number for this record.
  - refresh_time (long) – Gets or sets the refresh value for this record.
  - retry_time (long) – Gets or sets the retry time for this record.
  - expire_time (long) – Gets or sets the expire time for this record.
  - minimum_ttl (long) – Gets or sets the minimum TTL value for this record.

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)

  Bases: `msrest.serialization.Model`

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

  Parameters:

  - id (str) – Gets or sets the ID of the resource.
  - name (str) – Gets or sets the name of the resource.
  - type (str) – Gets or sets the type of the resource.
  - etag (str) – Gets or sets the ETag of the RecordSet.
  - metadata (dict) – Gets or sets the metadata attached to the resource.
  - ttl (long) – Gets or sets the TTL of the records in the RecordSet.
  - arecords (list of `ARecord`) – Gets or sets the list of A records in the RecordSet.
  - aaaa_records (list of `AaaaRecord`) – Gets or sets the list of AAAA records in the RecordSet.
  - mx_records (list of `MxRecord`) – Gets or sets the list of MX records in the RecordSet.
  - ns_records (list of `NsRecord`) – Gets or sets the list of NS records in the RecordSet.
  - ptr_records (list of `PtrRecord`) – Gets or sets the list of PTR records in the RecordSet.
  - srv_records (list of `SrvRecord`) – Gets or sets the list of SRV records in the RecordSet.
  - txt_records (list of `TxtRecord`) – Gets or sets the list of TXT records in the RecordSet.
  - cname_record (`CnameRecord`) – Gets or sets the CNAME record in the RecordSet.
  - soa_record (`SoaRecord`) – Gets or sets the SOA record in the RecordSet.

class `azure.mgmt.dns.models.``RecordSetUpdateParameters`(record_set=None)

  Bases: `msrest.serialization.Model`

  Parameters supplied to update a RecordSet.

  Parameters: | record_set (`RecordSet`) – Gets or sets information about the RecordSet being updated.

class `azure.mgmt.dns.models.``Zone`(location, tags=None, etag=None, max_number_of_record_sets=None, number_of_record_sets=None)

  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) – Gets the name servers populated for this 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) – Gets or sets the ETag of the zone that is being updated, as received from a Get operation.
  - max_number_of_record_sets (long) – Gets or sets the maximum number of record sets that can be created in this zone.
  - number_of_record_sets (long) – Gets or sets the current number of record sets in this zone.

class `azure.mgmt.dns.models.``ZoneDeleteResult`(azure_async_operation=None, status=None, status_code=None, request_id=None)

  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 `HtpStatusCode`) – 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)

  Bases: `msrest.serialization.Model`

  Resource.

  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

  Parameters:

  - location (str) – Resource location
  - tags (dict) – Resource tags

class `azure.mgmt.dns.models.``RecordSetPaged`(*args, **kwargs)

  Bases: `msrest.paging.Paged`

  A paging container for iterating over a list of RecordSet object

class `azure.mgmt.dns.models.``ZonePaged`(*args, **kwargs)

  Bases: `msrest.paging.Paged`

  A paging container for iterating over a list of Zone object

class `azure.mgmt.dns.models.``OperationStatus`

  Bases: `enum.Enum`

  `failed` = 'Failed'
  `in_progress` = 'InProgress'
  `succeeded` = 'Succeeded'

class `azure.mgmt.dns.models.``HtpStatusCode`

  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`

  Bases: `enum.Enum`

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