Source code for azure.mgmt.trafficmanager.models.endpoint_properties_subnets_item_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 EndpointPropertiesSubnetsItem(Model): """Subnet first address, scope, and/or last address. :param first: First address in the subnet. :type first: str :param last: Last address in the subnet. :type last: str :param scope: Block size (number of leading bits in the subnet mask). :type scope: int """ _attribute_map = { 'first': {'key': 'first', 'type': 'str'}, 'last': {'key': 'last', 'type': 'str'}, 'scope': {'key': 'scope', 'type': 'int'}, } def __init__(self, *, first: str=None, last: str=None, scope: int=None, **kwargs) -> None: super(EndpointPropertiesSubnetsItem, self).__init__(**kwargs) self.first = first self.last = last self.scope = scope