You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/vendor/github.com/jen20/riviera/sql/failover_database.go

23 lines
557 B

package sql
import "github.com/jen20/riviera/azure"
type FailoverDatabase struct {
DatabaseName string `json:"-"`
ServerName string `json:"-"`
ResourceGroupName string `json:"-"`
LinkID string `json:"-"`
}
func (s FailoverDatabase) APIInfo() azure.APIInfo {
return azure.APIInfo{
APIVersion: apiVersion,
Method: "POST",
URLPathFunc: sqlDatabaseFailoverUnplanned(s.ResourceGroupName, s.ServerName, s.DatabaseName, s.LinkID),
ResponseTypeFunc: func() interface{} {
return nil
},
HasBodyOverride: true,
}
}