Backend service support for internet NEG backend (#3782) (#260)

* Add ability to set global network endpoint group as backend for backend service. Make health_checks optional

* PR fixes

* Add encoder to remove max_utilization when neg backend

* Check for global NEG in group to remove max_utilization

* Add another nil check

* Spacing

* Docs fix

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2020-07-24 17:57:29 -07:00 committed by GitHub
parent 0eff143eef
commit b6df15b40d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View file

@ -372,12 +372,13 @@ options:
health_checks:
description:
- The set of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
checking this BackendService. Currently at most one health check can be specified,
and a health check is required.
checking this BackendService. Currently at most one health check can be specified.
- A health check must be specified unless the backend service uses an internet
NEG as a backend.
- For internal load balancing, a URL to a HealthCheck resource must be specified
instead.
elements: str
required: true
required: false
type: list
iap:
description:
@ -1030,8 +1031,9 @@ enableCDN:
healthChecks:
description:
- The set of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
checking this BackendService. Currently at most one health check can be specified,
and a health check is required.
checking this BackendService. Currently at most one health check can be specified.
- A health check must be specified unless the backend service uses an internet NEG
as a backend.
- For internal load balancing, a URL to a HealthCheck resource must be specified
instead.
returned: success
@ -1365,7 +1367,7 @@ def main():
custom_request_headers=dict(type='list', elements='str'),
description=dict(type='str'),
enable_cdn=dict(type='bool'),
health_checks=dict(required=True, type='list', elements='str'),
health_checks=dict(type='list', elements='str'),
iap=dict(
type='dict',
options=dict(enabled=dict(type='bool'), oauth2_client_id=dict(required=True, type='str'), oauth2_client_secret=dict(required=True, type='str')),

View file

@ -426,8 +426,9 @@ resources:
healthChecks:
description:
- The set of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
checking this BackendService. Currently at most one health check can be specified,
and a health check is required.
checking this BackendService. Currently at most one health check can be specified.
- A health check must be specified unless the backend service uses an internet
NEG as a backend.
- For internal load balancing, a URL to a HealthCheck resource must be specified
instead.
returned: success