From 52b794ac0d67a5fea0eeada5a688f511058f0d23 Mon Sep 17 00:00:00 2001 From: James Guthrie Date: Tue, 15 Oct 2019 20:03:45 +0200 Subject: [PATCH] Support setting 'location' in google_sql_database_instance backup_configuration --- google/resource_sql_database_instance.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/google/resource_sql_database_instance.go b/google/resource_sql_database_instance.go index e05bcd2d61a..dbf55492eec 100644 --- a/google/resource_sql_database_instance.go +++ b/google/resource_sql_database_instance.go @@ -118,6 +118,10 @@ func resourceSqlDatabaseInstance() *schema.Resource { // start_time is randomly assigned if not set Computed: true, }, + "location": { + Type: schema.TypeString, + Optional: true, + }, }, }, }, @@ -690,6 +694,7 @@ func expandBackupConfiguration(configured []interface{}) *sqladmin.BackupConfigu BinaryLogEnabled: _backupConfiguration["binary_log_enabled"].(bool), Enabled: _backupConfiguration["enabled"].(bool), StartTime: _backupConfiguration["start_time"].(string), + Location: _backupConfiguration["location"].(string), } } @@ -898,6 +903,7 @@ func flattenBackupConfiguration(backupConfiguration *sqladmin.BackupConfiguratio "binary_log_enabled": backupConfiguration.BinaryLogEnabled, "enabled": backupConfiguration.Enabled, "start_time": backupConfiguration.StartTime, + "location": backupConfiguration.Location, } return []map[string]interface{}{data}