Skip to content

Commit

Permalink
Add support for DBaaS VPC networks
Browse files Browse the repository at this point in the history
  • Loading branch information
christhemorse committed Jul 18, 2023
1 parent 00146a2 commit f90b44d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions database.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ type Database struct {
PlanVCPUs int `json:"plan_vcpus"`
PlanReplicas int `json:"plan_replicas"`
Region string `json:"region"`
DatabaseEngine string `json:"database_engine"`
DatabaseEngineVersion string `json:"database_engine_version"`
VPCID string `json:"vpc_id"`
Status string `json:"status"`
Label string `json:"label"`
Tag string `json:"tag"`
DatabaseEngine string `json:"database_engine"`
DatabaseEngineVersion string `json:"database_engine_version"`
DBName string `json:"dbname,omitempty"`
Host string `json:"host"`
User string `json:"user"`
Expand Down Expand Up @@ -171,6 +172,7 @@ type DatabaseCreateReq struct {
Plan string `json:"plan,omitempty"`
Label string `json:"label,omitempty"`
Tag string `json:"tag,omitempty"`
VPCID string `json:"vpc_id,omitempty"`
MaintenanceDOW string `json:"maintenance_dow,omitempty"`
MaintenanceTime string `json:"maintenance_time,omitempty"`
TrustedIPs []string `json:"trusted_ips,omitempty"`
Expand All @@ -187,6 +189,7 @@ type DatabaseUpdateReq struct {
Plan string `json:"plan,omitempty"`
Label string `json:"label,omitempty"`
Tag string `json:"tag,omitempty"`
VPCID string `json:"vpc_id,omitempty"`
MaintenanceDOW string `json:"maintenance_dow,omitempty"`
MaintenanceTime string `json:"maintenance_time,omitempty"`
ClusterTimeZone string `json:"cluster_time_zone,omitempty"`
Expand Down

0 comments on commit f90b44d

Please sign in to comment.