2016-02-04 00:40:32 +01:00
|
|
|
package sql
|
|
|
|
|
|
|
|
import "github.com/jen20/riviera/azure"
|
|
|
|
|
|
|
|
type CreateElasticDatabasePool struct {
|
|
|
|
Name string `json:"-"`
|
|
|
|
ServerName string `json:"-"`
|
|
|
|
ResourceGroupName string `json:"-"`
|
|
|
|
Location string `json:"-" riviera:"location"`
|
|
|
|
Tags map[string]*string `json:"-" riviera:"tags"`
|
|
|
|
Edition *string `json:"edition,omitempty"`
|
|
|
|
DTU *string `json:"dtu,omitempty"`
|
|
|
|
StorageMB *string `json:"storageMB,omitempty"`
|
|
|
|
DatabaseDTUMin *string `json:"databaseDtuMin,omitempty"`
|
|
|
|
DatabaseDTUMax *string `json:"databaseDtuMax,omitempty"`
|
|
|
|
}
|
|
|
|
|
2016-02-05 00:36:50 +01:00
|
|
|
func (s CreateElasticDatabasePool) APIInfo() azure.APIInfo {
|
|
|
|
return azure.APIInfo{
|
|
|
|
APIVersion: apiVersion,
|
2016-02-04 00:40:32 +01:00
|
|
|
Method: "PUT",
|
|
|
|
URLPathFunc: sqlElasticPoolDefaultURLPath(s.ResourceGroupName, s.ServerName, s.Name),
|
|
|
|
ResponseTypeFunc: func() interface{} {
|
|
|
|
return nil
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|