Class: Azure::Network::Mgmt::V2018_08_01::Models::HTTPConfiguration

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-08-01/generated/azure_mgmt_network/models/httpconfiguration.rb

Overview

HTTP configuration of the connectivity check.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#headersArray<HTTPHeader>

Returns List of HTTP headers.

Returns:


19
20
21
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/httpconfiguration.rb', line 19

def headers
  @headers
end

#methodHTTPMethod

Returns HTTP method. Possible values include: 'Get'.

Returns:

  • (HTTPMethod)

    HTTP method. Possible values include: 'Get'


16
17
18
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/httpconfiguration.rb', line 16

def method
  @method
end

#valid_status_codesArray<Integer>

Returns Valid status codes.

Returns:

  • (Array<Integer>)

    Valid status codes.


22
23
24
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/httpconfiguration.rb', line 22

def valid_status_codes
  @valid_status_codes
end

Class Method Details

.mapperObject

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


29
30
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
77
78
79
80
81
82
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/httpconfiguration.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'HTTPConfiguration',
    type: {
      name: 'Composite',
      class_name: 'HTTPConfiguration',
      model_properties: {
        method: {
          client_side_validation: true,
          required: false,
          serialized_name: 'method',
          type: {
            name: 'String'
          }
        },
        headers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'headers',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HTTPHeaderElementType',
                type: {
                  name: 'Composite',
                  class_name: 'HTTPHeader'
                }
            }
          }
        },
        valid_status_codes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'validStatusCodes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'NumberElementType',
                type: {
                  name: 'Number'
                }
            }
          }
        }
      }
    }
  }
end