@@ -24,7 +24,6 @@ func GetGeneratedCommands() *core.Commands {
2424 rdbEngine (),
2525 rdbInstance (),
2626 rdbACL (),
27- rdbSettings (),
2827 rdbPrivilege (),
2928 rdbUser (),
3029 rdbDatabase (),
@@ -49,8 +48,6 @@ func GetGeneratedCommands() *core.Commands {
4948 rdbLogPrepare (),
5049 rdbLogList (),
5150 rdbLogGet (),
52- rdbSettingsAdd (),
53- rdbSettingsDelete (),
5451 rdbACLList (),
5552 rdbACLAdd (),
5653 rdbACLDelete (),
@@ -114,16 +111,6 @@ func rdbACL() *core.Command {
114111 }
115112}
116113
117- func rdbSettings () * core.Command {
118- return & core.Command {
119- Short : `Settings management commands` ,
120- Long : `Instance Settings are tunables of Database Engines. Available settings depend on the database engine and its version.
121- ` ,
122- Namespace : "rdb" ,
123- Resource : "settings" ,
124- }
125- }
126-
127114func rdbPrivilege () * core.Command {
128115 return & core.Command {
129116 Short : `User privileges management commands` ,
@@ -939,78 +926,6 @@ func rdbLogGet() *core.Command {
939926 }
940927}
941928
942- func rdbSettingsAdd () * core.Command {
943- return & core.Command {
944- Short : `Add an instance setting` ,
945- Long : `Add an instance setting.` ,
946- Namespace : "rdb" ,
947- Resource : "settings" ,
948- Verb : "add" ,
949- ArgsType : reflect .TypeOf (rdb.AddInstanceSettingsRequest {}),
950- ArgSpecs : core.ArgSpecs {
951- {
952- Name : "instance-id" ,
953- Short : `UUID of the instance you want to add settings to` ,
954- Required : true ,
955- Positional : false ,
956- },
957- {
958- Name : "settings.{index}.name" ,
959- Required : false ,
960- Positional : false ,
961- },
962- {
963- Name : "settings.{index}.value" ,
964- Required : false ,
965- Positional : false ,
966- },
967- core .RegionArgSpec (scw .RegionFrPar , scw .RegionNlAms ),
968- },
969- Run : func (ctx context.Context , args interface {}) (i interface {}, e error ) {
970- request := args .(* rdb.AddInstanceSettingsRequest )
971-
972- client := core .ExtractClient (ctx )
973- api := rdb .NewAPI (client )
974- return api .AddInstanceSettings (request )
975-
976- },
977- }
978- }
979-
980- func rdbSettingsDelete () * core.Command {
981- return & core.Command {
982- Short : `Delete an instance setting` ,
983- Long : `Delete an instance setting.` ,
984- Namespace : "rdb" ,
985- Resource : "settings" ,
986- Verb : "delete" ,
987- ArgsType : reflect .TypeOf (rdb.DeleteInstanceSettingsRequest {}),
988- ArgSpecs : core.ArgSpecs {
989- {
990- Name : "instance-id" ,
991- Short : `UUID of the instance to delete settings from` ,
992- Required : true ,
993- Positional : false ,
994- },
995- {
996- Name : "setting-names.{index}" ,
997- Short : `Settings names to delete` ,
998- Required : false ,
999- Positional : false ,
1000- },
1001- core .RegionArgSpec (scw .RegionFrPar , scw .RegionNlAms ),
1002- },
1003- Run : func (ctx context.Context , args interface {}) (i interface {}, e error ) {
1004- request := args .(* rdb.DeleteInstanceSettingsRequest )
1005-
1006- client := core .ExtractClient (ctx )
1007- api := rdb .NewAPI (client )
1008- return api .DeleteInstanceSettings (request )
1009-
1010- },
1011- }
1012- }
1013-
1014929func rdbACLList () * core.Command {
1015930 return & core.Command {
1016931 Short : `List ACL rules of a given instance` ,
0 commit comments