From a9aa31d9c1fcb945d36ff6288d61f4c4c59f17be Mon Sep 17 00:00:00 2001 From: Dana Hoffman Date: Mon, 24 Jun 2019 09:39:33 -0700 Subject: [PATCH] Document compute_backend_service set types (#1960) Merged PR #1960. --- build/ansible | 2 +- build/inspec | 2 +- build/terraform | 2 +- build/terraform-beta | 2 +- products/compute/api.yaml | 4 ++-- ...ource_google_compute_backend_service.html.markdown | 11 ++++++++--- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/build/ansible b/build/ansible index a15a376c118f..56616f092179 160000 --- a/build/ansible +++ b/build/ansible @@ -1 +1 @@ -Subproject commit a15a376c118f20ab55c497346bbee50101f55a2d +Subproject commit 56616f0921798daf2aeea0974a1dc59dbd47c118 diff --git a/build/inspec b/build/inspec index f54ad07d4874..21b245c74f81 160000 --- a/build/inspec +++ b/build/inspec @@ -1 +1 @@ -Subproject commit f54ad07d48746a1d5fc44cce3ba9eb9e467052c8 +Subproject commit 21b245c74f8191b8f5b85b3cc246e321c80970c5 diff --git a/build/terraform b/build/terraform index edfadeab39c1..51a5322af585 160000 --- a/build/terraform +++ b/build/terraform @@ -1 +1 @@ -Subproject commit edfadeab39c106352f5bd4dd1440e8caedd71441 +Subproject commit 51a5322af58545ccf5fc4f53cd9a656f9e221a1c diff --git a/build/terraform-beta b/build/terraform-beta index 12fe5f03af9d..9edf009e038e 160000 --- a/build/terraform-beta +++ b/build/terraform-beta @@ -1 +1 @@ -Subproject commit 12fe5f03af9d9069a31e4190168e64d3c6bf9cf4 +Subproject commit 9edf009e038e847cf4fffd6f60414ae25c975156 diff --git a/products/compute/api.yaml b/products/compute/api.yaml index 752f69841466..60cb2514b70a 100644 --- a/products/compute/api.yaml +++ b/products/compute/api.yaml @@ -602,7 +602,7 @@ objects: - !ruby/object:Api::Type::Array name: 'backends' description: | - The list of backends that serve this BackendService. + The set of backends that serve this BackendService. item_type: !ruby/object:Api::Type::NestedObject properties: - !ruby/object:Api::Type::Enum @@ -819,7 +819,7 @@ objects: min_size: 1 max_size: 1 description: | - The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource + 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. diff --git a/third_party/terraform/website/docs/d/datasource_google_compute_backend_service.html.markdown b/third_party/terraform/website/docs/d/datasource_google_compute_backend_service.html.markdown index c450bf7e4ae7..0557a41b0f05 100644 --- a/third_party/terraform/website/docs/d/datasource_google_compute_backend_service.html.markdown +++ b/third_party/terraform/website/docs/d/datasource_google_compute_backend_service.html.markdown @@ -8,7 +8,7 @@ description: |- # google\_compute\_backend\_service -Provide acces to a Backend Service's attribute. For more information +Provide access to a Backend Service's attribute. For more information see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service) and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). @@ -18,6 +18,11 @@ and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServ data "google_compute_backend_service" "baz" { name = "foobar" } + +resource "google_compute_backend_service" "default" { + name = "backend-service" + health_checks = ["${tolist(data.google_compute_backend_service.baz.health_checks)[0]}"] +} ``` ## Argument Reference @@ -52,6 +57,6 @@ In addition to the arguments listed above, the following attributes are exported * `timeout_sec` - The number of seconds to wait for a backend to respond to a request before considering the request failed. -* `backend` - The list of backends that serve this Backend Service. +* `backend` - The set of backends that serve this Backend Service. -* `health_checks` - The list of HTTP/HTTPS health checks used by the Backend Service. +* `health_checks` - The set of HTTP/HTTPS health checks used by the Backend Service.