-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_quota_command.go
30 lines (26 loc) · 1.99 KB
/
update_quota_command.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package v6
import (
"code.cloudfoundry.org/cli/command"
"code.cloudfoundry.org/cli/command/flag"
"code.cloudfoundry.org/cli/command/translatableerror"
)
type UpdateQuotaCommand struct {
RequiredArgs flag.Quota `positional-args:"yes"`
NumAppInstances int `short:"a" description:"Total number of application instances. -1 represents an unlimited amount."`
AllowPaidServicePlans bool `long:"allow-paid-service-plans" description:"Can provision instances of paid service plans"`
DisallowPaidServicePlans bool `long:"disallow-paid-service-plans" description:"Cannot provision instances of paid service plans"`
AppInstanceMemory flag.MemoryWithUnlimited `short:"i" description:"Maximum amount of memory an application instance can have (e.g. 1024M, 1G, 10G)"`
TotalMemory string `short:"m" description:"Total amount of memory (e.g. 1024M, 1G, 10G)"`
NewName string `short:"n" description:"New name"`
NumRoutes int `short:"r" description:"Total number of routes"`
ReservedRoutePorts int `long:"reserved-route-ports" description:"Maximum number of routes that may be created with reserved ports"`
NumServiceInstances int `short:"s" description:"Total number of service instances"`
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]"`
relatedCommands interface{} `related_commands:"org, quota"`
}
func (UpdateQuotaCommand) Setup(config command.Config, ui command.UI) error {
return nil
}
func (UpdateQuotaCommand) Execute(args []string) error {
return translatableerror.UnrefactoredCommandError{}
}