From cea42c68d60d01200953b835525fc4ef132efb21 Mon Sep 17 00:00:00 2001 From: The Magician Date: Thu, 10 Dec 2020 13:40:02 -0800 Subject: [PATCH] Add SHARED_LOADBALANCER_VIP purpose to regional addresses. (#4169) (#350) Signed-off-by: Modular Magician --- plugins/modules/gcp_compute_address.py | 8 +++++++- plugins/modules/gcp_compute_address_info.py | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/modules/gcp_compute_address.py b/plugins/modules/gcp_compute_address.py index 99cae76..1cd0f6c 100644 --- a/plugins/modules/gcp_compute_address.py +++ b/plugins/modules/gcp_compute_address.py @@ -89,8 +89,11 @@ options: - 'The purpose of this resource, which can be one of the following values: * GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources.' + - "* SHARED_LOADBALANCER_VIP for an address that can be used by multiple internal + load balancers." + - "* VPC_PEERING for addresses that are reserved for VPC peer networks." - This should only be set when using an Internal address. - - 'Some valid choices include: "GCE_ENDPOINT"' + - 'Some valid choices include: "GCE_ENDPOINT", "VPC_PEERING", "SHARED_LOADBALANCER_VIP"' required: false type: str network_tier: @@ -226,6 +229,9 @@ purpose: - 'The purpose of this resource, which can be one of the following values: * GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources.' + - "* SHARED_LOADBALANCER_VIP for an address that can be used by multiple internal + load balancers." + - "* VPC_PEERING for addresses that are reserved for VPC peer networks." - This should only be set when using an Internal address. returned: success type: str diff --git a/plugins/modules/gcp_compute_address_info.py b/plugins/modules/gcp_compute_address_info.py index bb4d5e2..8561533 100644 --- a/plugins/modules/gcp_compute_address_info.py +++ b/plugins/modules/gcp_compute_address_info.py @@ -161,6 +161,9 @@ resources: - 'The purpose of this resource, which can be one of the following values: * GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources.' + - "* SHARED_LOADBALANCER_VIP for an address that can be used by multiple internal + load balancers." + - "* VPC_PEERING for addresses that are reserved for VPC peer networks." - This should only be set when using an Internal address. returned: success type: str