From 9f60d92323abb33855bbf129fb28947261c74e31 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Tue, 17 Dec 2024 22:55:43 +0000 Subject: [PATCH] Adding deployment type to beta provider. (#12560) [upstream:8fa7b5cb93bd4fcaace4812525d9136783831467] Signed-off-by: Modular Magician --- .changelog/12560.txt | 3 + .../resource_parallelstore_instance_test.go | 8 ++- .../r/parallelstore_instance.html.markdown | 58 +++++++++++++++++++ 3 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 .changelog/12560.txt diff --git a/.changelog/12560.txt b/.changelog/12560.txt new file mode 100644 index 00000000000..bb87bc82825 --- /dev/null +++ b/.changelog/12560.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +parallelstore: added `deployment_type` to `google_parallelstore_instance` +``` \ No newline at end of file diff --git a/google/services/parallelstore/resource_parallelstore_instance_test.go b/google/services/parallelstore/resource_parallelstore_instance_test.go index 16d43357a56..cc435fade69 100644 --- a/google/services/parallelstore/resource_parallelstore_instance_test.go +++ b/google/services/parallelstore/resource_parallelstore_instance_test.go @@ -34,10 +34,13 @@ func TestAccParallelstoreInstance_parallelstoreInstanceBasicExample_update(t *te } acctest.VcrTest(t, resource.TestCase{ - PreCheck: func() { acctest.AccTestPreCheck(t) }, + PreCheck: func() { acctest.AccTestPreCheck(t) }, + ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t), - CheckDestroy: testAccCheckParallelstoreInstanceDestroyProducer(t), + + CheckDestroy: testAccCheckParallelstoreInstanceDestroyProducer(t), Steps: []resource.TestStep{ + { Config: testAccParallelstoreInstance_parallelstoreInstanceBasicExample_basic(context), }, @@ -111,7 +114,6 @@ resource "google_parallelstore_instance" "instance" { description = "test instance updated" capacity_gib = 12000 network = google_compute_network.network.name - labels = { test = "value23" } diff --git a/website/docs/r/parallelstore_instance.html.markdown b/website/docs/r/parallelstore_instance.html.markdown index 6376146d896..4254094e63b 100644 --- a/website/docs/r/parallelstore_instance.html.markdown +++ b/website/docs/r/parallelstore_instance.html.markdown @@ -23,6 +23,56 @@ A Parallelstore Instance. + +## Example Usage - Parallelstore Instance Basic Beta + + +```hcl +resource "google_parallelstore_instance" "instance" { + provider = google-beta + instance_id = "instance" + location = "us-central1-a" + description = "test instance" + capacity_gib = 12000 + network = google_compute_network.network.name + file_stripe_level = "FILE_STRIPE_LEVEL_MIN" + directory_stripe_level = "DIRECTORY_STRIPE_LEVEL_MIN" + deployment_type = "SCRATCH" + labels = { + test = "value" + } + depends_on = [google_service_networking_connection.default] +} + +resource "google_compute_network" "network" { + provider = google-beta + name = "network" + auto_create_subnetworks = true + mtu = 8896 +} + +# Create an IP address +resource "google_compute_global_address" "private_ip_alloc" { + provider = google-beta + name = "address" + purpose = "VPC_PEERING" + address_type = "INTERNAL" + prefix_length = 24 + network = google_compute_network.network.id +} + +# Create a private connection +resource "google_service_networking_connection" "default" { + provider = google-beta + network = google_compute_network.network.id + service = "servicenetworking.googleapis.com" + reserved_peering_ranges = [google_compute_global_address.private_ip_alloc.name] +} +```