class Azure::Network::Mgmt::V2016_06_01::Models::Route

Route resource

Attributes

address_prefix[RW]

@return [String] Gets or sets the destination CIDR to which the route applies.

etag[RW]

@return [String] A unique read-only string that changes whenever the resource is updated

name[RW]

@return [String] Gets name of the resource that is unique within a resource group. This name can be used to access the resource

next_hop_ip_address[RW]

@return [String] Gets or sets the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.

next_hop_type[RW]

@return [RouteNextHopType] Gets or sets the type of Azure hop the packet should be sent to. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'

provisioning_state[RW]

@return [String] Gets provisioning state of the resource Updating/Deleting/Failed

Public Class Methods

mapper() click to toggle source

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

# File lib/2016-06-01/generated/azure_mgmt_network/models/route.rb, line 47
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Route',
    type: {
      name: 'Composite',
      class_name: 'Route',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        address_prefix: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.addressPrefix',
          type: {
            name: 'String'
          }
        },
        next_hop_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.nextHopType',
          type: {
            name: 'String'
          }
        },
        next_hop_ip_address: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.nextHopIpAddress',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end