github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+incompatible/command/v2/create_space_quota_command.go (about)

     1  package v2
     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 CreateSpaceQuotaCommand struct {
    10  	RequiredArgs                flag.SpaceQuota          `positional-args:"yes"`
    11  	NumAppInstances             int                      `short:"a" description:"Total number of application instances. -1 represents an unlimited amount. (Default: unlimited)"`
    12  	AllowPaidServicePlans       bool                     `long:"allow-paid-service-plans" description:"Can provision instances of paid service plans (Default: disallowed)"`
    13  	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. (Default: unlimited)"`
    14  	TotalMemory                 string                   `short:"m" description:"Total amount of memory a space can have (e.g. 1024M, 1G, 10G)"`
    15  	NumRoutes                   int                      `short:"r" description:"Total number of routes"`
    16  	ReservedRoutePorts          int                      `long:"reserved-route-ports" description:"Maximum number of routes that may be created with reserved ports (Default: 0)"`
    17  	NumServiceInstances         int                      `short:"s" description:"Total number of service instances"`
    18  	usage                       interface{}              `usage:"CF_NAME create-space-quota QUOTA [-i INSTANCE_MEMORY] [-m MEMORY] [-r ROUTES] [-s SERVICE_INSTANCES] [-a APP_INSTANCES] [--allow-paid-service-plans] [--reserved-route-ports RESERVED_ROUTE_PORTS]"`
    19  	relatedCommands             interface{}              `related_commands:"quotas, space-quotas"`
    20  }
    21  
    22  func (CreateSpaceQuotaCommand) Setup(config command.Config, ui command.UI) error {
    23  	return nil
    24  }
    25  
    26  func (CreateSpaceQuotaCommand) Execute(args []string) error {
    27  	return translatableerror.UnrefactoredCommandError{}
    28  }