class Azure::Network::Mgmt::V2020_06_01::Models::Route

Route resource.

Attributes

address_prefix[RW]

@return [String] 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] The 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] 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] The type of Azure hop the packet should be sent to. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'

provisioning_state[RW]

@return [ProvisioningState] The provisioning state of the route resource. Possible values include: 'Succeeded', '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/2020-06-01/generated/azure_mgmt_network/models/route.rb, line 46
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,
          read_only: true,
          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,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end