Skip to content

Commit

Permalink
doc: gen docs
Browse files Browse the repository at this point in the history
  • Loading branch information
avirtopeanu-ionos committed Oct 9, 2023
1 parent e94bc2d commit 222e6fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion commands/dbaas/mongo/cluster/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func ClusterCreateCmd() *core.Command {
_ = cmd.Command.RegisterFlagCompletionFunc(constants.FlagRam, func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
return []string{"1024MB", "2GB", "4GB", "8GB", "12GB", "16GB"}, cobra.ShellCompDirectiveNoFileComp
})
cmd.AddStringFlag(constants.FlagStorageType, "", "SSD",
cmd.AddStringFlag(constants.FlagStorageType, "", "\"SSD Standard\"",
"Custom Storage Type. (only settable for enterprise edition)")
_ = cmd.Command.RegisterFlagCompletionFunc(constants.FlagStorageType, func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
return []string{"HDD", "\"SSD Standard\"", "\"SSD Premium\""}, cobra.ShellCompDirectiveNoFileComp
Expand Down
3 changes: 1 addition & 2 deletions commands/dbaas/mongo/cluster/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
)

func ClusterUpdateCmd() *core.Command {

cmd := core.NewCommand(context.TODO(), nil, core.CommandBuilder{
Namespace: "dbaas-mongo",
Resource: "cluster",
Expand Down Expand Up @@ -189,7 +188,7 @@ func ClusterUpdateCmd() *core.Command {
_ = cmd.Command.RegisterFlagCompletionFunc(constants.FlagRam, func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
return []string{"1024MB", "2GB", "4GB", "8GB", "12GB", "16GB"}, cobra.ShellCompDirectiveNoFileComp
})
cmd.AddStringFlag(constants.FlagStorageType, "", "SSD",
cmd.AddStringFlag(constants.FlagStorageType, "", "\"SSD Standard\"",
"Custom Storage Type. (only settable for enterprise edition)")
_ = cmd.Command.RegisterFlagCompletionFunc(constants.FlagStorageType, func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
return []string{"HDD", "\"SSD Standard\"", "\"SSD Premium\""}, cobra.ShellCompDirectiveNoFileComp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Create DBaaS Mongo Replicaset or Sharded Clusters for your chosen edition
--ram string Custom RAM: multiples of 1024. e.g. --ram 1024 or --ram 1024MB or --ram 4GB (required and only settable for enterprise edition) (default "2GB")
--shards int32 The total number of shards in the sharded_cluster cluster. Setting this flag is only possible for enterprise clusters and infers a sharded_cluster type. Possible values: 2 - 32. (required for sharded_cluster enterprise clusters) (required) (default 1)
--storage-size string Custom Storage: Minimum of 5GB, Greater performance for values greater than 100 GB. (only settable for enterprise edition) (default "5GB")
--storage-type string Custom Storage Type. (only settable for enterprise edition) (default "SSD")
--storage-type string Custom Storage Type. (only settable for enterprise edition) (default "\"SSD Standard\"")
--template string The ID of a Mongo Template, or a word contained in the name of one. Templates specify the number of cores, storage size, and memory. Business editions default to XS template. Playground editions default to playground template.
-t, --timeout int Timeout option for Request [seconds] (default 60)
--type string Cluster Type. Required for enterprise clusters. Not required (inferred) if using --shards or --instances. Can be one of: replicaset, sharded-cluster (default "replicaset")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Update a Mongo Cluster by ID
--ram string Custom RAM: multiples of 1024. e.g. --ram 1024 or --ram 1024MB or --ram 4GB (required and only settable for enterprise edition)
--shards int32 The total number of shards in the sharded_cluster cluster. Setting this flag is only possible for enterprise clusters and infers a sharded_cluster type. Possible values: 2 - 32. (required for sharded_cluster enterprise clusters) (default 1)
--storage-size string Custom Storage: Greater performance for values greater than 100 GB. (required and only settable for enterprise edition)
--storage-type string Custom Storage Type. (required and only settable for enterprise edition). Can be one of: HDD, SSD, "SSD Premium"
--storage-type string Custom Storage Type. (only settable for enterprise edition) (default "\"SSD Standard\"")
-t, --timeout int Timeout option for Request [seconds] (default 60)
-v, --verbose Print step-by-step process when running command
-w, --wait-for-request Wait for the Request to be executed
Expand Down

0 comments on commit 222e6fe

Please sign in to comment.