Skip to content

Commit b0b3c67

Browse files
modular-magicianEdward Sun
andauthored
replace %{random_suffix} from d- f- docs (#7685) (#5501)
Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Edward Sun <[email protected]>
1 parent 0e33921 commit b0b3c67

9 files changed

+31
-28
lines changed

.changelog/7685.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/resource_datastream_stream_generated_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ resource "google_bigquery_dataset" "postgres" {
458458
resource "google_datastream_stream" "default" {
459459
display_name = "postgres to bigQuery"
460460
location = "us-central1"
461-
stream_id = "postgres-to-big-query%{random_suffix}"
461+
stream_id = "tf-test-postgres-bigquery%{random_suffix}"
462462
463463
source_config {
464464
source_connection_profile = google_datastream_connection_profile.source_connection_profile.id
@@ -483,12 +483,12 @@ resource "google_datastream_stream" "default" {
483483
resource "google_datastream_connection_profile" "destination_connection_profile2" {
484484
display_name = "Connection profile"
485485
location = "us-central1"
486-
connection_profile_id = "tf-test-destination-profile%{random_suffix}"
486+
connection_profile_id = "tf-test-dest-profile%{random_suffix}"
487487
bigquery_profile {}
488488
}
489489
490490
resource "google_sql_database_instance" "instance" {
491-
name = "tf-test-my-instance%{random_suffix}"
491+
name = "tf-test-instance-name%{random_suffix}"
492492
database_version = "MYSQL_8_0"
493493
region = "us-central1"
494494
settings {
@@ -536,7 +536,7 @@ resource "random_password" "pwd" {
536536
}
537537
538538
resource "google_sql_user" "user" {
539-
name = "user%{random_suffix}"
539+
name = "tf-test-my-user%{random_suffix}"
540540
instance = google_sql_database_instance.instance.name
541541
host = "%"
542542
password = random_password.pwd.result

google-beta/resource_dialogflow_intent_generated_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ func TestAccDialogflowIntent_dialogflowIntentFullExample(t *testing.T) {
5151
func testAccDialogflowIntent_dialogflowIntentFullExample(context map[string]interface{}) string {
5252
return Nprintf(`
5353
resource "google_project" "agent_project" {
54-
project_id = "tf-test-dialogflow-%{random_suffix}"
55-
name = "tf-test-dialogflow-%{random_suffix}"
54+
project_id = "tf-test-my-project%{random_suffix}"
55+
name = "tf-test-my-project%{random_suffix}"
5656
org_id = "%{org_id}"
5757
}
5858
@@ -63,7 +63,7 @@ resource "google_project_service" "agent_project" {
6363
}
6464
6565
resource "google_service_account" "dialogflow_service_account" {
66-
account_id = "tf-test-dialogflow-%{random_suffix}"
66+
account_id = "tf-test-my-account%{random_suffix}"
6767
}
6868
6969
resource "google_project_iam_member" "agent_create" {

google-beta/resource_firestore_database_generated_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ func TestAccFirestoreDatabase_firestoreDatabaseExample(t *testing.T) {
5252
func testAccFirestoreDatabase_firestoreDatabaseExample(context map[string]interface{}) string {
5353
return Nprintf(`
5454
resource "google_project" "project" {
55-
project_id = "tf-test%{random_suffix}"
56-
name = "tf-test%{random_suffix}"
55+
project_id = "tf-test-my-project%{random_suffix}"
56+
name = "tf-test-my-project%{random_suffix}"
5757
org_id = "%{org_id}"
5858
}
5959
@@ -116,8 +116,8 @@ func TestAccFirestoreDatabase_firestoreDatabaseDatastoreModeExample(t *testing.T
116116
func testAccFirestoreDatabase_firestoreDatabaseDatastoreModeExample(context map[string]interface{}) string {
117117
return Nprintf(`
118118
resource "google_project" "project" {
119-
project_id = "tf-test%{random_suffix}"
120-
name = "tf-test%{random_suffix}"
119+
project_id = "tf-test-my-project%{random_suffix}"
120+
name = "tf-test-my-project%{random_suffix}"
121121
org_id = "%{org_id}"
122122
}
123123

google-beta/resource_firestore_document_generated_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func testAccFirestoreDocument_firestoreDocumentBasicExample(context map[string]i
5454
resource "google_firestore_document" "mydoc" {
5555
project = "%{project_id}"
5656
collection = "somenewcollection"
57-
document_id = "my-doc-%{random_suffix}"
57+
document_id = "tf-test-my-doc-id%{random_suffix}"
5858
fields = "{\"something\":{\"mapValue\":{\"fields\":{\"akey\":{\"stringValue\":\"avalue\"}}}}}"
5959
}
6060
`, context)
@@ -91,7 +91,7 @@ func testAccFirestoreDocument_firestoreDocumentNestedDocumentExample(context map
9191
resource "google_firestore_document" "mydoc" {
9292
project = "%{project_id}"
9393
collection = "somenewcollection"
94-
document_id = "my-doc-%{random_suffix}"
94+
document_id = "tf-test-my-doc-id%{random_suffix}"
9595
fields = "{\"something\":{\"mapValue\":{\"fields\":{\"akey\":{\"stringValue\":\"avalue\"}}}}}"
9696
}
9797

website/docs/r/datastream_stream.html.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ resource "google_datastream_stream" "stream5" {
424424
```hcl
425425
426426
resource "google_bigquery_dataset" "postgres" {
427-
dataset_id = "postgres%{random_suffix}"
427+
dataset_id = "postgres"
428428
friendly_name = "postgres"
429429
description = "Database of postgres"
430430
location = "us-central1"
@@ -433,7 +433,7 @@ resource "google_bigquery_dataset" "postgres" {
433433
resource "google_datastream_stream" "default" {
434434
display_name = "postgres to bigQuery"
435435
location = "us-central1"
436-
stream_id = "postgres-to-big-query%{random_suffix}"
436+
stream_id = "postgres-bigquery"
437437
438438
source_config {
439439
source_connection_profile = google_datastream_connection_profile.source_connection_profile.id
@@ -458,12 +458,12 @@ resource "google_datastream_stream" "default" {
458458
resource "google_datastream_connection_profile" "destination_connection_profile2" {
459459
display_name = "Connection profile"
460460
location = "us-central1"
461-
connection_profile_id = "tf-test-destination-profile%{random_suffix}"
461+
connection_profile_id = "dest-profile"
462462
bigquery_profile {}
463463
}
464464
465465
resource "google_sql_database_instance" "instance" {
466-
name = "tf-test-my-instance%{random_suffix}"
466+
name = "instance-name"
467467
database_version = "MYSQL_8_0"
468468
region = "us-central1"
469469
settings {
@@ -511,7 +511,7 @@ resource "random_password" "pwd" {
511511
}
512512
513513
resource "google_sql_user" "user" {
514-
name = "user%{random_suffix}"
514+
name = "my-user"
515515
instance = google_sql_database_instance.instance.name
516516
host = "%"
517517
password = random_password.pwd.result
@@ -520,7 +520,7 @@ resource "google_sql_user" "user" {
520520
resource "google_datastream_connection_profile" "source_connection_profile" {
521521
display_name = "Source connection profile"
522522
location = "us-central1"
523-
connection_profile_id = "tf-test-source-profile%{random_suffix}"
523+
connection_profile_id = "source-profile"
524524
525525
mysql_profile {
526526
hostname = google_sql_database_instance.instance.public_ip_address

website/docs/r/dialogflow_intent.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ resource "google_dialogflow_intent" "basic_intent" {
4949

5050
```hcl
5151
resource "google_project" "agent_project" {
52-
project_id = "tf-test-dialogflow-%{random_suffix}"
53-
name = "tf-test-dialogflow-%{random_suffix}"
52+
project_id = "my-project"
53+
name = "my-project"
5454
org_id = "123456789"
5555
}
5656
@@ -61,7 +61,7 @@ resource "google_project_service" "agent_project" {
6161
}
6262
6363
resource "google_service_account" "dialogflow_service_account" {
64-
account_id = "tf-test-dialogflow-%{random_suffix}"
64+
account_id = "my-account"
6565
}
6666
6767
resource "google_project_iam_member" "agent_create" {

website/docs/r/firestore_database.html.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ To get more information about Database, see:
3838

3939
```hcl
4040
resource "google_project" "project" {
41-
project_id = "tf-test%{random_suffix}"
42-
name = "tf-test%{random_suffix}"
41+
project_id = "my-project"
42+
name = "my-project"
4343
org_id = "123456789"
4444
}
4545
@@ -73,8 +73,8 @@ resource "google_firestore_database" "database" {
7373

7474
```hcl
7575
resource "google_project" "project" {
76-
project_id = "tf-test%{random_suffix}"
77-
name = "tf-test%{random_suffix}"
76+
project_id = "my-project"
77+
name = "my-project"
7878
org_id = "123456789"
7979
}
8080

website/docs/r/firestore_document.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ the App Engine location specified.
4545
resource "google_firestore_document" "mydoc" {
4646
project = "my-project-name"
4747
collection = "somenewcollection"
48-
document_id = "my-doc-%{random_suffix}"
48+
document_id = "my-doc-id"
4949
fields = "{\"something\":{\"mapValue\":{\"fields\":{\"akey\":{\"stringValue\":\"avalue\"}}}}}"
5050
}
5151
```
@@ -56,7 +56,7 @@ resource "google_firestore_document" "mydoc" {
5656
resource "google_firestore_document" "mydoc" {
5757
project = "my-project-name"
5858
collection = "somenewcollection"
59-
document_id = "my-doc-%{random_suffix}"
59+
document_id = "my-doc-id"
6060
fields = "{\"something\":{\"mapValue\":{\"fields\":{\"akey\":{\"stringValue\":\"avalue\"}}}}}"
6161
}
6262

0 commit comments

Comments
 (0)