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 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
# 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 EffectiveRoute(Model):
"""Effective Route.
:param name: Gets the name of the user defined route. This is optional.
:type name: str
:param source: Gets who created the route. Possible values include:
'Unknown', 'User', 'VirtualNetworkGateway', 'Default'
:type source: str or :class:`EffectiveRouteSource
<azure.mgmt.network.models.EffectiveRouteSource>`
:param state: Gets value of effective route. Possible values include:
'Active', 'Invalid'
:type state: str or :class:`EffectiveRouteState
<azure.mgmt.network.models.EffectiveRouteState>`
:param address_prefix: Gets address prefixes of the effective routes in
CIDR notation.
:type address_prefix: list of str
:param next_hop_ip_address: Gets the IP address of the next hop of the
effective route
:type next_hop_ip_address: list of str
:param next_hop_type: Gets or sets the type of Azure hop the packet
should be sent to. Possible values include: 'VirtualNetworkGateway',
'VnetLocal', 'Internet', 'VirtualAppliance', 'None'
:type next_hop_type: str or :class:`RouteNextHopType
<azure.mgmt.network.models.RouteNextHopType>`
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'source': {'key': 'source', 'type': 'str'},
'state': {'key': 'state', 'type': 'str'},
'address_prefix': {'key': 'addressPrefix', 'type': '[str]'},
'next_hop_ip_address': {'key': 'nextHopIpAddress', 'type': '[str]'},
'next_hop_type': {'key': 'nextHopType', 'type': 'str'},
}
def __init__(self, name=None, source=None, state=None, address_prefix=None, next_hop_ip_address=None, next_hop_type=None):
self.name = name
self.source = source
self.state = state
self.address_prefix = address_prefix
self.next_hop_ip_address = next_hop_ip_address
self.next_hop_type = next_hop_type
|