diff --git a/.changelog/11462.txt b/.changelog/11462.txt new file mode 100644 index 0000000000..42b910df15 --- /dev/null +++ b/.changelog/11462.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` \ No newline at end of file diff --git a/google-beta/services/apikeys/resource_apikeys_key_generated_test.go b/google-beta/services/apikeys/resource_apikeys_key_generated_test.go index 1a59e99d62..7414bba242 100644 --- a/google-beta/services/apikeys/resource_apikeys_key_generated_test.go +++ b/google-beta/services/apikeys/resource_apikeys_key_generated_test.go @@ -196,7 +196,6 @@ func testAccApikeysKey_AndroidKey(context map[string]interface{}) string { resource "google_apikeys_key" "primary" { name = "tf-test-key%{random_suffix}" display_name = "sample-key" - project = google_project.basic.name restrictions { android_key_restrictions { @@ -213,12 +212,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "tf-test-app%{random_suffix}" - name = "tf-test-app%{random_suffix}" - org_id = "%{org_id}" -} - `, context) } @@ -228,7 +221,6 @@ func testAccApikeysKey_AndroidKeyUpdate0(context map[string]interface{}) string resource "google_apikeys_key" "primary" { name = "tf-test-key%{random_suffix}" display_name = "sample-key" - project = google_project.basic.name restrictions { android_key_restrictions { @@ -245,12 +237,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "tf-test-app%{random_suffix}" - name = "tf-test-app%{random_suffix}" - org_id = "%{org_id}" -} - `, context) } @@ -260,7 +246,6 @@ func testAccApikeysKey_BasicKey(context map[string]interface{}) string { resource "google_apikeys_key" "primary" { name = "tf-test-key%{random_suffix}" display_name = "sample-key" - project = google_project.basic.name restrictions { api_targets { @@ -274,12 +259,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "tf-test-app%{random_suffix}" - name = "tf-test-app%{random_suffix}" - org_id = "%{org_id}" -} - `, context) } @@ -289,7 +268,6 @@ func testAccApikeysKey_BasicKeyUpdate0(context map[string]interface{}) string { resource "google_apikeys_key" "primary" { name = "tf-test-key%{random_suffix}" display_name = "sample-key-update" - project = google_project.basic.name restrictions { api_targets { @@ -303,12 +281,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "tf-test-app%{random_suffix}" - name = "tf-test-app%{random_suffix}" - org_id = "%{org_id}" -} - `, context) } @@ -318,7 +290,6 @@ func testAccApikeysKey_IosKey(context map[string]interface{}) string { resource "google_apikeys_key" "primary" { name = "tf-test-key%{random_suffix}" display_name = "sample-key" - project = google_project.basic.name restrictions { api_targets { @@ -332,12 +303,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "tf-test-app%{random_suffix}" - name = "tf-test-app%{random_suffix}" - org_id = "%{org_id}" -} - `, context) } @@ -347,7 +312,6 @@ func testAccApikeysKey_IosKeyUpdate0(context map[string]interface{}) string { resource "google_apikeys_key" "primary" { name = "tf-test-key%{random_suffix}" display_name = "sample-key" - project = google_project.basic.name restrictions { api_targets { @@ -361,12 +325,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "tf-test-app%{random_suffix}" - name = "tf-test-app%{random_suffix}" - org_id = "%{org_id}" -} - `, context) } @@ -376,13 +334,6 @@ func testAccApikeysKey_MinimalKey(context map[string]interface{}) string { resource "google_apikeys_key" "primary" { name = "tf-test-key%{random_suffix}" display_name = "sample-key" - project = google_project.basic.name -} - -resource "google_project" "basic" { - project_id = "tf-test-app%{random_suffix}" - name = "tf-test-app%{random_suffix}" - org_id = "%{org_id}" } @@ -394,7 +345,6 @@ func testAccApikeysKey_ServerKey(context map[string]interface{}) string { resource "google_apikeys_key" "primary" { name = "tf-test-key%{random_suffix}" display_name = "sample-key" - project = google_project.basic.name restrictions { api_targets { @@ -408,12 +358,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "tf-test-app%{random_suffix}" - name = "tf-test-app%{random_suffix}" - org_id = "%{org_id}" -} - `, context) } @@ -423,7 +367,6 @@ func testAccApikeysKey_ServerKeyUpdate0(context map[string]interface{}) string { resource "google_apikeys_key" "primary" { name = "tf-test-key%{random_suffix}" display_name = "sample-key" - project = google_project.basic.name restrictions { api_targets { @@ -437,12 +380,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "tf-test-app%{random_suffix}" - name = "tf-test-app%{random_suffix}" - org_id = "%{org_id}" -} - `, context) } diff --git a/website/docs/r/apikeys_key.html.markdown b/website/docs/r/apikeys_key.html.markdown index 21d1282f5e..6ef6daf7dd 100644 --- a/website/docs/r/apikeys_key.html.markdown +++ b/website/docs/r/apikeys_key.html.markdown @@ -28,7 +28,6 @@ A basic example of a android api keys key resource "google_apikeys_key" "primary" { name = "key" display_name = "sample-key" - project = google_project.basic.name restrictions { android_key_restrictions { @@ -45,12 +44,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "app" - name = "app" - org_id = "123456789" -} - ``` ## Example Usage - basic_key @@ -59,7 +52,6 @@ A basic example of a api keys key resource "google_apikeys_key" "primary" { name = "key" display_name = "sample-key" - project = google_project.basic.name restrictions { api_targets { @@ -73,12 +65,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "app" - name = "app" - org_id = "123456789" -} - ``` ## Example Usage - ios_key @@ -87,7 +73,6 @@ A basic example of a ios api keys key resource "google_apikeys_key" "primary" { name = "key" display_name = "sample-key" - project = google_project.basic.name restrictions { api_targets { @@ -101,12 +86,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "app" - name = "app" - org_id = "123456789" -} - ``` ## Example Usage - minimal_key @@ -115,13 +94,6 @@ A minimal example of a api keys key resource "google_apikeys_key" "primary" { name = "key" display_name = "sample-key" - project = google_project.basic.name -} - -resource "google_project" "basic" { - project_id = "app" - name = "app" - org_id = "123456789" } @@ -132,7 +104,6 @@ A basic example of a server api keys key resource "google_apikeys_key" "primary" { name = "key" display_name = "sample-key" - project = google_project.basic.name restrictions { api_targets { @@ -146,12 +117,6 @@ resource "google_apikeys_key" "primary" { } } -resource "google_project" "basic" { - project_id = "app" - name = "app" - org_id = "123456789" -} - ```