Skip to content

Commit dfdde59

Browse files
committed
feat: now can get and create pro databases
1 parent 04df93e commit dfdde59

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

database_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func TestDatabase_Create(t *testing.T) {
2626
"dataPersistence": "none",
2727
"dataEvictionPolicy": "allkeys-lru",
2828
"queryPerformanceFactor": "6x",
29+
"redisVersion": "6.0.5",
2930
"replication": true,
3031
"throughputMeasurement": {
3132
"by": "operations-per-second",
@@ -96,6 +97,7 @@ func TestDatabase_Create(t *testing.T) {
9697
DataPersistence: redis.String("none"),
9798
DataEvictionPolicy: redis.String("allkeys-lru"),
9899
QueryPerformanceFactor: redis.String("6x"),
100+
RedisVersion: redis.String("6.0.5"),
99101
Replication: redis.Bool(true),
100102
ThroughputMeasurement: &databases.CreateThroughputMeasurement{
101103
By: redis.String("operations-per-second"),
@@ -139,6 +141,7 @@ func TestDatabase_List(t *testing.T) {
139141
"provider": "AWS",
140142
"region": "eu-west-1",
141143
"queryPerformanceFactor": "Standard"
144+
142145
},
143146
{
144147
"databaseId": 43,

service/databases/model.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ type CreateDatabase struct {
3434
PortNumber *int `json:"port,omitempty"`
3535
RemoteBackup *DatabaseBackupConfig `json:"remoteBackup,omitempty"`
3636
QueryPerformanceFactor *string `json:"queryPerformanceFactor,omitempty"`
37+
RedisVersion *string `json:"redisVersion,omitempty"`
3738
}
3839

3940
func (o CreateDatabase) String() string {
@@ -80,6 +81,7 @@ type Database struct {
8081
RedisVersionCompliance *string `json:"redisVersionCompliance,omitempty"`
8182
Backup *Backup `json:"backup,omitempty"`
8283
QueryPerformanceFactor *string `json:"queryPerformanceFactor,omitempty"`
84+
RedisVersion *string `json:"redisVersion,omitempty"`
8385
}
8486

8587
func (o Database) String() string {

0 commit comments

Comments
 (0)