github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/command/v2/update_space_quota_command.go (about) 1 package v2 2 3 import ( 4 "os" 5 6 "code.cloudfoundry.org/cli/cf/cmd" 7 "code.cloudfoundry.org/cli/command" 8 "code.cloudfoundry.org/cli/command/flag" 9 ) 10 11 type UpdateSpaceQuotaCommand struct { 12 RequiredArgs flag.SpaceQuota `positional-args:"yes"` 13 NumAppInstances int `short:"a" description:"Total number of application instances. -1 represents an unlimited amount."` 14 AllowPaidServicePlans bool `long:"allow-paid-service-plans" description:"Can provision instances of paid service plans"` 15 DisallowPaidServicePlans bool `long:"disallow-paid-service-plans" description:"Can not provision instances of paid service plans"` 16 AppInstanceMemory flag.MemoryWithUnlimited `short:"i" description:"Maximum amount of memory an application instance can have (e.g. 1024M, 1G, 10G). -1 represents an unlimited amount."` 17 TotalMemory string `short:"m" description:"Total amount of memory a space can have (e.g. 1024M, 1G, 10G)"` 18 Name string `short:"n" description:"New name"` 19 NumRoutes int `short:"r" description:"Total number of routes"` 20 ReservedRoutePorts int `long:"reserved-route-ports" description:"Maximum number of routes that may be created with reserved ports"` 21 NumServiceInstances int `short:"s" description:"Total number of service instances"` 22 usage interface{} `usage:"CF_NAME update-space-quota SPACE_QUOTA [-i INSTANCE_MEMORY] [-m MEMORY] [-n NAME] [-r ROUTES] [-s SERVICE_INSTANCES] [-a APP_INSTANCES] [--allow-paid-service-plans | --disallow-paid-service-plans] [--reserved-route-ports RESERVED_ROUTE_PORTS]"` 23 relatedCommands interface{} `related_commands:"space-quota, space-quotas"` 24 } 25 26 func (_ UpdateSpaceQuotaCommand) Setup(config command.Config, ui command.UI) error { 27 return nil 28 } 29 30 func (_ UpdateSpaceQuotaCommand) Execute(args []string) error { 31 cmd.Main(os.Getenv("CF_TRACE"), os.Args) 32 return nil 33 }