Class: Azure::Network::Mgmt::V2019_11_01::Models::VirtualHubRouteV2

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/virtual_hub_route_v2.rb

Overview

VirtualHubRouteTableV2 route.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#destination_typeString

Returns The type of destinations.

Returns:

  • (String)

    The type of destinations.


16
17
18
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/virtual_hub_route_v2.rb', line 16

def destination_type
  @destination_type
end

#destinationsArray<String>

Returns List of all destinations.

Returns:

  • (Array<String>)

    List of all destinations.


19
20
21
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/virtual_hub_route_v2.rb', line 19

def destinations
  @destinations
end

#next_hop_typeString

Returns The type of next hops.

Returns:

  • (String)

    The type of next hops.


22
23
24
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/virtual_hub_route_v2.rb', line 22

def next_hop_type
  @next_hop_type
end

#next_hopsArray<String>

Returns NextHops ip address.

Returns:

  • (Array<String>)

    NextHops ip address.


25
26
27
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/virtual_hub_route_v2.rb', line 25

def next_hops
  @next_hops
end

Class Method Details

.mapperObject

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


32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/virtual_hub_route_v2.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualHubRouteV2',
    type: {
      name: 'Composite',
      class_name: 'VirtualHubRouteV2',
      model_properties: {
        destination_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'destinationType',
          type: {
            name: 'String'
          }
        },
        destinations: {
          client_side_validation: true,
          required: false,
          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: false,
          serialized_name: 'nextHopType',
          type: {
            name: 'String'
          }
        },
        next_hops: {
          client_side_validation: true,
          required: false,
          serialized_name: 'nextHops',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end