Skip to content

Commit

Permalink
replacing %{random_suffix} from i- l- t- docs (#7735) (#5499)
Browse files Browse the repository at this point in the history
* replacing %{random_suffix} from i- l- t- docs

* update bucket id

---------

Signed-off-by: Modular Magician <[email protected]>
Co-authored-by: Edward Sun <[email protected]>
  • Loading branch information
modular-magician and Edward Sun authored Apr 18, 2023
1 parent 6889f38 commit e6cb985
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 28 deletions.
3 changes: 3 additions & 0 deletions .changelog/7735.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
4 changes: 2 additions & 2 deletions google-beta/resource_iap_client_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func TestAccIapClient_iapClientExample(t *testing.T) {
func testAccIapClient_iapClientExample(context map[string]interface{}) string {
return Nprintf(`
resource "google_project" "project" {
project_id = "tf-test%{random_suffix}"
name = "tf-test%{random_suffix}"
project_id = "tf-test-my-project%{random_suffix}"
name = "tf-test-my-project%{random_suffix}"
org_id = "%{org_id}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func TestAccIdentityPlatformConfig_identityPlatformConfigBasicExample(t *testing
func testAccIdentityPlatformConfig_identityPlatformConfigBasicExample(context map[string]interface{}) string {
return Nprintf(`
resource "google_project" "default" {
project_id = "tf-test%{random_suffix}"
name = "tf-test%{random_suffix}"
project_id = "tf-test-my-project%{random_suffix}"
name = "tf-test-my-project%{random_suffix}"
org_id = "%{org_id}"
billing_account = "%{billing_acct}"
labels = {
Expand Down
10 changes: 5 additions & 5 deletions google-beta/resource_logging_linked_dataset_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ resource "google_logging_project_bucket_config" "logging_linked_dataset" {
location = "global"
project = "%{project}"
enable_analytics = true
bucket_id = "tftest%{random_suffix}"
bucket_id = "mybucket%{random_suffix}"
}
resource "google_logging_linked_dataset" "logging_linked_dataset" {
link_id = "tftest%{random_suffix}"
link_id = "mybucket%{random_suffix}"
bucket = google_logging_project_bucket_config.logging_linked_dataset.id
description = "Linked dataset test"
}
Expand Down Expand Up @@ -98,12 +98,12 @@ resource "google_logging_project_bucket_config" "logging_linked_dataset" {
location = "global"
project = "%{project}"
enable_analytics = true
bucket_id = "tftest%{random_suffix}"
bucket_id = "mybucket%{random_suffix}"
}
resource "google_logging_linked_dataset" "logging_linked_dataset" {
link_id = "tftest%{random_suffix}"
bucket = "tftest%{random_suffix}"
link_id = "mybucket%{random_suffix}"
bucket = "mybucket%{random_suffix}"
parent = "projects/%{project}"
location = "global"
description = "Linked dataset test"
Expand Down
2 changes: 1 addition & 1 deletion google-beta/resource_logging_log_view_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ resource "google_logging_project_bucket_config" "logging_log_view" {
}
resource "google_logging_log_view" "logging_log_view" {
name = "tf-test-view%{random_suffix}"
name = "tf-test-my-view%{random_suffix}"
bucket = google_logging_project_bucket_config.logging_log_view.id
description = "A logging view configured with Terraform"
filter = "SOURCE(\"projects/myproject\") AND resource.type = \"gce_instance\" AND LOG_ID(\"stdout\")"
Expand Down
2 changes: 1 addition & 1 deletion google-beta/resource_tpu_node_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ data "google_compute_network" "network" {
}
resource "google_compute_global_address" "service_range" {
name = "tf-test%{random_suffix}"
name = "tf-test-my-global-address%{random_suffix}"
purpose = "VPC_PEERING"
address_type = "INTERNAL"
prefix_length = 16
Expand Down
8 changes: 4 additions & 4 deletions website/docs/r/iam_access_boundary_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ if they would like to test it.

```hcl
resource "google_project" "project" {
project_id = "tf-test%{random_suffix}"
name = "tf-test%{random_suffix}"
project_id = "my-project"
name = "my-project"
org_id = "123456789"
billing_account = "000000-0000000-0000000-000000"
}
resource "google_access_context_manager_access_level" "test-access" {
parent = "accessPolicies/${google_access_context_manager_access_policy.access-policy.name}"
name = "accessPolicies/${google_access_context_manager_access_policy.access-policy.name}/accessLevels/tf_test_chromeos_no_lock%{random_suffix}"
title = "tf_test_chromeos_no_lock%{random_suffix}"
name = "accessPolicies/${google_access_context_manager_access_policy.access-policy.name}/accessLevels/chromeos_no_lock"
title = "chromeos_no_lock"
basic {
conditions {
device_policy {
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/iap_brand.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ To get more information about Brand, see:

```hcl
resource "google_project" "project" {
project_id = "tf-test%{random_suffix}"
name = "tf-test%{random_suffix}"
project_id = "my-project"
name = "my-project"
org_id = "123456789"
}
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/iap_client.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ values will be stored in the raw state as plain text: `secret`.

```hcl
resource "google_project" "project" {
project_id = "tf-test%{random_suffix}"
name = "tf-test%{random_suffix}"
project_id = "my-project"
name = "my-project"
org_id = "123456789"
}
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/identity_platform_config.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ To get more information about Config, see:

```hcl
resource "google_project" "default" {
project_id = "tf-test%{random_suffix}"
name = "tf-test%{random_suffix}"
project_id = "my-project"
name = "my-project"
org_id = "123456789"
billing_account = "000000-0000000-0000000-000000"
labels = {
Expand Down
10 changes: 5 additions & 5 deletions website/docs/r/logging_linked_dataset.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ resource "google_logging_project_bucket_config" "logging_linked_dataset" {
location = "global"
project = "my-project-name"
enable_analytics = true
bucket_id = "tftest%{random_suffix}"
bucket_id = "mybucket"
}
resource "google_logging_linked_dataset" "logging_linked_dataset" {
link_id = "tftest%{random_suffix}"
link_id = "mybucket"
bucket = google_logging_project_bucket_config.logging_linked_dataset.id
description = "Linked dataset test"
}
Expand All @@ -53,12 +53,12 @@ resource "google_logging_project_bucket_config" "logging_linked_dataset" {
location = "global"
project = "my-project-name"
enable_analytics = true
bucket_id = "tftest%{random_suffix}"
bucket_id = "mybucket"
}
resource "google_logging_linked_dataset" "logging_linked_dataset" {
link_id = "tftest%{random_suffix}"
bucket = "tftest%{random_suffix}"
link_id = "mybucket"
bucket = "mybucket"
parent = "projects/my-project-name"
location = "global"
description = "Linked dataset test"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/logging_log_view.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "google_logging_project_bucket_config" "logging_log_view" {
}
resource "google_logging_log_view" "logging_log_view" {
name = "tf-test-view%{random_suffix}"
name = "my-view"
bucket = google_logging_project_bucket_config.logging_log_view.id
description = "A logging view configured with Terraform"
filter = "SOURCE(\"projects/myproject\") AND resource.type = \"gce_instance\" AND LOG_ID(\"stdout\")"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/tpu_node.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ data "google_compute_network" "network" {
}
resource "google_compute_global_address" "service_range" {
name = "tf-test%{random_suffix}"
name = "my-global-address"
purpose = "VPC_PEERING"
address_type = "INTERNAL"
prefix_length = 16
Expand Down

0 comments on commit e6cb985

Please sign in to comment.