From e14e5671f11561e43df699205997a81889442713 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Thu, 7 Dec 2023 21:39:11 +0000 Subject: [PATCH] dataform_repository - add missing args (#9173) [upstream:a007c7ce0f9498648bb61de3e9151b0639ed181b] Signed-off-by: Modular Magician --- .changelog/9173.txt | 3 ++ .../docs/r/dataform_repository.html.markdown | 29 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .changelog/9173.txt diff --git a/.changelog/9173.txt b/.changelog/9173.txt new file mode 100644 index 00000000000..08c93c74feb --- /dev/null +++ b/.changelog/9173.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +dataform: added `display_name`, `labels` and `npmrc_environment_variables_secret_version` fields to `google_dataform_repository` resource +``` diff --git a/website/docs/r/dataform_repository.html.markdown b/website/docs/r/dataform_repository.html.markdown index 1e99af1d299..706d4d7581c 100644 --- a/website/docs/r/dataform_repository.html.markdown +++ b/website/docs/r/dataform_repository.html.markdown @@ -63,6 +63,12 @@ resource "google_secret_manager_secret_version" "secret_version" { resource "google_dataform_repository" "dataform_respository" { provider = google-beta name = "dataform_repository" + display_name = "dataform_repository" + npmrc_environment_variables_secret_version = google_secret_manager_secret_version.secret_version.id + + labels = { + label_foo1 = "label-bar1" + } git_remote_settings { url = google_sourcerepo_repository.git_repository.url @@ -157,6 +163,22 @@ The following arguments are supported: (Optional) The service account to run workflow invocations under. +* `npmrc_environment_variables_secret_version` - + (Optional) + Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format. + +* `display_name` - + (Optional) + Optional. The repository's user-friendly name. + +* `labels` - + (Optional) + Optional. Repository user labels. + An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. + + **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. + Please refer to the field `effective_labels` for all of the labels present on the resource. + * `region` - (Optional) A reference to the region @@ -219,6 +241,13 @@ In addition to the arguments listed above, the following computed attributes are * `id` - an identifier for the resource with format `projects/{{project}}/locations/{{region}}/repositories/{{name}}` +* `terraform_labels` - + The combination of labels configured directly on the resource + and default labels configured on the provider. + +* `effective_labels` - + All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services. + ## Timeouts