summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/cloud/google/gcp_compute_health_check.py
diff options
context:
space:
mode:
authorThe Magician <magic-modules@google.com>2019-05-28 10:41:51 -0700
committeransibot <ansibot@users.noreply.github.com>2019-05-28 13:41:51 -0400
commit0ff62fd5c4ba65c30d4ac7e53c0120553dda8832 (patch)
tree2fdd8a45bbd65f427246a7381e690769a197e277 /lib/ansible/modules/cloud/google/gcp_compute_health_check.py
parent70ac35da3ed5ce184d5ef61013313618f407ea07 (diff)
downloadansible-0ff62fd5c4ba65c30d4ac7e53c0120553dda8832.tar.gz
Bug fixes for GCP modules (#56764)
Diffstat (limited to 'lib/ansible/modules/cloud/google/gcp_compute_health_check.py')
-rw-r--r--lib/ansible/modules/cloud/google/gcp_compute_health_check.py32
1 files changed, 10 insertions, 22 deletions
diff --git a/lib/ansible/modules/cloud/google/gcp_compute_health_check.py b/lib/ansible/modules/cloud/google/gcp_compute_health_check.py
index 1ecf29aa75..7c12986196 100644
--- a/lib/ansible/modules/cloud/google/gcp_compute_health_check.py
+++ b/lib/ansible/modules/cloud/google/gcp_compute_health_check.py
@@ -100,12 +100,8 @@ options:
- Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not
specified, the default is TCP. Exactly one of the protocol-specific health check
field must be specified, which must match type field.
+ - 'Some valid choices include: "TCP", "SSL", "HTTP", "HTTPS"'
required: false
- choices:
- - TCP
- - SSL
- - HTTP
- - HTTPS
http_health_check:
description:
- A nested object resource.
@@ -143,11 +139,9 @@ options:
description:
- Specifies the type of proxy header to append before sending data to the
backend, either NONE or PROXY_V1. The default is NONE.
+ - 'Some valid choices include: "NONE", "PROXY_V1"'
required: false
default: NONE
- choices:
- - NONE
- - PROXY_V1
https_health_check:
description:
- A nested object resource.
@@ -185,11 +179,9 @@ options:
description:
- Specifies the type of proxy header to append before sending data to the
backend, either NONE or PROXY_V1. The default is NONE.
+ - 'Some valid choices include: "NONE", "PROXY_V1"'
required: false
default: NONE
- choices:
- - NONE
- - PROXY_V1
tcp_health_check:
description:
- A nested object resource.
@@ -221,11 +213,9 @@ options:
description:
- Specifies the type of proxy header to append before sending data to the
backend, either NONE or PROXY_V1. The default is NONE.
+ - 'Some valid choices include: "NONE", "PROXY_V1"'
required: false
default: NONE
- choices:
- - NONE
- - PROXY_V1
ssl_health_check:
description:
- A nested object resource.
@@ -257,11 +247,9 @@ options:
description:
- Specifies the type of proxy header to append before sending data to the
backend, either NONE or PROXY_V1. The default is NONE.
+ - 'Some valid choices include: "NONE", "PROXY_V1"'
required: false
default: NONE
- choices:
- - NONE
- - PROXY_V1
extends_documentation_fragment: gcp
notes:
- 'API Reference: U(https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks)'
@@ -535,7 +523,7 @@ def main():
name=dict(required=True, type='str'),
timeout_sec=dict(default=5, type='int', aliases=['timeout_seconds']),
unhealthy_threshold=dict(default=2, type='int'),
- type=dict(type='str', choices=['TCP', 'SSL', 'HTTP', 'HTTPS']),
+ type=dict(type='str'),
http_health_check=dict(
type='dict',
options=dict(
@@ -544,7 +532,7 @@ def main():
response=dict(type='str'),
port=dict(type='int'),
port_name=dict(type='str'),
- proxy_header=dict(default='NONE', type='str', choices=['NONE', 'PROXY_V1']),
+ proxy_header=dict(default='NONE', type='str'),
),
),
https_health_check=dict(
@@ -555,7 +543,7 @@ def main():
response=dict(type='str'),
port=dict(type='int'),
port_name=dict(type='str'),
- proxy_header=dict(default='NONE', type='str', choices=['NONE', 'PROXY_V1']),
+ proxy_header=dict(default='NONE', type='str'),
),
),
tcp_health_check=dict(
@@ -565,7 +553,7 @@ def main():
response=dict(type='str'),
port=dict(type='int'),
port_name=dict(type='str'),
- proxy_header=dict(default='NONE', type='str', choices=['NONE', 'PROXY_V1']),
+ proxy_header=dict(default='NONE', type='str'),
),
),
ssl_health_check=dict(
@@ -575,7 +563,7 @@ def main():
response=dict(type='str'),
port=dict(type='int'),
port_name=dict(type='str'),
- proxy_header=dict(default='NONE', type='str', choices=['NONE', 'PROXY_V1']),
+ proxy_header=dict(default='NONE', type='str'),
),
),
),