MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Create

Method Create

cf/api/quotas/quotas.go:75–77  ·  view source on GitHub ↗
(quota models.QuotaFields)

Source from the content-addressed store, hash-verified

73}
74
75func (repo CloudControllerQuotaRepository) Create(quota models.QuotaFields) error {
76 return repo.gateway.CreateResourceFromStruct(repo.config.APIEndpoint(), "/v2/quota_definitions", quota)
77}
78
79func (repo CloudControllerQuotaRepository) Update(quota models.QuotaFields) error {
80 path := fmt.Sprintf("/v2/quota_definitions/%s", quota.GUID)

Callers

nothing calls this directly

Calls 2

APIEndpointMethod · 0.65

Tested by

no test coverage detected