Class: Azure::Network::Mgmt::V2019_11_01::Models::NextHopParameters

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

Overview

Parameters that define the source and destination endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#destination_ipaddressString

Returns The destination IP address.

Returns:

  • (String)

    The destination IP address.


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

def destination_ipaddress
  @destination_ipaddress
end

#source_ipaddressString

Returns The source IP address.

Returns:

  • (String)

    The source IP address.


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

def source_ipaddress
  @source_ipaddress
end

#target_nic_resource_idString

is enabled on any of the nics, then this parameter must be specified. Otherwise optional).

Returns:

  • (String)

    The NIC ID. (If VM has multiple NICs and IP forwarding


28
29
30
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/next_hop_parameters.rb', line 28

def target_nic_resource_id
  @target_nic_resource_id
end

#target_resource_idString

which the action is to be performed.

Returns:

  • (String)

    The resource identifier of the target resource against


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

def target_resource_id
  @target_resource_id
end

Class Method Details

.mapperObject

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


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
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/next_hop_parameters.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'NextHopParameters',
    type: {
      name: 'Composite',
      class_name: 'NextHopParameters',
      model_properties: {
        target_resource_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'targetResourceId',
          type: {
            name: 'String'
          }
        },
        source_ipaddress: {
          client_side_validation: true,
          required: true,
          serialized_name: 'sourceIPAddress',
          type: {
            name: 'String'
          }
        },
        destination_ipaddress: {
          client_side_validation: true,
          required: true,
          serialized_name: 'destinationIPAddress',
          type: {
            name: 'String'
          }
        },
        target_nic_resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetNicResourceId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end