class Azure::Network::Mgmt::V2018_02_01::Models::GatewayRoute

Gateway routing details

Attributes

as_path[RW]

@return [String] The route's AS path sequence

local_address[RW]

@return [String] The gateway's local address

network[RW]

@return [String] The route's network prefix

next_hop[RW]

@return [String] The route's next hop

origin[RW]

@return [String] The source this route was learned from

source_peer[RW]

@return [String] The peer this route was learned from

weight[RW]

@return [Integer] The route's weight

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-02-01/generated/azure_mgmt_network/models/gateway_route.rb, line 40
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