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

Method Update

cf/api/service_plan.go:34–40  ·  view source on GitHub ↗
(servicePlan models.ServicePlanFields, serviceGUID string, public bool)

Source from the content-addressed store, hash-verified

32}
33
34func (repo CloudControllerServicePlanRepository) Update(servicePlan models.ServicePlanFields, serviceGUID string, public bool) error {
35 return repo.gateway.UpdateResource(
36 repo.config.APIEndpoint(),
37 fmt.Sprintf("/v2/service_plans/%s", servicePlan.GUID),
38 strings.NewReader(fmt.Sprintf(`{"public":%t}`, public)),
39 )
40}
41
42func (repo CloudControllerServicePlanRepository) ListPlansFromManyServices(serviceGUIDs []string) ([]models.ServicePlanFields, error) {
43 serviceGUIDsString := strings.Join(serviceGUIDs, ",")

Callers

nothing calls this directly

Calls 2

UpdateResourceMethod · 0.80
APIEndpointMethod · 0.65

Tested by

no test coverage detected