From 162ec2fb860709db64e1df6329cb3cad960f3b0d Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Thu, 26 Feb 2026 13:07:11 +0000 Subject: [PATCH 01/32] Terraform changes for enabling cross project clone --- .../acctest/bootstrap_test_utils.go.tmpl | 73 +++++++++++----- .../terraform/envvar/envvar_utils.go | 11 +++ .../resource_sql_database_instance.go.tmpl | 20 +++-- ...esource_sql_database_instance_test.go.tmpl | 85 +++++++++++++++++++ 4 files changed, 164 insertions(+), 25 deletions(-) diff --git a/mmv1/third_party/terraform/acctest/bootstrap_test_utils.go.tmpl b/mmv1/third_party/terraform/acctest/bootstrap_test_utils.go.tmpl index 47dbfa11bfd3..87088231e7e4 100644 --- a/mmv1/third_party/terraform/acctest/bootstrap_test_utils.go.tmpl +++ b/mmv1/third_party/terraform/acctest/bootstrap_test_utils.go.tmpl @@ -88,7 +88,7 @@ func BootstrapKMSKeyWithPurposeInLocation(t *testing.T, purpose, locationID stri } type BootstrappedKMSAutokey struct { - *cloudkms.AutokeyConfig + *cloudkms.AutokeyConfig *cloudkms.KeyHandle } @@ -159,7 +159,7 @@ func BootstrapKMSAutokeyKeyHandleWithLocation(t *testing.T, locationID string) B } return BootstrappedKMSAutokey{ - autokeyConfig, + autokeyConfig, keyHandle, } } @@ -577,8 +577,11 @@ const SharedTestNetworkPrefix = "tf-bootstrap-net-" // // Returns the name of a network, creating it if it hasn't been created in the // test project. -func BootstrapSharedTestNetwork(t *testing.T, testId string) string { +func BootstrapSharedTestNetwork(t *testing.T, testId string, project_id ...string) string { project := envvar.GetTestProjectFromEnv() + if len(project_id) > 0 && project_id[0] != "" { + project = project_id[0] + } networkName := SharedTestNetworkPrefix + testId config := BootstrapConfig(t) @@ -628,6 +631,13 @@ func BootstrapSharedTestNetwork(t *testing.T, testId string) string { type AddressSettings struct { PrefixLength int + ProjectID string +} + +func AddressWithProjectID(projectID string) func(*AddressSettings) { + return func(settings *AddressSettings) { + settings.ProjectID = projectID + } } func AddressWithPrefixLength(prefixLength int) func(*AddressSettings) { @@ -651,9 +661,13 @@ const SharedTestGlobalAddressPrefix = "tf-bootstrap-addr-" // params are the functions to set compute global address func BootstrapSharedTestGlobalAddress(t *testing.T, testId string, params ...func(*AddressSettings)) string { - project := envvar.GetTestProjectFromEnv() + settings := NewAddressSettings(params...) + project := settings.ProjectID + if project == "" { + project = envvar.GetTestProjectFromEnv() + } addressName := SharedTestGlobalAddressPrefix + testId - networkName := BootstrapSharedTestNetwork(t, testId) + networkName := BootstrapSharedTestNetwork(t, testId, project) networkId := fmt.Sprintf("projects/%v/global/networks/%v", project, networkName) config := BootstrapConfig(t) @@ -667,8 +681,6 @@ func BootstrapSharedTestGlobalAddress(t *testing.T, testId string, params ...fun log.Printf("[DEBUG] Global address %q not found, bootstrapping", addressName) url := fmt.Sprintf("%sprojects/%s/global/addresses", config.ComputeBasePath, project) - settings := NewAddressSettings(params...) - netObj := map[string]interface{}{ "name": addressName, "address_type": "INTERNAL", @@ -710,6 +722,7 @@ func BootstrapSharedTestGlobalAddress(t *testing.T, testId string, params ...fun type ServiceNetworkSettings struct { PrefixLength int ParentService string + ProjectID string } func ServiceNetworkWithPrefixLength(prefixLength int) func(*ServiceNetworkSettings) { @@ -724,10 +737,17 @@ func ServiceNetworkWithParentService(parentService string) func(*ServiceNetworkS } } +func ServiceNetworkWithProjectID(projectID string) func(*ServiceNetworkSettings) { + return func(settings *ServiceNetworkSettings) { + settings.ProjectID = projectID + } +} + func NewServiceNetworkSettings(options ...func(*ServiceNetworkSettings)) *ServiceNetworkSettings { settings := &ServiceNetworkSettings{ PrefixLength: 16, // default prefix length ParentService: "servicenetworking.googleapis.com", // default parent service + ProjectID: "", // default project id is empty } for _, o := range options { @@ -758,6 +778,9 @@ func BootstrapSharedServiceNetworkingConnection(t *testing.T, testId string, par settings := NewServiceNetworkSettings(params...) parentService := "services/" + settings.ParentService projectId := envvar.GetTestProjectFromEnv() + if settings.ProjectID != "" { + projectId = settings.ProjectID + } config := BootstrapConfig(t) if config == nil { @@ -773,7 +796,12 @@ func BootstrapSharedServiceNetworkingConnection(t *testing.T, testId string, par networkName := SharedTestNetworkPrefix + testId networkId := fmt.Sprintf("projects/%v/global/networks/%v", project.ProjectNumber, networkName) - globalAddressName := BootstrapSharedTestGlobalAddress(t, testId, AddressWithPrefixLength(settings.PrefixLength)) + addrParams := []func(*AddressSettings){AddressWithPrefixLength(settings.PrefixLength)} + if settings.ProjectID != "" { + addrParams = append(addrParams, AddressWithProjectID(settings.ProjectID)) + } + log.Printf("[DEBUG] Printing networkId %q and projectId %q", networkId, projectId) + globalAddressName := BootstrapSharedTestGlobalAddress(t, testId, addrParams...) readCall := config.NewServiceNetworkingClient(config.UserAgent).Services.Connections.List(parentService).Network(networkId) if config.UserProjectOverride { @@ -1068,8 +1096,13 @@ const SharedTestSQLInstanceNamePrefix = "tf-bootstrap-" // BootstrapSharedSQLInstanceBackupRun will return a shared SQL db instance that // has a backup created for it. -func BootstrapSharedSQLInstanceBackupRun(t *testing.T) string { - project := envvar.GetTestProjectFromEnv() +func BootstrapSharedSQLInstanceBackupRun(t *testing.T, projectID ...string) string { + var project string + if len(projectID) > 0 && projectID[0] != "" { + project = projectID[0] + } else { + project = envvar.GetTestProjectFromEnv() + } config := BootstrapConfig(t) if config == nil { @@ -1201,14 +1234,14 @@ func waitForBackupdrOperation(ctx context.Context, t *testing.T, backupdrService // BootstrapBackupDRVault creates or gets a BackupDR backup vault for testing. func BootstrapBackupDRVault(t *testing.T, vaultID, location string) string { ctx := context.Background() - project := envvar.GetTestProjectFromEnv() - config := BootstrapConfig(t) - if config == nil { - t.Fatal("Could not bootstrap config.") - } - - // Create a backupdr client and check if the vault exists, if not create a vault - // backupdrClient := config.NewBackupDRClient(config.UserAgent) + project := envvar.GetTestProjectFromEnv() + config := BootstrapConfig(t) + if config == nil { + t.Fatal("Could not bootstrap config.") + } + + // Create a backupdr client and check if the vault exists, if not create a vault + // backupdrClient := config.NewBackupDRClient(config.UserAgent) vaultName := fmt.Sprintf("projects/%s/locations/%s/backupVaults/%s", project, location, vaultID) projectAndLocation := fmt.Sprintf("projects/%s/locations/%s", project, location) @@ -2320,7 +2353,7 @@ func BootstrapSharedTestTagValueDetails(t *testing.T, testId string, tagKey, par t.Fatalf("Error getting shared tag value %q: %s", sharedTagValue, err) } - return map[string]string{ + return map[string]string{ "name": getTagValueResponse["name"].(string), "shared_tag_value": sharedTagValue, } @@ -2463,7 +2496,7 @@ func AddBigQueryDatasetReplica(t *testing.T, projectID string, datasetID string, } else if status != nil && status.Err() != nil { // Check if the status error is an "Already Exists" error if ge, ok := status.Err().(*googleapi.Error); ok && ge.Code == 409 && (strings.Contains(ge.Message, "Duplicate") || strings.Contains(ge.Message, "Already Exists")) { - log.Printf("INFO: Replica '%s' already exists for dataset '%s' (error in job status). Continuing.", replicaLocation, datasetID) + log.Printf("INFO: Replica '%s' already exists for dataset '%s' (error in job status). Continuing.", replicaLocation, datasetID) } else { return "", fmt.Errorf("BigQuery job for adding replica completed with an error: %w", status.Err()) } diff --git a/mmv1/third_party/terraform/envvar/envvar_utils.go b/mmv1/third_party/terraform/envvar/envvar_utils.go index fb34c9ec481f..3d669c4efecc 100644 --- a/mmv1/third_party/terraform/envvar/envvar_utils.go +++ b/mmv1/third_party/terraform/envvar/envvar_utils.go @@ -125,6 +125,12 @@ var vmwareengineProjectEnvVars = []string{ "GOOGLE_VMWAREENGINE_PROJECT", } +// This value is the destination project used for cross project clone . A separate project is needed +// to test cross project clone scenarios. +var cloneDestinationProjectEnvVars = []string{ + "GOOGLE_CLONE_DESTINATION_PROJECT", +} + // AccTestPreCheck ensures at least one of the project env variables is set. func GetTestProjectNumberFromEnv() string { return transport_tpg.MultiEnvSearch(ProjectNumberEnvVars) @@ -234,6 +240,11 @@ func GetTestVmwareengineProjectFromEnv(t *testing.T) string { return transport_tpg.MultiEnvSearch(vmwareengineProjectEnvVars) } +func GetTestCloneDestinationProjectEnvVars(t *testing.T) string { + SkipIfEnvNotSet(t, cloneDestinationProjectEnvVars...) + return transport_tpg.MultiEnvSearch(cloneDestinationProjectEnvVars) +} + func SkipIfEnvNotSet(t *testing.T, envs ...string) { if t == nil { log.Printf("[DEBUG] Not running inside of test - skip skipping") diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl index 80d6e9097b40..cd340cfbb744 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl @@ -1381,6 +1381,11 @@ API (for read pools, effective_availability_type may differ from availability_ty Required: true, Description: `The name of the instance from which the point in time should be restored.`, }, + "source_project": { + Type: schema.TypeString, + Optional: true, + Description: `The project ID of the source project`, + }, "point_in_time": { Type: schema.TypeString, Optional: true, @@ -1561,7 +1566,10 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) ReplicaConfiguration: expandReplicaConfiguration(d.Get("replica_configuration").([]interface{})), } - cloneContext, cloneSource := expandCloneContext(d.Get("clone").([]interface{})) + cloneContext, cloneSourceInstance, cloneSourceProject := expandCloneContext(d.Get("clone").([]interface{})) + if cloneSourceProject == "" { + cloneSourceProject = project + } pointInTimeRestoreContext := expandPointInTimeRestoreContext(d.Get("point_in_time_restore_context").([]interface{})) if valueI, ok := d.GetOk("settings.0.auto_upgrade_enabled"); ok && !(valueI.(bool)) { @@ -1623,8 +1631,10 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) RetryFunc: func() (operr error) { if cloneContext != nil { cloneContext.DestinationInstanceName = name + cloneContext.DestinationProject = project + cloneContext.DestinationNetwork = network clodeReq := sqladmin.InstancesCloneRequest{CloneContext: cloneContext} - op, operr = config.NewSqlAdminClient(userAgent).Instances.Clone(project, cloneSource, &clodeReq).Do() + op, operr = config.NewSqlAdminClient(userAgent).Instances.Clone(cloneSourceProject, cloneSourceInstance, &clodeReq).Do() } else if pointInTimeRestoreContext != nil { parent := fmt.Sprintf("projects/%s", project) op, operr = config.NewSqlAdminClient(userAgent).Instances.PointInTimeRestore(parent, pointInTimeRestoreContext).Do() @@ -1850,9 +1860,9 @@ func expandReplicaConfiguration(configured []interface{}) *sqladmin.ReplicaConfi } } -func expandCloneContext(configured []interface{}) (*sqladmin.CloneContext, string) { +func expandCloneContext(configured []interface{}) (*sqladmin.CloneContext, string, string) { if len(configured) == 0 || configured[0] == nil { - return nil, "" + return nil, "", "" } _cloneConfiguration := configured[0].(map[string]interface{}) @@ -1869,7 +1879,7 @@ func expandCloneContext(configured []interface{}) (*sqladmin.CloneContext, strin DatabaseNames: databaseNames, AllocatedIpRange: _cloneConfiguration["allocated_ip_range"].(string), SourceInstanceDeletionTime: _cloneConfiguration["source_instance_deletion_time"].(string), - }, _cloneConfiguration["source_instance_name"].(string) + }, _cloneConfiguration["source_instance_name"].(string), _cloneConfiguration["source_project"].(string) } func expandMaintenanceWindow(configured []interface{}) *sqladmin.MaintenanceWindow { diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 534c5fadb7cf..f151b1cd13bf 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1718,6 +1718,41 @@ func TestAccSqlDatabaseInstance_basicClone(t *testing.T) { }) } +func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { + // Sqladmin client + acctest.SkipIfVcr(t) + t.Parallel() + + cloneSourceProject := envvar.GetTestProjectFromEnv() + cloneDestinationProject := envvar.GetTestCloneDestinationProjectEnvVars(t) + destinationNetwork := acctest.BootstrapSharedServiceNetworkingConnection(t, "test-cross-project-clone", acctest.ServiceNetworkWithProjectID(cloneDestinationProject)) + + context := map[string]interface{}{ + "random_suffix": acctest.RandString(t, 10), + "original_db_name": acctest.BootstrapSharedSQLInstanceBackupRun(t, cloneSourceProject), + "cloneSourceProject": cloneSourceProject, + "cloneDestinationProject": cloneDestinationProject, + "destinationNetwork": destinationNetwork, + } + + acctest.VcrTest(t, resource.TestCase{ + PreCheck: func() { acctest.AccTestPreCheck(t) }, + ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t), + CheckDestroy: testAccSqlDatabaseInstanceDestroyProducer(t), + Steps: []resource.TestStep{ + { + Config: testAccSqlDatabaseInstance_crossProjectClone(context), + }, + { + ResourceName: "google_sql_database_instance.instance", + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"deletion_protection", "clone"}, + }, + }, + }) +} + func TestAccSqlDatabaseInstance_cloneWithSettings(t *testing.T) { // Sqladmin client acctest.SkipIfVcr(t) @@ -8252,6 +8287,56 @@ data "google_sql_backup_run" "backup" { `, context) } +func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{}) string { + return acctest.Nprintf(` + data "google_project" "destination_project" { + project_id = "%{cloneDestinationProject}" + } + resource "google_sql_database_instance" "cloned_instance" { + name = "clone-cpc-testing-via-acc-tests" + database_version = "POSTGRES_14" + region = "us-central1" + project = "${data.google_project.destination_project.project_id}" + + settings { + tier = "db-perf-optimized-N-2" + edition = "ENTERPRISE_PLUS" + ip_configuration { + private_network = data.google_compute_network.servicenet.self_link + } + } + + clone { + //source_project = data.google_project.sourceProject + source_project = "sdeekshaa-playground" + source_instance_name = data.google_sql_backup_run.backup.instance + //source_instance_name = resource.google_sql_database_instance.source_instance.name + } + + deletion_protection = false + + // Ignore changes, since the most recent backup may change during the test + lifecycle{ + ignore_changes = [clone[0].point_in_time] + } + } + + data "google_sql_backup_run" "backup" { + instance = "%{original_db_name}" + most_recent = true + } + + data "google_compute_network" "servicenet" { + name = "%{destinationNetwork}" + project = "${data.google_project.destination_project.project_id}" + } + + data "google_project" "source_project" { + project_id = "%{cloneSourceProject}" + } + `, context) +} + func testAccSqlDatabaseInstance_cloneWithSettings(context map[string]interface{}) string { return acctest.Nprintf(` resource "google_sql_database_instance" "instance" { From 5aab1414db861aa5f94b43476ee4f3ac9c9ba6c1 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Thu, 26 Feb 2026 20:38:28 +0000 Subject: [PATCH 02/32] Updated test params for testAccSqlDatabaseInstance_crossProjectClone and updated testAccSqlDatabaseInstanceDestroyProducer to take projectId as optional param --- ...esource_sql_database_instance_test.go.tmpl | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index f151b1cd13bf..85acca6d5e4d 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1738,13 +1738,13 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { acctest.VcrTest(t, resource.TestCase{ PreCheck: func() { acctest.AccTestPreCheck(t) }, ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t), - CheckDestroy: testAccSqlDatabaseInstanceDestroyProducer(t), + CheckDestroy: testAccSqlDatabaseInstanceDestroyProducer(t, cloneDestinationProject), Steps: []resource.TestStep{ { Config: testAccSqlDatabaseInstance_crossProjectClone(context), }, { - ResourceName: "google_sql_database_instance.instance", + ResourceName: "google_sql_database_instance.cloned_instance", ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{"deletion_protection", "clone"}, @@ -1887,7 +1887,7 @@ func TestAccSqlDatabaseInstance_pointInTimeRestoreWithSettings(t *testing.T) { }) } -func testAccSqlDatabaseInstanceDestroyProducer(t *testing.T) func(s *terraform.State) error { +func testAccSqlDatabaseInstanceDestroyProducer(t *testing.T, projectId ...string) func(s *terraform.State) error { return func(s *terraform.State) error { for _, rs := range s.RootModule().Resources { config := acctest.GoogleProviderConfig(t) @@ -1895,7 +1895,12 @@ func testAccSqlDatabaseInstanceDestroyProducer(t *testing.T) func(s *terraform.S continue } - _, err := config.NewSqlAdminClient(config.UserAgent).Instances.Get(config.Project, + project := config.Project + if len(projectId) > 0 && projectId[0] != "" { + project = projectId[0] + } + + _, err := config.NewSqlAdminClient(config.UserAgent).Instances.Get(project, rs.Primary.Attributes["name"]).Do() if err == nil { return fmt.Errorf("Database Instance still exists") @@ -8294,16 +8299,20 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} } resource "google_sql_database_instance" "cloned_instance" { name = "clone-cpc-testing-via-acc-tests" - database_version = "POSTGRES_14" + database_version = "POSTGRES_11" region = "us-central1" project = "${data.google_project.destination_project.project_id}" settings { - tier = "db-perf-optimized-N-2" - edition = "ENTERPRISE_PLUS" + tier = "db-custom-2-3840" + edition = "ENTERPRISE" ip_configuration { private_network = data.google_compute_network.servicenet.self_link } + backup_configuration { + enabled = true + point_in_time_recovery_enabled = true + } } clone { From 4d9ce8226f29886836d5301465a97c1bbd061fac Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Thu, 26 Feb 2026 20:47:27 +0000 Subject: [PATCH 03/32] Updating resource name in testAccSqlDatabaseInstance_crossProjectClone --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 85acca6d5e4d..bdd877416207 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1744,7 +1744,7 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { Config: testAccSqlDatabaseInstance_crossProjectClone(context), }, { - ResourceName: "google_sql_database_instance.cloned_instance", + ResourceName: "google_sql_database_instance.instance", ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{"deletion_protection", "clone"}, @@ -8297,7 +8297,7 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} data "google_project" "destination_project" { project_id = "%{cloneDestinationProject}" } - resource "google_sql_database_instance" "cloned_instance" { + resource "google_sql_database_instance" "instance" { name = "clone-cpc-testing-via-acc-tests" database_version = "POSTGRES_11" region = "us-central1" From b35a579b8664900162f1c805dee683f3a83e96dc Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Thu, 26 Feb 2026 21:53:32 +0000 Subject: [PATCH 04/32] Added testAccSqlDatabaseInstanceImportStateIdFunc to also import project along with instance name --- .../sql/resource_sql_database_instance_test.go.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index bdd877416207..48f8c85e3806 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1747,12 +1747,23 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { ResourceName: "google_sql_database_instance.instance", ImportState: true, ImportStateVerify: true, + ImportStateIdFunc: testAccSqlDatabaseInstanceImportStateIdFunc("google_sql_database_instance.instance"), ImportStateVerifyIgnore: []string{"deletion_protection", "clone"}, }, }, }) } +func testAccSqlDatabaseInstanceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc { + return func(s *terraform.State) (string, error) { + rs, ok := s.RootModule().Resources[resourceName] + if !ok { + return "", fmt.Errorf("Not found: %s", resourceName) + } + return fmt.Sprintf("%s/%s", rs.Primary.Attributes["project"], rs.Primary.Attributes["name"]), nil + } +} + func TestAccSqlDatabaseInstance_cloneWithSettings(t *testing.T) { // Sqladmin client acctest.SkipIfVcr(t) From eb5c9b2a4b14d2c8870a93dca89658b6b8be8f30 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Fri, 27 Feb 2026 19:27:57 +0000 Subject: [PATCH 05/32] Nitpicking changes --- .../sql/resource_sql_database_instance_test.go.tmpl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 48f8c85e3806..2d18ed746092 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1738,7 +1738,6 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { acctest.VcrTest(t, resource.TestCase{ PreCheck: func() { acctest.AccTestPreCheck(t) }, ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t), - CheckDestroy: testAccSqlDatabaseInstanceDestroyProducer(t, cloneDestinationProject), Steps: []resource.TestStep{ { Config: testAccSqlDatabaseInstance_crossProjectClone(context), @@ -8309,7 +8308,7 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} project_id = "%{cloneDestinationProject}" } resource "google_sql_database_instance" "instance" { - name = "clone-cpc-testing-via-acc-tests" + name = "tf-cpc-test-%{random_suffix}" database_version = "POSTGRES_11" region = "us-central1" project = "${data.google_project.destination_project.project_id}" @@ -8327,10 +8326,8 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} } clone { - //source_project = data.google_project.sourceProject - source_project = "sdeekshaa-playground" + source_project = "${data.google_project.source_project.project_id}" source_instance_name = data.google_sql_backup_run.backup.instance - //source_instance_name = resource.google_sql_database_instance.source_instance.name } deletion_protection = false From cac58bf634c37f1055579bb3b501fd62a0ffc346 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Fri, 27 Feb 2026 19:31:14 +0000 Subject: [PATCH 06/32] Revert testAccSqlDatabaseInstanceDestroyProducer changes --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 2d18ed746092..6c51a335c322 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1897,7 +1897,7 @@ func TestAccSqlDatabaseInstance_pointInTimeRestoreWithSettings(t *testing.T) { }) } -func testAccSqlDatabaseInstanceDestroyProducer(t *testing.T, projectId ...string) func(s *terraform.State) error { +func testAccSqlDatabaseInstanceDestroyProducer(t *testing.T) func(s *terraform.State) error { return func(s *terraform.State) error { for _, rs := range s.RootModule().Resources { config := acctest.GoogleProviderConfig(t) @@ -1906,9 +1906,6 @@ func testAccSqlDatabaseInstanceDestroyProducer(t *testing.T, projectId ...string } project := config.Project - if len(projectId) > 0 && projectId[0] != "" { - project = projectId[0] - } _, err := config.NewSqlAdminClient(config.UserAgent).Instances.Get(project, rs.Primary.Attributes["name"]).Do() From 56ae306c2c7f292e232d27360d72bc174b858cbe Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Fri, 27 Feb 2026 20:15:29 +0000 Subject: [PATCH 07/32] Updated resource meta yaml for new clone field --- .../services/sql/resource_sql_database_instance_meta.yaml.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl index bbf41275c115..856236252fc2 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl @@ -13,6 +13,7 @@ fields: - field: 'clone.preferred_zone' - field: 'clone.source_instance_deletion_time' - field: 'clone.source_instance_name' + - field: 'clone.source_project' - api_field: 'connectionName' - api_field: 'databaseVersion' - field: 'deletion_protection' From 2f4585bdad23b69306f88b7c240340809dcb40ec Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 2 Mar 2026 16:58:41 +0000 Subject: [PATCH 08/32] Creating bootstrap project for cross project clone instead of taking it from the environment variable --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 6c51a335c322..ee802f05ee3b 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1724,12 +1724,12 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { t.Parallel() cloneSourceProject := envvar.GetTestProjectFromEnv() - cloneDestinationProject := envvar.GetTestCloneDestinationProjectEnvVars(t) - destinationNetwork := acctest.BootstrapSharedServiceNetworkingConnection(t, "test-cross-project-clone", acctest.ServiceNetworkWithProjectID(cloneDestinationProject)) + cloneDestinationProject := acctest.BootstrapProject(t, "tf-cpc-", envvar.GetTestBillingAccountFromEnv(t), []string{"sqladmin.googleapis.com"}) context := map[string]interface{}{ "random_suffix": acctest.RandString(t, 10), "original_db_name": acctest.BootstrapSharedSQLInstanceBackupRun(t, cloneSourceProject), + "destinationNetwork": acctest.BootstrapSharedServiceNetworkingConnection(t, "test-cross-project-clone", acctest.ServiceNetworkWithProjectID(cloneDestinationProject)), "cloneSourceProject": cloneSourceProject, "cloneDestinationProject": cloneDestinationProject, "destinationNetwork": destinationNetwork, From eb2c06c4c1076509e6011e3e407f3c653c928cc1 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 2 Mar 2026 17:19:58 +0000 Subject: [PATCH 09/32] Release cross project clone changes for beta only --- .../services/sql/resource_sql_database_instance_meta.yaml.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl index 856236252fc2..3e03bf55dd0e 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl @@ -13,7 +13,9 @@ fields: - field: 'clone.preferred_zone' - field: 'clone.source_instance_deletion_time' - field: 'clone.source_instance_name' + {{- if ne $.TargetVersionName "ga" }} - field: 'clone.source_project' + {{- end }} - api_field: 'connectionName' - api_field: 'databaseVersion' - field: 'deletion_protection' From a66275523fba62d1c10cea6deef3b9bb340effc0 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 2 Mar 2026 17:34:19 +0000 Subject: [PATCH 10/32] Run test in VCR mode --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index ee802f05ee3b..60bb15a04330 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1720,7 +1720,7 @@ func TestAccSqlDatabaseInstance_basicClone(t *testing.T) { func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { // Sqladmin client - acctest.SkipIfVcr(t) + //acctest.SkipIfVcr(t) t.Parallel() cloneSourceProject := envvar.GetTestProjectFromEnv() From 99b2e33404b9eb17bc8faa973366cd9ac1b1df90 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 2 Mar 2026 18:21:21 +0000 Subject: [PATCH 11/32] Fix test issue --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 60bb15a04330..1b3c0031b712 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1724,7 +1724,7 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { t.Parallel() cloneSourceProject := envvar.GetTestProjectFromEnv() - cloneDestinationProject := acctest.BootstrapProject(t, "tf-cpc-", envvar.GetTestBillingAccountFromEnv(t), []string{"sqladmin.googleapis.com"}) + cloneDestinationProject := acctest.BootstrapProject(t, "tf-cpc-", envvar.GetTestBillingAccountFromEnv(t), []string{"sqladmin.googleapis.com"}).ProjectId context := map[string]interface{}{ "random_suffix": acctest.RandString(t, 10), @@ -1732,7 +1732,6 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { "destinationNetwork": acctest.BootstrapSharedServiceNetworkingConnection(t, "test-cross-project-clone", acctest.ServiceNetworkWithProjectID(cloneDestinationProject)), "cloneSourceProject": cloneSourceProject, "cloneDestinationProject": cloneDestinationProject, - "destinationNetwork": destinationNetwork, } acctest.VcrTest(t, resource.TestCase{ From 993f994e3dcac0358214365d1c445b10c3558b57 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 2 Mar 2026 19:08:07 +0000 Subject: [PATCH 12/32] Version related changes --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 1b3c0031b712..f5a9112f4e61 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1718,6 +1718,7 @@ func TestAccSqlDatabaseInstance_basicClone(t *testing.T) { }) } +{{- if ne $.TargetVersionName "ga" }} func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { // Sqladmin client //acctest.SkipIfVcr(t) @@ -1751,6 +1752,7 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { }, }) } +{{- end }} func testAccSqlDatabaseInstanceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc { return func(s *terraform.State) (string, error) { @@ -8304,7 +8306,7 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} project_id = "%{cloneDestinationProject}" } resource "google_sql_database_instance" "instance" { - name = "tf-cpc-test-%{random_suffix}" + name = "tf-test-cpc-%{random_suffix}" database_version = "POSTGRES_11" region = "us-central1" project = "${data.google_project.destination_project.project_id}" From 186cf89b0620c59a3e720b86ad34aacbede907ce Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 2 Mar 2026 19:10:26 +0000 Subject: [PATCH 13/32] Nitpicking changes --- mmv1/third_party/terraform/envvar/envvar_utils.go | 11 ----------- .../sql/resource_sql_database_instance_test.go.tmpl | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/mmv1/third_party/terraform/envvar/envvar_utils.go b/mmv1/third_party/terraform/envvar/envvar_utils.go index 3d669c4efecc..fb34c9ec481f 100644 --- a/mmv1/third_party/terraform/envvar/envvar_utils.go +++ b/mmv1/third_party/terraform/envvar/envvar_utils.go @@ -125,12 +125,6 @@ var vmwareengineProjectEnvVars = []string{ "GOOGLE_VMWAREENGINE_PROJECT", } -// This value is the destination project used for cross project clone . A separate project is needed -// to test cross project clone scenarios. -var cloneDestinationProjectEnvVars = []string{ - "GOOGLE_CLONE_DESTINATION_PROJECT", -} - // AccTestPreCheck ensures at least one of the project env variables is set. func GetTestProjectNumberFromEnv() string { return transport_tpg.MultiEnvSearch(ProjectNumberEnvVars) @@ -240,11 +234,6 @@ func GetTestVmwareengineProjectFromEnv(t *testing.T) string { return transport_tpg.MultiEnvSearch(vmwareengineProjectEnvVars) } -func GetTestCloneDestinationProjectEnvVars(t *testing.T) string { - SkipIfEnvNotSet(t, cloneDestinationProjectEnvVars...) - return transport_tpg.MultiEnvSearch(cloneDestinationProjectEnvVars) -} - func SkipIfEnvNotSet(t *testing.T, envs ...string) { if t == nil { log.Printf("[DEBUG] Not running inside of test - skip skipping") diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index f5a9112f4e61..571e280cf91c 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -8336,7 +8336,7 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} } } - data "google_sql_backup_run" "backup" { + data "google_sql_database_instance" "instance" { instance = "%{original_db_name}" most_recent = true } From d6b0dc625884d7f9667e974a234797127d0008cf Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 2 Mar 2026 19:28:57 +0000 Subject: [PATCH 14/32] Data fix --- .../sql/resource_sql_database_instance_test.go.tmpl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 571e280cf91c..7c209cd40101 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -8325,7 +8325,7 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} clone { source_project = "${data.google_project.source_project.project_id}" - source_instance_name = data.google_sql_backup_run.backup.instance + source_instance_name = data.google_sql_database_instance.source_instance.name } deletion_protection = false @@ -8336,9 +8336,8 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} } } - data "google_sql_database_instance" "instance" { - instance = "%{original_db_name}" - most_recent = true + data "google_sql_database_instance" "source_instance" { + name = "%{original_db_name}" } data "google_compute_network" "servicenet" { From 55a369d1b9e532c4f90f55318dbfe13bf1afce27 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 2 Mar 2026 20:04:34 +0000 Subject: [PATCH 15/32] Beta only --- .../services/sql/resource_sql_database_instance.go.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl index cd340cfbb744..86d8a07dc59f 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl @@ -1381,11 +1381,13 @@ API (for read pools, effective_availability_type may differ from availability_ty Required: true, Description: `The name of the instance from which the point in time should be restored.`, }, + {{- if ne $.TargetVersionName "ga" }} "source_project": { Type: schema.TypeString, Optional: true, Description: `The project ID of the source project`, }, + {{- end }} "point_in_time": { Type: schema.TypeString, Optional: true, From 385553c56ac85a960a17d157cd57fd0a18410573 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Tue, 3 Mar 2026 09:57:04 +0000 Subject: [PATCH 16/32] Beta provider changes only --- .../resource_sql_database_instance.go.tmpl | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl index 86d8a07dc59f..3e4e55b5b2b7 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl @@ -1568,7 +1568,8 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) ReplicaConfiguration: expandReplicaConfiguration(d.Get("replica_configuration").([]interface{})), } - cloneContext, cloneSourceInstance, cloneSourceProject := expandCloneContext(d.Get("clone").([]interface{})) + cloneContext, cloneSourceInstance, := expandCloneContext(d.Get("clone").([]interface{})) + cloneSourceProject := fetchSourceProjectForCloneContext(d.Get("clone").([]interface{})) if cloneSourceProject == "" { cloneSourceProject = project } @@ -1633,10 +1634,14 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) RetryFunc: func() (operr error) { if cloneContext != nil { cloneContext.DestinationInstanceName = name + {{- if ne $.TargetVersionName "ga" }} cloneContext.DestinationProject = project cloneContext.DestinationNetwork = network + {{- end }} clodeReq := sqladmin.InstancesCloneRequest{CloneContext: cloneContext} + {{- if ne $.TargetVersionName "ga" }} op, operr = config.NewSqlAdminClient(userAgent).Instances.Clone(cloneSourceProject, cloneSourceInstance, &clodeReq).Do() + {{- end }} } else if pointInTimeRestoreContext != nil { parent := fmt.Sprintf("projects/%s", project) op, operr = config.NewSqlAdminClient(userAgent).Instances.PointInTimeRestore(parent, pointInTimeRestoreContext).Do() @@ -1862,9 +1867,9 @@ func expandReplicaConfiguration(configured []interface{}) *sqladmin.ReplicaConfi } } -func expandCloneContext(configured []interface{}) (*sqladmin.CloneContext, string, string) { +func expandCloneContext(configured []interface{}) (*sqladmin.CloneContext, string) { if len(configured) == 0 || configured[0] == nil { - return nil, "", "" + return nil, "" } _cloneConfiguration := configured[0].(map[string]interface{}) @@ -1881,9 +1886,19 @@ func expandCloneContext(configured []interface{}) (*sqladmin.CloneContext, strin DatabaseNames: databaseNames, AllocatedIpRange: _cloneConfiguration["allocated_ip_range"].(string), SourceInstanceDeletionTime: _cloneConfiguration["source_instance_deletion_time"].(string), - }, _cloneConfiguration["source_instance_name"].(string), _cloneConfiguration["source_project"].(string) + }, _cloneConfiguration["source_instance_name"].(string) } +{{- if ne $.TargetVersionName "ga" }} +func fetchSourceProjectForCloneContext(configured []interface{}) (string) { + if len(configured) == 0 || configured[0] == nil { + return "" + } + _cloneConfiguration := configured[0].(map[string]interface{}) + return _cloneConfiguration["source_project"].(string) +} +{{- end }} + func expandMaintenanceWindow(configured []interface{}) *sqladmin.MaintenanceWindow { if len(configured) == 0 || configured[0] == nil { return nil From e206ebf0c3652ab86a978563857d0c697a03ee9c Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Tue, 3 Mar 2026 10:05:38 +0000 Subject: [PATCH 17/32] Addressing comment --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 7c209cd40101..f51a5eb90526 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1906,9 +1906,7 @@ func testAccSqlDatabaseInstanceDestroyProducer(t *testing.T) func(s *terraform.S continue } - project := config.Project - - _, err := config.NewSqlAdminClient(config.UserAgent).Instances.Get(project, + _, err := config.NewSqlAdminClient(config.UserAgent).Instances.Get(config.Project, rs.Primary.Attributes["name"]).Do() if err == nil { return fmt.Errorf("Database Instance still exists") From 154447ce966ce0c3581b945e9a0e95e265e04adc Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Tue, 3 Mar 2026 10:07:19 +0000 Subject: [PATCH 18/32] Switching cloneDestinationProject and cloneSourceProject to verify the test --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index f51a5eb90526..488a2a6c202a 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1724,8 +1724,8 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { //acctest.SkipIfVcr(t) t.Parallel() - cloneSourceProject := envvar.GetTestProjectFromEnv() - cloneDestinationProject := acctest.BootstrapProject(t, "tf-cpc-", envvar.GetTestBillingAccountFromEnv(t), []string{"sqladmin.googleapis.com"}).ProjectId + cloneDestinationProject := envvar.GetTestProjectFromEnv() + cloneSourceProject := acctest.BootstrapProject(t, "tf-cpc-", envvar.GetTestBillingAccountFromEnv(t), []string{"sqladmin.googleapis.com"}).ProjectId context := map[string]interface{}{ "random_suffix": acctest.RandString(t, 10), From fa26cfc0dc855c70a953f6593bb212ebe767cdc0 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Tue, 3 Mar 2026 10:22:28 +0000 Subject: [PATCH 19/32] Fixing compile issue --- .../services/sql/resource_sql_database_instance.go.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl index 3e4e55b5b2b7..4a46d186a7ca 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl @@ -1568,7 +1568,7 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) ReplicaConfiguration: expandReplicaConfiguration(d.Get("replica_configuration").([]interface{})), } - cloneContext, cloneSourceInstance, := expandCloneContext(d.Get("clone").([]interface{})) + cloneContext, cloneSourceInstance := expandCloneContext(d.Get("clone").([]interface{})) cloneSourceProject := fetchSourceProjectForCloneContext(d.Get("clone").([]interface{})) if cloneSourceProject == "" { cloneSourceProject = project From 6a5b028771dbcdd14017f11785138e5fb99a1a39 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Tue, 3 Mar 2026 14:39:18 +0000 Subject: [PATCH 20/32] Update project id for the source instance --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 488a2a6c202a..96b4621bddc2 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -8336,6 +8336,7 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} data "google_sql_database_instance" "source_instance" { name = "%{original_db_name}" + project = "${data.google_project.source_project.project_id}" } data "google_compute_network" "servicenet" { From 15ec72fe789960d465d3bfb447bdc26926f26ef4 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Wed, 4 Mar 2026 05:36:15 +0000 Subject: [PATCH 21/32] Fix changes --- .../sql/resource_sql_database_instance.go.tmpl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl index 4a46d186a7ca..bc08f673ae3b 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl @@ -1569,10 +1569,13 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) } cloneContext, cloneSourceInstance := expandCloneContext(d.Get("clone").([]interface{})) + + {{- if ne $.TargetVersionName "ga" }} cloneSourceProject := fetchSourceProjectForCloneContext(d.Get("clone").([]interface{})) - if cloneSourceProject == "" { - cloneSourceProject = project + if cloneSourceProject != "" { + project = cloneSourceProject } + {{- end }} pointInTimeRestoreContext := expandPointInTimeRestoreContext(d.Get("point_in_time_restore_context").([]interface{})) if valueI, ok := d.GetOk("settings.0.auto_upgrade_enabled"); ok && !(valueI.(bool)) { @@ -1639,9 +1642,7 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) cloneContext.DestinationNetwork = network {{- end }} clodeReq := sqladmin.InstancesCloneRequest{CloneContext: cloneContext} - {{- if ne $.TargetVersionName "ga" }} - op, operr = config.NewSqlAdminClient(userAgent).Instances.Clone(cloneSourceProject, cloneSourceInstance, &clodeReq).Do() - {{- end }} + op, operr = config.NewSqlAdminClient(userAgent).Instances.Clone(project, cloneSourceInstance, &clodeReq).Do() } else if pointInTimeRestoreContext != nil { parent := fmt.Sprintf("projects/%s", project) op, operr = config.NewSqlAdminClient(userAgent).Instances.PointInTimeRestore(parent, pointInTimeRestoreContext).Do() From 797c57d92aadbff51238565f451214cb3f8a6926 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Wed, 4 Mar 2026 05:55:53 +0000 Subject: [PATCH 22/32] Addressing PR comments --- .../sql/resource_sql_database_instance.go.tmpl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl index bc08f673ae3b..3e929b84af4f 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl @@ -1571,10 +1571,7 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) cloneContext, cloneSourceInstance := expandCloneContext(d.Get("clone").([]interface{})) {{- if ne $.TargetVersionName "ga" }} - cloneSourceProject := fetchSourceProjectForCloneContext(d.Get("clone").([]interface{})) - if cloneSourceProject != "" { - project = cloneSourceProject - } + cloneSourceProject := expandCloneSourceProject(d.Get("clone").([]interface{})) {{- end }} pointInTimeRestoreContext := expandPointInTimeRestoreContext(d.Get("point_in_time_restore_context").([]interface{})) @@ -1642,7 +1639,11 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) cloneContext.DestinationNetwork = network {{- end }} clodeReq := sqladmin.InstancesCloneRequest{CloneContext: cloneContext} + {{- if ne $.TargetVersionName "ga" }} + op, operr = config.NewSqlAdminClient(userAgent).Instances.Clone(cloneSourceProject, cloneSourceInstance, &clodeReq).Do() + {{- else }} op, operr = config.NewSqlAdminClient(userAgent).Instances.Clone(project, cloneSourceInstance, &clodeReq).Do() + {{- end }} } else if pointInTimeRestoreContext != nil { parent := fmt.Sprintf("projects/%s", project) op, operr = config.NewSqlAdminClient(userAgent).Instances.PointInTimeRestore(parent, pointInTimeRestoreContext).Do() @@ -1891,7 +1892,7 @@ func expandCloneContext(configured []interface{}) (*sqladmin.CloneContext, strin } {{- if ne $.TargetVersionName "ga" }} -func fetchSourceProjectForCloneContext(configured []interface{}) (string) { +func expandCloneSourceProject(configured []interface{}) (string) { if len(configured) == 0 || configured[0] == nil { return "" } From 8bc0750b4e64db035b117d18b1306fdc2eb536dd Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Wed, 4 Mar 2026 12:46:11 +0000 Subject: [PATCH 23/32] Trying random fix --- ...esource_sql_database_instance_test.go.tmpl | 14 +- output.txt | 1406 +++++++++++++++++ 2 files changed, 1413 insertions(+), 7 deletions(-) create mode 100644 output.txt diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 96b4621bddc2..83cfb1de8535 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1725,12 +1725,12 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { t.Parallel() cloneDestinationProject := envvar.GetTestProjectFromEnv() - cloneSourceProject := acctest.BootstrapProject(t, "tf-cpc-", envvar.GetTestBillingAccountFromEnv(t), []string{"sqladmin.googleapis.com"}).ProjectId + cloneSourceProject := acctest.BootstrapProject(t, "tf-cpc-", envvar.GetTestBillingAccountFromEnv(t), []string{"sqladmin.googleapis.com"}).ProjectId //"sdeekshaa-playground" context := map[string]interface{}{ "random_suffix": acctest.RandString(t, 10), "original_db_name": acctest.BootstrapSharedSQLInstanceBackupRun(t, cloneSourceProject), - "destinationNetwork": acctest.BootstrapSharedServiceNetworkingConnection(t, "test-cross-project-clone", acctest.ServiceNetworkWithProjectID(cloneDestinationProject)), + //"destinationNetwork": acctest.BootstrapSharedServiceNetworkingConnection(t, "test-cross-project-clone", acctest.ServiceNetworkWithProjectID(cloneDestinationProject)), "cloneSourceProject": cloneSourceProject, "cloneDestinationProject": cloneDestinationProject, } @@ -8313,7 +8313,7 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} tier = "db-custom-2-3840" edition = "ENTERPRISE" ip_configuration { - private_network = data.google_compute_network.servicenet.self_link + private_network = "projects/%{cloneDestinationProject}/global/networks/default" //data.google_compute_network.servicenet.self_link } backup_configuration { enabled = true @@ -8339,10 +8339,10 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} project = "${data.google_project.source_project.project_id}" } - data "google_compute_network" "servicenet" { - name = "%{destinationNetwork}" - project = "${data.google_project.destination_project.project_id}" - } + //data "google_compute_network" "servicenet" { + // name = "%{destinationNetwork}" + // project = "${data.google_project.destination_project.project_id}" + //} data "google_project" "source_project" { project_id = "%{cloneSourceProject}" diff --git a/output.txt b/output.txt new file mode 100644 index 000000000000..94ff92301059 --- /dev/null +++ b/output.txt @@ -0,0 +1,1406 @@ +./.ci/infra/terraform/main.tf:299: "firestore.googleapis.com", +./.ci/infra/terraform/main.tf:300: "firestorekeyvisualizer.googleapis.com", +./.ci/infra/terraform/main.tf:497:# TestAccVertexAIFeaturestoreEntitytype_vertexAiFeaturestoreEntitytypeExample +./.ci/infra/terraform/main.tf:498:# TestAccVertexAIFeaturestoreEntitytype_vertexAiFeaturestoreEntitytypeWithBetaFieldsExample +./.ci/infra/terraform/main.tf:499:# TestAccVertexAIFeaturestore_vertexAiFeaturestoreExample +./.ci/infra/terraform/main.tf:500:# TestAccVertexAIFeaturestore_vertexAiFeaturestoreScalingExample +./.ci/infra/terraform/main.tf:501:# TestAccVertexAIFeaturestore_vertexAiFeaturestoreWithBetaFieldsExample +./.ci/magician/cmd/generate_comment_test.go:521: path: "/website/docs/r/firestore_document.html.markdown", +./.ci/magician/cmd/generate_comment_test.go:522: want: "google_firestore_document", +./.ci/magician/cmd/vcr_cassette_update.go:124: // incase nightly run goes wrong. this will be used to restore the cassettes +./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.yaml:14:name: firestore_release_additional +./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.yaml:15:description: Creates a Firebase Rules Release to an additional Cloud Firestore instance +./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.yaml:20:resource: ./firestore_release_additional.tf.tmpl +./tpgtools/overrides/firebaserules/samples/release/meta.yaml:4:# The firestore_release test uses the default Firestore instance, which can have an existing Rules deployment for whatever reason. +./tpgtools/overrides/firebaserules/samples/release/meta.yaml:5:# However, the firestore_release_additional test was sufficient because Rules deployment doesn't care about whether it's the default Firestore instance +./tpgtools/overrides/firebaserules/samples/release/meta.yaml:7: - firestore_release.tf.tmpl +./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.tf.tmpl:2: name = "cloud.firestore/{{database}}" +./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.tf.tmpl:4: ruleset_name = "projects/{{project}}/rulesets/${google_firebaserules_ruleset.firestore.name}" +./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.tf.tmpl:7:resource "google_firebaserules_ruleset" "firestore" { +./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.tf.tmpl:12: content = "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }" +./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.tf.tmpl:13: name = "firestore.rules" +./tpgtools/overrides/firebaserules/samples/release/firestore_release.yaml:14:name: firestore_release +./tpgtools/overrides/firebaserules/samples/release/firestore_release.yaml:15:description: Creates a Firebase Rules Release to the default Cloud Firestore instance +./tpgtools/overrides/firebaserules/samples/release/firestore_release.yaml:20:resource: ./firestore_release.tf.tmpl +./tpgtools/overrides/firebaserules/samples/release/firestore_release.tf.tmpl:2: name = "cloud.firestore" +./tpgtools/overrides/firebaserules/samples/release/firestore_release.tf.tmpl:4: ruleset_name = "projects/{{project}}/rulesets/${google_firebaserules_ruleset.firestore.name}" +./tpgtools/overrides/firebaserules/samples/release/firestore_release.tf.tmpl:7:resource "google_firebaserules_ruleset" "firestore" { +./tpgtools/overrides/firebaserules/samples/release/firestore_release.tf.tmpl:12: content = "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }" +./tpgtools/overrides/firebaserules/samples/release/firestore_release.tf.tmpl:13: name = "firestore.rules" +./tpgtools/api/firebaserules/samples/basic.ruleset.json:6: "name": "firestore.rules", +./tpgtools/api/firebaserules/samples/basic.ruleset.json:7: "content": "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }", +./tpgtools/api/firebaserules/samples/basic.ruleset.json:13: "services": ["cloud.firestore"] +./tpgtools/api/firebaserules/samples/minimal.ruleset.json:6: "name": "firestore.rules", +./tpgtools/api/firebaserules/samples/minimal.ruleset.json:7: "content": "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }" +./tpgtools/api/firebaserules/samples/minimal_ruleset.yaml:15:description: Creates a minimal Firestore ruleset +./tpgtools/api/firebaserules/samples/basic_ruleset.yaml:15:description: Creates a basic Firestore ruleset +./.github/actions/build-downstream/action.yml:30: restore-keys: | +./.github/workflows/teamcity-pr-checks.yml:33: restore-keys: | +./.github/workflows/build-downstream.yml:35: restore-keys: | +./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype_feature.go.tmpl:17:re := regexp.MustCompile("^projects/(.+)/locations/(.+)/featurestores/(.+)/entityTypes/(.+)$") +./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl:3: "(?P.+)/entityTypes/(?P[^/]+)", +./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl:9:id, err := tpgresource.ReplaceVars(d, config, "{{"{{"}}featurestore{{"}}"}}/entityTypes/{{"{{"}}name{{"}}"}}") +./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl:15:featurestore := d.Get("featurestore").(string) +./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl:17:re := regexp.MustCompile("^projects/(.+)/locations/(.+)/featurestores/(.+)$") +./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl:18:if parts := re.FindStringSubmatch(featurestore); parts != nil { +./mmv1/templates/terraform/post_create/cloud_asset_feed.go.tmpl:1:// Restore the original value of user_project_override. +./mmv1/templates/terraform/iam/example_config_body/vertex_ai_featurestore.tf.tmpl:1: project = google_vertex_ai_featurestore.featurestore.project +./mmv1/templates/terraform/iam/example_config_body/vertex_ai_featurestore.tf.tmpl:2: region = google_vertex_ai_featurestore.featurestore.region +./mmv1/templates/terraform/iam/example_config_body/vertex_ai_featurestore.tf.tmpl:3: featurestore = google_vertex_ai_featurestore.featurestore.name +./mmv1/templates/terraform/iam/example_config_body/vertex_ai_featurestore_entitytype.tf.tmpl:1: featurestore = google_vertex_ai_featurestore_entitytype.entity.featurestore +./mmv1/templates/terraform/iam/example_config_body/vertex_ai_featurestore_entitytype.tf.tmpl:2: entitytype = google_vertex_ai_featurestore_entitytype.entity.name +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:1:// Read the restore variables from obj and remove them, since they do not map to anything in the cluster +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:6:if val, ok := obj["restoreBackupSource"]; ok { +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:8: delete(obj, "restoreBackupSource") +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:10:if val, ok := obj["restoreContinuousBackupSource"]; ok { +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:12: delete(obj, "restoreContinuousBackupSource") +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:14:if val, ok := obj["restoreBackupdrBackupSource"]; ok { +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:16: delete(obj, "restoreBackupdrBackupSource") +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:18:if val, ok := obj["restoreBackupdrPitrSource"]; ok { +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:20: delete(obj, "restoreBackupdrPitrSource") +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:23:restoreClusterRequestBody := make(map[string]interface{}) +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:26: restoreClusterRequestBody["backup_source"] = backupSource +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:29: restoreClusterRequestBody["continuous_backup_source"] = continuousBackupSource +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:31: // If restore from a BackupDR backup, set the backupDrBackupSource +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:32: restoreClusterRequestBody["backupdr_backup_source"] = backupDrBackupSource +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:34: // if point in time restore from a BackupDR data source, set the backupDrPitrSource +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:35: restoreClusterRequestBody["backupdr_pitr_source"] = backupDrPitrSource +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:39: // Use restore API if this is a restore instead of a create cluster call +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:40: url = strings.Replace(url, "clusters?clusterId", "clusters:restore?clusterId", 1) +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:47: restoreClusterRequestBody["cluster"] = cluster +./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:48: obj = restoreClusterRequestBody +./mmv1/templates/terraform/custom_update/firewall_policy_association_update.go.tmpl:54: //before failing an update, restores the old firewall_policy value to prevent terraform state becoming broken +./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:3: return fmt.Errorf("Error fetching project for RestoreWorkload: %s", err) +./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:12:if v, ok := d.GetOkExists("delete_restored_instance"); ok { +./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:16:// If the caller asked us to keep the restored resource, exit immediately and only clear state. +./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:18: log.Printf("[DEBUG] Skipping deletion of restored resource (deleteRestoredInstance=%v)", deleteInstance) +./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:23:// If deleteRestoredInstance is true, delete the actual restored resource from GCP +./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:41: log.Printf("[DEBUG] Deleting restored resource: %s", resourceId) +./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:60: log.Printf("[WARN] Error deleting restored instance %s: %v", resourceId, deleteErr) +./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:114: log.Printf("[WARN] Error deleting restored disk %s: %v", resourceId, deleteErr) +./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:162:log.Printf("[DEBUG] Finished deleting RestoreWorkload") +./mmv1/templates/terraform/custom_delete/firestore_field_delete.go.tmpl:1:// Firestore fields cannot be deleted, instead we clear the indexConfig and ttlConfig. +./mmv1/templates/terraform/custom_delete/firestore_field_delete.go.tmpl:13:url, err := tpgresource.ReplaceVars(d, config, "{{"{{"}}FirestoreBasePath{{"}}"}}{{"{{"}}name{{"}}"}}") +./mmv1/templates/terraform/custom_delete/firestore_field_delete.go.tmpl:55:err = FirestoreOperationWaitTime( +./mmv1/templates/terraform/custom_check_destroy/firestore_field.go.tmpl:1:// Firestore fields are not deletable. We consider the field deleted if: +./mmv1/templates/terraform/custom_check_destroy/firestore_field.go.tmpl:7:url, err := tpgresource.ReplaceVarsForTest(config, rs, "{{"{{"}}FirestoreBasePath{{"}}"}}projects/{{"{{"}}project{{"}}"}}/databases/{{"{{"}}database{{"}}"}}/collectionGroups/{{"{{"}}collection{{"}}"}}/fields/{{"{{"}}field{{"}}"}}") +./mmv1/templates/terraform/custom_check_destroy/firestore_field.go.tmpl:20: if e.Code == 403 && strings.Contains(e.Message, "Cloud Firestore API has not been used in project") { +./mmv1/templates/terraform/pre_delete/firestore_database.go.tmpl:2: log.Printf("[WARN] Firestore database %q deletion_policy is not set to 'DELETE', skipping deletion", d.Get("name").(string)) +./mmv1/templates/terraform/pre_delete/firestore_database.go.tmpl:6: return fmt.Errorf("Cannot delete Firestore database %s: Delete Protection is enabled. Set delete_protection_state to DELETE_PROTECTION_DISABLED for this resource and run \"terraform apply\" before attempting to delete it.", d.Get("name").(string)) +./mmv1/templates/terraform/pre_delete/firestore_index.go.tmpl:2: return fmt.Errorf("cannot destroy google_firestore_index resource with id : %q without setting deletion_policy=DELETE and running `terraform apply`", d.Id()) +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:72: return fmt.Errorf("Error fetching project for RestoreWorkload: %s", err) +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:143:// ==================== Compute Instance Restore Properties ==================== +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:144:if v, ok := d.GetOkExists("compute_instance_restore_properties"); ok { +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:797: obj["computeInstanceRestoreProperties"] = props +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:802:// ==================== Disk Restore Properties ==================== +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:803:if v, ok := d.GetOkExists("disk_restore_properties"); ok { +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:887: obj["diskRestoreProperties"] = props +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:896:// ==================== Build Restore URL & Execute Request ==================== +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:897:// Construct the restore URL using base path and url params +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:898:url := fmt.Sprintf("%sprojects/%s/locations/%s/backupVaults/%s/dataSources/%s/backups/%s:restore", +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:907:log.Printf("[DEBUG] Creating RestoreWorkload (restore): %#v", obj) +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:921: return fmt.Errorf("Error creating RestoreWorkload (restore): %s", err) +./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:1000:log.Printf("[DEBUG] Finished restoring RestoreWorkload %q: %#v", d.Id(), opRes) +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:7:databaseProp, err := expandFirestoreIndexDatabase(d.Get("database"), d, config) +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:13:collectionProp, err := expandFirestoreIndexCollection(d.Get("collection"), d, config) +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:19:queryScopeProp, err := expandFirestoreIndexQueryScope(d.Get("query_scope"), d, config) +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:25:apiScopeProp, err := expandFirestoreIndexApiScope(d.Get("api_scope"), d, config) +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:31:densityProp, err := expandFirestoreIndexDensity(d.Get("density"), d, config) +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:37:multikeyProp, err := expandFirestoreIndexMultikey(d.Get("multikey"), d, config) +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:43:uniqueProp, err := expandFirestoreIndexUnique(d.Get("unique"), d, config) +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:49:fieldsProp, err := expandFirestoreIndexFields(d.Get("fields"), d, config) +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:56:obj, err = resourceFirestoreIndexEncoder(d, meta, obj) +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:61:url, err := tpgresource.ReplaceVars(d, config, "{{"{{"}}FirestoreBasePath{{"}}"}}projects/{{"{{"}}project{{"}}"}}/databases/{{"{{"}}database{{"}}"}}/collectionGroups/{{"{{"}}collection{{"}}"}}/indexes") +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:90: ErrorRetryPredicates: []transport_tpg.RetryErrorPredicateFunc{transport_tpg.FirestoreIndex409Retry}, +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:114: if err := d.Set("name", flattenFirestoreIndexName(index, d, config)); err != nil { +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:121: err = FirestoreOperationWaitTimeWithResponse( +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:131: if err := d.Set("name", flattenFirestoreIndexName(opRes["name"], d, config)); err != nil { +./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:145:return resourceFirestoreIndexRead(d, meta) +./mmv1/templates/terraform/constants/vertex_ai_featurestore_entitytype.go.tmpl:1:if v, ok := d.GetOk("featurestore"); ok { +./mmv1/templates/terraform/constants/firestore_index.go.tmpl:2: * FirestoreIndex api apends __name__ as an item to the +./mmv1/templates/terraform/constants/firestore_index.go.tmpl:6:func FirestoreIFieldsDiffSuppressFunc(k, old, new string, d tpgresource.TerraformResourceDataChange) bool { +./mmv1/templates/terraform/constants/firestore_index.go.tmpl:34:func firestoreIFieldsDiffSuppress(k, old, new string, d *schema.ResourceData) bool { +./mmv1/templates/terraform/constants/firestore_index.go.tmpl:35: return FirestoreIFieldsDiffSuppressFunc(k, old, new, d) +./mmv1/templates/terraform/encoders/vertex_ai_featurestore_entitytype_feature.go.tmpl:2: re := regexp.MustCompile("^projects/(.+)/locations/(.+)/featurestores/(.+)/entityTypes/(.+)$") +./mmv1/templates/terraform/encoders/vertex_ai_featurestore_entitytype.go.tmpl:1:if v, ok := d.GetOk("featurestore"); ok { +./mmv1/templates/terraform/encoders/vertex_ai_featurestore_entitytype.go.tmpl:2: re := regexp.MustCompile("projects/(.+)/locations/(.+)/featurestores/(.+)$") +./mmv1/templates/terraform/examples/backup_dr_restore_workload_without_delete.tf.tmpl:1:resource "google_backup_dr_restore_workload" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/backup_dr_restore_workload_without_delete.tf.tmpl:7: # Set to false to keep the restored resource in GCP after terraform destroy +./mmv1/templates/terraform/examples/backup_dr_restore_workload_without_delete.tf.tmpl:8: delete_restored_instance = false +./mmv1/templates/terraform/examples/backup_dr_restore_workload_without_delete.tf.tmpl:15: disk_restore_properties { +./mmv1/templates/terraform/examples/firestore_field_match_override.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_field_match_override.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_field_match_override.tf.tmpl:11:resource "google_firestore_field" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_field_match_override.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_index_skip_wait.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_index_skip_wait.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_index_skip_wait.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_index_skip_wait.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_with_beta_fields.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_with_beta_fields.tf.tmpl:16:resource "google_vertex_ai_featurestore_entitytype" "entity" { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_with_beta_fields.tf.tmpl:22: featurestore = google_vertex_ai_featurestore.featurestore.id +./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:33:resource "google_alloydb_cluster" "restored_from_backup" { +./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:34: cluster_id = "{{index $.Vars "alloydb_backup_restored_cluster_name"}}" +./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:39: restore_backup_source { +./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:46:resource "google_alloydb_cluster" "restored_via_pitr" { +./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:47: cluster_id = "{{index $.Vars "alloydb_pitr_restored_cluster_name"}}" +./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:52: restore_continuous_backup_source { +./mmv1/templates/terraform/examples/backup_dr_management_server.tf.tmpl:22: type = "BACKUP_RESTORE" +./mmv1/templates/terraform/examples/eventarc_trigger_with_firestore_source.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/eventarc_trigger_with_firestore_source.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/eventarc_trigger_with_firestore_source.tf.tmpl:16: value = "google.cloud.firestore.document.v1.written" +./mmv1/templates/terraform/examples/eventarc_trigger_with_firestore_source.tf.tmpl:20: value = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_database_data_access.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_database_data_access.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_database_data_access.tf.tmpl:7: firestore_data_access_mode = "DATA_ACCESS_MODE_ENABLED" +./mmv1/templates/terraform/examples/vertex_ai_featurestore_with_beta_fields.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { +./mmv1/templates/terraform/examples/backup_dr_management_server_test.tf.tmpl:8: type = "BACKUP_RESTORE" +./mmv1/templates/terraform/examples/vertex_ai_featurestore.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:14:resource "google_project_service" "firestore" { +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:16: service = "firestore.googleapis.com" +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:22:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:26: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:28: depends_on = [google_project_service.firestore] +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:31:resource "google_firestore_document" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:33: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:39:resource "google_firestore_document" "sub_document" { +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:41: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:42: collection = "${google_firestore_document.{{$.PrimaryResourceId}}.path}/subdocs" +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:47:resource "google_firestore_document" "sub_sub_document" { +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:49: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:50: collection = "${google_firestore_document.sub_document.path}/subsubdocs" +./mmv1/templates/terraform/examples/firestore_field_basic.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_field_basic.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_field_basic.tf.tmpl:11:resource "google_firestore_field" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_field_basic.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:29:resource "google_gke_backup_restore_plan" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:34: restore_config { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:36: namespaced_resource_restore_mode = "FAIL_ON_CONFLICT" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:37: volume_data_restore_policy = "NO_VOLUME_DATA_RESTORATION" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:38: cluster_resource_restore_scope { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:42: volume_data_restore_policy_bindings { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:43: policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" +./mmv1/templates/terraform/examples/firestore_index_name_descending.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_index_name_descending.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_index_name_descending.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_index_name_descending.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_database_with_tags.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_database_with_tags.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature.tf.tmpl:12:resource "google_vertex_ai_featurestore_entitytype" "entity" { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature.tf.tmpl:17: featurestore = google_vertex_ai_featurestore.featurestore.id +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature.tf.tmpl:20:resource "google_vertex_ai_featurestore_entitytype_feature" "feature" { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature.tf.tmpl:25: entitytype = google_vertex_ai_featurestore_entitytype.entity.id +./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:1:resource "google_backup_dr_restore_workload" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:12: compute_instance_restore_properties { +./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:15: description = "Restored compute instance with advanced configuration" +./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:26: key = "restored" +./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:36: items = ["web", "https-server", "restored"] +./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:78: value = "#!/bin/bash\necho 'Instance restored' > /tmp/restored.txt" +./mmv1/templates/terraform/examples/firestore_field_complex_field_name.tf.tmpl:1:resource "google_firestore_field" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_cmek_database.tf.tmpl:4:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_cmek_database.tf.tmpl:8: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_cmek_database.tf.tmpl:19: google_kms_crypto_key_iam_binding.firestore_cmek_keyuser +./mmv1/templates/terraform/examples/firestore_cmek_database.tf.tmpl:34:resource "google_kms_crypto_key_iam_binding" "firestore_cmek_keyuser" { +./mmv1/templates/terraform/examples/firestore_cmek_database.tf.tmpl:39: "serviceAccount:service-${data.google_project.project.number}@gcp-sa-firestore.iam.gserviceaccount.com", +./mmv1/templates/terraform/examples/gkebackup_restoreplan_rename_namespace.tf.tmpl:29:resource "google_gke_backup_restore_plan" "rename_ns" { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_rename_namespace.tf.tmpl:34: restore_config { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_rename_namespace.tf.tmpl:38: namespaced_resource_restore_mode = "FAIL_ON_CONFLICT" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_rename_namespace.tf.tmpl:39: volume_data_restore_policy = "REUSE_VOLUME_HANDLE_FROM_BACKUP" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_rename_namespace.tf.tmpl:40: cluster_resource_restore_scope { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:29:resource "google_gke_backup_restore_plan" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:34: restore_config { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:36: namespaced_resource_restore_mode = "FAIL_ON_CONFLICT" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:37: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:38: cluster_resource_restore_scope { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:42: restore_order { +./mmv1/templates/terraform/examples/firestore_backup_schedule_weekly.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_backup_schedule_weekly.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_backup_schedule_weekly.tf.tmpl:11:resource "google_firestore_backup_schedule" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_backup_schedule_weekly.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype.tf.tmpl:15:resource "google_vertex_ai_featurestore_entitytype" "entity" { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype.tf.tmpl:21: featurestore = google_vertex_ai_featurestore.featurestore.id +./mmv1/templates/terraform/examples/firestore_index_sparse_any.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_index_sparse_any.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_index_sparse_any.tf.tmpl:12:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_index_sparse_any.tf.tmpl:14: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_backup_schedule_daily.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_backup_schedule_daily.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_backup_schedule_daily.tf.tmpl:11:resource "google_firestore_backup_schedule" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_backup_schedule_daily.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/gkebackup_restoreplan_gitops_mode.tf.tmpl:29:resource "google_gke_backup_restore_plan" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_gitops_mode.tf.tmpl:34: restore_config { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_gitops_mode.tf.tmpl:36: namespaced_resource_restore_mode = "MERGE_SKIP_ON_CONFLICT" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_gitops_mode.tf.tmpl:37: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_gitops_mode.tf.tmpl:38: cluster_resource_restore_scope { +./mmv1/templates/terraform/examples/firestore_index_deletion_policy.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_index_deletion_policy.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_index_deletion_policy.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_index_deletion_policy.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_database_enterprise.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_database_enterprise.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_database_data_access_test.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_database_data_access_test.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_database_data_access_test.tf.tmpl:7: firestore_data_access_mode = "DATA_ACCESS_MODE_ENABLED" +./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_basic.tf.tmpl:1:resource "google_backup_dr_restore_workload" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_basic.tf.tmpl:12: compute_instance_restore_properties { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.tmpl:29:resource "google_gke_backup_restore_plan" "transform_rule" { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.tmpl:38: restore_config { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.tmpl:42: namespaced_resource_restore_mode = "DELETE_AND_RESTORE" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.tmpl:43: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.tmpl:44: cluster_resource_restore_scope { +./mmv1/templates/terraform/examples/firestore_index_datastore_mode.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_index_datastore_mode.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_index_datastore_mode.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/gkebackup_restoreplan_rollback_namespace.tf.tmpl:29:resource "google_gke_backup_restore_plan" "rollback_ns" { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_rollback_namespace.tf.tmpl:34: restore_config { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_rollback_namespace.tf.tmpl:38: namespaced_resource_restore_mode = "DELETE_AND_RESTORE" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_rollback_namespace.tf.tmpl:39: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_rollback_namespace.tf.tmpl:40: cluster_resource_restore_scope { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature_with_beta_fields.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature_with_beta_fields.tf.tmpl:13:resource "google_vertex_ai_featurestore_entitytype" "entity" { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature_with_beta_fields.tf.tmpl:19: featurestore = google_vertex_ai_featurestore.featurestore.id +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature_with_beta_fields.tf.tmpl:36:resource "google_vertex_ai_featurestore_entitytype_feature" "feature" { +./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature_with_beta_fields.tf.tmpl:42: entitytype = google_vertex_ai_featurestore_entitytype.entity.id +./mmv1/templates/terraform/examples/vertex_ai_featurestore_scaling.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { +./mmv1/templates/terraform/examples/firestore_index_unique.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_index_unique.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_index_unique.tf.tmpl:12:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_index_unique.tf.tmpl:14: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_database_in_datastore_mode.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_field_wildcard.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_field_wildcard.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_field_wildcard.tf.tmpl:11: resource "google_firestore_field" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_field_wildcard.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_field_timestamp.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_field_timestamp.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_field_timestamp.tf.tmpl:11:resource "google_firestore_field" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_field_timestamp.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_index_vector.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_index_vector.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_index_vector.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_index_vector.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_cluster_resources.tf.tmpl:29:resource "google_gke_backup_restore_plan" "all_cluster_resources" { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_cluster_resources.tf.tmpl:34: restore_config { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_cluster_resources.tf.tmpl:36: namespaced_resource_restore_mode = "FAIL_ON_CONFLICT" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_cluster_resources.tf.tmpl:37: cluster_resource_restore_scope { +./mmv1/templates/terraform/examples/firestore_user_creds_with_secret_manager.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_user_creds_with_secret_manager.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_user_creds_with_secret_manager.tf.tmpl:12:resource "google_firestore_user_creds" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_user_creds_with_secret_manager.tf.tmpl:14: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_user_creds_with_secret_manager.tf.tmpl:29: secret_data = google_firestore_user_creds.{{$.PrimaryResourceId}}.secure_password +./mmv1/templates/terraform/examples/firestore_default_database_in_datastore_mode.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_index_basic.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_index_basic.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_index_basic.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_index_basic.tf.tmpl:13: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:14:resource "google_project_service" "firestore" { +./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:16: service = "firestore.googleapis.com" +./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:22:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:26: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:28: depends_on = [google_project_service.firestore] +./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:31:resource "google_firestore_document" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:33: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_namespaces.tf.tmpl:29:resource "google_gke_backup_restore_plan" "all_ns" { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_namespaces.tf.tmpl:34: restore_config { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_namespaces.tf.tmpl:36: namespaced_resource_restore_mode = "FAIL_ON_CONFLICT" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_namespaces.tf.tmpl:37: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_namespaces.tf.tmpl:38: cluster_resource_restore_scope { +./mmv1/templates/terraform/examples/firestore_cmek_database_in_datastore_mode.tf.tmpl:4:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_cmek_database_in_datastore_mode.tf.tmpl:19: google_kms_crypto_key_iam_binding.firestore_cmek_keyuser +./mmv1/templates/terraform/examples/firestore_cmek_database_in_datastore_mode.tf.tmpl:34:resource "google_kms_crypto_key_iam_binding" "firestore_cmek_keyuser" { +./mmv1/templates/terraform/examples/firestore_cmek_database_in_datastore_mode.tf.tmpl:39: "serviceAccount:service-${data.google_project.project.number}@gcp-sa-firestore.iam.gserviceaccount.com", +./mmv1/templates/terraform/examples/firestore_index_mongodb_compatible_scope.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_index_mongodb_compatible_scope.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_index_mongodb_compatible_scope.tf.tmpl:12:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_index_mongodb_compatible_scope.tf.tmpl:14: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/gkebackup_restoreplan_protected_application.tf.tmpl:29:resource "google_gke_backup_restore_plan" "rollback_app" { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_protected_application.tf.tmpl:34: restore_config { +./mmv1/templates/terraform/examples/gkebackup_restoreplan_protected_application.tf.tmpl:41: namespaced_resource_restore_mode = "DELETE_AND_RESTORE" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_protected_application.tf.tmpl:42: volume_data_restore_policy = "REUSE_VOLUME_HANDLE_FROM_BACKUP" +./mmv1/templates/terraform/examples/gkebackup_restoreplan_protected_application.tf.tmpl:43: cluster_resource_restore_scope { +./mmv1/templates/terraform/examples/firestore_user_creds_basic.tf.tmpl:1:resource "google_firestore_database" "database" { +./mmv1/templates/terraform/examples/firestore_user_creds_basic.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/firestore_user_creds_basic.tf.tmpl:12:resource "google_firestore_user_creds" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_user_creds_basic.tf.tmpl:14: database = google_firestore_database.database.name +./mmv1/templates/terraform/examples/firestore_database.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_database.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/gkebackup_restorechannel_basic.tf.tmpl:1:resource "google_gke_backup_restore_channel" "basic" { +./mmv1/templates/terraform/examples/firestore_default_database.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/firestore_default_database.tf.tmpl:5: type = "FIRESTORE_NATIVE" +./mmv1/templates/terraform/examples/backup_dr_restore_workload_disk_basic.tf.tmpl:1:resource "google_backup_dr_restore_workload" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/backup_dr_restore_workload_disk_basic.tf.tmpl:12: disk_restore_properties { +./mmv1/templates/terraform/examples/backup_dr_restore_workload_disk_basic.tf.tmpl:17: description = "Restored persistent disk from backup" +./mmv1/templates/terraform/examples/backup_dr_restore_workload_disk_basic.tf.tmpl:21: restored = "true" +./mmv1/templates/terraform/examples/backup_dr_restore_workload_regional_disk.tf.tmpl:1:resource "google_backup_dr_restore_workload" "{{$.PrimaryResourceId}}" { +./mmv1/templates/terraform/examples/backup_dr_restore_workload_regional_disk.tf.tmpl:16: disk_restore_properties { +./mmv1/templates/terraform/examples/backup_dr_restore_workload_regional_disk.tf.tmpl:21: description = "Restored regional persistent disk" +./mmv1/third_party/tgc_next/Makefile:24: git restore go.mod +./mmv1/third_party/tgc_next/Makefile:25: git restore go.sum +./mmv1/third_party/tgc_next/pkg/caiasset/asset.go:49: RestoreDefault *RestoreDefault `json:"restore_default,omitempty"` +./mmv1/third_party/tgc_next/pkg/caiasset/asset.go:130:// RestoreDefault determines if the default values of the `Constraints` are active for the +./mmv1/third_party/tgc_next/pkg/caiasset/asset.go:132:type RestoreDefault struct { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_meta.yaml:17: - field: 'restore_policy.default' +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:49: Note that DEPRIVILEGE action will ignore the REVERT configuration in the restore_policy.`, +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:51: "restore_policy": { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:75: restorePolicy := d.Get("restore_policy").(string) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:85: errExpected := restorePolicy == "REVERT_AND_IGNORE_FAILURE" +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:92: log.Printf("restore policy is %s... ignoring error", restorePolicy) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:102: errExpected := restorePolicy == "REVERT_AND_IGNORE_FAILURE" +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:108: log.Printf("restore policy is %s... ignoring error", restorePolicy) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:185: if d.Get("restore_policy").(string) == "NONE" { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:28: "restore_policy": testAccProjectOrganizationPolicy_restore_defaultTrue, +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:166:func testAccProjectOrganizationPolicy_restore_defaultTrue(t *testing.T) { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:175: Config: testAccProjectOrganizationPolicyConfig_restore_defaultTrue(projectId), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:176: Check: getGoogleProjectOrganizationRestoreDefaultTrue(t, "restore", &cloudresourcemanager.RestoreDefault{}), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:179: ResourceName: "google_project_organization_policy.restore", +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:307:func getGoogleProjectOrganizationRestoreDefaultTrue(t *testing.T, n string, policyDefault *cloudresourcemanager.RestoreDefault) resource.TestCheckFunc { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:315: if !reflect.DeepEqual(policy.RestoreDefault, policyDefault) { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:316: return fmt.Errorf("Expected the restore default '%s', instead denied, %s", policyDefault, policy.RestoreDefault) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:403:func testAccProjectOrganizationPolicyConfig_restore_defaultTrue(pid string) string { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:405:resource "google_project_organization_policy" "restore" { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:409: restore_policy { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:36: resource.TestCheckResourceAttrSet(resourceName, "restore_policy"), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:67: restorePolicy := "REVERT" +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:75: Config: testAccCheckGoogleProjectDefaultServiceAccountsAdvanced(org, project, billingAccount, action, restorePolicy), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:96: restorePolicy := "REVERT" +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:104: Config: testAccCheckGoogleProjectDefaultServiceAccountsAdvanced(org, project, billingAccount, action, restorePolicy), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:125: restorePolicy := "REVERT_AND_IGNORE_FAILURE" +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:132: Config: testAccCheckGoogleProjectDefaultServiceAccountsAdvanced(org, project, billingAccount, action, restorePolicy), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:153: restorePolicy := "REVERT" +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:161: Config: testAccCheckGoogleProjectDefaultServiceAccountsAdvanced(org, project, billingAccount, action, restorePolicy), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:175:func testAccCheckGoogleProjectDefaultServiceAccountsAdvanced(org, project, billingAccount, action, restorePolicy string) string { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:196: restore_policy = "%s" +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:198:`, project, project, org, billingAccount, action, restorePolicy) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:15: // Although the API suggests that boolean_policy, list_policy, or restore_policy must be set, +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:130: "restore_policy": { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:134: Description: `A restore policy is a constraint to restore the default policy.`, +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:140: Description: `May only be set to true. If set, then the default Policy is restored.`, +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:231: if err := d.Set("restore_policy", flattenRestoreOrganizationPolicy(policy.RestoreDefault)); err != nil { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:232: return fmt.Errorf("Error setting restore_policy: %s", err) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:298: restorePolicy := d.Get("restore_policy").([]interface{}) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:300: return len(listPolicy)+len(booleanPolicy)+len(restorePolicy) == 0 +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:317: restoreDefault, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:329: RestoreDefault: restoreDefault, +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:355:func flattenRestoreOrganizationPolicy(restore_policy *cloudresourcemanager.RestoreDefault) []map[string]interface{} { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:358: if restore_policy == nil { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:380:func expandRestoreOrganizationPolicy(configured []interface{}) (*cloudresourcemanager.RestoreDefault, error) { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:385: restoreDefaultMap := configured[0].(map[string]interface{}) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:386: default_value := restoreDefaultMap["default"].(bool) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:389: return &cloudresourcemanager.RestoreDefault{}, nil +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:392: return nil, fmt.Errorf("Invalid value for restore_policy. Expecting default = true") +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy.go:113: if err := d.Set("restore_policy", flattenRestoreOrganizationPolicy(policy.RestoreDefault)); err != nil { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy.go:114: return fmt.Errorf("Error setting restore_policy: %s", err) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy.go:174: restoreDefault, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy.go:186: RestoreDefault: restoreDefault, +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_meta.yaml:17: - field: 'restore_policy.default' +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_meta.yaml:9: - field: 'restore_policy' +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:155:func TestAccFolderOrganizationPolicy_restore_defaultTrue(t *testing.T) { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:166: Config: testAccFolderOrganizationPolicy_restore_defaultTrue(org, folder), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:167: Check: getGoogleFolderOrganizationRestoreDefaultTrue(t, "restore", &cloudresourcemanager.RestoreDefault{}), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:170: ResourceName: "google_folder_organization_policy.restore", +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:273:func getGoogleFolderOrganizationRestoreDefaultTrue(t *testing.T, n string, policyDefault *cloudresourcemanager.RestoreDefault) resource.TestCheckFunc { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:281: if !reflect.DeepEqual(policy.RestoreDefault, policyDefault) { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:282: return fmt.Errorf("Expected the restore default '%s', instead denied, %s", policyDefault, policy.RestoreDefault) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:394:func testAccFolderOrganizationPolicy_restore_defaultTrue(org, folder string) string { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:402:resource "google_folder_organization_policy" "restore" { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:406: restore_policy { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_meta.yaml:17: - field: 'restore_policy.default' +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy.go:110: if err := d.Set("restore_policy", flattenRestoreOrganizationPolicy(policy.RestoreDefault)); err != nil { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy.go:111: return fmt.Errorf("Error setting restore_policy: %s", err) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy.go:171: restore_default, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy.go:183: RestoreDefault: restore_default, +./mmv1/third_party/terraform/services/resourcemanager/data_source_google_folder_organization_policy_test.go:43: restore_policy { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:33: "restore_policy": testAccOrganizationPolicy_restore_defaultTrue, +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:193:func testAccOrganizationPolicy_restore_defaultTrue(t *testing.T) { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:201: Config: testAccOrganizationPolicyConfig_restore_defaultTrue(org), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:202: Check: testAccCheckGoogleOrganizationRestoreDefaultTrue(t, "restore", &cloudresourcemanager.RestoreDefault{}), +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:205: ResourceName: "google_organization_policy.restore", +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:308:func testAccCheckGoogleOrganizationRestoreDefaultTrue(t *testing.T, n string, policyDefault *cloudresourcemanager.RestoreDefault) resource.TestCheckFunc { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:316: if !reflect.DeepEqual(policy.RestoreDefault, policyDefault) { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:317: return fmt.Errorf("Expected the restore default '%s', instead denied, %s", policyDefault, policy.RestoreDefault) +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:425:func testAccOrganizationPolicyConfig_restore_defaultTrue(org string) string { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:427:resource "google_organization_policy" "restore" { +./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:431: restore_policy { +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:1:package firestore_test +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:12:func TestAccDatasourceFirestoreDocument_simple(t *testing.T) { +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:26: Config: testAccDatasourceFirestoreDocument_simple(randomSuffix, orgId, "doc-id-1", "val1"), +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:28: resource.TestCheckResourceAttr("data.google_firestore_document.instance", "fields", +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:30: resource.TestCheckResourceAttr("data.google_firestore_document.instance", +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:32: resource.TestCheckResourceAttr("data.google_firestore_document.instance", +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:34: resource.TestCheckResourceAttr("data.google_firestore_document.instance", +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:36: resource.TestCheckResourceAttr("data.google_firestore_document.instance", +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:38: resource.TestCheckResourceAttrSet("data.google_firestore_document.instance", "path"), +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:39: resource.TestCheckResourceAttrSet("data.google_firestore_document.instance", "create_time"), +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:40: resource.TestCheckResourceAttrSet("data.google_firestore_document.instance", "update_time"), +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:47:func testAccDatasourceFirestoreDocument_simple_basicDeps(randomSuffix, orgId string) string { +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:62:resource "google_project_service" "firestore" { +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:64: service = "firestore.googleapis.com" +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:70:resource "google_firestore_database" "database" { +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:74: type = "FIRESTORE_NATIVE" +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:76: depends_on = [google_project_service.firestore] +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:81:func testAccDatasourceFirestoreDocument_simple(randomSuffix, orgId, name, val string) string { +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:82: return testAccDatasourceFirestoreDocument_simple_basicDeps(randomSuffix, orgId) + fmt.Sprintf(` +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:83:resource "google_firestore_document" "instance" { +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:85: database = google_firestore_database.database.name +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:91:data "google_firestore_document" "instance" { +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:92: project = google_firestore_document.instance.project +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:93: database = google_firestore_document.instance.database +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:94: collection = google_firestore_document.instance.collection +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:95: document_id = google_firestore_document.instance.document_id +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:1:package firestore_test +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:11:func TestAccFirestoreDatabase_tags(t *testing.T) { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:15: tagKey := acctest.BootstrapSharedTestProjectTagKey(t, "firestore-databases-tagkey", map[string]interface{}{}) +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:19: "tagValue": acctest.BootstrapSharedTestProjectTagValue(t, "firestore-databases-tagvalue", tagKey), +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:26: CheckDestroy: testAccCheckFirestoreDatabaseDestroyProducer(t), +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:29: Config: testAccFirestoreDatabaseTags(context), +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:32: ResourceName: "google_firestore_database.database", +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:41:func testAccFirestoreDatabaseTags(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:43: resource "google_firestore_database" "database" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:46: type = "FIRESTORE_NATIVE" +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:1:package firestore_test +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:12:func TestAccFirestoreDocument_update(t *testing.T) { +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:26: Config: testAccFirestoreDocument_update(randomSuffix, orgId, "OPTIMISTIC", "val1"), +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:29: ResourceName: "google_firestore_document.instance", +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:34: Config: testAccFirestoreDocument_update(randomSuffix, orgId, "OPTIMISTIC", "val2"), +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:37: ResourceName: "google_firestore_document.instance", +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:45:func testAccFirestoreDocument_update_basicDeps(randomSuffix, orgId string) string { +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:60:resource "google_project_service" "firestore" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:62: service = "firestore.googleapis.com" +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:68:resource "google_firestore_database" "database" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:72: type = "FIRESTORE_NATIVE" +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:74: depends_on = [google_project_service.firestore] +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:79:func testAccFirestoreDocument_update(randomSuffix, orgId, name, val string) string { +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:80: return testAccFirestoreDocument_update_basicDeps(randomSuffix, orgId) + fmt.Sprintf(` +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:81:resource "google_firestore_document" "instance" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:83: database = google_firestore_database.database.name +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:1:package firestore_test +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:12:func TestAccFirestoreField_firestoreFieldUpdateAddIndexExample(t *testing.T) { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:20: testAccFirestoreField_runUpdateTest(testAccFirestoreField_firestoreFieldUpdateAddIndexExample(context), true, t, context) +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:23:func TestAccFirestoreField_firestoreFieldUpdateAddTTLExample(t *testing.T) { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:31: testAccFirestoreField_runUpdateTest(testAccFirestoreField_firestoreFieldUpdateAddTTLExample(context), false, t, context) +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:34:func testAccFirestoreField_runUpdateTest(updateConfig string, useOwnProject bool, t *testing.T, context map[string]interface{}) { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:43: CheckDestroy: testAccCheckFirestoreFieldDestroyProducer(t), +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:46: Config: testAccFirestoreField_firestoreFieldUpdateInitialExample(context, useOwnProject), +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:49: ResourceName: fmt.Sprintf("google_firestore_field.%s", resourceName), +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:57: ResourceName: fmt.Sprintf("google_firestore_field.%s", resourceName), +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:62: Config: testAccFirestoreField_firestoreFieldUpdateInitialExample(context, useOwnProject), +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:65: ResourceName: fmt.Sprintf("google_firestore_field.%s", resourceName), +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:73:func testAccFirestoreField_update_basicDeps(context map[string]interface{}, useOwnProject bool) string { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:90:resource "google_project_service" "firestore" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:92: service = "firestore.googleapis.com" +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:98:resource "google_firestore_database" "database" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:102: type = "FIRESTORE_NATIVE" +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:106: google_project_service.firestore, +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:113:resource "google_firestore_database" "database" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:117: type = "FIRESTORE_NATIVE" +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:126:func testAccFirestoreField_firestoreFieldUpdateInitialExample(context map[string]interface{}, useOwnProject bool) string { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:127: return testAccFirestoreField_update_basicDeps(context, useOwnProject) + acctest.Nprintf(` +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:128:resource "google_firestore_field" "%{resource_name}" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:129: project = google_firestore_database.database.project +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:130: database = google_firestore_database.database.name +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:147:func testAccFirestoreField_firestoreFieldUpdateAddTTLExample(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:149: return testAccFirestoreField_update_basicDeps(context, false) + acctest.Nprintf(` +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:150:resource "google_firestore_field" "%{resource_name}" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:151: project = google_firestore_database.database.project +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:152: database = google_firestore_database.database.name +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:171:func testAccFirestoreField_firestoreFieldUpdateAddIndexExample(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:172: return testAccFirestoreField_update_basicDeps(context, true) + acctest.Nprintf(` +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:173:resource "google_firestore_field" "%{resource_name}" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:174: project = google_firestore_database.database.project +./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:175: database = google_firestore_database.database.name +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:1:package firestore +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:16: sweeper.AddTestSweepersLegacy("FirestoreDatabase", testSweepFirestoreDatabase) +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:20:func testSweepFirestoreDatabase(region string) error { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:21: resourceName := "FirestoreDatabase" +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:50: listTemplate := strings.Split("https://firestore.googleapis.com/v1/projects/{{project}}/databases", "?")[0] +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:94: deleteTemplate := "https://firestore.googleapis.com/v1/projects/{{project}}/databases/{{name}}" +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:1:package firestore +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:11:func DataSourceGoogleFirestoreDocument() *schema.Resource { +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:12: dsSchema := tpgresource.DatasourceSchemaFromResourceSchema(ResourceFirestoreDocument().Schema) +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:19: Read: DataSourceGoogleFirestoreDocumentRead, +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:24:func DataSourceGoogleFirestoreDocumentRead(d *schema.ResourceData, meta interface{}) error { +./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:41: err = resourceFirestoreDocumentRead(d, meta) +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:1:package firestore_test +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:12:func TestAccFirestoreDatabase_updateConcurrencyMode(t *testing.T) { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:26: Config: testAccFirestoreDatabase_concurrencyMode(projectId, randomSuffix, "OPTIMISTIC"), +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:29: ResourceName: "google_firestore_database.database", +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:35: Config: testAccFirestoreDatabase_concurrencyMode(projectId, randomSuffix, "PESSIMISTIC"), +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:38: ResourceName: "google_firestore_database.database", +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:47:func TestAccFirestoreDatabase_updatePitrEnablement(t *testing.T) { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:61: Config: testAccFirestoreDatabase_pitrEnablement(projectId, randomSuffix, "POINT_IN_TIME_RECOVERY_ENABLED"), +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:64: ResourceName: "google_firestore_database.database", +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:70: Config: testAccFirestoreDatabase_pitrEnablement(projectId, randomSuffix, "POINT_IN_TIME_RECOVERY_DISABLED"), +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:73: ResourceName: "google_firestore_database.database", +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:82:func TestAccFirestoreDatabase_updateDeleteProtectionState(t *testing.T) { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:96: Config: testAccFirestoreDatabase_deleteProtectionState(projectId, randomSuffix, "DELETE_PROTECTION_ENABLED"), +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:99: ResourceName: "google_firestore_database.database", +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:105: Config: testAccFirestoreDatabase_deleteProtectionState(projectId, randomSuffix, "DELETE_PROTECTION_DISABLED"), +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:108: ResourceName: "google_firestore_database.database", +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:117:func testAccFirestoreDatabase_concurrencyMode(projectId string, randomSuffix string, concurrencyMode string) string { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:119:resource "google_firestore_database" "database" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:129:func testAccFirestoreDatabase_pitrEnablement(projectId string, randomSuffix string, pointInTimeRecoveryEnablement string) string { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:131:resource "google_firestore_database" "database" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:141:func testAccFirestoreDatabase_deleteProtectionState(projectId string, randomSuffix string, deleteProtectionState string) string { +./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:143:resource "google_firestore_database" "database" { +./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:1:package firestore_test +./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:7: "github.com/hashicorp/terraform-provider-google/google/services/firestore" +./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:11:func TestUnitFirestoreIndex_firestoreIFieldsDiffSuppress(t *testing.T) { +./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:12: for _, tc := range firestoreIndexDiffSuppressTestCases { +./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:17:type FirestoreIndexDiffSuppressTestCase struct { +./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:24:var firestoreIndexDiffSuppressTestCases = []FirestoreIndexDiffSuppressTestCase{ +./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:95:func (tc *FirestoreIndexDiffSuppressTestCase) Test(t *testing.T) { +./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:122: suppressed := firestore.FirestoreIFieldsDiffSuppressFunc(key, fmt.Sprintf("%v", oldValue), fmt.Sprintf("%v", newValue), mockResourceDiff) +./mmv1/third_party/terraform/services/appengine/resource_app_engine_application.go:86: "CLOUD_FIRESTORE", +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:11:func TestAccGKEBackupRestorePlan_update(t *testing.T) { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:27: Config: testAccGKEBackupRestorePlan_full(context), +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:30: ResourceName: "google_gke_backup_restore_plan.restore_plan", +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:36: Config: testAccGKEBackupRestorePlan_update(context), +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:39: ResourceName: "google_gke_backup_restore_plan.restore_plan", +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:48:func testAccGKEBackupRestorePlan_full(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:51: name = "tf-test-restore-plan%{random_suffix}-cluster" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:68: name = "tf-test-restore-plan%{random_suffix}" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:78:resource "google_gke_backup_restore_plan" "restore_plan" { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:79: name = "tf-test-restore-plan%{random_suffix}" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:83: restore_config { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:85: namespaced_resource_restore_mode = "MERGE_SKIP_ON_CONFLICT" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:86: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:87: cluster_resource_restore_scope { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:91: restore_order { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:113: volume_data_restore_policy_bindings { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:114: policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:122:func testAccGKEBackupRestorePlan_update(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:125: name = "tf-test-restore-plan%{random_suffix}-cluster" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:142: name = "tf-test-restore-plan%{random_suffix}" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:152:resource "google_gke_backup_restore_plan" "restore_plan" { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:153: name = "tf-test-restore-plan%{random_suffix}" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:157: restore_config { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:159: namespaced_resource_restore_mode = "MERGE_REPLACE_VOLUME_ON_CONFLICT" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:160: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:161: cluster_resource_restore_scope { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:165: restore_order { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:197: volume_data_restore_policy_bindings { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:12:func TestAccGKEBackupRestoreChannel_update(t *testing.T) { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:24: CheckDestroy: testAccCheckGKEBackupRestoreChannelDestroyProducer(t), +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:27: Config: testAccGKEBackupRestoreChannel_basic(context), +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:30: ResourceName: "google_gke_backup_restore_channel.basic", +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:39:func testAccGKEBackupRestoreChannel_basic(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:41:resource "google_gke_backup_restore_channel" "basic" { +./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:11:func TestAccFilestoreInstance_restore(t *testing.T) { +./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:15: restoreInstanceName := fmt.Sprintf("tf-fs-inst-restored-%d", acctest.RandInt(t)) +./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:24: Config: testAccFilestoreInstanceRestore_restore(srcInstancetName, restoreInstanceName, backupName), +./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:36:func testAccFilestoreInstanceRestore_restore(srcInstancetName, restoreInstanceName, backupName string) string { +./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:56: resource "google_filestore_instance" "instance_restored" { +./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:84: `, srcInstancetName, restoreInstanceName, backupName) +./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:87:func TestAccFilestoreInstance_restoreBackupDR(t *testing.T) { +./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:105: Config: testAccFilestoreInstance_restoreBackupDR(instanceID, backupVaultID, backupVault, location), +./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:117:func testAccFilestoreInstance_restoreBackupDR(instanceID string, backupVaultID string, backupVaultName string, location string) string { +./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:194: name = "tf-restored-instance-%{instance_id}" +./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:24:const testFirestoreTriggerPath = "./test-fixtures/firestore_trigger.js" +./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:342:func TestAccCloudFunctionsFunction_firestore(t *testing.T) { +./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:349: zipFilePath := acctest.CreateZIPArchiveForCloudFunctionSource(t, testFirestoreTriggerPath) +./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:358: Config: testAccCloudFunctionsFunction_firestore(functionName, bucketName, zipFilePath), +./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:1046:func testAccCloudFunctionsFunction_firestore(functionName string, bucketName string, +./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:1068: entry_point = "helloFirestore" +./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:1070: event_type = "providers/cloud.firestore/eventTypes/document.write" +./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function.go:1120: case strings.HasPrefix(eventType, "providers/cloud.firestore/eventTypes/"): +./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function.go:1121: // Firestore doesn't not yet support multiple databases, so "(default)" is assumed. +./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function.go:1122: // https://cloud.google.com/functions/docs/calling/cloud-firestore#deploying_your_function +./mmv1/third_party/terraform/services/cloudfunctions/test-fixtures/firestore_trigger.js:2: * Background Cloud Function to be triggered by Firestore. +./mmv1/third_party/terraform/services/cloudfunctions/test-fixtures/firestore_trigger.js:7:exports.helloFirestore = function (event, callback) { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:19:func TestAccBackupDRRestoreWorkload_computeInstanceBasic(t *testing.T) { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:49: Config: testAccBackupDRRestoreWorkload_computeInstanceBasic(context), +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:55:func TestAccBackupDRRestoreWorkload_computeInstanceWithProperties(t *testing.T) { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:85: Config: testAccBackupDRRestoreWorkload_computeInstanceWithProperties(context), +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:91:func TestAccBackupDRRestoreWorkload_diskBasic(t *testing.T) { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:121: Config: testAccBackupDRRestoreWorkload_diskBasic(context), +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:127:func TestAccBackupDRRestoreWorkload_regionalDisk(t *testing.T) { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:157: Config: testAccBackupDRRestoreWorkload_regionalDisk(context), +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:163:func TestAccBackupDRRestoreWorkload_deleteInstanceFalse(t *testing.T) { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:193: Config: testAccBackupDRRestoreWorkload_deleteInstanceFalse(context), +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:199:func testAccBackupDRRestoreWorkload_computeInstanceBasic(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:201:resource "google_backup_dr_restore_workload" "restore" { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:213: compute_instance_restore_properties { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:214: name = "tf-test-restored-instance-%{random_suffix}" +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:221:func testAccBackupDRRestoreWorkload_computeInstanceWithProperties(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:223:resource "google_backup_dr_restore_workload" "restore" { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:234: compute_instance_restore_properties { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:235: name = "tf-test-restored-instance-%{random_suffix}" +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:237: description = "Restored instance with custom properties" +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:248: key = "restored" +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:258: items = ["web", "https-server", "restored"] +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:300: value = "#!/bin/bash\necho 'Instance restored' > /tmp/restored.txt" +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:312:func testAccBackupDRRestoreWorkload_diskBasic(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:314:resource "google_backup_dr_restore_workload" "restore" { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:325: disk_restore_properties { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:326: name = "tf-test-restored-disk-%{random_suffix}" +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:330: description = "Restored disk from backup" +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:336:func testAccBackupDRRestoreWorkload_regionalDisk(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:338:resource "google_backup_dr_restore_workload" "restore" { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:353: disk_restore_properties { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:354: name = "tf-test-restored-regional-disk-%{random_suffix}" +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:362:func testAccBackupDRRestoreWorkload_deleteInstanceFalse(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:364:resource "google_backup_dr_restore_workload" "restore" { +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:370: delete_restored_instance = false +./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:377: compute_instance_restore_properties { +./mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_management_server_test.go:84: type = "BACKUP_RESTORE" +./mmv1/third_party/terraform/services/binaryauthorization/resource_binary_authorization_policy_test.go:39: // that it was restored to the default. +./mmv1/third_party/terraform/services/binaryauthorization/resource_binary_authorization_policy_test.go:70: // that it was restored to the default. +./mmv1/third_party/terraform/services/binaryauthorization/resource_binary_authorization_policy_test.go:102: // that it was restored to the default. +./mmv1/third_party/terraform/services/binaryauthorization/resource_binary_authorization_policy_test.go:160: // that it was restored to the default. +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:261: AtLeastOneOf: []string{"settings", "clone", "point_in_time_restore_context"}, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:459: Description: `The number of days of transaction logs we retain for point in time restore, from 1-7. (For PostgreSQL Enterprise Plus instances, from 1 to 35.)`, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1341: "restore_backup_context": { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1350: Description: `The ID of the backup run to restore from.`, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1368: Description: `The name of the BackupDR backup to restore from.`, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1374: AtLeastOneOf: []string{"settings", "clone", "point_in_time_restore_context"}, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1382: Description: `The name of the instance from which the point in time should be restored.`, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1395: Description: `The timestamp of the point in time that should be restored.`, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1424: "point_in_time_restore_context": { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1428: AtLeastOneOf: []string{"settings", "clone", "point_in_time_restore_context"}, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1429: Description: `Configuration for creating a new instance using point-in-time-restore from backupdr backup.`, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1442: Description: `The date and time to which you want to restore the instance.`, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1457: Description: `The name of the target instance to restore to.`, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1576: pointInTimeRestoreContext := expandPointInTimeRestoreContext(d.Get("point_in_time_restore_context").([]interface{})) +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1647: } else if pointInTimeRestoreContext != nil { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1649: op, operr = config.NewSqlAdminClient(userAgent).Instances.PointInTimeRestore(parent, pointInTimeRestoreContext).Do() +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1737: if len(s.([]interface{})) != 0 && (cloneContext != nil || pointInTimeRestoreContext != nil) && desiredSettings != nil { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1768: // Perform a backup restore if the backup context exists +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1769: if r, ok := d.GetOk("restore_backup_context"); ok { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1771: err = sqlDatabaseInstanceRestoreFromBackup(d, config, userAgent, project, name, r, "") +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1777: err = sqlDatabaseInstanceRestoreFromBackup(d, config, userAgent, project, name, nil, b) +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:2721: // Perform a backup restore if the backup context exists and has changed +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:2722: if r, ok := d.GetOk("restore_backup_context"); ok { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:2723: if d.HasChange("restore_backup_context") { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:2724: err = sqlDatabaseInstanceRestoreFromBackup(d, config, userAgent, project, d.Get("name").(string), r, "") +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:2731: err = sqlDatabaseInstanceRestoreFromBackup(d, config, userAgent, project, d.Get("name").(string), nil, b) +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3454:func expandRestoreBackupContext(configured []interface{}) *sqladmin.RestoreBackupContext { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3460: return &sqladmin.RestoreBackupContext{ +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3467:func sqlDatabaseInstanceRestoreFromBackup(d *schema.ResourceData, config *transport_tpg.Config, userAgent, project, instanceId string, r interface{}, backupdrBackup interface{}) error { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3468: log.Printf("[DEBUG] Initiating SQL database instance backup restore") +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3470: backupRequest := &sqladmin.InstancesRestoreBackupRequest{} +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3473: restoreContext := r.([]interface{}) +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3474: backupRequest.RestoreBackupContext = expandRestoreBackupContext(restoreContext) +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3482: op, operr = config.NewSqlAdminClient(userAgent).Instances.RestoreBackup(project, instanceId, backupRequest).Do() +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3489: return fmt.Errorf("Error, failed to restore instance from backup %s: %s", instanceId, err) +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3492: err = SqlAdminOperationWaitTime(config, op, project, "Restore Backup", userAgent, d.Timeout(schema.TimeoutUpdate)) +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3500:func expandPointInTimeRestoreContext(configured []interface{}) *sqladmin.PointInTimeRestoreContext { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3506: return &sqladmin.PointInTimeRestoreContext{ +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3515:func sqlDatabaseInstancePointInTimeRestore(d *schema.ResourceData, config *transport_tpg.Config, userAgent, project, instanceId string, r interface{}) error { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3516: log.Printf("[DEBUG] Initiating GCBDR managed SQL database instance backup point in time restore") +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3517: pointInTimeRestoreContext := r.([]interface{}) +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3523: op, operr = config.NewSqlAdminClient(userAgent).Instances.PointInTimeRestore(parent, expandPointInTimeRestoreContext(pointInTimeRestoreContext)).Do() +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3530: return fmt.Errorf("Error, failed to point in restore an instance %s: %s", instanceId, err) +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3533: err = SqlAdminOperationWaitTime(config, op, project, "Point in Time Restore", userAgent, d.Timeout(schema.TimeoutUpdate)) +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1436: Config: testAccSqlDatabaseInstance_restoreFromBackup(context), +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1442: ImportStateVerifyIgnore: []string{"deletion_protection", "restore_backup_context"}, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1515: Config: testAccSqlDatabaseInstance_restoreFromBackup(context), +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1521: ImportStateVerifyIgnore: []string{"deletion_protection", "restore_backup_context"}, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1823:func TestAccSqlDatabaseInstance_pointInTimeRestore(t *testing.T) { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1850: Config: testAccSqlDatabaseInstance_pointInTimeRestoreContext(context), +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1856: ImportStateVerifyIgnore: []string{"deletion_protection", "point_in_time_restore_context"}, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1862:func TestAccSqlDatabaseInstance_pointInTimeRestoreWithSettings(t *testing.T) { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1889: Config: testAccSqlDatabaseInstance_pointInTimeRestoreContextWithSettings(context), +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1895: ImportStateVerifyIgnore: []string{"deletion_protection", "point_in_time_restore_context"}, +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8043:func testAccSqlDatabaseInstance_restoreFromBackup(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8057: restore_backup_context { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8064: ignore_changes = [restore_backup_context[0].backup_run_id] +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8416:func testAccSqlDatabaseInstance_pointInTimeRestoreContext(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8494:// for a point in time restore operation to succeed, the source instance must be in active state and have logs +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8514: point_in_time_restore_context { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8521: ignore_changes = [point_in_time_restore_context[0].point_in_time] +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8531:func testAccSqlDatabaseInstance_pointInTimeRestoreContextWithSettings(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8609:// for a point in time restore operation to succeed, the source instance must be in active state and have logs +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8636: point_in_time_restore_context { +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8643: ignore_changes = [point_in_time_restore_context[0].point_in_time] +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:43: - field: 'point_in_time_restore_context.allocated_ip_range' +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:44: - field: 'point_in_time_restore_context.datasource' +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:45: - field: 'point_in_time_restore_context.target_instance' +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:46: - field: 'point_in_time_restore_context.point_in_time' +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:47: - field: 'point_in_time_restore_context.preferred_zone' +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:81: - field: 'restore_backup_context.backup_run_id' +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:82: - field: 'restore_backup_context.instance_id' +./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:83: - field: 'restore_backup_context.project' +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:13: * Restore tests are kept separate from other cluster tests because they require an instance and a backup to exist +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:16:// Restore tests depend on instances and backups being taken, which can take up to 10 minutes. Since the instance doesn't change in between tests, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:18:func TestAccAlloydbCluster_restore(t *testing.T) { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:43: ExpectError: regexp.MustCompile("\"restore_continuous_backup_source\": conflicts with restore_backup_source"), +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:51: // Validate backup restore succeeds +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:52: Config: testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackup(context), +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:55: ResourceName: "google_alloydb_cluster.restored_from_backup", +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:58: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "cluster_id", "location", "restore_backup_source"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:62: Config: testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime(context), +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:65: ResourceName: "google_alloydb_cluster.restored_from_point_in_time", +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:68: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "cluster_id", "location", "restore_continuous_backup_source"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:72: Config: testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_AllowedUpdate(context), +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:75: Config: testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_NotAllowedUpdate(context), +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:79: Config: testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_AllowDestroy(context), +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:123:// Cannot restore if multiple sources are present +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:154:resource "google_alloydb_cluster" "restored" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:155: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:163: restore_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:166: restore_continuous_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:186:// Cannot restore if multiple sources are present +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:217:resource "google_alloydb_cluster" "restored" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:218: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:228: restore_continuous_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:247:func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackup(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:277:resource "google_alloydb_cluster" "restored_from_backup" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:278: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:286: restore_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:305:// The source cluster, instance, and backup should all exist prior to this being invoked. Otherwise the PITR restore will not succeed +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:307:func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:337:resource "google_alloydb_cluster" "restored_from_backup" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:338: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:346: restore_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:357:resource "google_alloydb_cluster" "restored_from_point_in_time" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:358: cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:366: restore_continuous_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:386:// This updates the PITR and backup restored clusters by adding a continuous backup configuration. This can be done in place +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:388:func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_AllowedUpdate(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:418:resource "google_alloydb_cluster" "restored_from_backup" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:419: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:427: restore_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:443:resource "google_alloydb_cluster" "restored_from_point_in_time" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:444: cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:452: restore_continuous_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:479:func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_NotAllowedUpdate(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:516:resource "google_alloydb_cluster" "restored_from_backup" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:517: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:525: restore_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:543:resource "google_alloydb_cluster" "restored_from_point_in_time" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:544: cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:552: restore_continuous_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:553: cluster = google_alloydb_cluster.restored_from_backup.name +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:577:// The source cluster, instance, and backup should all exist prior to this being invoked. Otherwise the PITR restore will not succeed +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:579:func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_AllowDestroy(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:608:resource "google_alloydb_cluster" "restored_from_backup" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:609: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:617: restore_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:624:resource "google_alloydb_cluster" "restored_from_point_in_time" { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:625: cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:633: restore_continuous_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:649:func TestAccAlloydbCluster_restoreFromBackupDrBackup(t *testing.T) { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:675: Config: testAccAlloydbCluster_restoreFromBackupDrBackup(context), +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:685: ImportStateVerifyIgnore: []string{"deletion_protection", "restore_backupdr_backup_source"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:688: Config: testAccAlloydbCluster_restoreFromBackupDrBackup_AllowedUpdate(context), +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:695: Config: testAccAlloydbCluster_pointInTimeRestoreFromBackupDrDataSource(context), +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:701:func testAccAlloydbCluster_restoreFromBackupDrBackup(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:783: cluster_id = "restore-from-backupdr-backup-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:792: restore_backupdr_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:802:func testAccAlloydbCluster_restoreFromBackupDrBackup_AllowedUpdate(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:884: cluster_id = "restore-from-backupdr-backup-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:893: restore_backupdr_backup_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:908:func testAccAlloydbCluster_pointInTimeRestoreFromBackupDrDataSource(context map[string]interface{}) string { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:988: cluster_id = "pitr-restore-from-backupdr-backup-%{random_suffix}" +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:997: restore_backupdr_pitr_source { +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:31: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:347: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:356: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:442: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:537: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:620: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:709: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:718: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:880: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:889: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:984: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:993: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1002: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1073: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1082: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1091: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1186: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1195: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1373: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1382: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1391: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1400: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1522: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1531: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1540: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1549: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1764: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1773: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1782: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, +./mmv1/third_party/terraform/services/compute/resource_compute_instance_from_machine_image.go.tmpl:106: // TODO: (camthornton) Remove this when disk override functionality in the API is restored +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:42: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:50: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:59: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:68: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:77: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:86: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:96: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:105: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:423: restore_parameters { +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:683: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:692: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:784: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:793: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:888: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:897: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1005: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1014: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1023: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1032: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1041: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1050: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1059: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1350: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1359: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1497: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1506: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, +./mmv1/third_party/terraform/acctest/diff_utils_test.go:124: ExpectError: regexp.MustCompile(`"restore_continuous_backup_source": conflicts with restore_backup_source`), +./mmv1/third_party/terraform/acctest/resource_inventory_test.go:140: "google_vertex_ai_featurestore_entitytype.region": true, +./mmv1/third_party/terraform/acctest/resource_inventory_test.go:141: "google_vertex_ai_featurestore_entitytype_feature.region": true, +./mmv1/third_party/terraform/acctest/test_utils.go.tmpl:313:// The testing package will restore the original values after the test +./mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt:464: "firestore" to mapOf( +./mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt:465: "name" to "firestore", +./mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt:466: "displayName" to "Firestore", +./mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt:467: "path" to "./google/services/firestore" +./mmv1/third_party/terraform/.teamcity/components/inputs/services_beta.kt:469: "firestore" to mapOf( +./mmv1/third_party/terraform/.teamcity/components/inputs/services_beta.kt:470: "name" to "firestore", +./mmv1/third_party/terraform/.teamcity/components/inputs/services_beta.kt:471: "displayName" to "Firestore", +./mmv1/third_party/terraform/.teamcity/components/inputs/services_beta.kt:472: "path" to "./google-beta/services/firestore" +./mmv1/third_party/terraform/transport/error_retry_predicates.go:390:// relevant for firestore in datastore mode +./mmv1/third_party/terraform/transport/error_retry_predicates.go:391:func FirestoreField409RetryUnderlyingDataChanged(err error) (bool, string) { +./mmv1/third_party/terraform/transport/error_retry_predicates.go:400:// relevant for firestore in datastore mode +./mmv1/third_party/terraform/transport/error_retry_predicates.go:401:func FirestoreIndex409Retry(err error) (bool, string) { +./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:174:func TestFirestoreField409_retryUnderlyingDataChanged(t *testing.T) { +./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:179: isRetryable, _ := FirestoreField409RetryUnderlyingDataChanged(&err) +./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:185:func TestFirestoreIndex409_crossTransactionContetion(t *testing.T) { +./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:190: isRetryable, _ := FirestoreIndex409Retry(&err) +./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:196:func TestFirestoreIndex409_retryUnderlyingDataChanged(t *testing.T) { +./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:201: isRetryable, _ := FirestoreIndex409Retry(&err) +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:291:### Cloud SQL Instance created using point_in_time_restore +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:305: point_in_time_restore_context { +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:381:* `restore_backup_context` - (optional) The context needed to restore the database to a backup run. This field will +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:382: cause Terraform to trigger the database to restore from the backup run indicated. The configuration is detailed below. +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:384: block during resource creation/update will trigger the restore action after the resource is created/updated. +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:386:* `backupdr_backup` - (optional) The backupdr_backup needed to restore the database to a backup run. This field will +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:387: cause Terraform to trigger the database to restore from the backup run indicated. The configuration is detailed below. +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:389: block during resource creation/update will trigger the restore action after the resource is created/updated. +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:395:* `point_in_time_restore_context` - (Optional) The point_in_time_restore_context needed for performing a point-in-time recovery of an instance managed by Google Cloud Backup and Disaster Recovery. This field will +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:396: cause Terraform to trigger the database to restore to a point in time indicated. The configuration is detailed below. +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:398: block during resource creation/update will trigger the restore action after the resource is created/updated. +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:517:* `transaction_log_retention_days` - (Optional) The number of days of transaction logs we retain for point in time restore, from 1-7. For PostgreSQL Enterprise Plus and SQL Server Enterprise Plus instances, the number of days of retained transaction logs can be set from 1 to 35. +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:693:The optional `point_in_time_restore_context` block supports: +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:697:* `point_in_time` - The timestamp of the point in time that should be restored. +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:719:* `point_in_time` - (Optional) The timestamp of the point in time that should be restored. +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:733:The optional `restore_backup_context` block supports: +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:735:block during resource creation/update will trigger the restore action after the resource is created/updated. +./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:737:* `backup_run_id` - (Required) The ID of the backup run to restore from. +./mmv1/third_party/terraform/website/docs/r/app_engine_application.html.markdown:47:* `database_type` - (Optional) The type of the Cloud Firestore or Cloud Datastore database associated with this application. +./mmv1/third_party/terraform/website/docs/r/app_engine_application.html.markdown:48: Can be `CLOUD_FIRESTORE` or `CLOUD_DATASTORE_COMPATIBILITY` for new +./mmv1/third_party/terraform/website/docs/r/app_engine_application.html.markdown:50: To create a Cloud Firestore database without creating an App Engine application, use the +./mmv1/third_party/terraform/website/docs/r/app_engine_application.html.markdown:51: [`google_firestore_database`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/firestore_database) +./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:68:To restore the default folder organization policy, use the following instead: +./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:75: restore_policy { +./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:98:* `restore_policy` - (Optional) A restore policy is a constraint to restore the default policy. Structure is [documented below](#nested_restore_policy). +./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:100:~> **Note:** If none of [`boolean_policy`, `list_policy`, `restore_policy`] are defined the policy for a given constraint will +./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:124:The `restore_policy` block supports: +./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:126:* `default` - (Required) May only be set to true. If set, then the default Policy is restored. +./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:68:To restore the default project organization policy, use the following instead: +./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:75: restore_policy { +./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:97:* `restore_policy` - (Optional) A restore policy is a constraint to restore the default policy. Structure is [documented below](#nested_restore_policy). +./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:99:~> **Note:** If none of [`boolean_policy`, `list_policy`, `restore_policy`] are defined the policy for a given constraint will +./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:123:The `restore_policy` block supports: +./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:125:* `default` - (Required) May only be set to true. If set, then the default Policy is restored. +./mmv1/third_party/terraform/website/docs/r/google_project_default_service_accounts.html.markdown:39: restore_policy = "REVERT" +./mmv1/third_party/terraform/website/docs/r/google_project_default_service_accounts.html.markdown:50:- `action` - (Required) The action to be performed in the default service accounts. Valid values are: `DEPRIVILEGE`, `DELETE`, `DISABLE`. Note that `DEPRIVILEGE` action will ignore the REVERT configuration in the restore_policy +./mmv1/third_party/terraform/website/docs/r/google_project_default_service_accounts.html.markdown:52:- `restore_policy` - (Optional) The action to be performed in the default service accounts on the resource destroy. +./mmv1/third_party/terraform/website/docs/r/google_project_default_service_accounts.html.markdown:54: If set to REVERT it attempts to restore all default SAs but the DEPRIVILEGE action. +./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:67:To restore the default organization policy, use the following instead: +./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:74: restore_policy { +./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:97:* `restore_policy` - (Optional) A restore policy is a constraint to restore the default policy. Structure is [documented below](#nested_restore_policy). +./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:99:~> **Note:** If none of [`boolean_policy`, `list_policy`, `restore_policy`] are defined the policy for a given constraint will +./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:123:The `restore_policy` block supports: +./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:125:* `default` - (Required) May only be set to true. If set, then the default Policy is restored. +./mmv1/third_party/terraform/website/docs/d/compute_images.html.markdown:56:* `disk_size_gb` - The size of the image when restored onto a persistent disk in gigabytes. +./mmv1/third_party/terraform/website/docs/d/compute_image.html.markdown:60:* `disk_size_gb` - The size of the image when restored onto a persistent disk in gigabytes. +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:2:subcategory: "Firestore" +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:4: Read a document from a Firestore database +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:8:# google_firestore_document +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:10:Reads a document from a Firestore database. +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:11:See [the official documentation](https://cloud.google.com/firestore/native/docs/) +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:13:[API](https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.documents/get/). +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:18:Retrieve a document from the Firestore database. +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:21:resource "google_firestore_document" "mydoc" { +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:22: project = google_firestore_database.database.project +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:23: database = google_firestore_database.database.name +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:33:* `database` - (Required) The name of the Firestore database. +./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:43:See [google_firestore_document](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_firestore_document) resource for details of the available attributes. +./mmv1/third_party/terraform/website/docs/guides/version_2_upgrade.html.markdown:722:### `authoritative`, `restore_policy`, and `disable_project` have been removed +./mmv1/third_party/terraform/website/docs/guides/version_6_upgrade.html.markdown:291:`google_datastore_index` is removed in favor of `google_firestore_index` +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:747:In `4.X`, `google_firebase_project_location` would implicitly trigger creation of an App Engine application with a default Cloud Storage bucket and Firestore database, located in the specified `location_id`. In `5.0.0`, these resources should instead be set up explicitly using `google_app_engine_application` `google_firebase_storage_bucket`, and `google_firestore_database`. +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:755:1. Add blocks according to "New config" in this section for any of the following that you need: `google_app_engine_application`, `google_firebase_storage_bucket`, and/or `google_firestore_database`. +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:760: `terraform import google_firestore_database.default "/(default)"` +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:775:Assuming you use both the default Storage bucket and Firestore, an equivalent configuration would be: +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:782: database_type = "CLOUD_FIRESTORE" +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:785: google_firestore_database.default +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:795:resource "google_firestore_database" "default" { +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:799: type = "FIRESTORE_NATIVE" +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:821: name = "cloud.firestore" +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:822: ruleset_name = "projects/my-project-name/rulesets/${google_firebaserules_ruleset.firestore.name}" +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:827: google_firebaserules_ruleset.firestore +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:832:resource "google_firebaserules_ruleset" "firestore" { +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:835: content = "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }" +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:836: name = "firestore.rules" +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:848: name = "cloud.firestore" +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:849: ruleset_name = "projects/my-project-name/rulesets/${google_firebaserules_ruleset.firestore.name}" +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:853:resource "google_firebaserules_ruleset" "firestore" { +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:856: content = "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }" +./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:857: name = "firestore.rules" +./mmv1/third_party/terraform/provider/provider_mmv1_resources.go.tmpl:201: "google_firestore_document": firestore.DataSourceGoogleFirestoreDocument(), +./mmv1/third_party/tgc/resource_converters.go.tmpl:401: "google_gke_backup_restore_plan_iam_policy": {gkebackup.ResourceConverterGKEBackupRestorePlanIamPolicy()}, +./mmv1/third_party/tgc/resource_converters.go.tmpl:402: "google_gke_backup_restore_plan_iam_binding": {gkebackup.ResourceConverterGKEBackupRestorePlanIamBinding()}, +./mmv1/third_party/tgc/resource_converters.go.tmpl:403: "google_gke_backup_restore_plan_iam_member": {gkebackup.ResourceConverterGKEBackupRestorePlanIamMember()}, +./mmv1/third_party/tgc/resource_converters.go.tmpl:500: "google_vertex_ai_featurestore_iam_policy": {vertexai.ResourceConverterVertexAIFeaturestoreIamPolicy()}, +./mmv1/third_party/tgc/resource_converters.go.tmpl:501: "google_vertex_ai_featurestore_iam_binding": {vertexai.ResourceConverterVertexAIFeaturestoreIamBinding()}, +./mmv1/third_party/tgc/resource_converters.go.tmpl:502: "google_vertex_ai_featurestore_iam_member": {vertexai.ResourceConverterVertexAIFeaturestoreIamMember()}, +./mmv1/third_party/tgc/resource_converters.go.tmpl:503: "google_vertex_ai_featurestore_entitytype_iam_policy": {vertexai.ResourceConverterVertexAIFeaturestoreEntitytypeIamPolicy()}, +./mmv1/third_party/tgc/resource_converters.go.tmpl:504: "google_vertex_ai_featurestore_entitytype_iam_binding": {vertexai.ResourceConverterVertexAIFeaturestoreEntitytypeIamBinding()}, +./mmv1/third_party/tgc/resource_converters.go.tmpl:505: "google_vertex_ai_featurestore_entitytype_iam_member": {vertexai.ResourceConverterVertexAIFeaturestoreEntitytypeIamMember()}, +./mmv1/third_party/tgc/services/resourcemanager/organization_policy.go:45: restoreDefault, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) +./mmv1/third_party/tgc/services/resourcemanager/organization_policy.go:54: RestoreDefault: restoreDefault, +./mmv1/third_party/tgc/services/resourcemanager/folder_organization_policy.go:45: restoreDefault, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) +./mmv1/third_party/tgc/services/resourcemanager/folder_organization_policy.go:54: RestoreDefault: restoreDefault, +./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:49: restoreDefault, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) +./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:58: RestoreDefault: restoreDefault, +./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:111:func expandRestoreOrganizationPolicy(configured []interface{}) (*cai.RestoreDefault, error) { +./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:116: restoreDefaultMap := configured[0].(map[string]interface{}) +./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:117: defaultValue := restoreDefaultMap["default"].(bool) +./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:120: return &cai.RestoreDefault{}, nil +./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:123: return &cai.RestoreDefault{}, fmt.Errorf("Invalid value for restore_policy. Expecting default = true") +./mmv1/third_party/tgc/convert.go:326: var restoreDefault *caiasset.RestoreDefault +./mmv1/third_party/tgc/convert.go:341: if o.RestoreDefault != nil { +./mmv1/third_party/tgc/convert.go:342: restoreDefault = &caiasset.RestoreDefault{} +./mmv1/third_party/tgc/convert.go:350: RestoreDefault: restoreDefault, +./mmv1/third_party/tgc/cai/cai.go:81: RestoreDefault *RestoreDefault `json:"restoreDefault"` +./mmv1/third_party/tgc/cai/cai.go:139:type RestoreDefault struct { +./mmv1/third_party/tgc/tests/data/example_organization_policy.tf:67: restore_policy { +./mmv1/third_party/tgc/tests/data/example_project_organization_policy.json:15: "restore_default": {}, +./mmv1/third_party/tgc/tests/data/example_folder_organization_policy.tf:67: restore_policy { +./mmv1/third_party/tgc/tests/data/example_folder_organization_policy.json:33: "restore_default": {}, +./mmv1/third_party/tgc/tests/data/example_organization_policy.json:33: "restore_default": {}, +./mmv1/third_party/tgc/tests/data/example_project_organization_policy.tf:53: restore_policy { +./mmv1/third_party/tgc/caiasset/asset.go:48: RestoreDefault *RestoreDefault `json:"restore_default,omitempty"` +./mmv1/third_party/tgc/caiasset/asset.go:129:// RestoreDefault determines if the default values of the `Constraints` are active for the +./mmv1/third_party/tgc/caiasset/asset.go:131:type RestoreDefault struct { +./mmv1/third_party/tgc/cai.go:56:type RestoreDefault = cai.RestoreDefault +./mmv1/third_party/tgc/getconfig_test.go:108: // Restore previous states of environment variables. +./mmv1/products/workstations/WorkstationConfig.yaml:641: Whether this resource is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in the conditions field. +./mmv1/products/workstations/WorkstationCluster.yaml:140: Whether this resource is in degraded mode, in which case it may require user action to restore full functionality. +./mmv1/products/redis/Cluster.yaml:535: - DISABLED: Persistence (both backup and restore) is disabled for the cluster. +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:15:name: 'FeaturestoreEntitytypeFeature' +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:18: - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}/features/{feature}' +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:24: api: 'https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores.entityTypes.features' +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:46: extra_schema_entry: 'templates/terraform/extra_schema_entry/vertex_ai_featurestore_entitytype_feature.go.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:47: encoder: 'templates/terraform/encoders/vertex_ai_featurestore_entitytype_feature.go.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:48: pre_create: 'templates/terraform/constants/vertex_ai_featurestore_entitytype_feature.go.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:49: pre_delete: 'templates/terraform/constants/vertex_ai_featurestore_entitytype_feature.go.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:50: custom_import: 'templates/terraform/custom_import/vertex_ai_featurestore_entitytype_feature.go.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:52: - name: 'vertex_ai_featurestore_entitytype_feature' +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:58: - name: 'vertex_ai_featurestore_entitytype_feature_with_beta_fields' +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:69: The name of the Featurestore to use, in the format +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:70: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entitytype}. +./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:110: Type of Feature value. Immutable. https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores.entityTypes.features#ValueType +./mmv1/products/vertexai/Featurestore.yaml:15:name: 'Featurestore' +./mmv1/products/vertexai/Featurestore.yaml:21: api: 'https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores' +./mmv1/products/vertexai/Featurestore.yaml:23:base_url: 'projects/{{project}}/locations/{{region}}/featurestores' +./mmv1/products/vertexai/Featurestore.yaml:24:self_link: 'projects/{{project}}/locations/{{region}}/featurestores/{{name}}' +./mmv1/products/vertexai/Featurestore.yaml:25:create_url: 'projects/{{project}}/locations/{{region}}/featurestores?featurestoreId={{name}}' +./mmv1/products/vertexai/Featurestore.yaml:42: parent_resource_attribute: 'featurestore' +./mmv1/products/vertexai/Featurestore.yaml:43: example_config_body: 'templates/terraform/iam/example_config_body/vertex_ai_featurestore.tf.tmpl' +./mmv1/products/vertexai/Featurestore.yaml:45: - 'projects/{{project}}/locations/{{region}}/featurestores/{{name}}' +./mmv1/products/vertexai/Featurestore.yaml:51: - name: 'vertex_ai_featurestore' +./mmv1/products/vertexai/Featurestore.yaml:52: primary_resource_id: 'featurestore' +./mmv1/products/vertexai/Featurestore.yaml:64: - name: 'vertex_ai_featurestore_with_beta_fields' +./mmv1/products/vertexai/Featurestore.yaml:65: primary_resource_id: 'featurestore' +./mmv1/products/vertexai/Featurestore.yaml:78: - name: 'vertex_ai_featurestore_scaling' +./mmv1/products/vertexai/Featurestore.yaml:79: primary_resource_id: 'featurestore' +./mmv1/products/vertexai/Featurestore.yaml:94: 'If set to true, any EntityTypes and Features for this Featurestore will +./mmv1/products/vertexai/Featurestore.yaml:109: The name of the Featurestore. This value may be up to 60 characters, and +./mmv1/products/vertexai/Featurestore.yaml:122: The timestamp of when the featurestore was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. +./mmv1/products/vertexai/Featurestore.yaml:127: The timestamp of when the featurestore was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. +./mmv1/products/vertexai/Featurestore.yaml:132: A set of key/value label pairs to assign to this Featurestore. +./mmv1/products/vertexai/Featurestore.yaml:166: TTL in days for feature values that will be stored in online serving storage. The Feature Store online storage periodically removes obsolete feature values older than onlineStorageTtlDays since the feature generation time. Note that onlineStorageTtlDays should be less than or equal to offlineStorageTtlDays for each EntityType under a featurestore. If not set, default to 4000 days +./mmv1/products/vertexai/FeatureGroupFeature.yaml:22: 'Creating a Feature': 'https://cloud.google.com/vertex-ai/docs/featurestore/latest/create-feature' +./mmv1/products/vertexai/FeatureGroup.yaml:19: 'Creating a Feature Group': 'https://cloud.google.com/vertex-ai/docs/featurestore/latest/create-featuregroup' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:15:name: 'FeaturestoreEntitytype' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:22: api: 'https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores.entityTypes' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:24:base_url: '{{featurestore}}/entityTypes' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:25:self_link: '{{featurestore}}/entityTypes/{{name}}' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:26:create_url: '{{featurestore}}/entityTypes?entityTypeId={{name}}' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:30: - '{{%featurestore}}/entityTypes/{{name}}' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:45: parent_resource_type: 'featurestore' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:48: example_config_body: 'templates/terraform/iam/example_config_body/vertex_ai_featurestore_entitytype.tf.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:50: - '{{%featurestore}}/entityTypes/{{name}}' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:54: extra_schema_entry: 'templates/terraform/extra_schema_entry/vertex_ai_featurestore_entitytype.go.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:55: encoder: 'templates/terraform/encoders/vertex_ai_featurestore_entitytype.go.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:56: pre_create: 'templates/terraform/constants/vertex_ai_featurestore_entitytype.go.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:57: pre_delete: 'templates/terraform/constants/vertex_ai_featurestore_entitytype.go.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:58: custom_import: 'templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:61: - name: 'vertex_ai_featurestore_entitytype' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:72: - name: 'vertex_ai_featurestore_entitytype_with_beta_fields' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:85: - name: 'featurestore' +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:88: The name of the Featurestore to use, in the format +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:89: projects/{project}/locations/{location}/featurestores/{featurestore}. +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:113: The timestamp of when the featurestore was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:118: The timestamp of when the featurestore was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:129: If this is populated with [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is disabled. +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:154: If both FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][] are set when creating/updating EntityTypes/Features, FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days will be used. +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:183: Threshold for numerical features of anomaly detection. This is shared by all objectives of Featurestore Monitoring for numerical features (i.e. Features with type (Feature.ValueType) DOUBLE or INT64). +./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:193: Threshold for categorical features of anomaly detection. This is shared by all types of Featurestore Monitoring for categorical features (i.e. Features with type (Feature.ValueType) BOOL or STRING). +./mmv1/products/firebaseappcheck/ServiceConfig.yaml:45: service_id: 'firestore.googleapis.com' +./mmv1/products/firebaseappcheck/ServiceConfig.yaml:49: 'service_id': '"firestore.googleapis.com"' +./mmv1/products/firebaseappcheck/ServiceConfig.yaml:73: firestore.googleapis.com (Cloud Firestore) +./mmv1/products/firebaseextensions/Instance.yaml:180: Config remains so the Instance can be restored. +./mmv1/products/firestore/Database.yaml:17: A Cloud Firestore Database. +./mmv1/products/firestore/Database.yaml:19: If you wish to use Firestore with App Engine, use the +./mmv1/products/firestore/Database.yaml:21: resource instead. If you were previously using the `google_app_engine_application` resource exclusively for managing a Firestore database +./mmv1/products/firestore/Database.yaml:22: and would like to use the `google_firestore_database` resource instead, please follow the instructions +./mmv1/products/firestore/Database.yaml:23: [here](https://cloud.google.com/firestore/docs/app-engine-requirement). +./mmv1/products/firestore/Database.yaml:26: 'Official Documentation': 'https://cloud.google.com/firestore/docs/' +./mmv1/products/firestore/Database.yaml:27: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases' +./mmv1/products/firestore/Database.yaml:51: pre_delete: 'templates/terraform/pre_delete/firestore_database.go.tmpl' +./mmv1/products/firestore/Database.yaml:53: - name: 'firestore_default_database' +./mmv1/products/firestore/Database.yaml:62: - name: 'firestore_database' +./mmv1/products/firestore/Database.yaml:75: - name: 'firestore_database_with_tags' +./mmv1/products/firestore/Database.yaml:91: - name: 'firestore_cmek_database' +./mmv1/products/firestore/Database.yaml:106: - name: 'firestore_default_database_in_datastore_mode' +./mmv1/products/firestore/Database.yaml:115: - name: 'firestore_database_in_datastore_mode' +./mmv1/products/firestore/Database.yaml:128: - name: 'firestore_cmek_database_in_datastore_mode' +./mmv1/products/firestore/Database.yaml:143: - name: 'firestore_database_enterprise' +./mmv1/products/firestore/Database.yaml:154: - name: 'firestore_database_data_access' +./mmv1/products/firestore/Database.yaml:156: primary_resource_id: 'firestore_access_database' +./mmv1/products/firestore/Database.yaml:165: - name: 'firestore_database_data_access_test' +./mmv1/products/firestore/Database.yaml:167: primary_resource_id: 'firestore_access_database_test' +./mmv1/products/firestore/Database.yaml:188: # For now though, setting this field is necessary if you wish for your Firestore databases to be deleted upon `terraform destroy`. +./mmv1/products/firestore/Database.yaml:208: https://cloud.google.com/firestore/docs/locations. +./mmv1/products/firestore/Database.yaml:215: See https://cloud.google.com/datastore/docs/firestore-or-datastore +./mmv1/products/firestore/Database.yaml:219: - 'FIRESTORE_NATIVE' +./mmv1/products/firestore/Database.yaml:225: 'FIRESTORE_NATIVE'. +./mmv1/products/firestore/Database.yaml:233: - name: 'firestoreDataAccessMode' +./mmv1/products/firestore/Database.yaml:236: The Firestore API data access mode to use for this database. Can only be +./mmv1/products/firestore/Database.yaml:352: The CMEK (Customer Managed Encryption Key) configuration for a Firestore +./mmv1/products/firestore/Database.yaml:365: for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS +./mmv1/products/firestore/Database.yaml:366: multi-region us. For Firestore's eur3 multi-region, this corresponds to +./mmv1/products/firestore/UserCreds.yaml:17: User credentials for a Cloud Firestore with MongoDB compatibility database. +./mmv1/products/firestore/UserCreds.yaml:21: 'Authenticate and connect to a database': 'https://cloud.google.com/firestore/mongodb-compatibility/docs/connect' +./mmv1/products/firestore/UserCreds.yaml:22: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.userCreds' +./mmv1/products/firestore/UserCreds.yaml:29: post_create: templates/terraform/post_create/firestore_user_creds.go.tmpl +./mmv1/products/firestore/UserCreds.yaml:31: - name: 'firestore_user_creds_basic' +./mmv1/products/firestore/UserCreds.yaml:37: - name: 'firestore_user_creds_with_secret_manager' +./mmv1/products/firestore/UserCreds.yaml:47: The Firestore database ID. +./mmv1/products/firestore/product.yaml:15:name: 'Firestore' +./mmv1/products/firestore/product.yaml:16:display_name: 'Firestore' +./mmv1/products/firestore/product.yaml:19: base_url: 'https://firestore.googleapis.com/v1/' +./mmv1/products/firestore/product.yaml:21: base_url: 'https://firestore.googleapis.com/v1/' +./mmv1/products/firestore/BackupSchedule.yaml:17: A backup schedule for a Cloud Firestore Database. +./mmv1/products/firestore/BackupSchedule.yaml:22: 'Official Documentation': 'https://cloud.google.com/firestore/docs/backups' +./mmv1/products/firestore/BackupSchedule.yaml:23: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.backupSchedules' +./mmv1/products/firestore/BackupSchedule.yaml:26: This resource creates a Firestore Backup Schedule on a project that already has +./mmv1/products/firestore/BackupSchedule.yaml:27: a Firestore database. +./mmv1/products/firestore/BackupSchedule.yaml:46: - name: 'firestore_backup_schedule_daily' +./mmv1/products/firestore/BackupSchedule.yaml:55: - name: 'firestore_backup_schedule_weekly' +./mmv1/products/firestore/BackupSchedule.yaml:68: The Firestore database id. Defaults to `"(default)"`. +./mmv1/products/firestore/Field.yaml:22: 'Official Documentation': 'https://cloud.google.com/firestore/docs/query-data/indexing' +./mmv1/products/firestore/Field.yaml:23: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.collectionGroups.fields' +./mmv1/products/firestore/Field.yaml:26: This resource creates a Firestore Single Field override on a project that +./mmv1/products/firestore/Field.yaml:27: already has a Firestore database. If you haven't already created it, you may +./mmv1/products/firestore/Field.yaml:28: create a `google_firestore_database` resource with `location_id` set to your +./mmv1/products/firestore/Field.yaml:52: encoder: 'templates/terraform/encoders/firestore_field.go.tmpl' +./mmv1/products/firestore/Field.yaml:53: custom_delete: 'templates/terraform/custom_delete/firestore_field_delete.go.tmpl' +./mmv1/products/firestore/Field.yaml:54: custom_import: 'templates/terraform/custom_import/firestore_field.go.tmpl' +./mmv1/products/firestore/Field.yaml:55: test_check_destroy: 'templates/terraform/custom_check_destroy/firestore_field.go.tmpl' +./mmv1/products/firestore/Field.yaml:60: - 'transport_tpg.FirestoreField409RetryUnderlyingDataChanged' +./mmv1/products/firestore/Field.yaml:62: - name: 'firestore_field_basic' +./mmv1/products/firestore/Field.yaml:71: - name: 'firestore_field_timestamp' +./mmv1/products/firestore/Field.yaml:80: - name: 'firestore_field_match_override' +./mmv1/products/firestore/Field.yaml:89: - name: 'firestore_field_wildcard' +./mmv1/products/firestore/Field.yaml:103: The Firestore database id. Defaults to `"(default)"`. +./mmv1/products/firestore/Field.yaml:135: custom_flatten: 'templates/terraform/custom_flatten/firestore_field_index_config.go.tmpl' +./mmv1/products/firestore/Field.yaml:136: custom_expand: 'templates/terraform/custom_expand/firestore_field_index_config.go.tmpl' +./mmv1/products/firestore/Document.yaml:17: In Cloud Firestore, the unit of storage is the document. A document is a lightweight record +./mmv1/products/firestore/Document.yaml:21: 'Official Documentation': 'https://cloud.google.com/firestore/docs/manage-data/add-data' +./mmv1/products/firestore/Document.yaml:22: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.documents' +./mmv1/products/firestore/Document.yaml:25: This resource creates a Firestore Document on a project that already has +./mmv1/products/firestore/Document.yaml:26: a Firestore database. If you haven't already created it, you may +./mmv1/products/firestore/Document.yaml:27: create a `google_firestore_database` resource with `type` set to +./mmv1/products/firestore/Document.yaml:28: `"FIRESTORE_NATIVE"` and `location_id` set to your chosen location. +./mmv1/products/firestore/Document.yaml:31: `"CLOUD_FIRESTORE"`. Your Firestore location will be the same as +./mmv1/products/firestore/Document.yaml:44: decoder: 'templates/terraform/decoders/firestore_document.go.tmpl' +./mmv1/products/firestore/Document.yaml:45: custom_import: 'templates/terraform/custom_import/firestore_document.go.tmpl' +./mmv1/products/firestore/Document.yaml:48: - name: 'firestore_document_basic' +./mmv1/products/firestore/Document.yaml:56: - name: 'firestore_document_nested_document' +./mmv1/products/firestore/Document.yaml:68: The Firestore database id. Defaults to `"(default)"`. +./mmv1/products/firestore/Document.yaml:102: The document's [fields](https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.documents) formated as a json string. +./mmv1/products/firestore/Index.yaml:17: Cloud Firestore indexes enable simple and complex queries against documents in a database. +./mmv1/products/firestore/Index.yaml:18: Both Firestore Native and Datastore Mode indexes are supported. +./mmv1/products/firestore/Index.yaml:20: To manage single field indexes, use the `google_firestore_field` resource instead. +./mmv1/products/firestore/Index.yaml:23: 'Official Documentation': 'https://cloud.google.com/firestore/docs/query-data/indexing' +./mmv1/products/firestore/Index.yaml:24: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.collectionGroups.indexes' +./mmv1/products/firestore/Index.yaml:27: This resource creates a Firestore Index on a project that already has +./mmv1/products/firestore/Index.yaml:28: a Firestore database. If you haven't already created it, you may +./mmv1/products/firestore/Index.yaml:29: create a `google_firestore_database` resource and `location_id` set +./mmv1/products/firestore/Index.yaml:32: Your Firestore location will be the same as the App Engine location specified. +./mmv1/products/firestore/Index.yaml:51: constants: 'templates/terraform/constants/firestore_index.go.tmpl' +./mmv1/products/firestore/Index.yaml:54: custom_create: 'templates/terraform/custom_create/firestore_index.go.tmpl' +./mmv1/products/firestore/Index.yaml:55: pre_delete: 'templates/terraform/pre_delete/firestore_index.go.tmpl' +./mmv1/products/firestore/Index.yaml:57: - 'transport_tpg.FirestoreIndex409Retry' +./mmv1/products/firestore/Index.yaml:59: - name: 'firestore_index_basic' +./mmv1/products/firestore/Index.yaml:66: - name: 'firestore_index_datastore_mode' +./mmv1/products/firestore/Index.yaml:72: - name: 'firestore_index_vector' +./mmv1/products/firestore/Index.yaml:78: - name: 'firestore_index_name_descending' +./mmv1/products/firestore/Index.yaml:84: - name: 'firestore_index_mongodb_compatible_scope' +./mmv1/products/firestore/Index.yaml:90: - name: 'firestore_index_sparse_any' +./mmv1/products/firestore/Index.yaml:96: - name: 'firestore_index_unique' +./mmv1/products/firestore/Index.yaml:102: - name: 'firestore_index_skip_wait' +./mmv1/products/firestore/Index.yaml:110: - name: 'firestore_index_deletion_policy' +./mmv1/products/firestore/Index.yaml:142:# Firestore uses a custom create function. Any new fields must be explicitly handled there. +./mmv1/products/firestore/Index.yaml:153: The Firestore database id. Defaults to `"(default)"`. +./mmv1/products/firestore/Index.yaml:218: diff_suppress_func: 'firestoreIFieldsDiffSuppress' +./mmv1/products/eventarc/Trigger.yaml:89: - name: eventarc_trigger_with_firestore_source +./mmv1/products/pubsub/Topic.yaml:301: will be restored when publishing. +./mmv1/products/dialogflowcx/Agent.yaml:326: Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for [agents.restore][]. +./mmv1/products/oracledatabase/AutonomousDatabase.yaml:315: description: " \n Possible values:\n STATE_UNSPECIFIED\nPROVISIONING\nAVAILABLE\nSTOPPING\nSTOPPED\nSTARTING\nTERMINATING\nTERMINATED\nUNAVAILABLE\nRESTORE_IN_PROGRESS\nRESTORE_FAILED\nBACKUP_IN_PROGRESS\nSCALE_IN_PROGRESS\nAVAILABLE_NEEDS_ATTENTION\nUPDATING\nMAINTENANCE_IN_PROGRESS\nRESTARTING\nRECREATING\nROLE_CHANGE_IN_PROGRESS\nUPGRADING\nINACCESSIBLE\nSTANDBY" +./mmv1/products/oracledatabase/AutonomousDatabase.yaml:506: description: " \n Possible values:\n STATE_UNSPECIFIED\nPROVISIONING\nAVAILABLE\nSTOPPING\nSTOPPED\nSTARTING\nTERMINATING\nTERMINATED\nUNAVAILABLE\nRESTORE_IN_PROGRESS\nRESTORE_FAILED\nBACKUP_IN_PROGRESS\nSCALE_IN_PROGRESS\nAVAILABLE_NEEDS_ATTENTION\nUPDATING\nMAINTENANCE_IN_PROGRESS\nRESTARTING\nRECREATING\nROLE_CHANGE_IN_PROGRESS\nUPGRADING\nINACCESSIBLE\nSTANDBY" +./mmv1/products/oracledatabase/DbSystem.yaml:390: which a database can be restored. Min: 1, Max: 60. +./mmv1/products/oracledatabase/DbSystem.yaml:409: RESTORE_FAILED +./mmv1/products/gkebackup/RestorePlan.yaml:15:name: 'RestorePlan' +./mmv1/products/gkebackup/RestorePlan.yaml:17: Represents a Restore Plan instance. +./mmv1/products/gkebackup/RestorePlan.yaml:21: api: 'https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans' +./mmv1/products/gkebackup/RestorePlan.yaml:23:base_url: 'projects/{{project}}/locations/{{location}}/restorePlans' +./mmv1/products/gkebackup/RestorePlan.yaml:24:create_url: 'projects/{{project}}/locations/{{location}}/restorePlans?restorePlanId={{name}}' +./mmv1/products/gkebackup/RestorePlan.yaml:42: base_url: 'projects/{{project}}/locations/{{location}}/restorePlans/{{name}}' +./mmv1/products/gkebackup/RestorePlan.yaml:44: - 'projects/{{project}}/locations/{{location}}/restorePlans/{{name}}' +./mmv1/products/gkebackup/RestorePlan.yaml:49: - name: 'gkebackup_restoreplan_all_namespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:52: name: 'restore-all-ns' +./mmv1/products/gkebackup/RestorePlan.yaml:64: - name: 'gkebackup_restoreplan_rollback_namespace' +./mmv1/products/gkebackup/RestorePlan.yaml:79: - name: 'gkebackup_restoreplan_protected_application' +./mmv1/products/gkebackup/RestorePlan.yaml:94: - name: 'gkebackup_restoreplan_all_cluster_resources' +./mmv1/products/gkebackup/RestorePlan.yaml:109: - name: 'gkebackup_restoreplan_rename_namespace' +./mmv1/products/gkebackup/RestorePlan.yaml:124: - name: 'gkebackup_restoreplan_second_transformation' +./mmv1/products/gkebackup/RestorePlan.yaml:139: - name: 'gkebackup_restoreplan_gitops_mode' +./mmv1/products/gkebackup/RestorePlan.yaml:154: - name: 'gkebackup_restoreplan_restore_order' +./mmv1/products/gkebackup/RestorePlan.yaml:155: primary_resource_id: 'restore_order' +./mmv1/products/gkebackup/RestorePlan.yaml:157: name: 'restore-order' +./mmv1/products/gkebackup/RestorePlan.yaml:169: - name: 'gkebackup_restoreplan_volume_res' +./mmv1/products/gkebackup/RestorePlan.yaml:188: The region of the Restore Plan. +./mmv1/products/gkebackup/RestorePlan.yaml:209: User specified descriptive string for this RestorePlan. +./mmv1/products/gkebackup/RestorePlan.yaml:220: as the source for Restores created via this RestorePlan. +./mmv1/products/gkebackup/RestorePlan.yaml:226: The source cluster from which Restores will be created via this RestorePlan. +./mmv1/products/gkebackup/RestorePlan.yaml:229: - name: 'restoreConfig' +./mmv1/products/gkebackup/RestorePlan.yaml:232: Defines the configuration of Restores created via this RestorePlan. +./mmv1/products/gkebackup/RestorePlan.yaml:238: If True, restore all namespaced resources in the Backup. +./mmv1/products/gkebackup/RestorePlan.yaml:241: - 'restoreConfig.0.allNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:242: - 'restoreConfig.0.excludedNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:243: - 'restoreConfig.0.selectedNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:244: - 'restoreConfig.0.selectedApplications' +./mmv1/products/gkebackup/RestorePlan.yaml:245: - 'restoreConfig.0.noNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:250: All namespaces except those in this list will be restored. +./mmv1/products/gkebackup/RestorePlan.yaml:252: - 'restoreConfig.0.allNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:253: - 'restoreConfig.0.excludedNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:254: - 'restoreConfig.0.selectedNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:255: - 'restoreConfig.0.selectedApplications' +./mmv1/products/gkebackup/RestorePlan.yaml:256: - 'restoreConfig.0.noNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:268: A list of selected namespaces to restore from the Backup. +./mmv1/products/gkebackup/RestorePlan.yaml:269: The listed Namespaces and all resources contained in them will be restored. +./mmv1/products/gkebackup/RestorePlan.yaml:271: - 'restoreConfig.0.allNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:272: - 'restoreConfig.0.excludedNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:273: - 'restoreConfig.0.selectedNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:274: - 'restoreConfig.0.selectedApplications' +./mmv1/products/gkebackup/RestorePlan.yaml:275: - 'restoreConfig.0.noNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:287: A list of selected ProtectedApplications to restore. +./mmv1/products/gkebackup/RestorePlan.yaml:289: to which they refer will be restored. +./mmv1/products/gkebackup/RestorePlan.yaml:291: - 'restoreConfig.0.allNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:292: - 'restoreConfig.0.excludedNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:293: - 'restoreConfig.0.selectedNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:294: - 'restoreConfig.0.selectedApplications' +./mmv1/products/gkebackup/RestorePlan.yaml:295: - 'restoreConfig.0.noNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:318: Do not restore any namespaced resources if set to "True". +./mmv1/products/gkebackup/RestorePlan.yaml:321: - 'restoreConfig.0.allNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:322: - 'restoreConfig.0.excludedNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:323: - 'restoreConfig.0.selectedNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:324: - 'restoreConfig.0.selectedApplications' +./mmv1/products/gkebackup/RestorePlan.yaml:325: - 'restoreConfig.0.noNamespaces' +./mmv1/products/gkebackup/RestorePlan.yaml:326: - name: 'namespacedResourceRestoreMode' +./mmv1/products/gkebackup/RestorePlan.yaml:330: being restored already exist in the target cluster. +./mmv1/products/gkebackup/RestorePlan.yaml:331: This MUST be set to a value other than `NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED` +./mmv1/products/gkebackup/RestorePlan.yaml:332: if the `namespacedResourceRestoreScope` is anything other than `noNamespaces`. +./mmv1/products/gkebackup/RestorePlan.yaml:333: See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#namespacedresourcerestoremode +./mmv1/products/gkebackup/RestorePlan.yaml:336: - 'DELETE_AND_RESTORE' +./mmv1/products/gkebackup/RestorePlan.yaml:341: - name: 'volumeDataRestorePolicy' +./mmv1/products/gkebackup/RestorePlan.yaml:344: Specifies the mechanism to be used to restore volume data. +./mmv1/products/gkebackup/RestorePlan.yaml:345: This should be set to a value other than `NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED` +./mmv1/products/gkebackup/RestorePlan.yaml:346: if the `namespacedResourceRestoreScope` is anything other than `noNamespaces`. +./mmv1/products/gkebackup/RestorePlan.yaml:348: See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#VolumeDataRestorePolicy +./mmv1/products/gkebackup/RestorePlan.yaml:351: - 'RESTORE_VOLUME_DATA_FROM_BACKUP' +./mmv1/products/gkebackup/RestorePlan.yaml:354: - name: 'clusterResourceRestoreScope' +./mmv1/products/gkebackup/RestorePlan.yaml:357: Identifies the cluster-scoped resources to restore from the Backup. +./mmv1/products/gkebackup/RestorePlan.yaml:362: If True, all valid cluster-scoped resources will be restored. +./mmv1/products/gkebackup/RestorePlan.yaml:363: Mutually exclusive to any other field in `clusterResourceRestoreScope`. +./mmv1/products/gkebackup/RestorePlan.yaml:365: - 'restoreConfig.0.clusterResourceRestoreScope.0.allGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:366: - 'restoreConfig.0.clusterResourceRestoreScope.0.excludedGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:367: - 'restoreConfig.0.clusterResourceRestoreScope.0.selectedGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:368: - 'restoreConfig.0.clusterResourceRestoreScope.0.noGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:372: A list of cluster-scoped resource group kinds to NOT restore from the backup. +./mmv1/products/gkebackup/RestorePlan.yaml:373: If specified, all valid cluster-scoped resources will be restored except +./mmv1/products/gkebackup/RestorePlan.yaml:375: Mutually exclusive to any other field in `clusterResourceRestoreScope`. +./mmv1/products/gkebackup/RestorePlan.yaml:377: - 'restoreConfig.0.clusterResourceRestoreScope.0.allGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:378: - 'restoreConfig.0.clusterResourceRestoreScope.0.excludedGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:379: - 'restoreConfig.0.clusterResourceRestoreScope.0.selectedGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:380: - 'restoreConfig.0.clusterResourceRestoreScope.0.noGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:398: A list of cluster-scoped resource group kinds to restore from the backup. +./mmv1/products/gkebackup/RestorePlan.yaml:399: If specified, only the selected resources will be restored. +./mmv1/products/gkebackup/RestorePlan.yaml:400: Mutually exclusive to any other field in the `clusterResourceRestoreScope`. +./mmv1/products/gkebackup/RestorePlan.yaml:402: - 'restoreConfig.0.clusterResourceRestoreScope.0.allGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:403: - 'restoreConfig.0.clusterResourceRestoreScope.0.excludedGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:404: - 'restoreConfig.0.clusterResourceRestoreScope.0.selectedGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:405: - 'restoreConfig.0.clusterResourceRestoreScope.0.noGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:423: If True, no cluster-scoped resources will be restored. +./mmv1/products/gkebackup/RestorePlan.yaml:424: Mutually exclusive to any other field in `clusterResourceRestoreScope`. +./mmv1/products/gkebackup/RestorePlan.yaml:426: - 'restoreConfig.0.clusterResourceRestoreScope.0.allGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:427: - 'restoreConfig.0.clusterResourceRestoreScope.0.excludedGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:428: - 'restoreConfig.0.clusterResourceRestoreScope.0.selectedGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:429: - 'restoreConfig.0.clusterResourceRestoreScope.0.noGroupKinds' +./mmv1/products/gkebackup/RestorePlan.yaml:434: being restored already exist in the target cluster. +./mmv1/products/gkebackup/RestorePlan.yaml:436: if `clusterResourceRestoreScope` is anyting other than `noGroupKinds`. +./mmv1/products/gkebackup/RestorePlan.yaml:437: See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#clusterresourceconflictpolicy +./mmv1/products/gkebackup/RestorePlan.yaml:553: - name: 'volumeDataRestorePolicyBindings' +./mmv1/products/gkebackup/RestorePlan.yaml:556: A table that binds volumes by their scope to a restore policy. Bindings +./mmv1/products/gkebackup/RestorePlan.yaml:558: subject to the policy defined in volume_data_restore_policy. +./mmv1/products/gkebackup/RestorePlan.yaml:565: Specifies the mechanism to be used to restore this volume data. +./mmv1/products/gkebackup/RestorePlan.yaml:566: See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#VolumeDataRestorePolicy +./mmv1/products/gkebackup/RestorePlan.yaml:570: - 'RESTORE_VOLUME_DATA_FROM_BACKUP' +./mmv1/products/gkebackup/RestorePlan.yaml:581: - name: 'restoreOrder' +./mmv1/products/gkebackup/RestorePlan.yaml:584: It contains custom ordering to use on a Restore. +./mmv1/products/gkebackup/RestorePlan.yaml:591: generate a group kind restore order. +./mmv1/products/gkebackup/RestorePlan.yaml:599: The satisfying group kind must be restored first +./mmv1/products/gkebackup/RestorePlan.yaml:618: group kind be restored first. +./mmv1/products/gkebackup/RestorePlan.yaml:635: The State of the RestorePlan. +./mmv1/products/gkebackup/RestorePlan.yaml:640: Detailed description of why RestorePlan is in its current state. +./mmv1/products/gkebackup/BackupPlan.yaml:517: non-standard or requires additional setup to restore. +./mmv1/products/gkebackup/RestoreChannel.yaml:15:name: 'RestoreChannel' +./mmv1/products/gkebackup/RestoreChannel.yaml:17: A RestoreChannel imposes constraints on where backups can be restored. +./mmv1/products/gkebackup/RestoreChannel.yaml:18: The RestoreChannel should be in the same project and region +./mmv1/products/gkebackup/RestoreChannel.yaml:19: as the backups. The backups can only be restored in the +./mmv1/products/gkebackup/RestoreChannel.yaml:24: api: 'https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restoreChannels' +./mmv1/products/gkebackup/RestoreChannel.yaml:26:base_url: 'projects/{{project}}/locations/{{location}}/restoreChannels' +./mmv1/products/gkebackup/RestoreChannel.yaml:27:create_url: 'projects/{{project}}/locations/{{location}}/restoreChannels?restoreChannelId={{name}}' +./mmv1/products/gkebackup/RestoreChannel.yaml:44: - name: 'gkebackup_restorechannel_basic' +./mmv1/products/gkebackup/RestoreChannel.yaml:57: The region of the Restore Channel. +./mmv1/products/gkebackup/RestoreChannel.yaml:65: The full name of the RestoreChannel Resource. +./mmv1/products/gkebackup/RestoreChannel.yaml:78: The project where Backups will be restored. +./mmv1/products/gkebackup/RestoreChannel.yaml:86: User specified descriptive string for this RestoreChannel. +./mmv1/products/gkebackup/RestoreChannel.yaml:97: updates of a restore channel from overwriting each other. It is strongly suggested that +./mmv1/products/gkebackup/RestoreChannel.yaml:98: systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates +./mmv1/products/gkebackup/RestoreChannel.yaml:99: in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, +./mmv1/products/gkebackup/RestoreChannel.yaml:100: and systems are expected to put that etag in the request to restoreChannels.patch or +./mmv1/products/gkebackup/RestoreChannel.yaml:101: restoreChannels.delete to ensure that their change will be applied to the same version of the resource. +./mmv1/products/gkebackup/RestoreChannel.yaml:106: The project_id where Backups will be restored. +./mmv1/products/filestore/Backup.yaml:137: Amount of bytes that will be downloaded if the backup is restored. +./mmv1/products/filestore/Instance.yaml:180: that this file share has been restored from. +./mmv1/products/filestore/Instance.yaml:187: that this file share has been restored from. +./mmv1/products/apigee/Organization.yaml:153: operation completes. During this period, the Organization may be restored to its last known state. +./mmv1/products/apigee/Organization.yaml:154: After this period, the Organization will no longer be able to be restored. +./mmv1/products/backupdr/RestoreWorkload.yaml:15:name: 'RestoreWorkload' +./mmv1/products/backupdr/RestoreWorkload.yaml:18: Creating this resource will initiate a restore operation from a specified backup. +./mmv1/products/backupdr/RestoreWorkload.yaml:19: The resource represents the restore operation and its result. +./mmv1/products/backupdr/RestoreWorkload.yaml:20:# Immutable ensures any config change triggers a fresh restore rather than an invalid update +./mmv1/products/backupdr/RestoreWorkload.yaml:35: custom_create: 'templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl' +./mmv1/products/backupdr/RestoreWorkload.yaml:36: custom_delete: 'templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl' +./mmv1/products/backupdr/RestoreWorkload.yaml:38: - name: 'backup_dr_restore_workload_compute_instance_basic' +./mmv1/products/backupdr/RestoreWorkload.yaml:39: primary_resource_id: 'restore_compute_basic' +./mmv1/products/backupdr/RestoreWorkload.yaml:47: instance_name: 'restored-instance' +./mmv1/products/backupdr/RestoreWorkload.yaml:48: - name: 'backup_dr_restore_workload_compute_instance_full' +./mmv1/products/backupdr/RestoreWorkload.yaml:49: primary_resource_id: 'restore_compute_full' +./mmv1/products/backupdr/RestoreWorkload.yaml:57: instance_name: 'restored-instance-full' +./mmv1/products/backupdr/RestoreWorkload.yaml:58: - name: 'backup_dr_restore_workload_disk_basic' +./mmv1/products/backupdr/RestoreWorkload.yaml:59: primary_resource_id: 'restore_disk_basic' +./mmv1/products/backupdr/RestoreWorkload.yaml:67: disk_name: 'restored-disk' +./mmv1/products/backupdr/RestoreWorkload.yaml:68: - name: 'backup_dr_restore_workload_regional_disk' +./mmv1/products/backupdr/RestoreWorkload.yaml:69: primary_resource_id: 'restore_regional_disk' +./mmv1/products/backupdr/RestoreWorkload.yaml:77: disk_name: 'restored-regional-disk' +./mmv1/products/backupdr/RestoreWorkload.yaml:78: - name: 'backup_dr_restore_workload_without_delete' +./mmv1/products/backupdr/RestoreWorkload.yaml:79: primary_resource_id: 'restore_without_delete' +./mmv1/products/backupdr/RestoreWorkload.yaml:108: description: 'Required. The ID of the backup to restore from.' +./mmv1/products/backupdr/RestoreWorkload.yaml:164: # --- Restore Properties (oneof instance_properties) --- +./mmv1/products/backupdr/RestoreWorkload.yaml:165: - name: 'computeInstanceRestoreProperties' +./mmv1/products/backupdr/RestoreWorkload.yaml:167: description: 'Optional. Compute Engine instance properties to be overridden during restore.' +./mmv1/products/backupdr/RestoreWorkload.yaml:649: - name: 'diskRestoreProperties' +./mmv1/products/backupdr/RestoreWorkload.yaml:651: description: 'Optional. Disk properties to be overridden during restore.' +./mmv1/products/backupdr/RestoreWorkload.yaml:763: description: 'Optional. A field mask used to clear server-side default values during restore.' +./mmv1/products/backupdr/RestoreWorkload.yaml:765: - name: 'deleteRestoredInstance' +./mmv1/products/backupdr/RestoreWorkload.yaml:770: If false, only the restore record is removed from the state, leaving the resource active. +./mmv1/products/backupdr/RestoreWorkload.yaml:771: # --- Output (RestoreBackupResponse) --- +./mmv1/products/backupdr/RestoreWorkload.yaml:775: description: 'Output only. Details of the target resource created/modified as part of restore.' +./mmv1/products/backupdr/RestoreWorkload.yaml:779: description: 'Output only. Details of the native Google Cloud resource created as part of restore.' +./mmv1/products/backupdr/ManagementServer.yaml:69: default_value: "BACKUP_RESTORE" +./mmv1/products/backupdr/ManagementServer.yaml:71: - 'BACKUP_RESTORE' +./mmv1/products/backupdr/BackupVault.yaml:169: project to enable the service to run backups and restores there. " +./mmv1/products/iamworkforcepool/WorkforcePoolProvider.yaml:198: deleted after approximately 30 days. You can restore a soft-deleted provider using +./mmv1/products/iamworkforcepool/WorkforcePool.yaml:122: after approximately 30 days. You can restore a soft-deleted pool using +./mmv1/products/orgpolicy/Policy.yaml:162: description: Ignores policies set above this resource and restores the `constraint_default` enforcement behavior of the specific `Constraint` at this resource. This field can be set in policies for either list or boolean constraints. If set, `rules` must be empty and `inherit_from_parent` must be set to false. +./mmv1/products/orgpolicy/Policy.yaml:247: description: Ignores policies set above this resource and restores the `constraint_default` enforcement behavior of the specific constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, `rules` must be empty and `inherit_from_parent` must be set to false. +./mmv1/products/iambeta/WorkloadIdentityPoolManagedIdentity.yaml:111: permanently deleted after approximately 30 days. You can restore a soft-deleted managed +./mmv1/products/iambeta/WorkloadIdentityPool.yaml:97: approximately 30 days. You can restore a soft-deleted pool using +./mmv1/products/iambeta/WorkloadIdentityPoolProvider.yaml:127: after approximately 30 days. You can restore a soft-deleted provider using +./mmv1/products/iambeta/WorkloadIdentityPoolNamespace.yaml:91: after approximately 30 days. You can restore a soft-deleted namespace using +./mmv1/products/binaryauthorization/Policy.yaml:37: pre_delete: 'templates/terraform/pre_delete/restore_default_binaryauthorization_policy.tmpl' +./mmv1/products/servicenetworking/VPCServiceControls.yaml:38: - Restores a default route (destination 0.0.0.0/0, next hop default +./mmv1/products/alloydb/Cluster.yaml:98: - name: 'alloydb_cluster_restore' +./mmv1/products/alloydb/Cluster.yaml:102: alloydb_backup_restored_cluster_name: 'alloydb-backup-restored' +./mmv1/products/alloydb/Cluster.yaml:103: alloydb_pitr_restored_cluster_name: 'alloydb-pitr-restored' +./mmv1/products/alloydb/Cluster.yaml:240: The earliest restorable time that can be restored to. Output only field. +./mmv1/products/alloydb/Cluster.yaml:346: - name: 'restoreBackupSource' +./mmv1/products/alloydb/Cluster.yaml:349: The source when restoring from a backup. Conflicts with 'restore_continuous_backup_source', 'restore_backupdr_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. +./mmv1/products/alloydb/Cluster.yaml:353: - restore_continuous_backup_source +./mmv1/products/alloydb/Cluster.yaml:354: - restore_backupdr_backup_source +./mmv1/products/alloydb/Cluster.yaml:355: - restore_backupdr_pitr_source +./mmv1/products/alloydb/Cluster.yaml:360: The name of the backup that this cluster is restored from. +./mmv1/products/alloydb/Cluster.yaml:363: - name: 'restoreContinuousBackupSource' +./mmv1/products/alloydb/Cluster.yaml:366: The source when restoring via point in time recovery (PITR). Conflicts with 'restore_backup_source', 'restore_backupdr_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. +./mmv1/products/alloydb/Cluster.yaml:370: - restore_backup_source +./mmv1/products/alloydb/Cluster.yaml:371: - restore_backupdr_backup_source +./mmv1/products/alloydb/Cluster.yaml:372: - restore_backupdr_pitr_source +./mmv1/products/alloydb/Cluster.yaml:377: The name of the source cluster that this cluster is restored from. +./mmv1/products/alloydb/Cluster.yaml:383: The point in time that this cluster is restored to, in RFC 3339 format. +./mmv1/products/alloydb/Cluster.yaml:386: - name: 'restoreBackupdrBackupSource' +./mmv1/products/alloydb/Cluster.yaml:389: The source when restoring from a backup. Conflicts with 'restore_continuous_backup_source', 'restore_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. +./mmv1/products/alloydb/Cluster.yaml:393: - restore_continuous_backup_source +./mmv1/products/alloydb/Cluster.yaml:394: - restore_backup_source +./mmv1/products/alloydb/Cluster.yaml:395: - restore_backupdr_pitr_source +./mmv1/products/alloydb/Cluster.yaml:400: The name of the BackupDR backup that this cluster is restored from. It must be of the format "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[VAULT_ID]/dataSources/[DATASOURCE_ID]/backups/[BACKUP_ID]" +./mmv1/products/alloydb/Cluster.yaml:403: - name: 'restoreBackupdrPitrSource' +./mmv1/products/alloydb/Cluster.yaml:406: The BackupDR source used for point in time recovery. Conflicts with 'restore_backupdr_backup_source', 'restore_continuous_backup_source' and 'restore_backupdr_backup_source', they can't be set togeter. +./mmv1/products/alloydb/Cluster.yaml:410: - restore_backup_source +./mmv1/products/alloydb/Cluster.yaml:411: - restore_continuous_backup_source +./mmv1/products/alloydb/Cluster.yaml:412: - restore_backupdr_backup_source +./mmv1/products/alloydb/Cluster.yaml:417: The name of the BackupDR data source that this cluster is restore from. It must be of the format "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[VAULT_ID]/dataSources/[DATASOURCE_ID]" +./mmv1/products/alloydb/Cluster.yaml:423: The point in time that this cluster is restored to, in RFC 3339 format. +./mmv1/products/alloydb/Cluster.yaml:443: The numbers of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. +./mmv1/products/compute/Image.yaml:105: Size of the image when restored onto a persistent disk (in GB). +./mmv1/products/compute/RegionDisk.yaml:417: Specifies whether the disk restored from a source snapshot should erase Windows specific VSS signature. +./mmv1/products/compute/Disk.yaml:574: Specifies whether the disk restored from a source snapshot should erase Windows specific VSS signature. +./mmv1/products/netapp/VolumeSnapshot.yaml:18: NetApp Volumes helps you manage your data usage with snapshots that can quickly restore lost data. +./mmv1/products/netapp/ActiveDirectory.yaml:134: Domain user/group accounts to be added to the Backup Operators group of the SMB service. The Backup Operators group allows members to backup and restore files regardless of whether they have read or write access to the files. Comma-separated list. +./mmv1/products/netapp/Backup.yaml:22: use backups to restore your data to a new volume. +./mmv1/products/netapp/Volume.yaml:295: - name: 'restoreParameters' +./mmv1/products/netapp/Volume.yaml:311: - 'restore_parameters.0.source_backup' +./mmv1/products/netapp/Volume.yaml:312: - 'restore_parameters.0.source_snapshot' +./mmv1/products/netapp/Volume.yaml:321: - 'restore_parameters.0.source_backup' +./mmv1/products/netapp/Volume.yaml:322: - 'restore_parameters.0.source_snapshot' +./tools/issue-labeler/labeler/enrolled_teams.yml:19:service/aiplatform-featurestore: +./tools/issue-labeler/labeler/enrolled_teams.yml:21: - google_vertex_ai_featurestore.* +./tools/issue-labeler/labeler/enrolled_teams.yml:442:service/firestore-controlplane: +./tools/issue-labeler/labeler/enrolled_teams.yml:444: - google_firestore_backup_schedule +./tools/issue-labeler/labeler/enrolled_teams.yml:445: - google_firestore_database +./tools/issue-labeler/labeler/enrolled_teams.yml:446: - google_firestore_user_creds +./tools/issue-labeler/labeler/enrolled_teams.yml:447:service/firestore-dataplane: +./tools/issue-labeler/labeler/enrolled_teams.yml:450: - google_firestore_document +./tools/issue-labeler/labeler/enrolled_teams.yml:451: - google_firestore_field +./tools/issue-labeler/labeler/enrolled_teams.yml:452: - google_firestore_index +./tools/issue-labeler/labeler/enrolled_teams.yml:453: - google_firestore_ttl From 713b89be2b949f208d805fd92ec4d30e5f78c73c Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Wed, 4 Mar 2026 17:31:59 +0000 Subject: [PATCH 24/32] Remove output.txt file --- output.txt | 1406 ---------------------------------------------------- 1 file changed, 1406 deletions(-) delete mode 100644 output.txt diff --git a/output.txt b/output.txt deleted file mode 100644 index 94ff92301059..000000000000 --- a/output.txt +++ /dev/null @@ -1,1406 +0,0 @@ -./.ci/infra/terraform/main.tf:299: "firestore.googleapis.com", -./.ci/infra/terraform/main.tf:300: "firestorekeyvisualizer.googleapis.com", -./.ci/infra/terraform/main.tf:497:# TestAccVertexAIFeaturestoreEntitytype_vertexAiFeaturestoreEntitytypeExample -./.ci/infra/terraform/main.tf:498:# TestAccVertexAIFeaturestoreEntitytype_vertexAiFeaturestoreEntitytypeWithBetaFieldsExample -./.ci/infra/terraform/main.tf:499:# TestAccVertexAIFeaturestore_vertexAiFeaturestoreExample -./.ci/infra/terraform/main.tf:500:# TestAccVertexAIFeaturestore_vertexAiFeaturestoreScalingExample -./.ci/infra/terraform/main.tf:501:# TestAccVertexAIFeaturestore_vertexAiFeaturestoreWithBetaFieldsExample -./.ci/magician/cmd/generate_comment_test.go:521: path: "/website/docs/r/firestore_document.html.markdown", -./.ci/magician/cmd/generate_comment_test.go:522: want: "google_firestore_document", -./.ci/magician/cmd/vcr_cassette_update.go:124: // incase nightly run goes wrong. this will be used to restore the cassettes -./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.yaml:14:name: firestore_release_additional -./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.yaml:15:description: Creates a Firebase Rules Release to an additional Cloud Firestore instance -./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.yaml:20:resource: ./firestore_release_additional.tf.tmpl -./tpgtools/overrides/firebaserules/samples/release/meta.yaml:4:# The firestore_release test uses the default Firestore instance, which can have an existing Rules deployment for whatever reason. -./tpgtools/overrides/firebaserules/samples/release/meta.yaml:5:# However, the firestore_release_additional test was sufficient because Rules deployment doesn't care about whether it's the default Firestore instance -./tpgtools/overrides/firebaserules/samples/release/meta.yaml:7: - firestore_release.tf.tmpl -./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.tf.tmpl:2: name = "cloud.firestore/{{database}}" -./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.tf.tmpl:4: ruleset_name = "projects/{{project}}/rulesets/${google_firebaserules_ruleset.firestore.name}" -./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.tf.tmpl:7:resource "google_firebaserules_ruleset" "firestore" { -./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.tf.tmpl:12: content = "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }" -./tpgtools/overrides/firebaserules/samples/release/firestore_release_additional.tf.tmpl:13: name = "firestore.rules" -./tpgtools/overrides/firebaserules/samples/release/firestore_release.yaml:14:name: firestore_release -./tpgtools/overrides/firebaserules/samples/release/firestore_release.yaml:15:description: Creates a Firebase Rules Release to the default Cloud Firestore instance -./tpgtools/overrides/firebaserules/samples/release/firestore_release.yaml:20:resource: ./firestore_release.tf.tmpl -./tpgtools/overrides/firebaserules/samples/release/firestore_release.tf.tmpl:2: name = "cloud.firestore" -./tpgtools/overrides/firebaserules/samples/release/firestore_release.tf.tmpl:4: ruleset_name = "projects/{{project}}/rulesets/${google_firebaserules_ruleset.firestore.name}" -./tpgtools/overrides/firebaserules/samples/release/firestore_release.tf.tmpl:7:resource "google_firebaserules_ruleset" "firestore" { -./tpgtools/overrides/firebaserules/samples/release/firestore_release.tf.tmpl:12: content = "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }" -./tpgtools/overrides/firebaserules/samples/release/firestore_release.tf.tmpl:13: name = "firestore.rules" -./tpgtools/api/firebaserules/samples/basic.ruleset.json:6: "name": "firestore.rules", -./tpgtools/api/firebaserules/samples/basic.ruleset.json:7: "content": "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }", -./tpgtools/api/firebaserules/samples/basic.ruleset.json:13: "services": ["cloud.firestore"] -./tpgtools/api/firebaserules/samples/minimal.ruleset.json:6: "name": "firestore.rules", -./tpgtools/api/firebaserules/samples/minimal.ruleset.json:7: "content": "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }" -./tpgtools/api/firebaserules/samples/minimal_ruleset.yaml:15:description: Creates a minimal Firestore ruleset -./tpgtools/api/firebaserules/samples/basic_ruleset.yaml:15:description: Creates a basic Firestore ruleset -./.github/actions/build-downstream/action.yml:30: restore-keys: | -./.github/workflows/teamcity-pr-checks.yml:33: restore-keys: | -./.github/workflows/build-downstream.yml:35: restore-keys: | -./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype_feature.go.tmpl:17:re := regexp.MustCompile("^projects/(.+)/locations/(.+)/featurestores/(.+)/entityTypes/(.+)$") -./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl:3: "(?P.+)/entityTypes/(?P[^/]+)", -./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl:9:id, err := tpgresource.ReplaceVars(d, config, "{{"{{"}}featurestore{{"}}"}}/entityTypes/{{"{{"}}name{{"}}"}}") -./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl:15:featurestore := d.Get("featurestore").(string) -./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl:17:re := regexp.MustCompile("^projects/(.+)/locations/(.+)/featurestores/(.+)$") -./mmv1/templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl:18:if parts := re.FindStringSubmatch(featurestore); parts != nil { -./mmv1/templates/terraform/post_create/cloud_asset_feed.go.tmpl:1:// Restore the original value of user_project_override. -./mmv1/templates/terraform/iam/example_config_body/vertex_ai_featurestore.tf.tmpl:1: project = google_vertex_ai_featurestore.featurestore.project -./mmv1/templates/terraform/iam/example_config_body/vertex_ai_featurestore.tf.tmpl:2: region = google_vertex_ai_featurestore.featurestore.region -./mmv1/templates/terraform/iam/example_config_body/vertex_ai_featurestore.tf.tmpl:3: featurestore = google_vertex_ai_featurestore.featurestore.name -./mmv1/templates/terraform/iam/example_config_body/vertex_ai_featurestore_entitytype.tf.tmpl:1: featurestore = google_vertex_ai_featurestore_entitytype.entity.featurestore -./mmv1/templates/terraform/iam/example_config_body/vertex_ai_featurestore_entitytype.tf.tmpl:2: entitytype = google_vertex_ai_featurestore_entitytype.entity.name -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:1:// Read the restore variables from obj and remove them, since they do not map to anything in the cluster -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:6:if val, ok := obj["restoreBackupSource"]; ok { -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:8: delete(obj, "restoreBackupSource") -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:10:if val, ok := obj["restoreContinuousBackupSource"]; ok { -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:12: delete(obj, "restoreContinuousBackupSource") -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:14:if val, ok := obj["restoreBackupdrBackupSource"]; ok { -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:16: delete(obj, "restoreBackupdrBackupSource") -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:18:if val, ok := obj["restoreBackupdrPitrSource"]; ok { -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:20: delete(obj, "restoreBackupdrPitrSource") -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:23:restoreClusterRequestBody := make(map[string]interface{}) -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:26: restoreClusterRequestBody["backup_source"] = backupSource -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:29: restoreClusterRequestBody["continuous_backup_source"] = continuousBackupSource -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:31: // If restore from a BackupDR backup, set the backupDrBackupSource -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:32: restoreClusterRequestBody["backupdr_backup_source"] = backupDrBackupSource -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:34: // if point in time restore from a BackupDR data source, set the backupDrPitrSource -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:35: restoreClusterRequestBody["backupdr_pitr_source"] = backupDrPitrSource -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:39: // Use restore API if this is a restore instead of a create cluster call -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:40: url = strings.Replace(url, "clusters?clusterId", "clusters:restore?clusterId", 1) -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:47: restoreClusterRequestBody["cluster"] = cluster -./mmv1/templates/terraform/pre_create/alloydb_cluster.go.tmpl:48: obj = restoreClusterRequestBody -./mmv1/templates/terraform/custom_update/firewall_policy_association_update.go.tmpl:54: //before failing an update, restores the old firewall_policy value to prevent terraform state becoming broken -./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:3: return fmt.Errorf("Error fetching project for RestoreWorkload: %s", err) -./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:12:if v, ok := d.GetOkExists("delete_restored_instance"); ok { -./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:16:// If the caller asked us to keep the restored resource, exit immediately and only clear state. -./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:18: log.Printf("[DEBUG] Skipping deletion of restored resource (deleteRestoredInstance=%v)", deleteInstance) -./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:23:// If deleteRestoredInstance is true, delete the actual restored resource from GCP -./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:41: log.Printf("[DEBUG] Deleting restored resource: %s", resourceId) -./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:60: log.Printf("[WARN] Error deleting restored instance %s: %v", resourceId, deleteErr) -./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:114: log.Printf("[WARN] Error deleting restored disk %s: %v", resourceId, deleteErr) -./mmv1/templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl:162:log.Printf("[DEBUG] Finished deleting RestoreWorkload") -./mmv1/templates/terraform/custom_delete/firestore_field_delete.go.tmpl:1:// Firestore fields cannot be deleted, instead we clear the indexConfig and ttlConfig. -./mmv1/templates/terraform/custom_delete/firestore_field_delete.go.tmpl:13:url, err := tpgresource.ReplaceVars(d, config, "{{"{{"}}FirestoreBasePath{{"}}"}}{{"{{"}}name{{"}}"}}") -./mmv1/templates/terraform/custom_delete/firestore_field_delete.go.tmpl:55:err = FirestoreOperationWaitTime( -./mmv1/templates/terraform/custom_check_destroy/firestore_field.go.tmpl:1:// Firestore fields are not deletable. We consider the field deleted if: -./mmv1/templates/terraform/custom_check_destroy/firestore_field.go.tmpl:7:url, err := tpgresource.ReplaceVarsForTest(config, rs, "{{"{{"}}FirestoreBasePath{{"}}"}}projects/{{"{{"}}project{{"}}"}}/databases/{{"{{"}}database{{"}}"}}/collectionGroups/{{"{{"}}collection{{"}}"}}/fields/{{"{{"}}field{{"}}"}}") -./mmv1/templates/terraform/custom_check_destroy/firestore_field.go.tmpl:20: if e.Code == 403 && strings.Contains(e.Message, "Cloud Firestore API has not been used in project") { -./mmv1/templates/terraform/pre_delete/firestore_database.go.tmpl:2: log.Printf("[WARN] Firestore database %q deletion_policy is not set to 'DELETE', skipping deletion", d.Get("name").(string)) -./mmv1/templates/terraform/pre_delete/firestore_database.go.tmpl:6: return fmt.Errorf("Cannot delete Firestore database %s: Delete Protection is enabled. Set delete_protection_state to DELETE_PROTECTION_DISABLED for this resource and run \"terraform apply\" before attempting to delete it.", d.Get("name").(string)) -./mmv1/templates/terraform/pre_delete/firestore_index.go.tmpl:2: return fmt.Errorf("cannot destroy google_firestore_index resource with id : %q without setting deletion_policy=DELETE and running `terraform apply`", d.Id()) -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:72: return fmt.Errorf("Error fetching project for RestoreWorkload: %s", err) -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:143:// ==================== Compute Instance Restore Properties ==================== -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:144:if v, ok := d.GetOkExists("compute_instance_restore_properties"); ok { -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:797: obj["computeInstanceRestoreProperties"] = props -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:802:// ==================== Disk Restore Properties ==================== -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:803:if v, ok := d.GetOkExists("disk_restore_properties"); ok { -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:887: obj["diskRestoreProperties"] = props -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:896:// ==================== Build Restore URL & Execute Request ==================== -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:897:// Construct the restore URL using base path and url params -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:898:url := fmt.Sprintf("%sprojects/%s/locations/%s/backupVaults/%s/dataSources/%s/backups/%s:restore", -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:907:log.Printf("[DEBUG] Creating RestoreWorkload (restore): %#v", obj) -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:921: return fmt.Errorf("Error creating RestoreWorkload (restore): %s", err) -./mmv1/templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl:1000:log.Printf("[DEBUG] Finished restoring RestoreWorkload %q: %#v", d.Id(), opRes) -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:7:databaseProp, err := expandFirestoreIndexDatabase(d.Get("database"), d, config) -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:13:collectionProp, err := expandFirestoreIndexCollection(d.Get("collection"), d, config) -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:19:queryScopeProp, err := expandFirestoreIndexQueryScope(d.Get("query_scope"), d, config) -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:25:apiScopeProp, err := expandFirestoreIndexApiScope(d.Get("api_scope"), d, config) -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:31:densityProp, err := expandFirestoreIndexDensity(d.Get("density"), d, config) -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:37:multikeyProp, err := expandFirestoreIndexMultikey(d.Get("multikey"), d, config) -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:43:uniqueProp, err := expandFirestoreIndexUnique(d.Get("unique"), d, config) -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:49:fieldsProp, err := expandFirestoreIndexFields(d.Get("fields"), d, config) -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:56:obj, err = resourceFirestoreIndexEncoder(d, meta, obj) -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:61:url, err := tpgresource.ReplaceVars(d, config, "{{"{{"}}FirestoreBasePath{{"}}"}}projects/{{"{{"}}project{{"}}"}}/databases/{{"{{"}}database{{"}}"}}/collectionGroups/{{"{{"}}collection{{"}}"}}/indexes") -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:90: ErrorRetryPredicates: []transport_tpg.RetryErrorPredicateFunc{transport_tpg.FirestoreIndex409Retry}, -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:114: if err := d.Set("name", flattenFirestoreIndexName(index, d, config)); err != nil { -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:121: err = FirestoreOperationWaitTimeWithResponse( -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:131: if err := d.Set("name", flattenFirestoreIndexName(opRes["name"], d, config)); err != nil { -./mmv1/templates/terraform/custom_create/firestore_index.go.tmpl:145:return resourceFirestoreIndexRead(d, meta) -./mmv1/templates/terraform/constants/vertex_ai_featurestore_entitytype.go.tmpl:1:if v, ok := d.GetOk("featurestore"); ok { -./mmv1/templates/terraform/constants/firestore_index.go.tmpl:2: * FirestoreIndex api apends __name__ as an item to the -./mmv1/templates/terraform/constants/firestore_index.go.tmpl:6:func FirestoreIFieldsDiffSuppressFunc(k, old, new string, d tpgresource.TerraformResourceDataChange) bool { -./mmv1/templates/terraform/constants/firestore_index.go.tmpl:34:func firestoreIFieldsDiffSuppress(k, old, new string, d *schema.ResourceData) bool { -./mmv1/templates/terraform/constants/firestore_index.go.tmpl:35: return FirestoreIFieldsDiffSuppressFunc(k, old, new, d) -./mmv1/templates/terraform/encoders/vertex_ai_featurestore_entitytype_feature.go.tmpl:2: re := regexp.MustCompile("^projects/(.+)/locations/(.+)/featurestores/(.+)/entityTypes/(.+)$") -./mmv1/templates/terraform/encoders/vertex_ai_featurestore_entitytype.go.tmpl:1:if v, ok := d.GetOk("featurestore"); ok { -./mmv1/templates/terraform/encoders/vertex_ai_featurestore_entitytype.go.tmpl:2: re := regexp.MustCompile("projects/(.+)/locations/(.+)/featurestores/(.+)$") -./mmv1/templates/terraform/examples/backup_dr_restore_workload_without_delete.tf.tmpl:1:resource "google_backup_dr_restore_workload" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/backup_dr_restore_workload_without_delete.tf.tmpl:7: # Set to false to keep the restored resource in GCP after terraform destroy -./mmv1/templates/terraform/examples/backup_dr_restore_workload_without_delete.tf.tmpl:8: delete_restored_instance = false -./mmv1/templates/terraform/examples/backup_dr_restore_workload_without_delete.tf.tmpl:15: disk_restore_properties { -./mmv1/templates/terraform/examples/firestore_field_match_override.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_field_match_override.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_field_match_override.tf.tmpl:11:resource "google_firestore_field" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_field_match_override.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_index_skip_wait.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_index_skip_wait.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_index_skip_wait.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_index_skip_wait.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_with_beta_fields.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_with_beta_fields.tf.tmpl:16:resource "google_vertex_ai_featurestore_entitytype" "entity" { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_with_beta_fields.tf.tmpl:22: featurestore = google_vertex_ai_featurestore.featurestore.id -./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:33:resource "google_alloydb_cluster" "restored_from_backup" { -./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:34: cluster_id = "{{index $.Vars "alloydb_backup_restored_cluster_name"}}" -./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:39: restore_backup_source { -./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:46:resource "google_alloydb_cluster" "restored_via_pitr" { -./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:47: cluster_id = "{{index $.Vars "alloydb_pitr_restored_cluster_name"}}" -./mmv1/templates/terraform/examples/alloydb_cluster_restore.tf.tmpl:52: restore_continuous_backup_source { -./mmv1/templates/terraform/examples/backup_dr_management_server.tf.tmpl:22: type = "BACKUP_RESTORE" -./mmv1/templates/terraform/examples/eventarc_trigger_with_firestore_source.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/eventarc_trigger_with_firestore_source.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/eventarc_trigger_with_firestore_source.tf.tmpl:16: value = "google.cloud.firestore.document.v1.written" -./mmv1/templates/terraform/examples/eventarc_trigger_with_firestore_source.tf.tmpl:20: value = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_database_data_access.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_database_data_access.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_database_data_access.tf.tmpl:7: firestore_data_access_mode = "DATA_ACCESS_MODE_ENABLED" -./mmv1/templates/terraform/examples/vertex_ai_featurestore_with_beta_fields.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { -./mmv1/templates/terraform/examples/backup_dr_management_server_test.tf.tmpl:8: type = "BACKUP_RESTORE" -./mmv1/templates/terraform/examples/vertex_ai_featurestore.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:14:resource "google_project_service" "firestore" { -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:16: service = "firestore.googleapis.com" -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:22:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:26: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:28: depends_on = [google_project_service.firestore] -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:31:resource "google_firestore_document" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:33: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:39:resource "google_firestore_document" "sub_document" { -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:41: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:42: collection = "${google_firestore_document.{{$.PrimaryResourceId}}.path}/subdocs" -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:47:resource "google_firestore_document" "sub_sub_document" { -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:49: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_document_nested_document.tf.tmpl:50: collection = "${google_firestore_document.sub_document.path}/subsubdocs" -./mmv1/templates/terraform/examples/firestore_field_basic.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_field_basic.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_field_basic.tf.tmpl:11:resource "google_firestore_field" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_field_basic.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:29:resource "google_gke_backup_restore_plan" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:34: restore_config { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:36: namespaced_resource_restore_mode = "FAIL_ON_CONFLICT" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:37: volume_data_restore_policy = "NO_VOLUME_DATA_RESTORATION" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:38: cluster_resource_restore_scope { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:42: volume_data_restore_policy_bindings { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_volume_res.tf.tmpl:43: policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" -./mmv1/templates/terraform/examples/firestore_index_name_descending.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_index_name_descending.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_index_name_descending.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_index_name_descending.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_database_with_tags.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_database_with_tags.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature.tf.tmpl:12:resource "google_vertex_ai_featurestore_entitytype" "entity" { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature.tf.tmpl:17: featurestore = google_vertex_ai_featurestore.featurestore.id -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature.tf.tmpl:20:resource "google_vertex_ai_featurestore_entitytype_feature" "feature" { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature.tf.tmpl:25: entitytype = google_vertex_ai_featurestore_entitytype.entity.id -./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:1:resource "google_backup_dr_restore_workload" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:12: compute_instance_restore_properties { -./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:15: description = "Restored compute instance with advanced configuration" -./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:26: key = "restored" -./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:36: items = ["web", "https-server", "restored"] -./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_full.tf.tmpl:78: value = "#!/bin/bash\necho 'Instance restored' > /tmp/restored.txt" -./mmv1/templates/terraform/examples/firestore_field_complex_field_name.tf.tmpl:1:resource "google_firestore_field" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_cmek_database.tf.tmpl:4:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_cmek_database.tf.tmpl:8: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_cmek_database.tf.tmpl:19: google_kms_crypto_key_iam_binding.firestore_cmek_keyuser -./mmv1/templates/terraform/examples/firestore_cmek_database.tf.tmpl:34:resource "google_kms_crypto_key_iam_binding" "firestore_cmek_keyuser" { -./mmv1/templates/terraform/examples/firestore_cmek_database.tf.tmpl:39: "serviceAccount:service-${data.google_project.project.number}@gcp-sa-firestore.iam.gserviceaccount.com", -./mmv1/templates/terraform/examples/gkebackup_restoreplan_rename_namespace.tf.tmpl:29:resource "google_gke_backup_restore_plan" "rename_ns" { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_rename_namespace.tf.tmpl:34: restore_config { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_rename_namespace.tf.tmpl:38: namespaced_resource_restore_mode = "FAIL_ON_CONFLICT" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_rename_namespace.tf.tmpl:39: volume_data_restore_policy = "REUSE_VOLUME_HANDLE_FROM_BACKUP" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_rename_namespace.tf.tmpl:40: cluster_resource_restore_scope { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:29:resource "google_gke_backup_restore_plan" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:34: restore_config { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:36: namespaced_resource_restore_mode = "FAIL_ON_CONFLICT" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:37: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:38: cluster_resource_restore_scope { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_restore_order.tf.tmpl:42: restore_order { -./mmv1/templates/terraform/examples/firestore_backup_schedule_weekly.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_backup_schedule_weekly.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_backup_schedule_weekly.tf.tmpl:11:resource "google_firestore_backup_schedule" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_backup_schedule_weekly.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype.tf.tmpl:15:resource "google_vertex_ai_featurestore_entitytype" "entity" { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype.tf.tmpl:21: featurestore = google_vertex_ai_featurestore.featurestore.id -./mmv1/templates/terraform/examples/firestore_index_sparse_any.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_index_sparse_any.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_index_sparse_any.tf.tmpl:12:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_index_sparse_any.tf.tmpl:14: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_backup_schedule_daily.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_backup_schedule_daily.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_backup_schedule_daily.tf.tmpl:11:resource "google_firestore_backup_schedule" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_backup_schedule_daily.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/gkebackup_restoreplan_gitops_mode.tf.tmpl:29:resource "google_gke_backup_restore_plan" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_gitops_mode.tf.tmpl:34: restore_config { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_gitops_mode.tf.tmpl:36: namespaced_resource_restore_mode = "MERGE_SKIP_ON_CONFLICT" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_gitops_mode.tf.tmpl:37: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_gitops_mode.tf.tmpl:38: cluster_resource_restore_scope { -./mmv1/templates/terraform/examples/firestore_index_deletion_policy.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_index_deletion_policy.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_index_deletion_policy.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_index_deletion_policy.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_database_enterprise.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_database_enterprise.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_database_data_access_test.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_database_data_access_test.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_database_data_access_test.tf.tmpl:7: firestore_data_access_mode = "DATA_ACCESS_MODE_ENABLED" -./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_basic.tf.tmpl:1:resource "google_backup_dr_restore_workload" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/backup_dr_restore_workload_compute_instance_basic.tf.tmpl:12: compute_instance_restore_properties { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.tmpl:29:resource "google_gke_backup_restore_plan" "transform_rule" { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.tmpl:38: restore_config { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.tmpl:42: namespaced_resource_restore_mode = "DELETE_AND_RESTORE" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.tmpl:43: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_second_transformation.tf.tmpl:44: cluster_resource_restore_scope { -./mmv1/templates/terraform/examples/firestore_index_datastore_mode.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_index_datastore_mode.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_index_datastore_mode.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/gkebackup_restoreplan_rollback_namespace.tf.tmpl:29:resource "google_gke_backup_restore_plan" "rollback_ns" { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_rollback_namespace.tf.tmpl:34: restore_config { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_rollback_namespace.tf.tmpl:38: namespaced_resource_restore_mode = "DELETE_AND_RESTORE" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_rollback_namespace.tf.tmpl:39: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_rollback_namespace.tf.tmpl:40: cluster_resource_restore_scope { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature_with_beta_fields.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature_with_beta_fields.tf.tmpl:13:resource "google_vertex_ai_featurestore_entitytype" "entity" { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature_with_beta_fields.tf.tmpl:19: featurestore = google_vertex_ai_featurestore.featurestore.id -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature_with_beta_fields.tf.tmpl:36:resource "google_vertex_ai_featurestore_entitytype_feature" "feature" { -./mmv1/templates/terraform/examples/vertex_ai_featurestore_entitytype_feature_with_beta_fields.tf.tmpl:42: entitytype = google_vertex_ai_featurestore_entitytype.entity.id -./mmv1/templates/terraform/examples/vertex_ai_featurestore_scaling.tf.tmpl:1:resource "google_vertex_ai_featurestore" "featurestore" { -./mmv1/templates/terraform/examples/firestore_index_unique.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_index_unique.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_index_unique.tf.tmpl:12:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_index_unique.tf.tmpl:14: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_database_in_datastore_mode.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_field_wildcard.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_field_wildcard.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_field_wildcard.tf.tmpl:11: resource "google_firestore_field" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_field_wildcard.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_field_timestamp.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_field_timestamp.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_field_timestamp.tf.tmpl:11:resource "google_firestore_field" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_field_timestamp.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_index_vector.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_index_vector.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_index_vector.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_index_vector.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_cluster_resources.tf.tmpl:29:resource "google_gke_backup_restore_plan" "all_cluster_resources" { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_cluster_resources.tf.tmpl:34: restore_config { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_cluster_resources.tf.tmpl:36: namespaced_resource_restore_mode = "FAIL_ON_CONFLICT" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_cluster_resources.tf.tmpl:37: cluster_resource_restore_scope { -./mmv1/templates/terraform/examples/firestore_user_creds_with_secret_manager.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_user_creds_with_secret_manager.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_user_creds_with_secret_manager.tf.tmpl:12:resource "google_firestore_user_creds" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_user_creds_with_secret_manager.tf.tmpl:14: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_user_creds_with_secret_manager.tf.tmpl:29: secret_data = google_firestore_user_creds.{{$.PrimaryResourceId}}.secure_password -./mmv1/templates/terraform/examples/firestore_default_database_in_datastore_mode.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_index_basic.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_index_basic.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_index_basic.tf.tmpl:11:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_index_basic.tf.tmpl:13: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:14:resource "google_project_service" "firestore" { -./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:16: service = "firestore.googleapis.com" -./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:22:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:26: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:28: depends_on = [google_project_service.firestore] -./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:31:resource "google_firestore_document" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_document_basic.tf.tmpl:33: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_namespaces.tf.tmpl:29:resource "google_gke_backup_restore_plan" "all_ns" { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_namespaces.tf.tmpl:34: restore_config { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_namespaces.tf.tmpl:36: namespaced_resource_restore_mode = "FAIL_ON_CONFLICT" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_namespaces.tf.tmpl:37: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_all_namespaces.tf.tmpl:38: cluster_resource_restore_scope { -./mmv1/templates/terraform/examples/firestore_cmek_database_in_datastore_mode.tf.tmpl:4:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_cmek_database_in_datastore_mode.tf.tmpl:19: google_kms_crypto_key_iam_binding.firestore_cmek_keyuser -./mmv1/templates/terraform/examples/firestore_cmek_database_in_datastore_mode.tf.tmpl:34:resource "google_kms_crypto_key_iam_binding" "firestore_cmek_keyuser" { -./mmv1/templates/terraform/examples/firestore_cmek_database_in_datastore_mode.tf.tmpl:39: "serviceAccount:service-${data.google_project.project.number}@gcp-sa-firestore.iam.gserviceaccount.com", -./mmv1/templates/terraform/examples/firestore_index_mongodb_compatible_scope.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_index_mongodb_compatible_scope.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_index_mongodb_compatible_scope.tf.tmpl:12:resource "google_firestore_index" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_index_mongodb_compatible_scope.tf.tmpl:14: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/gkebackup_restoreplan_protected_application.tf.tmpl:29:resource "google_gke_backup_restore_plan" "rollback_app" { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_protected_application.tf.tmpl:34: restore_config { -./mmv1/templates/terraform/examples/gkebackup_restoreplan_protected_application.tf.tmpl:41: namespaced_resource_restore_mode = "DELETE_AND_RESTORE" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_protected_application.tf.tmpl:42: volume_data_restore_policy = "REUSE_VOLUME_HANDLE_FROM_BACKUP" -./mmv1/templates/terraform/examples/gkebackup_restoreplan_protected_application.tf.tmpl:43: cluster_resource_restore_scope { -./mmv1/templates/terraform/examples/firestore_user_creds_basic.tf.tmpl:1:resource "google_firestore_database" "database" { -./mmv1/templates/terraform/examples/firestore_user_creds_basic.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/firestore_user_creds_basic.tf.tmpl:12:resource "google_firestore_user_creds" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_user_creds_basic.tf.tmpl:14: database = google_firestore_database.database.name -./mmv1/templates/terraform/examples/firestore_database.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_database.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/gkebackup_restorechannel_basic.tf.tmpl:1:resource "google_gke_backup_restore_channel" "basic" { -./mmv1/templates/terraform/examples/firestore_default_database.tf.tmpl:1:resource "google_firestore_database" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/firestore_default_database.tf.tmpl:5: type = "FIRESTORE_NATIVE" -./mmv1/templates/terraform/examples/backup_dr_restore_workload_disk_basic.tf.tmpl:1:resource "google_backup_dr_restore_workload" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/backup_dr_restore_workload_disk_basic.tf.tmpl:12: disk_restore_properties { -./mmv1/templates/terraform/examples/backup_dr_restore_workload_disk_basic.tf.tmpl:17: description = "Restored persistent disk from backup" -./mmv1/templates/terraform/examples/backup_dr_restore_workload_disk_basic.tf.tmpl:21: restored = "true" -./mmv1/templates/terraform/examples/backup_dr_restore_workload_regional_disk.tf.tmpl:1:resource "google_backup_dr_restore_workload" "{{$.PrimaryResourceId}}" { -./mmv1/templates/terraform/examples/backup_dr_restore_workload_regional_disk.tf.tmpl:16: disk_restore_properties { -./mmv1/templates/terraform/examples/backup_dr_restore_workload_regional_disk.tf.tmpl:21: description = "Restored regional persistent disk" -./mmv1/third_party/tgc_next/Makefile:24: git restore go.mod -./mmv1/third_party/tgc_next/Makefile:25: git restore go.sum -./mmv1/third_party/tgc_next/pkg/caiasset/asset.go:49: RestoreDefault *RestoreDefault `json:"restore_default,omitempty"` -./mmv1/third_party/tgc_next/pkg/caiasset/asset.go:130:// RestoreDefault determines if the default values of the `Constraints` are active for the -./mmv1/third_party/tgc_next/pkg/caiasset/asset.go:132:type RestoreDefault struct { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_meta.yaml:17: - field: 'restore_policy.default' -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:49: Note that DEPRIVILEGE action will ignore the REVERT configuration in the restore_policy.`, -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:51: "restore_policy": { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:75: restorePolicy := d.Get("restore_policy").(string) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:85: errExpected := restorePolicy == "REVERT_AND_IGNORE_FAILURE" -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:92: log.Printf("restore policy is %s... ignoring error", restorePolicy) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:102: errExpected := restorePolicy == "REVERT_AND_IGNORE_FAILURE" -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:108: log.Printf("restore policy is %s... ignoring error", restorePolicy) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts.go:185: if d.Get("restore_policy").(string) == "NONE" { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:28: "restore_policy": testAccProjectOrganizationPolicy_restore_defaultTrue, -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:166:func testAccProjectOrganizationPolicy_restore_defaultTrue(t *testing.T) { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:175: Config: testAccProjectOrganizationPolicyConfig_restore_defaultTrue(projectId), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:176: Check: getGoogleProjectOrganizationRestoreDefaultTrue(t, "restore", &cloudresourcemanager.RestoreDefault{}), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:179: ResourceName: "google_project_organization_policy.restore", -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:307:func getGoogleProjectOrganizationRestoreDefaultTrue(t *testing.T, n string, policyDefault *cloudresourcemanager.RestoreDefault) resource.TestCheckFunc { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:315: if !reflect.DeepEqual(policy.RestoreDefault, policyDefault) { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:316: return fmt.Errorf("Expected the restore default '%s', instead denied, %s", policyDefault, policy.RestoreDefault) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:403:func testAccProjectOrganizationPolicyConfig_restore_defaultTrue(pid string) string { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:405:resource "google_project_organization_policy" "restore" { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_test.go:409: restore_policy { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:36: resource.TestCheckResourceAttrSet(resourceName, "restore_policy"), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:67: restorePolicy := "REVERT" -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:75: Config: testAccCheckGoogleProjectDefaultServiceAccountsAdvanced(org, project, billingAccount, action, restorePolicy), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:96: restorePolicy := "REVERT" -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:104: Config: testAccCheckGoogleProjectDefaultServiceAccountsAdvanced(org, project, billingAccount, action, restorePolicy), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:125: restorePolicy := "REVERT_AND_IGNORE_FAILURE" -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:132: Config: testAccCheckGoogleProjectDefaultServiceAccountsAdvanced(org, project, billingAccount, action, restorePolicy), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:153: restorePolicy := "REVERT" -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:161: Config: testAccCheckGoogleProjectDefaultServiceAccountsAdvanced(org, project, billingAccount, action, restorePolicy), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:175:func testAccCheckGoogleProjectDefaultServiceAccountsAdvanced(org, project, billingAccount, action, restorePolicy string) string { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:196: restore_policy = "%s" -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_test.go:198:`, project, project, org, billingAccount, action, restorePolicy) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:15: // Although the API suggests that boolean_policy, list_policy, or restore_policy must be set, -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:130: "restore_policy": { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:134: Description: `A restore policy is a constraint to restore the default policy.`, -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:140: Description: `May only be set to true. If set, then the default Policy is restored.`, -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:231: if err := d.Set("restore_policy", flattenRestoreOrganizationPolicy(policy.RestoreDefault)); err != nil { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:232: return fmt.Errorf("Error setting restore_policy: %s", err) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:298: restorePolicy := d.Get("restore_policy").([]interface{}) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:300: return len(listPolicy)+len(booleanPolicy)+len(restorePolicy) == 0 -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:317: restoreDefault, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:329: RestoreDefault: restoreDefault, -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:355:func flattenRestoreOrganizationPolicy(restore_policy *cloudresourcemanager.RestoreDefault) []map[string]interface{} { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:358: if restore_policy == nil { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:380:func expandRestoreOrganizationPolicy(configured []interface{}) (*cloudresourcemanager.RestoreDefault, error) { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:385: restoreDefaultMap := configured[0].(map[string]interface{}) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:386: default_value := restoreDefaultMap["default"].(bool) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:389: return &cloudresourcemanager.RestoreDefault{}, nil -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy.go:392: return nil, fmt.Errorf("Invalid value for restore_policy. Expecting default = true") -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy.go:113: if err := d.Set("restore_policy", flattenRestoreOrganizationPolicy(policy.RestoreDefault)); err != nil { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy.go:114: return fmt.Errorf("Error setting restore_policy: %s", err) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy.go:174: restoreDefault, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy.go:186: RestoreDefault: restoreDefault, -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy_meta.yaml:17: - field: 'restore_policy.default' -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_default_service_accounts_meta.yaml:9: - field: 'restore_policy' -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:155:func TestAccFolderOrganizationPolicy_restore_defaultTrue(t *testing.T) { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:166: Config: testAccFolderOrganizationPolicy_restore_defaultTrue(org, folder), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:167: Check: getGoogleFolderOrganizationRestoreDefaultTrue(t, "restore", &cloudresourcemanager.RestoreDefault{}), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:170: ResourceName: "google_folder_organization_policy.restore", -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:273:func getGoogleFolderOrganizationRestoreDefaultTrue(t *testing.T, n string, policyDefault *cloudresourcemanager.RestoreDefault) resource.TestCheckFunc { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:281: if !reflect.DeepEqual(policy.RestoreDefault, policyDefault) { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:282: return fmt.Errorf("Expected the restore default '%s', instead denied, %s", policyDefault, policy.RestoreDefault) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:394:func testAccFolderOrganizationPolicy_restore_defaultTrue(org, folder string) string { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:402:resource "google_folder_organization_policy" "restore" { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_test.go:406: restore_policy { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_folder_organization_policy_meta.yaml:17: - field: 'restore_policy.default' -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy.go:110: if err := d.Set("restore_policy", flattenRestoreOrganizationPolicy(policy.RestoreDefault)); err != nil { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy.go:111: return fmt.Errorf("Error setting restore_policy: %s", err) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy.go:171: restore_default, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_project_organization_policy.go:183: RestoreDefault: restore_default, -./mmv1/third_party/terraform/services/resourcemanager/data_source_google_folder_organization_policy_test.go:43: restore_policy { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:33: "restore_policy": testAccOrganizationPolicy_restore_defaultTrue, -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:193:func testAccOrganizationPolicy_restore_defaultTrue(t *testing.T) { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:201: Config: testAccOrganizationPolicyConfig_restore_defaultTrue(org), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:202: Check: testAccCheckGoogleOrganizationRestoreDefaultTrue(t, "restore", &cloudresourcemanager.RestoreDefault{}), -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:205: ResourceName: "google_organization_policy.restore", -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:308:func testAccCheckGoogleOrganizationRestoreDefaultTrue(t *testing.T, n string, policyDefault *cloudresourcemanager.RestoreDefault) resource.TestCheckFunc { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:316: if !reflect.DeepEqual(policy.RestoreDefault, policyDefault) { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:317: return fmt.Errorf("Expected the restore default '%s', instead denied, %s", policyDefault, policy.RestoreDefault) -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:425:func testAccOrganizationPolicyConfig_restore_defaultTrue(org string) string { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:427:resource "google_organization_policy" "restore" { -./mmv1/third_party/terraform/services/resourcemanager/resource_google_organization_policy_test.go:431: restore_policy { -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:1:package firestore_test -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:12:func TestAccDatasourceFirestoreDocument_simple(t *testing.T) { -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:26: Config: testAccDatasourceFirestoreDocument_simple(randomSuffix, orgId, "doc-id-1", "val1"), -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:28: resource.TestCheckResourceAttr("data.google_firestore_document.instance", "fields", -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:30: resource.TestCheckResourceAttr("data.google_firestore_document.instance", -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:32: resource.TestCheckResourceAttr("data.google_firestore_document.instance", -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:34: resource.TestCheckResourceAttr("data.google_firestore_document.instance", -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:36: resource.TestCheckResourceAttr("data.google_firestore_document.instance", -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:38: resource.TestCheckResourceAttrSet("data.google_firestore_document.instance", "path"), -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:39: resource.TestCheckResourceAttrSet("data.google_firestore_document.instance", "create_time"), -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:40: resource.TestCheckResourceAttrSet("data.google_firestore_document.instance", "update_time"), -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:47:func testAccDatasourceFirestoreDocument_simple_basicDeps(randomSuffix, orgId string) string { -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:62:resource "google_project_service" "firestore" { -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:64: service = "firestore.googleapis.com" -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:70:resource "google_firestore_database" "database" { -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:74: type = "FIRESTORE_NATIVE" -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:76: depends_on = [google_project_service.firestore] -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:81:func testAccDatasourceFirestoreDocument_simple(randomSuffix, orgId, name, val string) string { -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:82: return testAccDatasourceFirestoreDocument_simple_basicDeps(randomSuffix, orgId) + fmt.Sprintf(` -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:83:resource "google_firestore_document" "instance" { -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:85: database = google_firestore_database.database.name -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:91:data "google_firestore_document" "instance" { -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:92: project = google_firestore_document.instance.project -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:93: database = google_firestore_document.instance.database -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:94: collection = google_firestore_document.instance.collection -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document_test.go:95: document_id = google_firestore_document.instance.document_id -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:1:package firestore_test -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:11:func TestAccFirestoreDatabase_tags(t *testing.T) { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:15: tagKey := acctest.BootstrapSharedTestProjectTagKey(t, "firestore-databases-tagkey", map[string]interface{}{}) -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:19: "tagValue": acctest.BootstrapSharedTestProjectTagValue(t, "firestore-databases-tagvalue", tagKey), -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:26: CheckDestroy: testAccCheckFirestoreDatabaseDestroyProducer(t), -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:29: Config: testAccFirestoreDatabaseTags(context), -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:32: ResourceName: "google_firestore_database.database", -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:41:func testAccFirestoreDatabaseTags(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:43: resource "google_firestore_database" "database" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_test.go:46: type = "FIRESTORE_NATIVE" -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:1:package firestore_test -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:12:func TestAccFirestoreDocument_update(t *testing.T) { -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:26: Config: testAccFirestoreDocument_update(randomSuffix, orgId, "OPTIMISTIC", "val1"), -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:29: ResourceName: "google_firestore_document.instance", -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:34: Config: testAccFirestoreDocument_update(randomSuffix, orgId, "OPTIMISTIC", "val2"), -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:37: ResourceName: "google_firestore_document.instance", -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:45:func testAccFirestoreDocument_update_basicDeps(randomSuffix, orgId string) string { -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:60:resource "google_project_service" "firestore" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:62: service = "firestore.googleapis.com" -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:68:resource "google_firestore_database" "database" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:72: type = "FIRESTORE_NATIVE" -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:74: depends_on = [google_project_service.firestore] -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:79:func testAccFirestoreDocument_update(randomSuffix, orgId, name, val string) string { -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:80: return testAccFirestoreDocument_update_basicDeps(randomSuffix, orgId) + fmt.Sprintf(` -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:81:resource "google_firestore_document" "instance" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_document_test.go:83: database = google_firestore_database.database.name -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:1:package firestore_test -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:12:func TestAccFirestoreField_firestoreFieldUpdateAddIndexExample(t *testing.T) { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:20: testAccFirestoreField_runUpdateTest(testAccFirestoreField_firestoreFieldUpdateAddIndexExample(context), true, t, context) -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:23:func TestAccFirestoreField_firestoreFieldUpdateAddTTLExample(t *testing.T) { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:31: testAccFirestoreField_runUpdateTest(testAccFirestoreField_firestoreFieldUpdateAddTTLExample(context), false, t, context) -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:34:func testAccFirestoreField_runUpdateTest(updateConfig string, useOwnProject bool, t *testing.T, context map[string]interface{}) { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:43: CheckDestroy: testAccCheckFirestoreFieldDestroyProducer(t), -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:46: Config: testAccFirestoreField_firestoreFieldUpdateInitialExample(context, useOwnProject), -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:49: ResourceName: fmt.Sprintf("google_firestore_field.%s", resourceName), -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:57: ResourceName: fmt.Sprintf("google_firestore_field.%s", resourceName), -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:62: Config: testAccFirestoreField_firestoreFieldUpdateInitialExample(context, useOwnProject), -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:65: ResourceName: fmt.Sprintf("google_firestore_field.%s", resourceName), -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:73:func testAccFirestoreField_update_basicDeps(context map[string]interface{}, useOwnProject bool) string { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:90:resource "google_project_service" "firestore" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:92: service = "firestore.googleapis.com" -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:98:resource "google_firestore_database" "database" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:102: type = "FIRESTORE_NATIVE" -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:106: google_project_service.firestore, -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:113:resource "google_firestore_database" "database" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:117: type = "FIRESTORE_NATIVE" -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:126:func testAccFirestoreField_firestoreFieldUpdateInitialExample(context map[string]interface{}, useOwnProject bool) string { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:127: return testAccFirestoreField_update_basicDeps(context, useOwnProject) + acctest.Nprintf(` -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:128:resource "google_firestore_field" "%{resource_name}" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:129: project = google_firestore_database.database.project -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:130: database = google_firestore_database.database.name -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:147:func testAccFirestoreField_firestoreFieldUpdateAddTTLExample(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:149: return testAccFirestoreField_update_basicDeps(context, false) + acctest.Nprintf(` -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:150:resource "google_firestore_field" "%{resource_name}" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:151: project = google_firestore_database.database.project -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:152: database = google_firestore_database.database.name -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:171:func testAccFirestoreField_firestoreFieldUpdateAddIndexExample(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:172: return testAccFirestoreField_update_basicDeps(context, true) + acctest.Nprintf(` -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:173:resource "google_firestore_field" "%{resource_name}" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:174: project = google_firestore_database.database.project -./mmv1/third_party/terraform/services/firestore/resource_firestore_field_test.go:175: database = google_firestore_database.database.name -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:1:package firestore -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:16: sweeper.AddTestSweepersLegacy("FirestoreDatabase", testSweepFirestoreDatabase) -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:20:func testSweepFirestoreDatabase(region string) error { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:21: resourceName := "FirestoreDatabase" -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:50: listTemplate := strings.Split("https://firestore.googleapis.com/v1/projects/{{project}}/databases", "?")[0] -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_sweeper.go:94: deleteTemplate := "https://firestore.googleapis.com/v1/projects/{{project}}/databases/{{name}}" -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:1:package firestore -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:11:func DataSourceGoogleFirestoreDocument() *schema.Resource { -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:12: dsSchema := tpgresource.DatasourceSchemaFromResourceSchema(ResourceFirestoreDocument().Schema) -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:19: Read: DataSourceGoogleFirestoreDocumentRead, -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:24:func DataSourceGoogleFirestoreDocumentRead(d *schema.ResourceData, meta interface{}) error { -./mmv1/third_party/terraform/services/firestore/data_source_google_firestore_document.go:41: err = resourceFirestoreDocumentRead(d, meta) -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:1:package firestore_test -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:12:func TestAccFirestoreDatabase_updateConcurrencyMode(t *testing.T) { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:26: Config: testAccFirestoreDatabase_concurrencyMode(projectId, randomSuffix, "OPTIMISTIC"), -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:29: ResourceName: "google_firestore_database.database", -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:35: Config: testAccFirestoreDatabase_concurrencyMode(projectId, randomSuffix, "PESSIMISTIC"), -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:38: ResourceName: "google_firestore_database.database", -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:47:func TestAccFirestoreDatabase_updatePitrEnablement(t *testing.T) { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:61: Config: testAccFirestoreDatabase_pitrEnablement(projectId, randomSuffix, "POINT_IN_TIME_RECOVERY_ENABLED"), -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:64: ResourceName: "google_firestore_database.database", -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:70: Config: testAccFirestoreDatabase_pitrEnablement(projectId, randomSuffix, "POINT_IN_TIME_RECOVERY_DISABLED"), -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:73: ResourceName: "google_firestore_database.database", -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:82:func TestAccFirestoreDatabase_updateDeleteProtectionState(t *testing.T) { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:96: Config: testAccFirestoreDatabase_deleteProtectionState(projectId, randomSuffix, "DELETE_PROTECTION_ENABLED"), -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:99: ResourceName: "google_firestore_database.database", -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:105: Config: testAccFirestoreDatabase_deleteProtectionState(projectId, randomSuffix, "DELETE_PROTECTION_DISABLED"), -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:108: ResourceName: "google_firestore_database.database", -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:117:func testAccFirestoreDatabase_concurrencyMode(projectId string, randomSuffix string, concurrencyMode string) string { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:119:resource "google_firestore_database" "database" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:129:func testAccFirestoreDatabase_pitrEnablement(projectId string, randomSuffix string, pointInTimeRecoveryEnablement string) string { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:131:resource "google_firestore_database" "database" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:141:func testAccFirestoreDatabase_deleteProtectionState(projectId string, randomSuffix string, deleteProtectionState string) string { -./mmv1/third_party/terraform/services/firestore/resource_firestore_database_update_test.go:143:resource "google_firestore_database" "database" { -./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:1:package firestore_test -./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:7: "github.com/hashicorp/terraform-provider-google/google/services/firestore" -./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:11:func TestUnitFirestoreIndex_firestoreIFieldsDiffSuppress(t *testing.T) { -./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:12: for _, tc := range firestoreIndexDiffSuppressTestCases { -./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:17:type FirestoreIndexDiffSuppressTestCase struct { -./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:24:var firestoreIndexDiffSuppressTestCases = []FirestoreIndexDiffSuppressTestCase{ -./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:95:func (tc *FirestoreIndexDiffSuppressTestCase) Test(t *testing.T) { -./mmv1/third_party/terraform/services/firestore/resource_firestore_index_test.go:122: suppressed := firestore.FirestoreIFieldsDiffSuppressFunc(key, fmt.Sprintf("%v", oldValue), fmt.Sprintf("%v", newValue), mockResourceDiff) -./mmv1/third_party/terraform/services/appengine/resource_app_engine_application.go:86: "CLOUD_FIRESTORE", -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:11:func TestAccGKEBackupRestorePlan_update(t *testing.T) { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:27: Config: testAccGKEBackupRestorePlan_full(context), -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:30: ResourceName: "google_gke_backup_restore_plan.restore_plan", -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:36: Config: testAccGKEBackupRestorePlan_update(context), -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:39: ResourceName: "google_gke_backup_restore_plan.restore_plan", -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:48:func testAccGKEBackupRestorePlan_full(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:51: name = "tf-test-restore-plan%{random_suffix}-cluster" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:68: name = "tf-test-restore-plan%{random_suffix}" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:78:resource "google_gke_backup_restore_plan" "restore_plan" { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:79: name = "tf-test-restore-plan%{random_suffix}" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:83: restore_config { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:85: namespaced_resource_restore_mode = "MERGE_SKIP_ON_CONFLICT" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:86: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:87: cluster_resource_restore_scope { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:91: restore_order { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:113: volume_data_restore_policy_bindings { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:114: policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:122:func testAccGKEBackupRestorePlan_update(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:125: name = "tf-test-restore-plan%{random_suffix}-cluster" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:142: name = "tf-test-restore-plan%{random_suffix}" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:152:resource "google_gke_backup_restore_plan" "restore_plan" { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:153: name = "tf-test-restore-plan%{random_suffix}" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:157: restore_config { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:159: namespaced_resource_restore_mode = "MERGE_REPLACE_VOLUME_ON_CONFLICT" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:160: volume_data_restore_policy = "RESTORE_VOLUME_DATA_FROM_BACKUP" -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:161: cluster_resource_restore_scope { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:165: restore_order { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_plan_test.go:197: volume_data_restore_policy_bindings { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:12:func TestAccGKEBackupRestoreChannel_update(t *testing.T) { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:24: CheckDestroy: testAccCheckGKEBackupRestoreChannelDestroyProducer(t), -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:27: Config: testAccGKEBackupRestoreChannel_basic(context), -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:30: ResourceName: "google_gke_backup_restore_channel.basic", -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:39:func testAccGKEBackupRestoreChannel_basic(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/gkebackup/resource_gke_backup_restore_channel_test.go:41:resource "google_gke_backup_restore_channel" "basic" { -./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:11:func TestAccFilestoreInstance_restore(t *testing.T) { -./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:15: restoreInstanceName := fmt.Sprintf("tf-fs-inst-restored-%d", acctest.RandInt(t)) -./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:24: Config: testAccFilestoreInstanceRestore_restore(srcInstancetName, restoreInstanceName, backupName), -./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:36:func testAccFilestoreInstanceRestore_restore(srcInstancetName, restoreInstanceName, backupName string) string { -./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:56: resource "google_filestore_instance" "instance_restored" { -./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:84: `, srcInstancetName, restoreInstanceName, backupName) -./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:87:func TestAccFilestoreInstance_restoreBackupDR(t *testing.T) { -./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:105: Config: testAccFilestoreInstance_restoreBackupDR(instanceID, backupVaultID, backupVault, location), -./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:117:func testAccFilestoreInstance_restoreBackupDR(instanceID string, backupVaultID string, backupVaultName string, location string) string { -./mmv1/third_party/terraform/services/filestore/resource_filestore_restore_test.go:194: name = "tf-restored-instance-%{instance_id}" -./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:24:const testFirestoreTriggerPath = "./test-fixtures/firestore_trigger.js" -./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:342:func TestAccCloudFunctionsFunction_firestore(t *testing.T) { -./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:349: zipFilePath := acctest.CreateZIPArchiveForCloudFunctionSource(t, testFirestoreTriggerPath) -./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:358: Config: testAccCloudFunctionsFunction_firestore(functionName, bucketName, zipFilePath), -./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:1046:func testAccCloudFunctionsFunction_firestore(functionName string, bucketName string, -./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:1068: entry_point = "helloFirestore" -./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.tmpl:1070: event_type = "providers/cloud.firestore/eventTypes/document.write" -./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function.go:1120: case strings.HasPrefix(eventType, "providers/cloud.firestore/eventTypes/"): -./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function.go:1121: // Firestore doesn't not yet support multiple databases, so "(default)" is assumed. -./mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function.go:1122: // https://cloud.google.com/functions/docs/calling/cloud-firestore#deploying_your_function -./mmv1/third_party/terraform/services/cloudfunctions/test-fixtures/firestore_trigger.js:2: * Background Cloud Function to be triggered by Firestore. -./mmv1/third_party/terraform/services/cloudfunctions/test-fixtures/firestore_trigger.js:7:exports.helloFirestore = function (event, callback) { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:19:func TestAccBackupDRRestoreWorkload_computeInstanceBasic(t *testing.T) { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:49: Config: testAccBackupDRRestoreWorkload_computeInstanceBasic(context), -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:55:func TestAccBackupDRRestoreWorkload_computeInstanceWithProperties(t *testing.T) { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:85: Config: testAccBackupDRRestoreWorkload_computeInstanceWithProperties(context), -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:91:func TestAccBackupDRRestoreWorkload_diskBasic(t *testing.T) { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:121: Config: testAccBackupDRRestoreWorkload_diskBasic(context), -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:127:func TestAccBackupDRRestoreWorkload_regionalDisk(t *testing.T) { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:157: Config: testAccBackupDRRestoreWorkload_regionalDisk(context), -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:163:func TestAccBackupDRRestoreWorkload_deleteInstanceFalse(t *testing.T) { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:193: Config: testAccBackupDRRestoreWorkload_deleteInstanceFalse(context), -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:199:func testAccBackupDRRestoreWorkload_computeInstanceBasic(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:201:resource "google_backup_dr_restore_workload" "restore" { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:213: compute_instance_restore_properties { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:214: name = "tf-test-restored-instance-%{random_suffix}" -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:221:func testAccBackupDRRestoreWorkload_computeInstanceWithProperties(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:223:resource "google_backup_dr_restore_workload" "restore" { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:234: compute_instance_restore_properties { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:235: name = "tf-test-restored-instance-%{random_suffix}" -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:237: description = "Restored instance with custom properties" -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:248: key = "restored" -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:258: items = ["web", "https-server", "restored"] -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:300: value = "#!/bin/bash\necho 'Instance restored' > /tmp/restored.txt" -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:312:func testAccBackupDRRestoreWorkload_diskBasic(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:314:resource "google_backup_dr_restore_workload" "restore" { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:325: disk_restore_properties { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:326: name = "tf-test-restored-disk-%{random_suffix}" -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:330: description = "Restored disk from backup" -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:336:func testAccBackupDRRestoreWorkload_regionalDisk(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:338:resource "google_backup_dr_restore_workload" "restore" { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:353: disk_restore_properties { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:354: name = "tf-test-restored-regional-disk-%{random_suffix}" -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:362:func testAccBackupDRRestoreWorkload_deleteInstanceFalse(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:364:resource "google_backup_dr_restore_workload" "restore" { -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:370: delete_restored_instance = false -./mmv1/third_party/terraform/services/backupdr/resource_backup_dr_restore_workload_test.go:377: compute_instance_restore_properties { -./mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_management_server_test.go:84: type = "BACKUP_RESTORE" -./mmv1/third_party/terraform/services/binaryauthorization/resource_binary_authorization_policy_test.go:39: // that it was restored to the default. -./mmv1/third_party/terraform/services/binaryauthorization/resource_binary_authorization_policy_test.go:70: // that it was restored to the default. -./mmv1/third_party/terraform/services/binaryauthorization/resource_binary_authorization_policy_test.go:102: // that it was restored to the default. -./mmv1/third_party/terraform/services/binaryauthorization/resource_binary_authorization_policy_test.go:160: // that it was restored to the default. -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:261: AtLeastOneOf: []string{"settings", "clone", "point_in_time_restore_context"}, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:459: Description: `The number of days of transaction logs we retain for point in time restore, from 1-7. (For PostgreSQL Enterprise Plus instances, from 1 to 35.)`, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1341: "restore_backup_context": { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1350: Description: `The ID of the backup run to restore from.`, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1368: Description: `The name of the BackupDR backup to restore from.`, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1374: AtLeastOneOf: []string{"settings", "clone", "point_in_time_restore_context"}, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1382: Description: `The name of the instance from which the point in time should be restored.`, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1395: Description: `The timestamp of the point in time that should be restored.`, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1424: "point_in_time_restore_context": { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1428: AtLeastOneOf: []string{"settings", "clone", "point_in_time_restore_context"}, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1429: Description: `Configuration for creating a new instance using point-in-time-restore from backupdr backup.`, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1442: Description: `The date and time to which you want to restore the instance.`, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1457: Description: `The name of the target instance to restore to.`, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1576: pointInTimeRestoreContext := expandPointInTimeRestoreContext(d.Get("point_in_time_restore_context").([]interface{})) -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1647: } else if pointInTimeRestoreContext != nil { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1649: op, operr = config.NewSqlAdminClient(userAgent).Instances.PointInTimeRestore(parent, pointInTimeRestoreContext).Do() -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1737: if len(s.([]interface{})) != 0 && (cloneContext != nil || pointInTimeRestoreContext != nil) && desiredSettings != nil { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1768: // Perform a backup restore if the backup context exists -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1769: if r, ok := d.GetOk("restore_backup_context"); ok { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1771: err = sqlDatabaseInstanceRestoreFromBackup(d, config, userAgent, project, name, r, "") -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:1777: err = sqlDatabaseInstanceRestoreFromBackup(d, config, userAgent, project, name, nil, b) -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:2721: // Perform a backup restore if the backup context exists and has changed -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:2722: if r, ok := d.GetOk("restore_backup_context"); ok { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:2723: if d.HasChange("restore_backup_context") { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:2724: err = sqlDatabaseInstanceRestoreFromBackup(d, config, userAgent, project, d.Get("name").(string), r, "") -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:2731: err = sqlDatabaseInstanceRestoreFromBackup(d, config, userAgent, project, d.Get("name").(string), nil, b) -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3454:func expandRestoreBackupContext(configured []interface{}) *sqladmin.RestoreBackupContext { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3460: return &sqladmin.RestoreBackupContext{ -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3467:func sqlDatabaseInstanceRestoreFromBackup(d *schema.ResourceData, config *transport_tpg.Config, userAgent, project, instanceId string, r interface{}, backupdrBackup interface{}) error { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3468: log.Printf("[DEBUG] Initiating SQL database instance backup restore") -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3470: backupRequest := &sqladmin.InstancesRestoreBackupRequest{} -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3473: restoreContext := r.([]interface{}) -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3474: backupRequest.RestoreBackupContext = expandRestoreBackupContext(restoreContext) -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3482: op, operr = config.NewSqlAdminClient(userAgent).Instances.RestoreBackup(project, instanceId, backupRequest).Do() -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3489: return fmt.Errorf("Error, failed to restore instance from backup %s: %s", instanceId, err) -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3492: err = SqlAdminOperationWaitTime(config, op, project, "Restore Backup", userAgent, d.Timeout(schema.TimeoutUpdate)) -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3500:func expandPointInTimeRestoreContext(configured []interface{}) *sqladmin.PointInTimeRestoreContext { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3506: return &sqladmin.PointInTimeRestoreContext{ -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3515:func sqlDatabaseInstancePointInTimeRestore(d *schema.ResourceData, config *transport_tpg.Config, userAgent, project, instanceId string, r interface{}) error { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3516: log.Printf("[DEBUG] Initiating GCBDR managed SQL database instance backup point in time restore") -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3517: pointInTimeRestoreContext := r.([]interface{}) -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3523: op, operr = config.NewSqlAdminClient(userAgent).Instances.PointInTimeRestore(parent, expandPointInTimeRestoreContext(pointInTimeRestoreContext)).Do() -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3530: return fmt.Errorf("Error, failed to point in restore an instance %s: %s", instanceId, err) -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl:3533: err = SqlAdminOperationWaitTime(config, op, project, "Point in Time Restore", userAgent, d.Timeout(schema.TimeoutUpdate)) -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1436: Config: testAccSqlDatabaseInstance_restoreFromBackup(context), -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1442: ImportStateVerifyIgnore: []string{"deletion_protection", "restore_backup_context"}, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1515: Config: testAccSqlDatabaseInstance_restoreFromBackup(context), -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1521: ImportStateVerifyIgnore: []string{"deletion_protection", "restore_backup_context"}, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1823:func TestAccSqlDatabaseInstance_pointInTimeRestore(t *testing.T) { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1850: Config: testAccSqlDatabaseInstance_pointInTimeRestoreContext(context), -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1856: ImportStateVerifyIgnore: []string{"deletion_protection", "point_in_time_restore_context"}, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1862:func TestAccSqlDatabaseInstance_pointInTimeRestoreWithSettings(t *testing.T) { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1889: Config: testAccSqlDatabaseInstance_pointInTimeRestoreContextWithSettings(context), -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:1895: ImportStateVerifyIgnore: []string{"deletion_protection", "point_in_time_restore_context"}, -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8043:func testAccSqlDatabaseInstance_restoreFromBackup(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8057: restore_backup_context { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8064: ignore_changes = [restore_backup_context[0].backup_run_id] -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8416:func testAccSqlDatabaseInstance_pointInTimeRestoreContext(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8494:// for a point in time restore operation to succeed, the source instance must be in active state and have logs -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8514: point_in_time_restore_context { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8521: ignore_changes = [point_in_time_restore_context[0].point_in_time] -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8531:func testAccSqlDatabaseInstance_pointInTimeRestoreContextWithSettings(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8609:// for a point in time restore operation to succeed, the source instance must be in active state and have logs -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8636: point_in_time_restore_context { -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl:8643: ignore_changes = [point_in_time_restore_context[0].point_in_time] -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:43: - field: 'point_in_time_restore_context.allocated_ip_range' -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:44: - field: 'point_in_time_restore_context.datasource' -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:45: - field: 'point_in_time_restore_context.target_instance' -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:46: - field: 'point_in_time_restore_context.point_in_time' -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:47: - field: 'point_in_time_restore_context.preferred_zone' -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:81: - field: 'restore_backup_context.backup_run_id' -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:82: - field: 'restore_backup_context.instance_id' -./mmv1/third_party/terraform/services/sql/resource_sql_database_instance_meta.yaml.tmpl:83: - field: 'restore_backup_context.project' -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:13: * Restore tests are kept separate from other cluster tests because they require an instance and a backup to exist -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:16:// Restore tests depend on instances and backups being taken, which can take up to 10 minutes. Since the instance doesn't change in between tests, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:18:func TestAccAlloydbCluster_restore(t *testing.T) { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:43: ExpectError: regexp.MustCompile("\"restore_continuous_backup_source\": conflicts with restore_backup_source"), -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:51: // Validate backup restore succeeds -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:52: Config: testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackup(context), -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:55: ResourceName: "google_alloydb_cluster.restored_from_backup", -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:58: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "cluster_id", "location", "restore_backup_source"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:62: Config: testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime(context), -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:65: ResourceName: "google_alloydb_cluster.restored_from_point_in_time", -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:68: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "cluster_id", "location", "restore_continuous_backup_source"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:72: Config: testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_AllowedUpdate(context), -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:75: Config: testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_NotAllowedUpdate(context), -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:79: Config: testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_AllowDestroy(context), -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:123:// Cannot restore if multiple sources are present -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:154:resource "google_alloydb_cluster" "restored" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:155: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:163: restore_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:166: restore_continuous_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:186:// Cannot restore if multiple sources are present -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:217:resource "google_alloydb_cluster" "restored" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:218: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:228: restore_continuous_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:247:func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackup(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:277:resource "google_alloydb_cluster" "restored_from_backup" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:278: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:286: restore_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:305:// The source cluster, instance, and backup should all exist prior to this being invoked. Otherwise the PITR restore will not succeed -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:307:func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:337:resource "google_alloydb_cluster" "restored_from_backup" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:338: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:346: restore_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:357:resource "google_alloydb_cluster" "restored_from_point_in_time" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:358: cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:366: restore_continuous_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:386:// This updates the PITR and backup restored clusters by adding a continuous backup configuration. This can be done in place -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:388:func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_AllowedUpdate(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:418:resource "google_alloydb_cluster" "restored_from_backup" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:419: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:427: restore_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:443:resource "google_alloydb_cluster" "restored_from_point_in_time" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:444: cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:452: restore_continuous_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:479:func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_NotAllowedUpdate(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:516:resource "google_alloydb_cluster" "restored_from_backup" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:517: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:525: restore_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:543:resource "google_alloydb_cluster" "restored_from_point_in_time" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:544: cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:552: restore_continuous_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:553: cluster = google_alloydb_cluster.restored_from_backup.name -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:577:// The source cluster, instance, and backup should all exist prior to this being invoked. Otherwise the PITR restore will not succeed -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:579:func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFromPointInTime_AllowDestroy(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:608:resource "google_alloydb_cluster" "restored_from_backup" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:609: cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:617: restore_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:624:resource "google_alloydb_cluster" "restored_from_point_in_time" { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:625: cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:633: restore_continuous_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:649:func TestAccAlloydbCluster_restoreFromBackupDrBackup(t *testing.T) { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:675: Config: testAccAlloydbCluster_restoreFromBackupDrBackup(context), -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:685: ImportStateVerifyIgnore: []string{"deletion_protection", "restore_backupdr_backup_source"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:688: Config: testAccAlloydbCluster_restoreFromBackupDrBackup_AllowedUpdate(context), -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:695: Config: testAccAlloydbCluster_pointInTimeRestoreFromBackupDrDataSource(context), -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:701:func testAccAlloydbCluster_restoreFromBackupDrBackup(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:783: cluster_id = "restore-from-backupdr-backup-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:792: restore_backupdr_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:802:func testAccAlloydbCluster_restoreFromBackupDrBackup_AllowedUpdate(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:884: cluster_id = "restore-from-backupdr-backup-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:893: restore_backupdr_backup_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:908:func testAccAlloydbCluster_pointInTimeRestoreFromBackupDrDataSource(context map[string]interface{}) string { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:988: cluster_id = "pitr-restore-from-backupdr-backup-%{random_suffix}" -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_cluster_restore_test.go:997: restore_backupdr_pitr_source { -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:31: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:347: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:356: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:442: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:537: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:620: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:709: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:718: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:880: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:889: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:984: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:993: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1002: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1073: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1082: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1091: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1186: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1195: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1373: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1382: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1391: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1400: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1522: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1531: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1540: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1549: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1764: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1773: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go:1782: ImportStateVerifyIgnore: []string{"deletion_protection", "initial_user", "restore_backup_source", "restore_continuous_backup_source", "cluster_id", "location", "deletion_policy", "labels", "annotations", "terraform_labels", "reconciling"}, -./mmv1/third_party/terraform/services/compute/resource_compute_instance_from_machine_image.go.tmpl:106: // TODO: (camthornton) Remove this when disk override functionality in the API is restored -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:42: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:50: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:59: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:68: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:77: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:86: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:96: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:105: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:423: restore_parameters { -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:683: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:692: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:784: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:793: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:888: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:897: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1005: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1014: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1023: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1032: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1041: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1050: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1059: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1350: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1359: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1497: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl:1506: ImportStateVerifyIgnore: []string{"restore_parameters", "location", "name", "deletion_policy", "labels", "terraform_labels"}, -./mmv1/third_party/terraform/acctest/diff_utils_test.go:124: ExpectError: regexp.MustCompile(`"restore_continuous_backup_source": conflicts with restore_backup_source`), -./mmv1/third_party/terraform/acctest/resource_inventory_test.go:140: "google_vertex_ai_featurestore_entitytype.region": true, -./mmv1/third_party/terraform/acctest/resource_inventory_test.go:141: "google_vertex_ai_featurestore_entitytype_feature.region": true, -./mmv1/third_party/terraform/acctest/test_utils.go.tmpl:313:// The testing package will restore the original values after the test -./mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt:464: "firestore" to mapOf( -./mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt:465: "name" to "firestore", -./mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt:466: "displayName" to "Firestore", -./mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt:467: "path" to "./google/services/firestore" -./mmv1/third_party/terraform/.teamcity/components/inputs/services_beta.kt:469: "firestore" to mapOf( -./mmv1/third_party/terraform/.teamcity/components/inputs/services_beta.kt:470: "name" to "firestore", -./mmv1/third_party/terraform/.teamcity/components/inputs/services_beta.kt:471: "displayName" to "Firestore", -./mmv1/third_party/terraform/.teamcity/components/inputs/services_beta.kt:472: "path" to "./google-beta/services/firestore" -./mmv1/third_party/terraform/transport/error_retry_predicates.go:390:// relevant for firestore in datastore mode -./mmv1/third_party/terraform/transport/error_retry_predicates.go:391:func FirestoreField409RetryUnderlyingDataChanged(err error) (bool, string) { -./mmv1/third_party/terraform/transport/error_retry_predicates.go:400:// relevant for firestore in datastore mode -./mmv1/third_party/terraform/transport/error_retry_predicates.go:401:func FirestoreIndex409Retry(err error) (bool, string) { -./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:174:func TestFirestoreField409_retryUnderlyingDataChanged(t *testing.T) { -./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:179: isRetryable, _ := FirestoreField409RetryUnderlyingDataChanged(&err) -./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:185:func TestFirestoreIndex409_crossTransactionContetion(t *testing.T) { -./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:190: isRetryable, _ := FirestoreIndex409Retry(&err) -./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:196:func TestFirestoreIndex409_retryUnderlyingDataChanged(t *testing.T) { -./mmv1/third_party/terraform/transport/error_retry_predicates_test.go:201: isRetryable, _ := FirestoreIndex409Retry(&err) -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:291:### Cloud SQL Instance created using point_in_time_restore -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:305: point_in_time_restore_context { -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:381:* `restore_backup_context` - (optional) The context needed to restore the database to a backup run. This field will -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:382: cause Terraform to trigger the database to restore from the backup run indicated. The configuration is detailed below. -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:384: block during resource creation/update will trigger the restore action after the resource is created/updated. -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:386:* `backupdr_backup` - (optional) The backupdr_backup needed to restore the database to a backup run. This field will -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:387: cause Terraform to trigger the database to restore from the backup run indicated. The configuration is detailed below. -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:389: block during resource creation/update will trigger the restore action after the resource is created/updated. -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:395:* `point_in_time_restore_context` - (Optional) The point_in_time_restore_context needed for performing a point-in-time recovery of an instance managed by Google Cloud Backup and Disaster Recovery. This field will -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:396: cause Terraform to trigger the database to restore to a point in time indicated. The configuration is detailed below. -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:398: block during resource creation/update will trigger the restore action after the resource is created/updated. -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:517:* `transaction_log_retention_days` - (Optional) The number of days of transaction logs we retain for point in time restore, from 1-7. For PostgreSQL Enterprise Plus and SQL Server Enterprise Plus instances, the number of days of retained transaction logs can be set from 1 to 35. -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:693:The optional `point_in_time_restore_context` block supports: -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:697:* `point_in_time` - The timestamp of the point in time that should be restored. -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:719:* `point_in_time` - (Optional) The timestamp of the point in time that should be restored. -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:733:The optional `restore_backup_context` block supports: -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:735:block during resource creation/update will trigger the restore action after the resource is created/updated. -./mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown:737:* `backup_run_id` - (Required) The ID of the backup run to restore from. -./mmv1/third_party/terraform/website/docs/r/app_engine_application.html.markdown:47:* `database_type` - (Optional) The type of the Cloud Firestore or Cloud Datastore database associated with this application. -./mmv1/third_party/terraform/website/docs/r/app_engine_application.html.markdown:48: Can be `CLOUD_FIRESTORE` or `CLOUD_DATASTORE_COMPATIBILITY` for new -./mmv1/third_party/terraform/website/docs/r/app_engine_application.html.markdown:50: To create a Cloud Firestore database without creating an App Engine application, use the -./mmv1/third_party/terraform/website/docs/r/app_engine_application.html.markdown:51: [`google_firestore_database`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/firestore_database) -./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:68:To restore the default folder organization policy, use the following instead: -./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:75: restore_policy { -./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:98:* `restore_policy` - (Optional) A restore policy is a constraint to restore the default policy. Structure is [documented below](#nested_restore_policy). -./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:100:~> **Note:** If none of [`boolean_policy`, `list_policy`, `restore_policy`] are defined the policy for a given constraint will -./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:124:The `restore_policy` block supports: -./mmv1/third_party/terraform/website/docs/r/google_folder_organization_policy.html.markdown:126:* `default` - (Required) May only be set to true. If set, then the default Policy is restored. -./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:68:To restore the default project organization policy, use the following instead: -./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:75: restore_policy { -./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:97:* `restore_policy` - (Optional) A restore policy is a constraint to restore the default policy. Structure is [documented below](#nested_restore_policy). -./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:99:~> **Note:** If none of [`boolean_policy`, `list_policy`, `restore_policy`] are defined the policy for a given constraint will -./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:123:The `restore_policy` block supports: -./mmv1/third_party/terraform/website/docs/r/google_project_organization_policy.html.markdown:125:* `default` - (Required) May only be set to true. If set, then the default Policy is restored. -./mmv1/third_party/terraform/website/docs/r/google_project_default_service_accounts.html.markdown:39: restore_policy = "REVERT" -./mmv1/third_party/terraform/website/docs/r/google_project_default_service_accounts.html.markdown:50:- `action` - (Required) The action to be performed in the default service accounts. Valid values are: `DEPRIVILEGE`, `DELETE`, `DISABLE`. Note that `DEPRIVILEGE` action will ignore the REVERT configuration in the restore_policy -./mmv1/third_party/terraform/website/docs/r/google_project_default_service_accounts.html.markdown:52:- `restore_policy` - (Optional) The action to be performed in the default service accounts on the resource destroy. -./mmv1/third_party/terraform/website/docs/r/google_project_default_service_accounts.html.markdown:54: If set to REVERT it attempts to restore all default SAs but the DEPRIVILEGE action. -./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:67:To restore the default organization policy, use the following instead: -./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:74: restore_policy { -./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:97:* `restore_policy` - (Optional) A restore policy is a constraint to restore the default policy. Structure is [documented below](#nested_restore_policy). -./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:99:~> **Note:** If none of [`boolean_policy`, `list_policy`, `restore_policy`] are defined the policy for a given constraint will -./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:123:The `restore_policy` block supports: -./mmv1/third_party/terraform/website/docs/r/google_organization_policy.html.markdown:125:* `default` - (Required) May only be set to true. If set, then the default Policy is restored. -./mmv1/third_party/terraform/website/docs/d/compute_images.html.markdown:56:* `disk_size_gb` - The size of the image when restored onto a persistent disk in gigabytes. -./mmv1/third_party/terraform/website/docs/d/compute_image.html.markdown:60:* `disk_size_gb` - The size of the image when restored onto a persistent disk in gigabytes. -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:2:subcategory: "Firestore" -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:4: Read a document from a Firestore database -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:8:# google_firestore_document -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:10:Reads a document from a Firestore database. -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:11:See [the official documentation](https://cloud.google.com/firestore/native/docs/) -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:13:[API](https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.documents/get/). -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:18:Retrieve a document from the Firestore database. -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:21:resource "google_firestore_document" "mydoc" { -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:22: project = google_firestore_database.database.project -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:23: database = google_firestore_database.database.name -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:33:* `database` - (Required) The name of the Firestore database. -./mmv1/third_party/terraform/website/docs/d/firestore_document.html.markdown:43:See [google_firestore_document](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_firestore_document) resource for details of the available attributes. -./mmv1/third_party/terraform/website/docs/guides/version_2_upgrade.html.markdown:722:### `authoritative`, `restore_policy`, and `disable_project` have been removed -./mmv1/third_party/terraform/website/docs/guides/version_6_upgrade.html.markdown:291:`google_datastore_index` is removed in favor of `google_firestore_index` -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:747:In `4.X`, `google_firebase_project_location` would implicitly trigger creation of an App Engine application with a default Cloud Storage bucket and Firestore database, located in the specified `location_id`. In `5.0.0`, these resources should instead be set up explicitly using `google_app_engine_application` `google_firebase_storage_bucket`, and `google_firestore_database`. -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:755:1. Add blocks according to "New config" in this section for any of the following that you need: `google_app_engine_application`, `google_firebase_storage_bucket`, and/or `google_firestore_database`. -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:760: `terraform import google_firestore_database.default "/(default)"` -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:775:Assuming you use both the default Storage bucket and Firestore, an equivalent configuration would be: -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:782: database_type = "CLOUD_FIRESTORE" -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:785: google_firestore_database.default -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:795:resource "google_firestore_database" "default" { -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:799: type = "FIRESTORE_NATIVE" -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:821: name = "cloud.firestore" -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:822: ruleset_name = "projects/my-project-name/rulesets/${google_firebaserules_ruleset.firestore.name}" -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:827: google_firebaserules_ruleset.firestore -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:832:resource "google_firebaserules_ruleset" "firestore" { -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:835: content = "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }" -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:836: name = "firestore.rules" -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:848: name = "cloud.firestore" -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:849: ruleset_name = "projects/my-project-name/rulesets/${google_firebaserules_ruleset.firestore.name}" -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:853:resource "google_firebaserules_ruleset" "firestore" { -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:856: content = "service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }" -./mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown:857: name = "firestore.rules" -./mmv1/third_party/terraform/provider/provider_mmv1_resources.go.tmpl:201: "google_firestore_document": firestore.DataSourceGoogleFirestoreDocument(), -./mmv1/third_party/tgc/resource_converters.go.tmpl:401: "google_gke_backup_restore_plan_iam_policy": {gkebackup.ResourceConverterGKEBackupRestorePlanIamPolicy()}, -./mmv1/third_party/tgc/resource_converters.go.tmpl:402: "google_gke_backup_restore_plan_iam_binding": {gkebackup.ResourceConverterGKEBackupRestorePlanIamBinding()}, -./mmv1/third_party/tgc/resource_converters.go.tmpl:403: "google_gke_backup_restore_plan_iam_member": {gkebackup.ResourceConverterGKEBackupRestorePlanIamMember()}, -./mmv1/third_party/tgc/resource_converters.go.tmpl:500: "google_vertex_ai_featurestore_iam_policy": {vertexai.ResourceConverterVertexAIFeaturestoreIamPolicy()}, -./mmv1/third_party/tgc/resource_converters.go.tmpl:501: "google_vertex_ai_featurestore_iam_binding": {vertexai.ResourceConverterVertexAIFeaturestoreIamBinding()}, -./mmv1/third_party/tgc/resource_converters.go.tmpl:502: "google_vertex_ai_featurestore_iam_member": {vertexai.ResourceConverterVertexAIFeaturestoreIamMember()}, -./mmv1/third_party/tgc/resource_converters.go.tmpl:503: "google_vertex_ai_featurestore_entitytype_iam_policy": {vertexai.ResourceConverterVertexAIFeaturestoreEntitytypeIamPolicy()}, -./mmv1/third_party/tgc/resource_converters.go.tmpl:504: "google_vertex_ai_featurestore_entitytype_iam_binding": {vertexai.ResourceConverterVertexAIFeaturestoreEntitytypeIamBinding()}, -./mmv1/third_party/tgc/resource_converters.go.tmpl:505: "google_vertex_ai_featurestore_entitytype_iam_member": {vertexai.ResourceConverterVertexAIFeaturestoreEntitytypeIamMember()}, -./mmv1/third_party/tgc/services/resourcemanager/organization_policy.go:45: restoreDefault, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) -./mmv1/third_party/tgc/services/resourcemanager/organization_policy.go:54: RestoreDefault: restoreDefault, -./mmv1/third_party/tgc/services/resourcemanager/folder_organization_policy.go:45: restoreDefault, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) -./mmv1/third_party/tgc/services/resourcemanager/folder_organization_policy.go:54: RestoreDefault: restoreDefault, -./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:49: restoreDefault, err := expandRestoreOrganizationPolicy(d.Get("restore_policy").([]interface{})) -./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:58: RestoreDefault: restoreDefault, -./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:111:func expandRestoreOrganizationPolicy(configured []interface{}) (*cai.RestoreDefault, error) { -./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:116: restoreDefaultMap := configured[0].(map[string]interface{}) -./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:117: defaultValue := restoreDefaultMap["default"].(bool) -./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:120: return &cai.RestoreDefault{}, nil -./mmv1/third_party/tgc/services/resourcemanager/project_organization_policy.go:123: return &cai.RestoreDefault{}, fmt.Errorf("Invalid value for restore_policy. Expecting default = true") -./mmv1/third_party/tgc/convert.go:326: var restoreDefault *caiasset.RestoreDefault -./mmv1/third_party/tgc/convert.go:341: if o.RestoreDefault != nil { -./mmv1/third_party/tgc/convert.go:342: restoreDefault = &caiasset.RestoreDefault{} -./mmv1/third_party/tgc/convert.go:350: RestoreDefault: restoreDefault, -./mmv1/third_party/tgc/cai/cai.go:81: RestoreDefault *RestoreDefault `json:"restoreDefault"` -./mmv1/third_party/tgc/cai/cai.go:139:type RestoreDefault struct { -./mmv1/third_party/tgc/tests/data/example_organization_policy.tf:67: restore_policy { -./mmv1/third_party/tgc/tests/data/example_project_organization_policy.json:15: "restore_default": {}, -./mmv1/third_party/tgc/tests/data/example_folder_organization_policy.tf:67: restore_policy { -./mmv1/third_party/tgc/tests/data/example_folder_organization_policy.json:33: "restore_default": {}, -./mmv1/third_party/tgc/tests/data/example_organization_policy.json:33: "restore_default": {}, -./mmv1/third_party/tgc/tests/data/example_project_organization_policy.tf:53: restore_policy { -./mmv1/third_party/tgc/caiasset/asset.go:48: RestoreDefault *RestoreDefault `json:"restore_default,omitempty"` -./mmv1/third_party/tgc/caiasset/asset.go:129:// RestoreDefault determines if the default values of the `Constraints` are active for the -./mmv1/third_party/tgc/caiasset/asset.go:131:type RestoreDefault struct { -./mmv1/third_party/tgc/cai.go:56:type RestoreDefault = cai.RestoreDefault -./mmv1/third_party/tgc/getconfig_test.go:108: // Restore previous states of environment variables. -./mmv1/products/workstations/WorkstationConfig.yaml:641: Whether this resource is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in the conditions field. -./mmv1/products/workstations/WorkstationCluster.yaml:140: Whether this resource is in degraded mode, in which case it may require user action to restore full functionality. -./mmv1/products/redis/Cluster.yaml:535: - DISABLED: Persistence (both backup and restore) is disabled for the cluster. -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:15:name: 'FeaturestoreEntitytypeFeature' -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:18: - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}/features/{feature}' -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:24: api: 'https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores.entityTypes.features' -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:46: extra_schema_entry: 'templates/terraform/extra_schema_entry/vertex_ai_featurestore_entitytype_feature.go.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:47: encoder: 'templates/terraform/encoders/vertex_ai_featurestore_entitytype_feature.go.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:48: pre_create: 'templates/terraform/constants/vertex_ai_featurestore_entitytype_feature.go.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:49: pre_delete: 'templates/terraform/constants/vertex_ai_featurestore_entitytype_feature.go.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:50: custom_import: 'templates/terraform/custom_import/vertex_ai_featurestore_entitytype_feature.go.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:52: - name: 'vertex_ai_featurestore_entitytype_feature' -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:58: - name: 'vertex_ai_featurestore_entitytype_feature_with_beta_fields' -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:69: The name of the Featurestore to use, in the format -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:70: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entitytype}. -./mmv1/products/vertexai/FeaturestoreEntitytypeFeature.yaml:110: Type of Feature value. Immutable. https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores.entityTypes.features#ValueType -./mmv1/products/vertexai/Featurestore.yaml:15:name: 'Featurestore' -./mmv1/products/vertexai/Featurestore.yaml:21: api: 'https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores' -./mmv1/products/vertexai/Featurestore.yaml:23:base_url: 'projects/{{project}}/locations/{{region}}/featurestores' -./mmv1/products/vertexai/Featurestore.yaml:24:self_link: 'projects/{{project}}/locations/{{region}}/featurestores/{{name}}' -./mmv1/products/vertexai/Featurestore.yaml:25:create_url: 'projects/{{project}}/locations/{{region}}/featurestores?featurestoreId={{name}}' -./mmv1/products/vertexai/Featurestore.yaml:42: parent_resource_attribute: 'featurestore' -./mmv1/products/vertexai/Featurestore.yaml:43: example_config_body: 'templates/terraform/iam/example_config_body/vertex_ai_featurestore.tf.tmpl' -./mmv1/products/vertexai/Featurestore.yaml:45: - 'projects/{{project}}/locations/{{region}}/featurestores/{{name}}' -./mmv1/products/vertexai/Featurestore.yaml:51: - name: 'vertex_ai_featurestore' -./mmv1/products/vertexai/Featurestore.yaml:52: primary_resource_id: 'featurestore' -./mmv1/products/vertexai/Featurestore.yaml:64: - name: 'vertex_ai_featurestore_with_beta_fields' -./mmv1/products/vertexai/Featurestore.yaml:65: primary_resource_id: 'featurestore' -./mmv1/products/vertexai/Featurestore.yaml:78: - name: 'vertex_ai_featurestore_scaling' -./mmv1/products/vertexai/Featurestore.yaml:79: primary_resource_id: 'featurestore' -./mmv1/products/vertexai/Featurestore.yaml:94: 'If set to true, any EntityTypes and Features for this Featurestore will -./mmv1/products/vertexai/Featurestore.yaml:109: The name of the Featurestore. This value may be up to 60 characters, and -./mmv1/products/vertexai/Featurestore.yaml:122: The timestamp of when the featurestore was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. -./mmv1/products/vertexai/Featurestore.yaml:127: The timestamp of when the featurestore was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. -./mmv1/products/vertexai/Featurestore.yaml:132: A set of key/value label pairs to assign to this Featurestore. -./mmv1/products/vertexai/Featurestore.yaml:166: TTL in days for feature values that will be stored in online serving storage. The Feature Store online storage periodically removes obsolete feature values older than onlineStorageTtlDays since the feature generation time. Note that onlineStorageTtlDays should be less than or equal to offlineStorageTtlDays for each EntityType under a featurestore. If not set, default to 4000 days -./mmv1/products/vertexai/FeatureGroupFeature.yaml:22: 'Creating a Feature': 'https://cloud.google.com/vertex-ai/docs/featurestore/latest/create-feature' -./mmv1/products/vertexai/FeatureGroup.yaml:19: 'Creating a Feature Group': 'https://cloud.google.com/vertex-ai/docs/featurestore/latest/create-featuregroup' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:15:name: 'FeaturestoreEntitytype' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:22: api: 'https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores.entityTypes' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:24:base_url: '{{featurestore}}/entityTypes' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:25:self_link: '{{featurestore}}/entityTypes/{{name}}' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:26:create_url: '{{featurestore}}/entityTypes?entityTypeId={{name}}' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:30: - '{{%featurestore}}/entityTypes/{{name}}' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:45: parent_resource_type: 'featurestore' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:48: example_config_body: 'templates/terraform/iam/example_config_body/vertex_ai_featurestore_entitytype.tf.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:50: - '{{%featurestore}}/entityTypes/{{name}}' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:54: extra_schema_entry: 'templates/terraform/extra_schema_entry/vertex_ai_featurestore_entitytype.go.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:55: encoder: 'templates/terraform/encoders/vertex_ai_featurestore_entitytype.go.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:56: pre_create: 'templates/terraform/constants/vertex_ai_featurestore_entitytype.go.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:57: pre_delete: 'templates/terraform/constants/vertex_ai_featurestore_entitytype.go.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:58: custom_import: 'templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.tmpl' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:61: - name: 'vertex_ai_featurestore_entitytype' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:72: - name: 'vertex_ai_featurestore_entitytype_with_beta_fields' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:85: - name: 'featurestore' -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:88: The name of the Featurestore to use, in the format -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:89: projects/{project}/locations/{location}/featurestores/{featurestore}. -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:113: The timestamp of when the featurestore was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:118: The timestamp of when the featurestore was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:129: If this is populated with [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is disabled. -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:154: If both FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][] are set when creating/updating EntityTypes/Features, FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days will be used. -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:183: Threshold for numerical features of anomaly detection. This is shared by all objectives of Featurestore Monitoring for numerical features (i.e. Features with type (Feature.ValueType) DOUBLE or INT64). -./mmv1/products/vertexai/FeaturestoreEntitytype.yaml:193: Threshold for categorical features of anomaly detection. This is shared by all types of Featurestore Monitoring for categorical features (i.e. Features with type (Feature.ValueType) BOOL or STRING). -./mmv1/products/firebaseappcheck/ServiceConfig.yaml:45: service_id: 'firestore.googleapis.com' -./mmv1/products/firebaseappcheck/ServiceConfig.yaml:49: 'service_id': '"firestore.googleapis.com"' -./mmv1/products/firebaseappcheck/ServiceConfig.yaml:73: firestore.googleapis.com (Cloud Firestore) -./mmv1/products/firebaseextensions/Instance.yaml:180: Config remains so the Instance can be restored. -./mmv1/products/firestore/Database.yaml:17: A Cloud Firestore Database. -./mmv1/products/firestore/Database.yaml:19: If you wish to use Firestore with App Engine, use the -./mmv1/products/firestore/Database.yaml:21: resource instead. If you were previously using the `google_app_engine_application` resource exclusively for managing a Firestore database -./mmv1/products/firestore/Database.yaml:22: and would like to use the `google_firestore_database` resource instead, please follow the instructions -./mmv1/products/firestore/Database.yaml:23: [here](https://cloud.google.com/firestore/docs/app-engine-requirement). -./mmv1/products/firestore/Database.yaml:26: 'Official Documentation': 'https://cloud.google.com/firestore/docs/' -./mmv1/products/firestore/Database.yaml:27: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases' -./mmv1/products/firestore/Database.yaml:51: pre_delete: 'templates/terraform/pre_delete/firestore_database.go.tmpl' -./mmv1/products/firestore/Database.yaml:53: - name: 'firestore_default_database' -./mmv1/products/firestore/Database.yaml:62: - name: 'firestore_database' -./mmv1/products/firestore/Database.yaml:75: - name: 'firestore_database_with_tags' -./mmv1/products/firestore/Database.yaml:91: - name: 'firestore_cmek_database' -./mmv1/products/firestore/Database.yaml:106: - name: 'firestore_default_database_in_datastore_mode' -./mmv1/products/firestore/Database.yaml:115: - name: 'firestore_database_in_datastore_mode' -./mmv1/products/firestore/Database.yaml:128: - name: 'firestore_cmek_database_in_datastore_mode' -./mmv1/products/firestore/Database.yaml:143: - name: 'firestore_database_enterprise' -./mmv1/products/firestore/Database.yaml:154: - name: 'firestore_database_data_access' -./mmv1/products/firestore/Database.yaml:156: primary_resource_id: 'firestore_access_database' -./mmv1/products/firestore/Database.yaml:165: - name: 'firestore_database_data_access_test' -./mmv1/products/firestore/Database.yaml:167: primary_resource_id: 'firestore_access_database_test' -./mmv1/products/firestore/Database.yaml:188: # For now though, setting this field is necessary if you wish for your Firestore databases to be deleted upon `terraform destroy`. -./mmv1/products/firestore/Database.yaml:208: https://cloud.google.com/firestore/docs/locations. -./mmv1/products/firestore/Database.yaml:215: See https://cloud.google.com/datastore/docs/firestore-or-datastore -./mmv1/products/firestore/Database.yaml:219: - 'FIRESTORE_NATIVE' -./mmv1/products/firestore/Database.yaml:225: 'FIRESTORE_NATIVE'. -./mmv1/products/firestore/Database.yaml:233: - name: 'firestoreDataAccessMode' -./mmv1/products/firestore/Database.yaml:236: The Firestore API data access mode to use for this database. Can only be -./mmv1/products/firestore/Database.yaml:352: The CMEK (Customer Managed Encryption Key) configuration for a Firestore -./mmv1/products/firestore/Database.yaml:365: for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS -./mmv1/products/firestore/Database.yaml:366: multi-region us. For Firestore's eur3 multi-region, this corresponds to -./mmv1/products/firestore/UserCreds.yaml:17: User credentials for a Cloud Firestore with MongoDB compatibility database. -./mmv1/products/firestore/UserCreds.yaml:21: 'Authenticate and connect to a database': 'https://cloud.google.com/firestore/mongodb-compatibility/docs/connect' -./mmv1/products/firestore/UserCreds.yaml:22: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.userCreds' -./mmv1/products/firestore/UserCreds.yaml:29: post_create: templates/terraform/post_create/firestore_user_creds.go.tmpl -./mmv1/products/firestore/UserCreds.yaml:31: - name: 'firestore_user_creds_basic' -./mmv1/products/firestore/UserCreds.yaml:37: - name: 'firestore_user_creds_with_secret_manager' -./mmv1/products/firestore/UserCreds.yaml:47: The Firestore database ID. -./mmv1/products/firestore/product.yaml:15:name: 'Firestore' -./mmv1/products/firestore/product.yaml:16:display_name: 'Firestore' -./mmv1/products/firestore/product.yaml:19: base_url: 'https://firestore.googleapis.com/v1/' -./mmv1/products/firestore/product.yaml:21: base_url: 'https://firestore.googleapis.com/v1/' -./mmv1/products/firestore/BackupSchedule.yaml:17: A backup schedule for a Cloud Firestore Database. -./mmv1/products/firestore/BackupSchedule.yaml:22: 'Official Documentation': 'https://cloud.google.com/firestore/docs/backups' -./mmv1/products/firestore/BackupSchedule.yaml:23: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.backupSchedules' -./mmv1/products/firestore/BackupSchedule.yaml:26: This resource creates a Firestore Backup Schedule on a project that already has -./mmv1/products/firestore/BackupSchedule.yaml:27: a Firestore database. -./mmv1/products/firestore/BackupSchedule.yaml:46: - name: 'firestore_backup_schedule_daily' -./mmv1/products/firestore/BackupSchedule.yaml:55: - name: 'firestore_backup_schedule_weekly' -./mmv1/products/firestore/BackupSchedule.yaml:68: The Firestore database id. Defaults to `"(default)"`. -./mmv1/products/firestore/Field.yaml:22: 'Official Documentation': 'https://cloud.google.com/firestore/docs/query-data/indexing' -./mmv1/products/firestore/Field.yaml:23: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.collectionGroups.fields' -./mmv1/products/firestore/Field.yaml:26: This resource creates a Firestore Single Field override on a project that -./mmv1/products/firestore/Field.yaml:27: already has a Firestore database. If you haven't already created it, you may -./mmv1/products/firestore/Field.yaml:28: create a `google_firestore_database` resource with `location_id` set to your -./mmv1/products/firestore/Field.yaml:52: encoder: 'templates/terraform/encoders/firestore_field.go.tmpl' -./mmv1/products/firestore/Field.yaml:53: custom_delete: 'templates/terraform/custom_delete/firestore_field_delete.go.tmpl' -./mmv1/products/firestore/Field.yaml:54: custom_import: 'templates/terraform/custom_import/firestore_field.go.tmpl' -./mmv1/products/firestore/Field.yaml:55: test_check_destroy: 'templates/terraform/custom_check_destroy/firestore_field.go.tmpl' -./mmv1/products/firestore/Field.yaml:60: - 'transport_tpg.FirestoreField409RetryUnderlyingDataChanged' -./mmv1/products/firestore/Field.yaml:62: - name: 'firestore_field_basic' -./mmv1/products/firestore/Field.yaml:71: - name: 'firestore_field_timestamp' -./mmv1/products/firestore/Field.yaml:80: - name: 'firestore_field_match_override' -./mmv1/products/firestore/Field.yaml:89: - name: 'firestore_field_wildcard' -./mmv1/products/firestore/Field.yaml:103: The Firestore database id. Defaults to `"(default)"`. -./mmv1/products/firestore/Field.yaml:135: custom_flatten: 'templates/terraform/custom_flatten/firestore_field_index_config.go.tmpl' -./mmv1/products/firestore/Field.yaml:136: custom_expand: 'templates/terraform/custom_expand/firestore_field_index_config.go.tmpl' -./mmv1/products/firestore/Document.yaml:17: In Cloud Firestore, the unit of storage is the document. A document is a lightweight record -./mmv1/products/firestore/Document.yaml:21: 'Official Documentation': 'https://cloud.google.com/firestore/docs/manage-data/add-data' -./mmv1/products/firestore/Document.yaml:22: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.documents' -./mmv1/products/firestore/Document.yaml:25: This resource creates a Firestore Document on a project that already has -./mmv1/products/firestore/Document.yaml:26: a Firestore database. If you haven't already created it, you may -./mmv1/products/firestore/Document.yaml:27: create a `google_firestore_database` resource with `type` set to -./mmv1/products/firestore/Document.yaml:28: `"FIRESTORE_NATIVE"` and `location_id` set to your chosen location. -./mmv1/products/firestore/Document.yaml:31: `"CLOUD_FIRESTORE"`. Your Firestore location will be the same as -./mmv1/products/firestore/Document.yaml:44: decoder: 'templates/terraform/decoders/firestore_document.go.tmpl' -./mmv1/products/firestore/Document.yaml:45: custom_import: 'templates/terraform/custom_import/firestore_document.go.tmpl' -./mmv1/products/firestore/Document.yaml:48: - name: 'firestore_document_basic' -./mmv1/products/firestore/Document.yaml:56: - name: 'firestore_document_nested_document' -./mmv1/products/firestore/Document.yaml:68: The Firestore database id. Defaults to `"(default)"`. -./mmv1/products/firestore/Document.yaml:102: The document's [fields](https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.documents) formated as a json string. -./mmv1/products/firestore/Index.yaml:17: Cloud Firestore indexes enable simple and complex queries against documents in a database. -./mmv1/products/firestore/Index.yaml:18: Both Firestore Native and Datastore Mode indexes are supported. -./mmv1/products/firestore/Index.yaml:20: To manage single field indexes, use the `google_firestore_field` resource instead. -./mmv1/products/firestore/Index.yaml:23: 'Official Documentation': 'https://cloud.google.com/firestore/docs/query-data/indexing' -./mmv1/products/firestore/Index.yaml:24: api: 'https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.collectionGroups.indexes' -./mmv1/products/firestore/Index.yaml:27: This resource creates a Firestore Index on a project that already has -./mmv1/products/firestore/Index.yaml:28: a Firestore database. If you haven't already created it, you may -./mmv1/products/firestore/Index.yaml:29: create a `google_firestore_database` resource and `location_id` set -./mmv1/products/firestore/Index.yaml:32: Your Firestore location will be the same as the App Engine location specified. -./mmv1/products/firestore/Index.yaml:51: constants: 'templates/terraform/constants/firestore_index.go.tmpl' -./mmv1/products/firestore/Index.yaml:54: custom_create: 'templates/terraform/custom_create/firestore_index.go.tmpl' -./mmv1/products/firestore/Index.yaml:55: pre_delete: 'templates/terraform/pre_delete/firestore_index.go.tmpl' -./mmv1/products/firestore/Index.yaml:57: - 'transport_tpg.FirestoreIndex409Retry' -./mmv1/products/firestore/Index.yaml:59: - name: 'firestore_index_basic' -./mmv1/products/firestore/Index.yaml:66: - name: 'firestore_index_datastore_mode' -./mmv1/products/firestore/Index.yaml:72: - name: 'firestore_index_vector' -./mmv1/products/firestore/Index.yaml:78: - name: 'firestore_index_name_descending' -./mmv1/products/firestore/Index.yaml:84: - name: 'firestore_index_mongodb_compatible_scope' -./mmv1/products/firestore/Index.yaml:90: - name: 'firestore_index_sparse_any' -./mmv1/products/firestore/Index.yaml:96: - name: 'firestore_index_unique' -./mmv1/products/firestore/Index.yaml:102: - name: 'firestore_index_skip_wait' -./mmv1/products/firestore/Index.yaml:110: - name: 'firestore_index_deletion_policy' -./mmv1/products/firestore/Index.yaml:142:# Firestore uses a custom create function. Any new fields must be explicitly handled there. -./mmv1/products/firestore/Index.yaml:153: The Firestore database id. Defaults to `"(default)"`. -./mmv1/products/firestore/Index.yaml:218: diff_suppress_func: 'firestoreIFieldsDiffSuppress' -./mmv1/products/eventarc/Trigger.yaml:89: - name: eventarc_trigger_with_firestore_source -./mmv1/products/pubsub/Topic.yaml:301: will be restored when publishing. -./mmv1/products/dialogflowcx/Agent.yaml:326: Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for [agents.restore][]. -./mmv1/products/oracledatabase/AutonomousDatabase.yaml:315: description: " \n Possible values:\n STATE_UNSPECIFIED\nPROVISIONING\nAVAILABLE\nSTOPPING\nSTOPPED\nSTARTING\nTERMINATING\nTERMINATED\nUNAVAILABLE\nRESTORE_IN_PROGRESS\nRESTORE_FAILED\nBACKUP_IN_PROGRESS\nSCALE_IN_PROGRESS\nAVAILABLE_NEEDS_ATTENTION\nUPDATING\nMAINTENANCE_IN_PROGRESS\nRESTARTING\nRECREATING\nROLE_CHANGE_IN_PROGRESS\nUPGRADING\nINACCESSIBLE\nSTANDBY" -./mmv1/products/oracledatabase/AutonomousDatabase.yaml:506: description: " \n Possible values:\n STATE_UNSPECIFIED\nPROVISIONING\nAVAILABLE\nSTOPPING\nSTOPPED\nSTARTING\nTERMINATING\nTERMINATED\nUNAVAILABLE\nRESTORE_IN_PROGRESS\nRESTORE_FAILED\nBACKUP_IN_PROGRESS\nSCALE_IN_PROGRESS\nAVAILABLE_NEEDS_ATTENTION\nUPDATING\nMAINTENANCE_IN_PROGRESS\nRESTARTING\nRECREATING\nROLE_CHANGE_IN_PROGRESS\nUPGRADING\nINACCESSIBLE\nSTANDBY" -./mmv1/products/oracledatabase/DbSystem.yaml:390: which a database can be restored. Min: 1, Max: 60. -./mmv1/products/oracledatabase/DbSystem.yaml:409: RESTORE_FAILED -./mmv1/products/gkebackup/RestorePlan.yaml:15:name: 'RestorePlan' -./mmv1/products/gkebackup/RestorePlan.yaml:17: Represents a Restore Plan instance. -./mmv1/products/gkebackup/RestorePlan.yaml:21: api: 'https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans' -./mmv1/products/gkebackup/RestorePlan.yaml:23:base_url: 'projects/{{project}}/locations/{{location}}/restorePlans' -./mmv1/products/gkebackup/RestorePlan.yaml:24:create_url: 'projects/{{project}}/locations/{{location}}/restorePlans?restorePlanId={{name}}' -./mmv1/products/gkebackup/RestorePlan.yaml:42: base_url: 'projects/{{project}}/locations/{{location}}/restorePlans/{{name}}' -./mmv1/products/gkebackup/RestorePlan.yaml:44: - 'projects/{{project}}/locations/{{location}}/restorePlans/{{name}}' -./mmv1/products/gkebackup/RestorePlan.yaml:49: - name: 'gkebackup_restoreplan_all_namespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:52: name: 'restore-all-ns' -./mmv1/products/gkebackup/RestorePlan.yaml:64: - name: 'gkebackup_restoreplan_rollback_namespace' -./mmv1/products/gkebackup/RestorePlan.yaml:79: - name: 'gkebackup_restoreplan_protected_application' -./mmv1/products/gkebackup/RestorePlan.yaml:94: - name: 'gkebackup_restoreplan_all_cluster_resources' -./mmv1/products/gkebackup/RestorePlan.yaml:109: - name: 'gkebackup_restoreplan_rename_namespace' -./mmv1/products/gkebackup/RestorePlan.yaml:124: - name: 'gkebackup_restoreplan_second_transformation' -./mmv1/products/gkebackup/RestorePlan.yaml:139: - name: 'gkebackup_restoreplan_gitops_mode' -./mmv1/products/gkebackup/RestorePlan.yaml:154: - name: 'gkebackup_restoreplan_restore_order' -./mmv1/products/gkebackup/RestorePlan.yaml:155: primary_resource_id: 'restore_order' -./mmv1/products/gkebackup/RestorePlan.yaml:157: name: 'restore-order' -./mmv1/products/gkebackup/RestorePlan.yaml:169: - name: 'gkebackup_restoreplan_volume_res' -./mmv1/products/gkebackup/RestorePlan.yaml:188: The region of the Restore Plan. -./mmv1/products/gkebackup/RestorePlan.yaml:209: User specified descriptive string for this RestorePlan. -./mmv1/products/gkebackup/RestorePlan.yaml:220: as the source for Restores created via this RestorePlan. -./mmv1/products/gkebackup/RestorePlan.yaml:226: The source cluster from which Restores will be created via this RestorePlan. -./mmv1/products/gkebackup/RestorePlan.yaml:229: - name: 'restoreConfig' -./mmv1/products/gkebackup/RestorePlan.yaml:232: Defines the configuration of Restores created via this RestorePlan. -./mmv1/products/gkebackup/RestorePlan.yaml:238: If True, restore all namespaced resources in the Backup. -./mmv1/products/gkebackup/RestorePlan.yaml:241: - 'restoreConfig.0.allNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:242: - 'restoreConfig.0.excludedNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:243: - 'restoreConfig.0.selectedNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:244: - 'restoreConfig.0.selectedApplications' -./mmv1/products/gkebackup/RestorePlan.yaml:245: - 'restoreConfig.0.noNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:250: All namespaces except those in this list will be restored. -./mmv1/products/gkebackup/RestorePlan.yaml:252: - 'restoreConfig.0.allNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:253: - 'restoreConfig.0.excludedNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:254: - 'restoreConfig.0.selectedNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:255: - 'restoreConfig.0.selectedApplications' -./mmv1/products/gkebackup/RestorePlan.yaml:256: - 'restoreConfig.0.noNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:268: A list of selected namespaces to restore from the Backup. -./mmv1/products/gkebackup/RestorePlan.yaml:269: The listed Namespaces and all resources contained in them will be restored. -./mmv1/products/gkebackup/RestorePlan.yaml:271: - 'restoreConfig.0.allNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:272: - 'restoreConfig.0.excludedNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:273: - 'restoreConfig.0.selectedNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:274: - 'restoreConfig.0.selectedApplications' -./mmv1/products/gkebackup/RestorePlan.yaml:275: - 'restoreConfig.0.noNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:287: A list of selected ProtectedApplications to restore. -./mmv1/products/gkebackup/RestorePlan.yaml:289: to which they refer will be restored. -./mmv1/products/gkebackup/RestorePlan.yaml:291: - 'restoreConfig.0.allNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:292: - 'restoreConfig.0.excludedNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:293: - 'restoreConfig.0.selectedNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:294: - 'restoreConfig.0.selectedApplications' -./mmv1/products/gkebackup/RestorePlan.yaml:295: - 'restoreConfig.0.noNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:318: Do not restore any namespaced resources if set to "True". -./mmv1/products/gkebackup/RestorePlan.yaml:321: - 'restoreConfig.0.allNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:322: - 'restoreConfig.0.excludedNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:323: - 'restoreConfig.0.selectedNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:324: - 'restoreConfig.0.selectedApplications' -./mmv1/products/gkebackup/RestorePlan.yaml:325: - 'restoreConfig.0.noNamespaces' -./mmv1/products/gkebackup/RestorePlan.yaml:326: - name: 'namespacedResourceRestoreMode' -./mmv1/products/gkebackup/RestorePlan.yaml:330: being restored already exist in the target cluster. -./mmv1/products/gkebackup/RestorePlan.yaml:331: This MUST be set to a value other than `NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED` -./mmv1/products/gkebackup/RestorePlan.yaml:332: if the `namespacedResourceRestoreScope` is anything other than `noNamespaces`. -./mmv1/products/gkebackup/RestorePlan.yaml:333: See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#namespacedresourcerestoremode -./mmv1/products/gkebackup/RestorePlan.yaml:336: - 'DELETE_AND_RESTORE' -./mmv1/products/gkebackup/RestorePlan.yaml:341: - name: 'volumeDataRestorePolicy' -./mmv1/products/gkebackup/RestorePlan.yaml:344: Specifies the mechanism to be used to restore volume data. -./mmv1/products/gkebackup/RestorePlan.yaml:345: This should be set to a value other than `NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED` -./mmv1/products/gkebackup/RestorePlan.yaml:346: if the `namespacedResourceRestoreScope` is anything other than `noNamespaces`. -./mmv1/products/gkebackup/RestorePlan.yaml:348: See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#VolumeDataRestorePolicy -./mmv1/products/gkebackup/RestorePlan.yaml:351: - 'RESTORE_VOLUME_DATA_FROM_BACKUP' -./mmv1/products/gkebackup/RestorePlan.yaml:354: - name: 'clusterResourceRestoreScope' -./mmv1/products/gkebackup/RestorePlan.yaml:357: Identifies the cluster-scoped resources to restore from the Backup. -./mmv1/products/gkebackup/RestorePlan.yaml:362: If True, all valid cluster-scoped resources will be restored. -./mmv1/products/gkebackup/RestorePlan.yaml:363: Mutually exclusive to any other field in `clusterResourceRestoreScope`. -./mmv1/products/gkebackup/RestorePlan.yaml:365: - 'restoreConfig.0.clusterResourceRestoreScope.0.allGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:366: - 'restoreConfig.0.clusterResourceRestoreScope.0.excludedGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:367: - 'restoreConfig.0.clusterResourceRestoreScope.0.selectedGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:368: - 'restoreConfig.0.clusterResourceRestoreScope.0.noGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:372: A list of cluster-scoped resource group kinds to NOT restore from the backup. -./mmv1/products/gkebackup/RestorePlan.yaml:373: If specified, all valid cluster-scoped resources will be restored except -./mmv1/products/gkebackup/RestorePlan.yaml:375: Mutually exclusive to any other field in `clusterResourceRestoreScope`. -./mmv1/products/gkebackup/RestorePlan.yaml:377: - 'restoreConfig.0.clusterResourceRestoreScope.0.allGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:378: - 'restoreConfig.0.clusterResourceRestoreScope.0.excludedGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:379: - 'restoreConfig.0.clusterResourceRestoreScope.0.selectedGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:380: - 'restoreConfig.0.clusterResourceRestoreScope.0.noGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:398: A list of cluster-scoped resource group kinds to restore from the backup. -./mmv1/products/gkebackup/RestorePlan.yaml:399: If specified, only the selected resources will be restored. -./mmv1/products/gkebackup/RestorePlan.yaml:400: Mutually exclusive to any other field in the `clusterResourceRestoreScope`. -./mmv1/products/gkebackup/RestorePlan.yaml:402: - 'restoreConfig.0.clusterResourceRestoreScope.0.allGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:403: - 'restoreConfig.0.clusterResourceRestoreScope.0.excludedGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:404: - 'restoreConfig.0.clusterResourceRestoreScope.0.selectedGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:405: - 'restoreConfig.0.clusterResourceRestoreScope.0.noGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:423: If True, no cluster-scoped resources will be restored. -./mmv1/products/gkebackup/RestorePlan.yaml:424: Mutually exclusive to any other field in `clusterResourceRestoreScope`. -./mmv1/products/gkebackup/RestorePlan.yaml:426: - 'restoreConfig.0.clusterResourceRestoreScope.0.allGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:427: - 'restoreConfig.0.clusterResourceRestoreScope.0.excludedGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:428: - 'restoreConfig.0.clusterResourceRestoreScope.0.selectedGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:429: - 'restoreConfig.0.clusterResourceRestoreScope.0.noGroupKinds' -./mmv1/products/gkebackup/RestorePlan.yaml:434: being restored already exist in the target cluster. -./mmv1/products/gkebackup/RestorePlan.yaml:436: if `clusterResourceRestoreScope` is anyting other than `noGroupKinds`. -./mmv1/products/gkebackup/RestorePlan.yaml:437: See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#clusterresourceconflictpolicy -./mmv1/products/gkebackup/RestorePlan.yaml:553: - name: 'volumeDataRestorePolicyBindings' -./mmv1/products/gkebackup/RestorePlan.yaml:556: A table that binds volumes by their scope to a restore policy. Bindings -./mmv1/products/gkebackup/RestorePlan.yaml:558: subject to the policy defined in volume_data_restore_policy. -./mmv1/products/gkebackup/RestorePlan.yaml:565: Specifies the mechanism to be used to restore this volume data. -./mmv1/products/gkebackup/RestorePlan.yaml:566: See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#VolumeDataRestorePolicy -./mmv1/products/gkebackup/RestorePlan.yaml:570: - 'RESTORE_VOLUME_DATA_FROM_BACKUP' -./mmv1/products/gkebackup/RestorePlan.yaml:581: - name: 'restoreOrder' -./mmv1/products/gkebackup/RestorePlan.yaml:584: It contains custom ordering to use on a Restore. -./mmv1/products/gkebackup/RestorePlan.yaml:591: generate a group kind restore order. -./mmv1/products/gkebackup/RestorePlan.yaml:599: The satisfying group kind must be restored first -./mmv1/products/gkebackup/RestorePlan.yaml:618: group kind be restored first. -./mmv1/products/gkebackup/RestorePlan.yaml:635: The State of the RestorePlan. -./mmv1/products/gkebackup/RestorePlan.yaml:640: Detailed description of why RestorePlan is in its current state. -./mmv1/products/gkebackup/BackupPlan.yaml:517: non-standard or requires additional setup to restore. -./mmv1/products/gkebackup/RestoreChannel.yaml:15:name: 'RestoreChannel' -./mmv1/products/gkebackup/RestoreChannel.yaml:17: A RestoreChannel imposes constraints on where backups can be restored. -./mmv1/products/gkebackup/RestoreChannel.yaml:18: The RestoreChannel should be in the same project and region -./mmv1/products/gkebackup/RestoreChannel.yaml:19: as the backups. The backups can only be restored in the -./mmv1/products/gkebackup/RestoreChannel.yaml:24: api: 'https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restoreChannels' -./mmv1/products/gkebackup/RestoreChannel.yaml:26:base_url: 'projects/{{project}}/locations/{{location}}/restoreChannels' -./mmv1/products/gkebackup/RestoreChannel.yaml:27:create_url: 'projects/{{project}}/locations/{{location}}/restoreChannels?restoreChannelId={{name}}' -./mmv1/products/gkebackup/RestoreChannel.yaml:44: - name: 'gkebackup_restorechannel_basic' -./mmv1/products/gkebackup/RestoreChannel.yaml:57: The region of the Restore Channel. -./mmv1/products/gkebackup/RestoreChannel.yaml:65: The full name of the RestoreChannel Resource. -./mmv1/products/gkebackup/RestoreChannel.yaml:78: The project where Backups will be restored. -./mmv1/products/gkebackup/RestoreChannel.yaml:86: User specified descriptive string for this RestoreChannel. -./mmv1/products/gkebackup/RestoreChannel.yaml:97: updates of a restore channel from overwriting each other. It is strongly suggested that -./mmv1/products/gkebackup/RestoreChannel.yaml:98: systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates -./mmv1/products/gkebackup/RestoreChannel.yaml:99: in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, -./mmv1/products/gkebackup/RestoreChannel.yaml:100: and systems are expected to put that etag in the request to restoreChannels.patch or -./mmv1/products/gkebackup/RestoreChannel.yaml:101: restoreChannels.delete to ensure that their change will be applied to the same version of the resource. -./mmv1/products/gkebackup/RestoreChannel.yaml:106: The project_id where Backups will be restored. -./mmv1/products/filestore/Backup.yaml:137: Amount of bytes that will be downloaded if the backup is restored. -./mmv1/products/filestore/Instance.yaml:180: that this file share has been restored from. -./mmv1/products/filestore/Instance.yaml:187: that this file share has been restored from. -./mmv1/products/apigee/Organization.yaml:153: operation completes. During this period, the Organization may be restored to its last known state. -./mmv1/products/apigee/Organization.yaml:154: After this period, the Organization will no longer be able to be restored. -./mmv1/products/backupdr/RestoreWorkload.yaml:15:name: 'RestoreWorkload' -./mmv1/products/backupdr/RestoreWorkload.yaml:18: Creating this resource will initiate a restore operation from a specified backup. -./mmv1/products/backupdr/RestoreWorkload.yaml:19: The resource represents the restore operation and its result. -./mmv1/products/backupdr/RestoreWorkload.yaml:20:# Immutable ensures any config change triggers a fresh restore rather than an invalid update -./mmv1/products/backupdr/RestoreWorkload.yaml:35: custom_create: 'templates/terraform/custom_create/backup_dr_restore_workload.go.tmpl' -./mmv1/products/backupdr/RestoreWorkload.yaml:36: custom_delete: 'templates/terraform/custom_delete/backup_dr_restore_workload.go.tmpl' -./mmv1/products/backupdr/RestoreWorkload.yaml:38: - name: 'backup_dr_restore_workload_compute_instance_basic' -./mmv1/products/backupdr/RestoreWorkload.yaml:39: primary_resource_id: 'restore_compute_basic' -./mmv1/products/backupdr/RestoreWorkload.yaml:47: instance_name: 'restored-instance' -./mmv1/products/backupdr/RestoreWorkload.yaml:48: - name: 'backup_dr_restore_workload_compute_instance_full' -./mmv1/products/backupdr/RestoreWorkload.yaml:49: primary_resource_id: 'restore_compute_full' -./mmv1/products/backupdr/RestoreWorkload.yaml:57: instance_name: 'restored-instance-full' -./mmv1/products/backupdr/RestoreWorkload.yaml:58: - name: 'backup_dr_restore_workload_disk_basic' -./mmv1/products/backupdr/RestoreWorkload.yaml:59: primary_resource_id: 'restore_disk_basic' -./mmv1/products/backupdr/RestoreWorkload.yaml:67: disk_name: 'restored-disk' -./mmv1/products/backupdr/RestoreWorkload.yaml:68: - name: 'backup_dr_restore_workload_regional_disk' -./mmv1/products/backupdr/RestoreWorkload.yaml:69: primary_resource_id: 'restore_regional_disk' -./mmv1/products/backupdr/RestoreWorkload.yaml:77: disk_name: 'restored-regional-disk' -./mmv1/products/backupdr/RestoreWorkload.yaml:78: - name: 'backup_dr_restore_workload_without_delete' -./mmv1/products/backupdr/RestoreWorkload.yaml:79: primary_resource_id: 'restore_without_delete' -./mmv1/products/backupdr/RestoreWorkload.yaml:108: description: 'Required. The ID of the backup to restore from.' -./mmv1/products/backupdr/RestoreWorkload.yaml:164: # --- Restore Properties (oneof instance_properties) --- -./mmv1/products/backupdr/RestoreWorkload.yaml:165: - name: 'computeInstanceRestoreProperties' -./mmv1/products/backupdr/RestoreWorkload.yaml:167: description: 'Optional. Compute Engine instance properties to be overridden during restore.' -./mmv1/products/backupdr/RestoreWorkload.yaml:649: - name: 'diskRestoreProperties' -./mmv1/products/backupdr/RestoreWorkload.yaml:651: description: 'Optional. Disk properties to be overridden during restore.' -./mmv1/products/backupdr/RestoreWorkload.yaml:763: description: 'Optional. A field mask used to clear server-side default values during restore.' -./mmv1/products/backupdr/RestoreWorkload.yaml:765: - name: 'deleteRestoredInstance' -./mmv1/products/backupdr/RestoreWorkload.yaml:770: If false, only the restore record is removed from the state, leaving the resource active. -./mmv1/products/backupdr/RestoreWorkload.yaml:771: # --- Output (RestoreBackupResponse) --- -./mmv1/products/backupdr/RestoreWorkload.yaml:775: description: 'Output only. Details of the target resource created/modified as part of restore.' -./mmv1/products/backupdr/RestoreWorkload.yaml:779: description: 'Output only. Details of the native Google Cloud resource created as part of restore.' -./mmv1/products/backupdr/ManagementServer.yaml:69: default_value: "BACKUP_RESTORE" -./mmv1/products/backupdr/ManagementServer.yaml:71: - 'BACKUP_RESTORE' -./mmv1/products/backupdr/BackupVault.yaml:169: project to enable the service to run backups and restores there. " -./mmv1/products/iamworkforcepool/WorkforcePoolProvider.yaml:198: deleted after approximately 30 days. You can restore a soft-deleted provider using -./mmv1/products/iamworkforcepool/WorkforcePool.yaml:122: after approximately 30 days. You can restore a soft-deleted pool using -./mmv1/products/orgpolicy/Policy.yaml:162: description: Ignores policies set above this resource and restores the `constraint_default` enforcement behavior of the specific `Constraint` at this resource. This field can be set in policies for either list or boolean constraints. If set, `rules` must be empty and `inherit_from_parent` must be set to false. -./mmv1/products/orgpolicy/Policy.yaml:247: description: Ignores policies set above this resource and restores the `constraint_default` enforcement behavior of the specific constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, `rules` must be empty and `inherit_from_parent` must be set to false. -./mmv1/products/iambeta/WorkloadIdentityPoolManagedIdentity.yaml:111: permanently deleted after approximately 30 days. You can restore a soft-deleted managed -./mmv1/products/iambeta/WorkloadIdentityPool.yaml:97: approximately 30 days. You can restore a soft-deleted pool using -./mmv1/products/iambeta/WorkloadIdentityPoolProvider.yaml:127: after approximately 30 days. You can restore a soft-deleted provider using -./mmv1/products/iambeta/WorkloadIdentityPoolNamespace.yaml:91: after approximately 30 days. You can restore a soft-deleted namespace using -./mmv1/products/binaryauthorization/Policy.yaml:37: pre_delete: 'templates/terraform/pre_delete/restore_default_binaryauthorization_policy.tmpl' -./mmv1/products/servicenetworking/VPCServiceControls.yaml:38: - Restores a default route (destination 0.0.0.0/0, next hop default -./mmv1/products/alloydb/Cluster.yaml:98: - name: 'alloydb_cluster_restore' -./mmv1/products/alloydb/Cluster.yaml:102: alloydb_backup_restored_cluster_name: 'alloydb-backup-restored' -./mmv1/products/alloydb/Cluster.yaml:103: alloydb_pitr_restored_cluster_name: 'alloydb-pitr-restored' -./mmv1/products/alloydb/Cluster.yaml:240: The earliest restorable time that can be restored to. Output only field. -./mmv1/products/alloydb/Cluster.yaml:346: - name: 'restoreBackupSource' -./mmv1/products/alloydb/Cluster.yaml:349: The source when restoring from a backup. Conflicts with 'restore_continuous_backup_source', 'restore_backupdr_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. -./mmv1/products/alloydb/Cluster.yaml:353: - restore_continuous_backup_source -./mmv1/products/alloydb/Cluster.yaml:354: - restore_backupdr_backup_source -./mmv1/products/alloydb/Cluster.yaml:355: - restore_backupdr_pitr_source -./mmv1/products/alloydb/Cluster.yaml:360: The name of the backup that this cluster is restored from. -./mmv1/products/alloydb/Cluster.yaml:363: - name: 'restoreContinuousBackupSource' -./mmv1/products/alloydb/Cluster.yaml:366: The source when restoring via point in time recovery (PITR). Conflicts with 'restore_backup_source', 'restore_backupdr_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. -./mmv1/products/alloydb/Cluster.yaml:370: - restore_backup_source -./mmv1/products/alloydb/Cluster.yaml:371: - restore_backupdr_backup_source -./mmv1/products/alloydb/Cluster.yaml:372: - restore_backupdr_pitr_source -./mmv1/products/alloydb/Cluster.yaml:377: The name of the source cluster that this cluster is restored from. -./mmv1/products/alloydb/Cluster.yaml:383: The point in time that this cluster is restored to, in RFC 3339 format. -./mmv1/products/alloydb/Cluster.yaml:386: - name: 'restoreBackupdrBackupSource' -./mmv1/products/alloydb/Cluster.yaml:389: The source when restoring from a backup. Conflicts with 'restore_continuous_backup_source', 'restore_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. -./mmv1/products/alloydb/Cluster.yaml:393: - restore_continuous_backup_source -./mmv1/products/alloydb/Cluster.yaml:394: - restore_backup_source -./mmv1/products/alloydb/Cluster.yaml:395: - restore_backupdr_pitr_source -./mmv1/products/alloydb/Cluster.yaml:400: The name of the BackupDR backup that this cluster is restored from. It must be of the format "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[VAULT_ID]/dataSources/[DATASOURCE_ID]/backups/[BACKUP_ID]" -./mmv1/products/alloydb/Cluster.yaml:403: - name: 'restoreBackupdrPitrSource' -./mmv1/products/alloydb/Cluster.yaml:406: The BackupDR source used for point in time recovery. Conflicts with 'restore_backupdr_backup_source', 'restore_continuous_backup_source' and 'restore_backupdr_backup_source', they can't be set togeter. -./mmv1/products/alloydb/Cluster.yaml:410: - restore_backup_source -./mmv1/products/alloydb/Cluster.yaml:411: - restore_continuous_backup_source -./mmv1/products/alloydb/Cluster.yaml:412: - restore_backupdr_backup_source -./mmv1/products/alloydb/Cluster.yaml:417: The name of the BackupDR data source that this cluster is restore from. It must be of the format "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[VAULT_ID]/dataSources/[DATASOURCE_ID]" -./mmv1/products/alloydb/Cluster.yaml:423: The point in time that this cluster is restored to, in RFC 3339 format. -./mmv1/products/alloydb/Cluster.yaml:443: The numbers of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. -./mmv1/products/compute/Image.yaml:105: Size of the image when restored onto a persistent disk (in GB). -./mmv1/products/compute/RegionDisk.yaml:417: Specifies whether the disk restored from a source snapshot should erase Windows specific VSS signature. -./mmv1/products/compute/Disk.yaml:574: Specifies whether the disk restored from a source snapshot should erase Windows specific VSS signature. -./mmv1/products/netapp/VolumeSnapshot.yaml:18: NetApp Volumes helps you manage your data usage with snapshots that can quickly restore lost data. -./mmv1/products/netapp/ActiveDirectory.yaml:134: Domain user/group accounts to be added to the Backup Operators group of the SMB service. The Backup Operators group allows members to backup and restore files regardless of whether they have read or write access to the files. Comma-separated list. -./mmv1/products/netapp/Backup.yaml:22: use backups to restore your data to a new volume. -./mmv1/products/netapp/Volume.yaml:295: - name: 'restoreParameters' -./mmv1/products/netapp/Volume.yaml:311: - 'restore_parameters.0.source_backup' -./mmv1/products/netapp/Volume.yaml:312: - 'restore_parameters.0.source_snapshot' -./mmv1/products/netapp/Volume.yaml:321: - 'restore_parameters.0.source_backup' -./mmv1/products/netapp/Volume.yaml:322: - 'restore_parameters.0.source_snapshot' -./tools/issue-labeler/labeler/enrolled_teams.yml:19:service/aiplatform-featurestore: -./tools/issue-labeler/labeler/enrolled_teams.yml:21: - google_vertex_ai_featurestore.* -./tools/issue-labeler/labeler/enrolled_teams.yml:442:service/firestore-controlplane: -./tools/issue-labeler/labeler/enrolled_teams.yml:444: - google_firestore_backup_schedule -./tools/issue-labeler/labeler/enrolled_teams.yml:445: - google_firestore_database -./tools/issue-labeler/labeler/enrolled_teams.yml:446: - google_firestore_user_creds -./tools/issue-labeler/labeler/enrolled_teams.yml:447:service/firestore-dataplane: -./tools/issue-labeler/labeler/enrolled_teams.yml:450: - google_firestore_document -./tools/issue-labeler/labeler/enrolled_teams.yml:451: - google_firestore_field -./tools/issue-labeler/labeler/enrolled_teams.yml:452: - google_firestore_index -./tools/issue-labeler/labeler/enrolled_teams.yml:453: - google_firestore_ttl From d81697d027c61143464cd4e7399e3b8650723c8c Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Wed, 4 Mar 2026 17:54:00 +0000 Subject: [PATCH 25/32] Update to beta factories --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 83cfb1de8535..f537309a44af 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1737,7 +1737,7 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { acctest.VcrTest(t, resource.TestCase{ PreCheck: func() { acctest.AccTestPreCheck(t) }, - ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t), + ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t), Steps: []resource.TestStep{ { Config: testAccSqlDatabaseInstance_crossProjectClone(context), From aa569ad3ddef82364439bbbfc2ef4cd90fc982e2 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Thu, 5 Mar 2026 07:10:45 +0000 Subject: [PATCH 26/32] Using env. variables for dest project --- mmv1/third_party/terraform/envvar/envvar_utils.go | 9 +++++++++ .../sql/resource_sql_database_instance_test.go.tmpl | 10 +--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/mmv1/third_party/terraform/envvar/envvar_utils.go b/mmv1/third_party/terraform/envvar/envvar_utils.go index fb34c9ec481f..19c49ad55c77 100644 --- a/mmv1/third_party/terraform/envvar/envvar_utils.go +++ b/mmv1/third_party/terraform/envvar/envvar_utils.go @@ -41,6 +41,10 @@ var ProjectEnvVars = []string{ "CLOUDSDK_CORE_PROJECT", } +var cloneProjectEnvVars = []string{ + "GOOGLE_CLONE_DESTINATION_PROJECT", +} + var RegionEnvVars = []string{ "GOOGLE_REGION", "GCLOUD_REGION", @@ -234,6 +238,11 @@ func GetTestVmwareengineProjectFromEnv(t *testing.T) string { return transport_tpg.MultiEnvSearch(vmwareengineProjectEnvVars) } +func GetTestDestinationProjectFromEnv(t *testing.T) string { + SkipIfEnvNotSet(t, cloneProjectEnvVars...) + return transport_tpg.MultiEnvSearch(cloneProjectEnvVars) +} + func SkipIfEnvNotSet(t *testing.T, envs ...string) { if t == nil { log.Printf("[DEBUG] Not running inside of test - skip skipping") diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index f537309a44af..7143bea3a8e0 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1720,17 +1720,14 @@ func TestAccSqlDatabaseInstance_basicClone(t *testing.T) { {{- if ne $.TargetVersionName "ga" }} func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { - // Sqladmin client - //acctest.SkipIfVcr(t) t.Parallel() cloneDestinationProject := envvar.GetTestProjectFromEnv() - cloneSourceProject := acctest.BootstrapProject(t, "tf-cpc-", envvar.GetTestBillingAccountFromEnv(t), []string{"sqladmin.googleapis.com"}).ProjectId //"sdeekshaa-playground" + cloneSourceProject := envvar.GetTestDestinationProjectFromEnv() context := map[string]interface{}{ "random_suffix": acctest.RandString(t, 10), "original_db_name": acctest.BootstrapSharedSQLInstanceBackupRun(t, cloneSourceProject), - //"destinationNetwork": acctest.BootstrapSharedServiceNetworkingConnection(t, "test-cross-project-clone", acctest.ServiceNetworkWithProjectID(cloneDestinationProject)), "cloneSourceProject": cloneSourceProject, "cloneDestinationProject": cloneDestinationProject, } @@ -8339,11 +8336,6 @@ func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{} project = "${data.google_project.source_project.project_id}" } - //data "google_compute_network" "servicenet" { - // name = "%{destinationNetwork}" - // project = "${data.google_project.destination_project.project_id}" - //} - data "google_project" "source_project" { project_id = "%{cloneSourceProject}" } From 869eb28782146df76d77a07cca1e25aa047ad21c Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Thu, 5 Mar 2026 07:15:37 +0000 Subject: [PATCH 27/32] Compile fix --- .../services/sql/resource_sql_database_instance_test.go.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 7143bea3a8e0..7273269a32f7 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1723,7 +1723,7 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { t.Parallel() cloneDestinationProject := envvar.GetTestProjectFromEnv() - cloneSourceProject := envvar.GetTestDestinationProjectFromEnv() + cloneSourceProject := envvar.GetTestDestinationProjectFromEnv(t) context := map[string]interface{}{ "random_suffix": acctest.RandString(t, 10), From db570ea8b099af3ddd259ef863f978223e0837fb Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Thu, 5 Mar 2026 13:52:30 +0000 Subject: [PATCH 28/32] Small bug fix --- .../sql/resource_sql_database_instance_test.go.tmpl | 6 +++--- withoutDestroyMethod1.log | 0 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 withoutDestroyMethod1.log diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index 7273269a32f7..ef60440c5799 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1722,8 +1722,8 @@ func TestAccSqlDatabaseInstance_basicClone(t *testing.T) { func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { t.Parallel() - cloneDestinationProject := envvar.GetTestProjectFromEnv() - cloneSourceProject := envvar.GetTestDestinationProjectFromEnv(t) + cloneDestinationProject := envvar.GetTestDestinationProjectFromEnv(t) + cloneSourceProject := envvar.GetTestProjectFromEnv() context := map[string]interface{}{ "random_suffix": acctest.RandString(t, 10), @@ -1734,7 +1734,7 @@ func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { acctest.VcrTest(t, resource.TestCase{ PreCheck: func() { acctest.AccTestPreCheck(t) }, - ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t), + ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t), Steps: []resource.TestStep{ { Config: testAccSqlDatabaseInstance_crossProjectClone(context), diff --git a/withoutDestroyMethod1.log b/withoutDestroyMethod1.log new file mode 100644 index 000000000000..e69de29bb2d1 From a5965bbfb1b922e7eb0e922abb95b9b25db9b66a Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 9 Mar 2026 16:00:05 +0000 Subject: [PATCH 29/32] Addressing PR comments --- .../acctest/bootstrap_test_utils.go.tmpl | 73 +++------ .../terraform/envvar/envvar_utils.go | 9 -- .../resource_sql_database_instance.go.tmpl | 3 + ...esource_sql_database_instance_test.go.tmpl | 153 ++++++++++++------ 4 files changed, 130 insertions(+), 108 deletions(-) diff --git a/mmv1/third_party/terraform/acctest/bootstrap_test_utils.go.tmpl b/mmv1/third_party/terraform/acctest/bootstrap_test_utils.go.tmpl index 87088231e7e4..47dbfa11bfd3 100644 --- a/mmv1/third_party/terraform/acctest/bootstrap_test_utils.go.tmpl +++ b/mmv1/third_party/terraform/acctest/bootstrap_test_utils.go.tmpl @@ -88,7 +88,7 @@ func BootstrapKMSKeyWithPurposeInLocation(t *testing.T, purpose, locationID stri } type BootstrappedKMSAutokey struct { - *cloudkms.AutokeyConfig + *cloudkms.AutokeyConfig *cloudkms.KeyHandle } @@ -159,7 +159,7 @@ func BootstrapKMSAutokeyKeyHandleWithLocation(t *testing.T, locationID string) B } return BootstrappedKMSAutokey{ - autokeyConfig, + autokeyConfig, keyHandle, } } @@ -577,11 +577,8 @@ const SharedTestNetworkPrefix = "tf-bootstrap-net-" // // Returns the name of a network, creating it if it hasn't been created in the // test project. -func BootstrapSharedTestNetwork(t *testing.T, testId string, project_id ...string) string { +func BootstrapSharedTestNetwork(t *testing.T, testId string) string { project := envvar.GetTestProjectFromEnv() - if len(project_id) > 0 && project_id[0] != "" { - project = project_id[0] - } networkName := SharedTestNetworkPrefix + testId config := BootstrapConfig(t) @@ -631,13 +628,6 @@ func BootstrapSharedTestNetwork(t *testing.T, testId string, project_id ...strin type AddressSettings struct { PrefixLength int - ProjectID string -} - -func AddressWithProjectID(projectID string) func(*AddressSettings) { - return func(settings *AddressSettings) { - settings.ProjectID = projectID - } } func AddressWithPrefixLength(prefixLength int) func(*AddressSettings) { @@ -661,13 +651,9 @@ const SharedTestGlobalAddressPrefix = "tf-bootstrap-addr-" // params are the functions to set compute global address func BootstrapSharedTestGlobalAddress(t *testing.T, testId string, params ...func(*AddressSettings)) string { - settings := NewAddressSettings(params...) - project := settings.ProjectID - if project == "" { - project = envvar.GetTestProjectFromEnv() - } + project := envvar.GetTestProjectFromEnv() addressName := SharedTestGlobalAddressPrefix + testId - networkName := BootstrapSharedTestNetwork(t, testId, project) + networkName := BootstrapSharedTestNetwork(t, testId) networkId := fmt.Sprintf("projects/%v/global/networks/%v", project, networkName) config := BootstrapConfig(t) @@ -681,6 +667,8 @@ func BootstrapSharedTestGlobalAddress(t *testing.T, testId string, params ...fun log.Printf("[DEBUG] Global address %q not found, bootstrapping", addressName) url := fmt.Sprintf("%sprojects/%s/global/addresses", config.ComputeBasePath, project) + settings := NewAddressSettings(params...) + netObj := map[string]interface{}{ "name": addressName, "address_type": "INTERNAL", @@ -722,7 +710,6 @@ func BootstrapSharedTestGlobalAddress(t *testing.T, testId string, params ...fun type ServiceNetworkSettings struct { PrefixLength int ParentService string - ProjectID string } func ServiceNetworkWithPrefixLength(prefixLength int) func(*ServiceNetworkSettings) { @@ -737,17 +724,10 @@ func ServiceNetworkWithParentService(parentService string) func(*ServiceNetworkS } } -func ServiceNetworkWithProjectID(projectID string) func(*ServiceNetworkSettings) { - return func(settings *ServiceNetworkSettings) { - settings.ProjectID = projectID - } -} - func NewServiceNetworkSettings(options ...func(*ServiceNetworkSettings)) *ServiceNetworkSettings { settings := &ServiceNetworkSettings{ PrefixLength: 16, // default prefix length ParentService: "servicenetworking.googleapis.com", // default parent service - ProjectID: "", // default project id is empty } for _, o := range options { @@ -778,9 +758,6 @@ func BootstrapSharedServiceNetworkingConnection(t *testing.T, testId string, par settings := NewServiceNetworkSettings(params...) parentService := "services/" + settings.ParentService projectId := envvar.GetTestProjectFromEnv() - if settings.ProjectID != "" { - projectId = settings.ProjectID - } config := BootstrapConfig(t) if config == nil { @@ -796,12 +773,7 @@ func BootstrapSharedServiceNetworkingConnection(t *testing.T, testId string, par networkName := SharedTestNetworkPrefix + testId networkId := fmt.Sprintf("projects/%v/global/networks/%v", project.ProjectNumber, networkName) - addrParams := []func(*AddressSettings){AddressWithPrefixLength(settings.PrefixLength)} - if settings.ProjectID != "" { - addrParams = append(addrParams, AddressWithProjectID(settings.ProjectID)) - } - log.Printf("[DEBUG] Printing networkId %q and projectId %q", networkId, projectId) - globalAddressName := BootstrapSharedTestGlobalAddress(t, testId, addrParams...) + globalAddressName := BootstrapSharedTestGlobalAddress(t, testId, AddressWithPrefixLength(settings.PrefixLength)) readCall := config.NewServiceNetworkingClient(config.UserAgent).Services.Connections.List(parentService).Network(networkId) if config.UserProjectOverride { @@ -1096,13 +1068,8 @@ const SharedTestSQLInstanceNamePrefix = "tf-bootstrap-" // BootstrapSharedSQLInstanceBackupRun will return a shared SQL db instance that // has a backup created for it. -func BootstrapSharedSQLInstanceBackupRun(t *testing.T, projectID ...string) string { - var project string - if len(projectID) > 0 && projectID[0] != "" { - project = projectID[0] - } else { - project = envvar.GetTestProjectFromEnv() - } +func BootstrapSharedSQLInstanceBackupRun(t *testing.T) string { + project := envvar.GetTestProjectFromEnv() config := BootstrapConfig(t) if config == nil { @@ -1234,14 +1201,14 @@ func waitForBackupdrOperation(ctx context.Context, t *testing.T, backupdrService // BootstrapBackupDRVault creates or gets a BackupDR backup vault for testing. func BootstrapBackupDRVault(t *testing.T, vaultID, location string) string { ctx := context.Background() - project := envvar.GetTestProjectFromEnv() - config := BootstrapConfig(t) - if config == nil { - t.Fatal("Could not bootstrap config.") - } - - // Create a backupdr client and check if the vault exists, if not create a vault - // backupdrClient := config.NewBackupDRClient(config.UserAgent) + project := envvar.GetTestProjectFromEnv() + config := BootstrapConfig(t) + if config == nil { + t.Fatal("Could not bootstrap config.") + } + + // Create a backupdr client and check if the vault exists, if not create a vault + // backupdrClient := config.NewBackupDRClient(config.UserAgent) vaultName := fmt.Sprintf("projects/%s/locations/%s/backupVaults/%s", project, location, vaultID) projectAndLocation := fmt.Sprintf("projects/%s/locations/%s", project, location) @@ -2353,7 +2320,7 @@ func BootstrapSharedTestTagValueDetails(t *testing.T, testId string, tagKey, par t.Fatalf("Error getting shared tag value %q: %s", sharedTagValue, err) } - return map[string]string{ + return map[string]string{ "name": getTagValueResponse["name"].(string), "shared_tag_value": sharedTagValue, } @@ -2496,7 +2463,7 @@ func AddBigQueryDatasetReplica(t *testing.T, projectID string, datasetID string, } else if status != nil && status.Err() != nil { // Check if the status error is an "Already Exists" error if ge, ok := status.Err().(*googleapi.Error); ok && ge.Code == 409 && (strings.Contains(ge.Message, "Duplicate") || strings.Contains(ge.Message, "Already Exists")) { - log.Printf("INFO: Replica '%s' already exists for dataset '%s' (error in job status). Continuing.", replicaLocation, datasetID) + log.Printf("INFO: Replica '%s' already exists for dataset '%s' (error in job status). Continuing.", replicaLocation, datasetID) } else { return "", fmt.Errorf("BigQuery job for adding replica completed with an error: %w", status.Err()) } diff --git a/mmv1/third_party/terraform/envvar/envvar_utils.go b/mmv1/third_party/terraform/envvar/envvar_utils.go index 19c49ad55c77..fb34c9ec481f 100644 --- a/mmv1/third_party/terraform/envvar/envvar_utils.go +++ b/mmv1/third_party/terraform/envvar/envvar_utils.go @@ -41,10 +41,6 @@ var ProjectEnvVars = []string{ "CLOUDSDK_CORE_PROJECT", } -var cloneProjectEnvVars = []string{ - "GOOGLE_CLONE_DESTINATION_PROJECT", -} - var RegionEnvVars = []string{ "GOOGLE_REGION", "GCLOUD_REGION", @@ -238,11 +234,6 @@ func GetTestVmwareengineProjectFromEnv(t *testing.T) string { return transport_tpg.MultiEnvSearch(vmwareengineProjectEnvVars) } -func GetTestDestinationProjectFromEnv(t *testing.T) string { - SkipIfEnvNotSet(t, cloneProjectEnvVars...) - return transport_tpg.MultiEnvSearch(cloneProjectEnvVars) -} - func SkipIfEnvNotSet(t *testing.T, envs ...string) { if t == nil { log.Printf("[DEBUG] Not running inside of test - skip skipping") diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl index 3e929b84af4f..d6fa1bdd7365 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl @@ -1572,6 +1572,9 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) {{- if ne $.TargetVersionName "ga" }} cloneSourceProject := expandCloneSourceProject(d.Get("clone").([]interface{})) + if cloneSourceProject == "" { + cloneSourceProject = project + } {{- end }} pointInTimeRestoreContext := expandPointInTimeRestoreContext(d.Get("point_in_time_restore_context").([]interface{})) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl index ef60440c5799..e6853e911927 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go.tmpl @@ -1,3 +1,4 @@ + package sql_test import ( @@ -1722,19 +1723,19 @@ func TestAccSqlDatabaseInstance_basicClone(t *testing.T) { func TestAccSqlDatabaseInstance_crossProjectClone(t *testing.T) { t.Parallel() - cloneDestinationProject := envvar.GetTestDestinationProjectFromEnv(t) - cloneSourceProject := envvar.GetTestProjectFromEnv() - context := map[string]interface{}{ "random_suffix": acctest.RandString(t, 10), - "original_db_name": acctest.BootstrapSharedSQLInstanceBackupRun(t, cloneSourceProject), - "cloneSourceProject": cloneSourceProject, - "cloneDestinationProject": cloneDestinationProject, + "orgId": envvar.GetTestOrgFromEnv(t), + "billingAccount": envvar.GetTestBillingAccountFromEnv(t), + "cloneSourceProject": envvar.GetTestProjectFromEnv(), } acctest.VcrTest(t, resource.TestCase{ PreCheck: func() { acctest.AccTestPreCheck(t) }, - ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t), + ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t), + ExternalProviders: map[string]resource.ExternalProvider{ + "time": {}, + }, Steps: []resource.TestStep{ { Config: testAccSqlDatabaseInstance_crossProjectClone(context), @@ -8297,49 +8298,109 @@ data "google_sql_backup_run" "backup" { func testAccSqlDatabaseInstance_crossProjectClone(context map[string]interface{}) string { return acctest.Nprintf(` - data "google_project" "destination_project" { - project_id = "%{cloneDestinationProject}" - } - resource "google_sql_database_instance" "instance" { - name = "tf-test-cpc-%{random_suffix}" - database_version = "POSTGRES_11" - region = "us-central1" - project = "${data.google_project.destination_project.project_id}" - - settings { - tier = "db-custom-2-3840" - edition = "ENTERPRISE" - ip_configuration { - private_network = "projects/%{cloneDestinationProject}/global/networks/default" //data.google_compute_network.servicenet.self_link - } - backup_configuration { - enabled = true - point_in_time_recovery_enabled = true - } - } +resource "google_project" "project" { + provider = google-beta + name = "tf-test-cpc-%{random_suffix}" + project_id = "tf-test-cpc-%{random_suffix}" + org_id = "%{orgId}" + billing_account = "%{billingAccount}" + deletion_policy = "DELETE" +} - clone { - source_project = "${data.google_project.source_project.project_id}" - source_instance_name = data.google_sql_database_instance.source_instance.name - } +resource "time_sleep" "wait_60_seconds" { + create_duration = "60s" + depends_on = [google_project.project] +} - deletion_protection = false +resource "google_project_service" "compute" { + provider = google-beta + project = google_project.project.project_id + service = "compute.googleapis.com" + depends_on = [time_sleep.wait_60_seconds] +} - // Ignore changes, since the most recent backup may change during the test - lifecycle{ - ignore_changes = [clone[0].point_in_time] - } - } +resource "google_project_service" "servicenetworking" { + provider = google-beta + project = google_project.project.project_id + service = "servicenetworking.googleapis.com" + depends_on = [google_project_service.compute] +} - data "google_sql_database_instance" "source_instance" { - name = "%{original_db_name}" - project = "${data.google_project.source_project.project_id}" - } +resource "time_sleep" "wait_300_seconds" { + create_duration = "300s" + depends_on = [google_project_service.servicenetworking] +} - data "google_project" "source_project" { - project_id = "%{cloneSourceProject}" - } - `, context) +resource "google_compute_network" "sql_network" { + provider = google-beta + name = "sql-network" + project = google_project.project.project_id + depends_on = [time_sleep.wait_300_seconds] +} + +resource "google_compute_global_address" "sql_range" { + provider = google-beta + name = "sql-range" + purpose = "VPC_PEERING" + address_type = "INTERNAL" + prefix_length = 16 + network = google_compute_network.sql_network.id + project = google_project.project.project_id +} + +resource "google_service_networking_connection" "sql_vpc_connection" { + provider = google-beta + network = google_compute_network.sql_network.id + service = "servicenetworking.googleapis.com" + reserved_peering_ranges = [google_compute_global_address.sql_range.name] + depends_on = [google_project_service.servicenetworking] + deletion_policy = "ABANDON" +} + +resource "google_sql_database_instance" "instance" { + provider = google-beta + name = "tf-test-cpc-%{random_suffix}" + database_version = "POSTGRES_11" + region = "us-central1" + project = google_project.project.project_id + + settings { + tier = "db-custom-2-3840" + edition = "ENTERPRISE" + ip_configuration { + private_network = google_compute_network.sql_network.self_link + } + backup_configuration { + enabled = true + point_in_time_recovery_enabled = true + } + } + + clone { + source_project = "%{cloneSourceProject}" + source_instance_name = google_sql_database_instance.source_instance.name + } + + deletion_protection = false + + // Ignore changes, since the most recent backup may change during the test + lifecycle{ + ignore_changes = [clone[0].point_in_time] + } + depends_on = [google_service_networking_connection.sql_vpc_connection] +} + +resource "google_sql_database_instance" "source_instance" { + provider = google-beta + name = "tf-test-source-%{random_suffix}" + database_version = "POSTGRES_11" + region = "us-central1" + deletion_protection = false + settings { + tier = "db-g1-small" + } +} +`, context) } func testAccSqlDatabaseInstance_cloneWithSettings(context map[string]interface{}) string { @@ -9121,4 +9182,4 @@ func testGoogleSqlDatabaseInstanceCheckNodeCount(t *testing.T, instance string, return nil } -} +} \ No newline at end of file From da61a09c69e9b2da3cdd10940bc193179a3ff743 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 9 Mar 2026 16:04:45 +0000 Subject: [PATCH 30/32] Adding documentation --- .../terraform/website/docs/r/sql_database_instance.html.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown b/mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown index 557eab484b72..fe0297b64716 100644 --- a/mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown +++ b/mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown @@ -715,6 +715,7 @@ The optional `point_in_time_restore_context` block supports: The optional `clone` block supports: * `source_instance_name` - (Required) Name of the source instance which will be cloned. +* `source_project` - (Optional) Id of source project where source instances exits, required for cross project clone scenario. * `point_in_time` - (Optional) The timestamp of the point in time that should be restored. From bb75fefde16c1e3239b1437495e9a71a7aafe648 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 9 Mar 2026 17:38:28 +0000 Subject: [PATCH 31/32] Remove extra file --- withoutDestroyMethod1.log | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 withoutDestroyMethod1.log diff --git a/withoutDestroyMethod1.log b/withoutDestroyMethod1.log deleted file mode 100644 index e69de29bb2d1..000000000000 From 6ed0a3de2862e2cc1156129f966525ab9926bdd5 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 9 Mar 2026 17:54:57 +0000 Subject: [PATCH 32/32] Small bug fix --- .../services/sql/resource_sql_database_instance.go.tmpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl index d6fa1bdd7365..e6451ae5420c 100644 --- a/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl +++ b/mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl @@ -1638,8 +1638,11 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) if cloneContext != nil { cloneContext.DestinationInstanceName = name {{- if ne $.TargetVersionName "ga" }} - cloneContext.DestinationProject = project - cloneContext.DestinationNetwork = network + // if cloneSourceProject isn't equal to the project, then it's a cross project clone request. + if (cloneSourceProject != project) { + cloneContext.DestinationProject = project + cloneContext.DestinationNetwork = network + } {{- end }} clodeReq := sqladmin.InstancesCloneRequest{CloneContext: cloneContext} {{- if ne $.TargetVersionName "ga" }}