Source code for azure.mgmt.media.models.ip_range_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 IPRange(Model): """The IP address range in the CIDR scheme. :param name: The friendly name for the IP address range. :type name: str :param address: The IP address. :type address: str :param subnet_prefix_length: The subnet mask prefix length (see CIDR notation). :type subnet_prefix_length: int """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'address': {'key': 'address', 'type': 'str'}, 'subnet_prefix_length': {'key': 'subnetPrefixLength', 'type': 'int'}, } def __init__(self, *, name: str=None, address: str=None, subnet_prefix_length: int=None, **kwargs) -> None: super(IPRange, self).__init__(**kwargs) self.name = name self.address = address self.subnet_prefix_length = subnet_prefix_length