Class: Azure::Network::Mgmt::V2019_11_01::Models::GatewayRoute

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/gateway_route.rb

Overview

Gateway routing details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#as_pathString

Returns The route's AS path sequence.

Returns:

  • (String)

    The route's AS path sequence.


31
32
33
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/gateway_route.rb', line 31

def as_path
  @as_path
end

#local_addressString

Returns The gateway's local address.

Returns:

  • (String)

    The gateway's local address.


16
17
18
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/gateway_route.rb', line 16

def local_address
  @local_address
end

#networkString

Returns The route's network prefix.

Returns:

  • (String)

    The route's network prefix.


19
20
21
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/gateway_route.rb', line 19

def network
  @network
end

#next_hopString

Returns The route's next hop.

Returns:

  • (String)

    The route's next hop.


22
23
24
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/gateway_route.rb', line 22

def next_hop
  @next_hop
end

#originString

Returns The source this route was learned from.

Returns:

  • (String)

    The source this route was learned from.


28
29
30
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/gateway_route.rb', line 28

def origin
  @origin
end

#source_peerString

Returns The peer this route was learned from.

Returns:

  • (String)

    The peer this route was learned from.


25
26
27
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/gateway_route.rb', line 25

def source_peer
  @source_peer
end

#weightInteger

Returns The route's weight.

Returns:

  • (Integer)

    The route's weight.


34
35
36
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/gateway_route.rb', line 34

def weight
  @weight
end

Class Method Details

.mapperObject

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


41
42
43
44
45
46
47
48
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/2019-11-01/generated/azure_mgmt_network/models/gateway_route.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'GatewayRoute',
    type: {
      name: 'Composite',
      class_name: 'GatewayRoute',
      model_properties: {
        local_address: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'localAddress',
          type: {
            name: 'String'
          }
        },
        network: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'network',
          type: {
            name: 'String'
          }
        },
        next_hop: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'nextHop',
          type: {
            name: 'String'
          }
        },
        source_peer: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'sourcePeer',
          type: {
            name: 'String'
          }
        },
        origin: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'origin',
          type: {
            name: 'String'
          }
        },
        as_path: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'asPath',
          type: {
            name: 'String'
          }
        },
        weight: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'weight',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end