Class: Azure::ServiceFabric::V6_4_0_36::Models::HttpConfig

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

Overview

Describes the http configuration for external connectivity for this network.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#hostsArray<HttpHostConfig>

Returns description for routing.

Returns:



24
25
26
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/http_config.rb', line 24

def hosts
  @hosts
end

#nameString

Returns http gateway config name.

Returns:

  • (String)

    http gateway config name.



17
18
19
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/http_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.4.0.36/generated/azure_service_fabric/models/http_config.rb', line 21

def port
  @port
end

Class Method Details

.mapperObject

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



31
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
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/http_config.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'HttpConfig',
    type: {
      name: 'Composite',
      class_name: 'HttpConfig',
      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'
          }
        },
        hosts: {
          client_side_validation: true,
          required: true,
          serialized_name: 'hosts',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HttpHostConfigElementType',
                type: {
                  name: 'Composite',
                  class_name: 'HttpHostConfig'
                }
            }
          }
        }
      }
    }
  }
end