File: dns_config.py

package info (click to toggle)
python-azure 2.0.0~rc6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 269,052 kB
  • ctags: 9,428
  • sloc: python: 81,857; makefile: 149
file content (42 lines) | stat: -rw-r--r-- 1,721 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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


class DnsConfig(Model):
    """Class containing DNS settings in a Traffic Manager profile.

    :param relative_name: Gets or sets the relative DNS name provided by this
     Traffic Manager profile.  This value is combined with the DNS domain
     name used by Azure Traffic Manager to form the fully-qualified domain
     name (FQDN) of the profile.
    :type relative_name: str
    :param fqdn: Gets or sets the fully-qualified domain name (FQDN) of the
     Traffic Manager profile.  This is formed from the concatenation of the
     RelativeName with the DNS domain used by Azure Traffic Manager.
    :type fqdn: str
    :param ttl: Gets or sets the DNS Ttime-To-Live (TTL), in seconds.  This
     informs the local DNS resolvers and DNS clients how long to cache DNS
     responses provided by this Traffic Manager profile.
    :type ttl: long
    """ 

    _attribute_map = {
        'relative_name': {'key': 'relativeName', 'type': 'str'},
        'fqdn': {'key': 'fqdn', 'type': 'str'},
        'ttl': {'key': 'ttl', 'type': 'long'},
    }

    def __init__(self, relative_name=None, fqdn=None, ttl=None):
        self.relative_name = relative_name
        self.fqdn = fqdn
        self.ttl = ttl