-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_quota_command.go
28 lines (24 loc) · 1.85 KB
/
create_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
package v2
import (
"code.cloudfoundry.org/cli/command"
"code.cloudfoundry.org/cli/command/flag"
"code.cloudfoundry.org/cli/command/translatableerror"
)
type CreateQuotaCommand struct {
RequiredArgs flag.Quota `positional-args:"yes"`
NumAppInstances int `short:"a" description:"Total number of application instances. -1 represents an unlimited amount. (Default: unlimited)"`
AllowPaidServicePlans bool `long:"allow-paid-service-plans" description:"Can provision instances of paid service plans"`
IndividualAppInstanceMemory flag.MemoryWithUnlimited `short:"i" description:"Maximum amount of memory an application instance can have (e.g. 1024M, 1G, 10G). -1 represents an unlimited amount."`
TotalMemory string `short:"m" description:"Total amount of memory a space can have (e.g. 1024M, 1G, 10G)"`
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 (Default: 0)"`
NumServiceInstances int `short:"s" description:"Total number of service instances"`
usage interface{} `usage:"CF_NAME create-quota QUOTA [-m TOTAL_MEMORY] [-i INSTANCE_MEMORY] [-r ROUTES] [-s SERVICE_INSTANCES] [-a APP_INSTANCES] [--allow-paid-service-plans] [--reserved-route-ports RESERVED_ROUTE_PORTS]"`
relatedCommands interface{} `related_commands:"create-org, quotas, set-quota"`
}
func (CreateQuotaCommand) Setup(config command.Config, ui command.UI) error {
return nil
}
func (CreateQuotaCommand) Execute(args []string) error {
return translatableerror.UnrefactoredCommandError{}
}