Add support for INTERNAL_SELF_MANAGED backend service

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
Sam Levenick 2019-05-31 20:13:31 +00:00 committed by Alex Stephen
parent c7000960d1
commit 22bb018df4
3 changed files with 18 additions and 9 deletions

View file

@ -33,7 +33,9 @@ module: gcp_compute_backend_service
description: description:
- A Backend Service defines a group of virtual machines that will serve traffic for - A Backend Service defines a group of virtual machines that will serve traffic for
load balancing. This resource is a global backend service, appropriate for external load balancing. This resource is a global backend service, appropriate for external
load balancing. For internal load balancing, use a regional backend service instead. load balancing or self-managed internal load balancing. For managed internal load
balancing, use a regional backend service instead.
- Currently self-managed internal load balancing is only available in beta.
short_description: Creates a GCP BackendService short_description: Creates a GCP BackendService
version_added: 2.6 version_added: 2.6
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
@ -213,6 +215,8 @@ options:
- The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health - The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
checking this BackendService. Currently at most one health check can be specified, checking this BackendService. Currently at most one health check can be specified,
and a health check is required. and a health check is required.
- For internal load balancing, a URL to a HealthCheck resource must be specified
instead.
required: true required: true
iap: iap:
description: description:
@ -237,9 +241,9 @@ options:
description: description:
- Indicates whether the backend service will be used with internal or external - Indicates whether the backend service will be used with internal or external
load balancing. A backend service created for one type of load balancing cannot load balancing. A backend service created for one type of load balancing cannot
be used with the other. Must be `EXTERNAL` for a global backend service. Defaults be used with the other. Must be `EXTERNAL` or `INTERNAL_SELF_MANAGED` for a
to `EXTERNAL`. global backend service. Defaults to `EXTERNAL`.
- 'Some valid choices include: "EXTERNAL"' - 'Some valid choices include: "EXTERNAL", "INTERNAL_SELF_MANAGED"'
required: false required: false
default: EXTERNAL default: EXTERNAL
version_added: 2.7 version_added: 2.7
@ -515,6 +519,8 @@ healthChecks:
- The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health - The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
checking this BackendService. Currently at most one health check can be specified, checking this BackendService. Currently at most one health check can be specified,
and a health check is required. and a health check is required.
- For internal load balancing, a URL to a HealthCheck resource must be specified
instead.
returned: success returned: success
type: list type: list
id: id:
@ -552,8 +558,8 @@ loadBalancingScheme:
description: description:
- Indicates whether the backend service will be used with internal or external load - Indicates whether the backend service will be used with internal or external load
balancing. A backend service created for one type of load balancing cannot be balancing. A backend service created for one type of load balancing cannot be
used with the other. Must be `EXTERNAL` for a global backend service. Defaults used with the other. Must be `EXTERNAL` or `INTERNAL_SELF_MANAGED` for a global
to `EXTERNAL`. backend service. Defaults to `EXTERNAL`.
returned: success returned: success
type: str type: str
name: name:

View file

@ -253,6 +253,8 @@ resources:
- The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health - The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
checking this BackendService. Currently at most one health check can be specified, checking this BackendService. Currently at most one health check can be specified,
and a health check is required. and a health check is required.
- For internal load balancing, a URL to a HealthCheck resource must be specified
instead.
returned: success returned: success
type: list type: list
id: id:
@ -290,8 +292,8 @@ resources:
description: description:
- Indicates whether the backend service will be used with internal or external - Indicates whether the backend service will be used with internal or external
load balancing. A backend service created for one type of load balancing cannot load balancing. A backend service created for one type of load balancing cannot
be used with the other. Must be `EXTERNAL` for a global backend service. Defaults be used with the other. Must be `EXTERNAL` or `INTERNAL_SELF_MANAGED` for
to `EXTERNAL`. a global backend service. Defaults to `EXTERNAL`.
returned: success returned: success
type: str type: str
name: name:

View file

@ -100,6 +100,7 @@ options:
global forwarding rules cannot be used for INTERNAL load balancing.' global forwarding rules cannot be used for INTERNAL load balancing.'
- 'Some valid choices include: "INTERNAL_SELF_MANAGED", "EXTERNAL"' - 'Some valid choices include: "INTERNAL_SELF_MANAGED", "EXTERNAL"'
required: false required: false
default: EXTERNAL
name: name:
description: description:
- Name of the resource; provided by the client when the resource is created. The - Name of the resource; provided by the client when the resource is created. The
@ -348,7 +349,7 @@ def main():
ip_address=dict(type='str'), ip_address=dict(type='str'),
ip_protocol=dict(type='str'), ip_protocol=dict(type='str'),
ip_version=dict(type='str'), ip_version=dict(type='str'),
load_balancing_scheme=dict(type='str'), load_balancing_scheme=dict(default='EXTERNAL', type='str'),
name=dict(required=True, type='str'), name=dict(required=True, type='str'),
network=dict(type='dict'), network=dict(type='dict'),
port_range=dict(type='str'), port_range=dict(type='str'),