MCPcopy
hub / github.com/digitalocean/doctl / RunDatabaseStorageAutoscaleUpdate

Function RunDatabaseStorageAutoscaleUpdate

commands/databases.go:820–832  ·  view source on GitHub ↗

RunDatabaseStorageAutoscaleUpdate updates storage autoscaling settings for a database cluster.

(c *CmdConfig)

Source from the content-addressed store, hash-verified

818
819// RunDatabaseStorageAutoscaleUpdate updates storage autoscaling settings for a database cluster.
820func RunDatabaseStorageAutoscaleUpdate(c *CmdConfig) error {
821 if len(c.Args) == 0 {
822 return doctl.NewMissingArgsErr(c.NS)
823 }
824
825 id := c.Args[0]
826 r, err := buildDatabaseStorageAutoscaleRequestFromArgs(c)
827 if err != nil {
828 return err
829 }
830
831 return c.Databases().UpdateStorageAutoscale(id, r)
832}
833
834func buildDatabaseStorageAutoscaleRequestFromArgs(c *CmdConfig) (*godo.DatabaseStorageAutoscale, error) {
835 if c.Command == nil {

Callers 1

Tested by 1