Class: Azure::Network::Mgmt::V2019_12_01::Models::ConnectionMonitorHttpConfiguration

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-01/generated/azure_mgmt_network/models/connection_monitor_http_configuration.rb

Overview

Describes the HTTP configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#methodHTTPConfigurationMethod

values include: 'Get', 'Post'

Returns:


20
21
22
# File 'lib/2019-12-01/generated/azure_mgmt_network/models/connection_monitor_http_configuration.rb', line 20

def method
  @method
end

#pathString

“/dir1/dir2”.

Returns:

  • (String)

    The path component of the URI. For instance,


24
25
26
# File 'lib/2019-12-01/generated/azure_mgmt_network/models/connection_monitor_http_configuration.rb', line 24

def path
  @path
end

#portInteger

Returns The port to connect to.

Returns:

  • (Integer)

    The port to connect to.


16
17
18
# File 'lib/2019-12-01/generated/azure_mgmt_network/models/connection_monitor_http_configuration.rb', line 16

def port
  @port
end

#prefer_httpsBoolean

in cases where the choice is not explicit.

Returns:

  • (Boolean)

    Value indicating whether HTTPS is preferred over HTTP


36
37
38
# File 'lib/2019-12-01/generated/azure_mgmt_network/models/connection_monitor_http_configuration.rb', line 36

def prefer_https
  @prefer_https
end

#request_headersArray<HTTPHeader>

request.

Returns:

  • (Array<HTTPHeader>)

    The HTTP headers to transmit with the


28
29
30
# File 'lib/2019-12-01/generated/azure_mgmt_network/models/connection_monitor_http_configuration.rb', line 28

def request_headers
  @request_headers
end

#valid_status_code_rangesArray<String>

instance, “2xx,301-304,418”.

Returns:

  • (Array<String>)

    HTTP status codes to consider successful. For


32
33
34
# File 'lib/2019-12-01/generated/azure_mgmt_network/models/connection_monitor_http_configuration.rb', line 32

def valid_status_code_ranges
  @valid_status_code_ranges
end

Class Method Details

.mapperObject

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


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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/2019-12-01/generated/azure_mgmt_network/models/connection_monitor_http_configuration.rb', line 43

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ConnectionMonitorHttpConfiguration',
    type: {
      name: 'Composite',
      class_name: 'ConnectionMonitorHttpConfiguration',
      model_properties: {
        port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'port',
          type: {
            name: 'Number'
          }
        },
        method: {
          client_side_validation: true,
          required: false,
          serialized_name: 'method',
          type: {
            name: 'String'
          }
        },
        path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'path',
          type: {
            name: 'String'
          }
        },
        request_headers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'requestHeaders',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HTTPHeaderElementType',
                type: {
                  name: 'Composite',
                  class_name: 'HTTPHeader'
                }
            }
          }
        },
        valid_status_code_ranges: {
          client_side_validation: true,
          required: false,
          serialized_name: 'validStatusCodeRanges',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        prefer_https: {
          client_side_validation: true,
          required: false,
          serialized_name: 'preferHTTPS',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end