forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhealthcheck_protocol_props.yaml.erb
49 lines (49 loc) · 1.74 KB
/
healthcheck_protocol_props.yaml.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<% if ['HTTP', 'HTTPS'].include?(protocol) -%>
- !ruby/object:Api::Type::String
name: 'host'
description: |
The value of the host header in the <%= protocol -%> health check request.
If left empty (default value), the public IP on behalf of which this health
check is performed will be used.
- !ruby/object:Api::Type::String
name: 'requestPath'
description: |
The request path of the <%= protocol -%> health check request.
The default value is /.
<% elsif ['SSL', 'TCP'].include?(protocol) -%>
- !ruby/object:Api::Type::String
name: 'request'
description: |
The application data to send once the <%= protocol -%> connection has been
established (default value is empty). If both request and response are
empty, the connection establishment alone will indicate health. The request
data can only be ASCII.
- !ruby/object:Api::Type::String
name: 'response'
description: |
The bytes to match against the beginning of the response data. If left empty
(the default value), any response will indicate health. The response data
can only be ASCII.
<%
else
raise "Unknown protocol: #{protocol}"
end
-%>
- !ruby/object:Api::Type::Integer
name: 'port'
description: |
The TCP port number for the <%= protocol -%> health check request.
The default value is <%= port -%>.
- !ruby/object:Api::Type::String
name: 'portName'
description: |
Port name as defined in InstanceGroup#NamedPort#name. If both port and
port_name are defined, port takes precedence.
- !ruby/object:Api::Type::Enum
name: 'proxyHeader'
description: |
Specifies the type of proxy header to append before sending data to the
backend, either NONE or PROXY_V1. The default is NONE.
values:
- :NONE
- :PROXY_V1