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

Method Update

cf/api/service_brokers.go:98–105  ·  view source on GitHub ↗
(serviceBroker models.ServiceBroker)

Source from the content-addressed store, hash-verified

96}
97
98func (repo CloudControllerServiceBrokerRepository) Update(serviceBroker models.ServiceBroker) (apiErr error) {
99 path := fmt.Sprintf("/v2/service_brokers/%s", serviceBroker.GUID)
100 body := fmt.Sprintf(
101 `{"broker_url":"%s","auth_username":"%s","auth_password":"%s"}`,
102 serviceBroker.URL, serviceBroker.Username, serviceBroker.Password,
103 )
104 return repo.gateway.UpdateResource(repo.config.APIEndpoint(), path, strings.NewReader(body))
105}
106
107func (repo CloudControllerServiceBrokerRepository) Rename(guid, name string) (apiErr error) {
108 path := fmt.Sprintf("/v2/service_brokers/%s", guid)

Callers

nothing calls this directly

Calls 2

UpdateResourceMethod · 0.80
APIEndpointMethod · 0.65

Tested by

no test coverage detected