class Azure::Network::Mgmt::V2020_04_01::Models::ConnectivitySource

Parameters that define the source of the connection.

Attributes

port[RW]

@return [Integer] The source port from which a connectivity check will be performed.

resource_id[RW]

@return [String] The ID of the resource from which a connectivity check will be initiated.

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-04-01/generated/azure_mgmt_network/models/connectivity_source.rb, line 28
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ConnectivitySource',
    type: {
      name: 'Composite',
      class_name: 'ConnectivitySource',
      model_properties: {
        resource_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'resourceId',
          type: {
            name: 'String'
          }
        },
        port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'port',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end