github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/command/v6/update_quota_command.go (about) 1 package v6 2 3 import ( 4 "code.cloudfoundry.org/cli/command" 5 "code.cloudfoundry.org/cli/command/flag" 6 "code.cloudfoundry.org/cli/command/translatableerror" 7 ) 8 9 type UpdateQuotaCommand struct { 10 RequiredArgs flag.Quota `positional-args:"yes"` 11 NumAppInstances int `short:"a" description:"Total number of application instances. -1 represents an unlimited amount."` 12 AllowPaidServicePlans bool `long:"allow-paid-service-plans" description:"Can provision instances of paid service plans"` 13 DisallowPaidServicePlans bool `long:"disallow-paid-service-plans" description:"Cannot provision instances of paid service plans"` 14 AppInstanceMemory flag.MemoryWithUnlimited `short:"i" description:"Maximum amount of memory an application instance can have (e.g. 1024M, 1G, 10G)"` 15 TotalMemory string `short:"m" description:"Total amount of memory (e.g. 1024M, 1G, 10G)"` 16 NewName string `short:"n" description:"New name"` 17 NumRoutes int `short:"r" description:"Total number of routes"` 18 ReservedRoutePorts int `long:"reserved-route-ports" description:"Maximum number of routes that may be created with reserved ports"` 19 NumServiceInstances int `short:"s" description:"Total number of service instances"` 20 usage interface{} `usage:"CF_NAME update-quota QUOTA [-m TOTAL_MEMORY] [-i INSTANCE_MEMORY] [-n NEW_NAME] [-r ROUTES] [-s SERVICE_INSTANCES] [-a APP_INSTANCES] [--allow-paid-service-plans | --disallow-paid-service-plans] [--reserved-route-ports RESERVED_ROUTE_PORTS]"` 21 relatedCommands interface{} `related_commands:"org, quota"` 22 } 23 24 func (UpdateQuotaCommand) Setup(config command.Config, ui command.UI) error { 25 return nil 26 } 27 28 func (UpdateQuotaCommand) Execute(args []string) error { 29 return translatableerror.UnrefactoredCommandError{} 30 }