Class: Azure::ServiceFabric::V6_5_0_36::Models::TcpConfig

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/generated/azure_service_fabric/models/tcp_config.rb

Overview

Describes the tcp configuration for external connectivity for this network.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#destinationGatewayDestination

traffic.

Returns:



25
26
27
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/tcp_config.rb', line 25

def destination
  @destination
end

#nameString

Returns tcp gateway config name.

Returns:

  • (String)

    tcp gateway config name.



17
18
19
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/tcp_config.rb', line 17

def name
  @name
end

#portInteger

below needs to be exposed.

Returns:

  • (Integer)

    Specifies the port at which the service endpoint



21
22
23
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/tcp_config.rb', line 21

def port
  @port
end

Class Method Details

.mapperObject

Mapper for TcpConfig 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
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/tcp_config.rb', line 32

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