@@ -148,8 +148,11 @@ var _ = g.Service("control-plane", func() {
148148 g .Payload (func () {
149149 g .Attribute ("host_id" , g .String , func () {
150150 g .Description ("ID of the host to get." )
151+ g .Format (g .FormatUUID )
151152 g .Example ("de3b1388-1f0c-42f1-a86c-59ab72f255ec" )
152153 })
154+
155+ g .Required ("host_id" )
153156 })
154157 g .Result (Host )
155158 g .Error ("cluster_not_initialized" )
@@ -169,8 +172,11 @@ var _ = g.Service("control-plane", func() {
169172 g .Payload (func () {
170173 g .Attribute ("host_id" , g .String , func () {
171174 g .Description ("ID of the host to remove." )
175+ g .Format (g .FormatUUID )
172176 g .Example ("de3b1388-1f0c-42f1-a86c-59ab72f255ec" )
173177 })
178+
179+ g .Required ("host_id" )
174180 })
175181 g .Error ("cluster_not_initialized" )
176182 g .Error ("invalid_input" )
@@ -222,8 +228,11 @@ var _ = g.Service("control-plane", func() {
222228 g .Payload (func () {
223229 g .Attribute ("database_id" , g .String , func () {
224230 g .Description ("ID of the database to get." )
231+ g .Format (g .FormatUUID )
225232 g .Example ("02f1a7db-fca8-4521-b57a-2a375c1ced51" )
226233 })
234+
235+ g .Required ("database_id" )
227236 })
228237 g .Result (Database , func () {
229238 g .View ("default" )
@@ -245,13 +254,17 @@ var _ = g.Service("control-plane", func() {
245254 g .Payload (func () {
246255 g .Attribute ("database_id" , g .String , func () {
247256 g .Description ("ID of the database to update." )
257+ g .Format (g .FormatUUID )
248258 g .Example ("02f1a7db-fca8-4521-b57a-2a375c1ced51" )
249259 })
250260 g .Attribute ("force_update" , g .Boolean , func () {
251261 g .Description ("Force update the database even if the spec is the same." )
262+ g .Default (false )
252263 g .Example (true )
253264 })
254265 g .Attribute ("request" , UpdateDatabaseRequest )
266+
267+ g .Required ("database_id" , "request" )
255268 })
256269 g .Result (UpdateDatabaseResponse )
257270 g .Error ("cluster_not_initialized" )
@@ -306,6 +319,7 @@ var _ = g.Service("control-plane", func() {
306319 })
307320 g .Attribute ("node_name" , g .String , func () {
308321 g .Description ("Name of the node to back up." )
322+ g .Pattern (nodeNamePattern )
309323 g .Example ("n1" )
310324 })
311325 g .Attribute ("options" , BackupOptions )
@@ -487,5 +501,6 @@ var APIError = g.Type("APIError", func() {
487501 g .Description ("A Control Plane API error." )
488502 g .ErrorName ("name" , g .String , "The name of the error." )
489503 g .Attribute ("message" , g .String , "The error message." )
504+
490505 g .Required ("name" , "message" )
491506})
0 commit comments