github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/command/v6/create_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 CreateQuotaCommand struct {
    10  	RequiredArgs                flag.Quota               `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"`
    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."`
    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-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]"`
    19  	relatedCommands             interface{}              `related_commands:"create-org, quotas, set-quota"`
    20  }
    21  
    22  func (CreateQuotaCommand) Setup(config command.Config, ui command.UI) error {
    23  	return nil
    24  }
    25  
    26  func (CreateQuotaCommand) Execute(args []string) error {
    27  	return translatableerror.UnrefactoredCommandError{}
    28  }