Sha256: 5ad944e722d12614ba66fcc4c9d8751a47eceb35925d81c7482688fe751d656a

Contents?: true

Size: 1.88 KB

Versions: 3

Compression:

Stored size: 1.88 KB

Contents

# 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::ServiceFabric::V6_5_0_36
  module Models
    #
    # Describes the tcp configuration for external connectivity for this
    # network.
    #
    class TcpConfig

      include MsRestAzure

      # @return [String] tcp gateway config name.
      attr_accessor :name

      # @return [Integer] Specifies the port at which the service endpoint
      # below needs to be exposed.
      attr_accessor :port

      # @return [GatewayDestination] Describes destination endpoint for routing
      # traffic.
      attr_accessor :destination


      #
      # Mapper for TcpConfig class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'TcpConfig',
          type: {
            name: 'Composite',
            class_name: 'TcpConfig',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              port: {
                client_side_validation: true,
                required: true,
                serialized_name: 'port',
                type: {
                  name: 'Number'
                }
              },
              destination: {
                client_side_validation: true,
                required: true,
                serialized_name: 'destination',
                type: {
                  name: 'Composite',
                  class_name: 'GatewayDestination'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
azure_service_fabric-0.18.1 lib/6.5.0.36/generated/azure_service_fabric/models/tcp_config.rb
azure_service_fabric-0.18.0 lib/6.5.0.36/generated/azure_service_fabric/models/tcp_config.rb
azure_service_fabric-0.17.2 lib/6.5.0.36/generated/azure_service_fabric/models/tcp_config.rb