# 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 SrvRecord(Model):
"""An SRV record.
:param priority: The priority value for this SRV record.
:type priority: int
:param weight: The weight value for this SRV record.
:type weight: int
:param port: The port value for this SRV record.
:type port: int
:param target: The target domain name for this SRV record.
:type target: str
"""
_attribute_map = {
'priority': {'key': 'priority', 'type': 'int'},
'weight': {'key': 'weight', 'type': 'int'},
'port': {'key': 'port', 'type': 'int'},
'target': {'key': 'target', 'type': 'str'},
}
def __init__(self, *, priority: int=None, weight: int=None, port: int=None, target: str=None, **kwargs) -> None:
super(SrvRecord, self).__init__(**kwargs)
self.priority = priority
self.weight = weight
self.port = port
self.target = target