# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2016_06_01 module Models # # Effective Route # class EffectiveRoute include MsRestAzure # @return [String] Gets the name of the user defined route. This is # optional. attr_accessor :name # @return [EffectiveRouteSource] Gets who created the route. Possible # values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default' attr_accessor :source # @return [EffectiveRouteState] Gets value of effective route. Possible # values include: 'Active', 'Invalid' attr_accessor :state # @return [Array] Gets address prefixes of the effective routes # in CIDR notation. attr_accessor :address_prefix # @return [Array] Gets the IP address of the next hop of the # effective route attr_accessor :next_hop_ip_address # @return [RouteNextHopType] Gets or sets the type of Azure hop the # packet should be sent to. Possible values include: # 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', # 'None' attr_accessor :next_hop_type # # Mapper for EffectiveRoute class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'EffectiveRoute', type: { name: 'Composite', class_name: 'EffectiveRoute', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, source: { client_side_validation: true, required: false, serialized_name: 'source', type: { name: 'String' } }, state: { client_side_validation: true, required: false, serialized_name: 'state', type: { name: 'String' } }, address_prefix: { client_side_validation: true, required: false, serialized_name: 'addressPrefix', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, next_hop_ip_address: { client_side_validation: true, required: false, serialized_name: 'nextHopIpAddress', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, next_hop_type: { client_side_validation: true, required: false, serialized_name: 'nextHopType', type: { name: 'String' } } } } } end end end end