MCPcopy Create free account
hub / github.com/cloudfoundry/cli / Update

Method Update

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

Source from the content-addressed store, hash-verified

77}
78
79func (repo CloudControllerQuotaRepository) Update(quota models.QuotaFields) error {
80 path := fmt.Sprintf("/v2/quota_definitions/%s", quota.GUID)
81 return repo.gateway.UpdateResourceFromStruct(repo.config.APIEndpoint(), path, quota)
82}
83
84func (repo CloudControllerQuotaRepository) AssignQuotaToOrg(orgGUID, quotaGUID string) (apiErr error) {
85 path := fmt.Sprintf("/v2/organizations/%s", orgGUID)

Callers

nothing calls this directly

Calls 2

APIEndpointMethod · 0.65

Tested by

no test coverage detected