Source code for azure.mgmt.dns.v2018_05_01.models.soa_record_py3

# 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 msrest.serialization import Model


[docs]class SoaRecord(Model): """An SOA record. :param host: The domain name of the authoritative name server for this SOA record. :type host: str :param email: The email contact for this SOA record. :type email: str :param serial_number: The serial number for this SOA record. :type serial_number: long :param refresh_time: The refresh value for this SOA record. :type refresh_time: long :param retry_time: The retry time for this SOA record. :type retry_time: long :param expire_time: The expire time for this SOA record. :type expire_time: long :param minimum_ttl: The minimum value for this SOA record. By convention this is used to determine the negative caching duration. :type minimum_ttl: long """ _attribute_map = { 'host': {'key': 'host', 'type': 'str'}, 'email': {'key': 'email', 'type': 'str'}, 'serial_number': {'key': 'serialNumber', 'type': 'long'}, 'refresh_time': {'key': 'refreshTime', 'type': 'long'}, 'retry_time': {'key': 'retryTime', 'type': 'long'}, 'expire_time': {'key': 'expireTime', 'type': 'long'}, 'minimum_ttl': {'key': 'minimumTTL', 'type': 'long'}, } def __init__(self, *, host: str=None, email: str=None, serial_number: int=None, refresh_time: int=None, retry_time: int=None, expire_time: int=None, minimum_ttl: int=None, **kwargs) -> None: super(SoaRecord, self).__init__(**kwargs) self.host = host self.email = email self.serial_number = serial_number self.refresh_time = refresh_time self.retry_time = retry_time self.expire_time = expire_time self.minimum_ttl = minimum_ttl