From d03be0b13775ff630370d50ac7fd67d158efcc5a Mon Sep 17 00:00:00 2001 From: Cameron Thornton Date: Fri, 11 Oct 2019 16:19:30 -0700 Subject: [PATCH] add missing tpu_tensorflow_versions doc (#2463) Merged PR #2463. --- build/terraform | 2 +- build/terraform-beta | 2 +- build/terraform-mapper | 2 +- .../terraform/website-compiled/google.erb | 3 ++ ...urce_tpu_tensorflow_versions.html.markdown | 48 +++++++++++++++++++ 5 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 third_party/terraform/website/docs/d/datasource_tpu_tensorflow_versions.html.markdown diff --git a/build/terraform b/build/terraform index 114d7fed816d..8730e1dbb985 160000 --- a/build/terraform +++ b/build/terraform @@ -1 +1 @@ -Subproject commit 114d7fed816d36c2f465df122c7dd95532fab8ac +Subproject commit 8730e1dbb985f7d1f3e78dbf93b76fcb384e4e63 diff --git a/build/terraform-beta b/build/terraform-beta index 407f2b0688e4..8a99ed3f0a32 160000 --- a/build/terraform-beta +++ b/build/terraform-beta @@ -1 +1 @@ -Subproject commit 407f2b0688e4e68c211f5f8ab22a12015a3d36ca +Subproject commit 8a99ed3f0a32145764ed174aecb410987065b259 diff --git a/build/terraform-mapper b/build/terraform-mapper index 11538f8e3a8e..e190929caf0c 160000 --- a/build/terraform-mapper +++ b/build/terraform-mapper @@ -1 +1 @@ -Subproject commit 11538f8e3a8eaf97ed33c741dd13ce3e6a4399a1 +Subproject commit e190929caf0c18826931cd77585a6c1a6e34014c diff --git a/third_party/terraform/website-compiled/google.erb b/third_party/terraform/website-compiled/google.erb index 2376b2654a8b..b57105ae4d61 100644 --- a/third_party/terraform/website-compiled/google.erb +++ b/third_party/terraform/website-compiled/google.erb @@ -199,6 +199,9 @@ > google_storage_transfer_project_service_account + > + google_tpu_tensorflow_versions + diff --git a/third_party/terraform/website/docs/d/datasource_tpu_tensorflow_versions.html.markdown b/third_party/terraform/website/docs/d/datasource_tpu_tensorflow_versions.html.markdown new file mode 100644 index 000000000000..1ba803ebf155 --- /dev/null +++ b/third_party/terraform/website/docs/d/datasource_tpu_tensorflow_versions.html.markdown @@ -0,0 +1,48 @@ +--- +layout: "google" +page_title: "Google: google_tpu_tensorflow_versions" +sidebar_current: "docs-google-datasource-tpu-tensorflow-versions" +description: |- + Get available TensorFlow versions. +--- + +# google\_tpu\_tensorflow\_versions + +Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions). + +## Example Usage + +```hcl +data "google_tpu_tensorflow_versions" "available" { } +``` + +## Example Usage: Configure Basic TPU Node with available version + +```hcl +data "google_tpu_tensorflow_versions" "available" { } + +resource "google_tpu_node" "tpu" { + name = "test-tpu" + zone = "us-central1-b" + + accelerator_type = "v3-8" + tensorflow_version = "${data.google_tpu_tensorflow_versions.available.versions[0]}" + cidr_block = "10.2.0.0/29" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `project` - (Optional) The project to list versions for. If it + is not provided, the provider project is used. + +* `zone` - (Optional) The zone to list versions for. If it + is not provided, the provider zone is used. + +## Attributes Reference + +The following attributes are exported: + +* `versions` - The list of TensorFlow versions available for the given project and zone.