Skip to content

Commit 59dda9e

Browse files
feat(rdb): allow setting initial settings while creating an RDB instance. (#536)
Co-authored-by: Rémy Léone <[email protected]>
1 parent d35413e commit 59dda9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/rdb/v1/rdb_sdk.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,8 @@ type EngineVersion struct {
795795
Disabled bool `json:"disabled"`
796796

797797
Beta bool `json:"beta"`
798+
799+
InitSettings []*EngineSetting `json:"init_settings"`
798800
}
799801

800802
// Instance: instance
@@ -831,6 +833,8 @@ type Instance struct {
831833
ReadReplicas []*Endpoint `json:"read_replicas"`
832834
// NodeType: node type of the instance
833835
NodeType string `json:"node_type"`
836+
// InitSettings: list of engine settings to be set at database initialisation
837+
InitSettings []*InstanceSetting `json:"init_settings"`
834838
}
835839

836840
// InstanceLog: instance log
@@ -1682,6 +1686,8 @@ type CreateInstanceRequest struct {
16821686
DisableBackup bool `json:"disable_backup"`
16831687
// Tags: tags to apply to the instance
16841688
Tags []string `json:"tags"`
1689+
// InitSettings: list of engine settings to be set at database initialisation
1690+
InitSettings []*InstanceSetting `json:"init_settings"`
16851691
}
16861692

16871693
// CreateInstance: create an instance

0 commit comments

Comments
 (0)