Skip to content

Commit

Permalink
Support setting 'location' in google_sql_database_instance backup_con…
Browse files Browse the repository at this point in the history
…figuration
  • Loading branch information
JamesGuthrie committed Oct 15, 2019
1 parent 1db04e9 commit 52b794a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions google/resource_sql_database_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ func resourceSqlDatabaseInstance() *schema.Resource {
// start_time is randomly assigned if not set
Computed: true,
},
"location": {
Type: schema.TypeString,
Optional: true,
},
},
},
},
Expand Down Expand Up @@ -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),
}
}

Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 52b794a

Please sign in to comment.