class Azure::Network::Mgmt::V2020_08_01::Models::HubRoute

RouteTable route.

Attributes

destination_type[RW]

@return [String] The type of destinations (eg: CIDR, ResourceId, Service).

destinations[RW]

@return [Array<String>] List of all destinations.

name[RW]

@return [String] The name of the Route that is unique within a RouteTable. This name can be used to access this route.

next_hop[RW]

@return [String] NextHop resource ID.

next_hop_type[RW]

@return [String] The type of next hop (eg: ResourceId).

Private Class Methods

mapper() click to toggle source

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

# File lib/2020-08-01/generated/azure_mgmt_network/models/hub_route.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'HubRoute',
    type: {
      name: 'Composite',
      class_name: 'HubRoute',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        destination_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'destinationType',
          type: {
            name: 'String'
          }
        },
        destinations: {
          client_side_validation: true,
          required: true,
          serialized_name: 'destinations',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        next_hop_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'nextHopType',
          type: {
            name: 'String'
          }
        },
        next_hop: {
          client_side_validation: true,
          required: true,
          serialized_name: 'nextHop',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end