Class: Azure::Network::Mgmt::V2017_09_01::Models::EffectiveRoute

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01/generated/azure_mgmt_network/models/effective_route.rb

Overview

Effective Route

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#address_prefixArray<String>

CIDR notation.

Returns:

  • (Array<String>)

    The address prefixes of the effective routes in



31
32
33
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/effective_route.rb', line 31

def address_prefix
  @address_prefix
end

#nameString

Returns The name of the user defined route. This is optional.

Returns:

  • (String)

    The name of the user defined route. This is optional.



16
17
18
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/effective_route.rb', line 16

def name
  @name
end

#next_hop_ip_addressArray<String>

route.

Returns:

  • (Array<String>)

    The IP address of the next hop of the effective



35
36
37
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/effective_route.rb', line 35

def next_hop_ip_address
  @next_hop_ip_address
end

#next_hop_typeRouteNextHopType

sent to. Possible values are: ‘VirtualNetworkGateway’, ‘VnetLocal’, ‘Internet’, ‘VirtualAppliance’, and ‘None’. Possible values include: ‘VirtualNetworkGateway’, ‘VnetLocal’, ‘Internet’, ‘VirtualAppliance’, ‘None’

Returns:



42
43
44
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/effective_route.rb', line 42

def next_hop_type
  @next_hop_type
end

#sourceEffectiveRouteSource

are: ‘Unknown’, ‘User’, ‘VirtualNetworkGateway’, and ‘Default’. Possible values include: ‘Unknown’, ‘User’, ‘VirtualNetworkGateway’, ‘Default’

Returns:



22
23
24
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/effective_route.rb', line 22

def source
  @source
end

#stateEffectiveRouteState

values are: ‘Active’ and ‘Invalid’. Possible values include: ‘Active’, ‘Invalid’

Returns:



27
28
29
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/effective_route.rb', line 27

def state
  @state
end

Class Method Details

.mapperObject

Mapper for EffectiveRoute class as Ruby Hash. This will be used for serialization/deserialization.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/effective_route.rb', line 49

def self.mapper()
  {
    required: false,
    serialized_name: 'EffectiveRoute',
    type: {
      name: 'Composite',
      class_name: 'EffectiveRoute',
      model_properties: {
        name: {
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        source: {
          required: false,
          serialized_name: 'source',
          type: {
            name: 'String'
          }
        },
        state: {
          required: false,
          serialized_name: 'state',
          type: {
            name: 'String'
          }
        },
        address_prefix: {
          required: false,
          serialized_name: 'addressPrefix',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        next_hop_ip_address: {
          required: false,
          serialized_name: 'nextHopIpAddress',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        next_hop_type: {
          required: false,
          serialized_name: 'nextHopType',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end