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

Method UpdateServiceOfferingLabels

actor/v7action/label.go:148–154  ·  view source on GitHub ↗
(serviceOfferingName string, serviceBrokerName string, labels map[string]types.NullString)

Source from the content-addressed store, hash-verified

146}
147
148func (actor *Actor) UpdateServiceOfferingLabels(serviceOfferingName string, serviceBrokerName string, labels map[string]types.NullString) (Warnings, error) {
149 serviceOffering, warnings, err := actor.CloudControllerClient.GetServiceOfferingByNameAndBroker(serviceOfferingName, serviceBrokerName)
150 if err != nil {
151 return Warnings(warnings), actionerror.EnrichAPIErrors(err)
152 }
153 return actor.updateResourceMetadata("service-offering", serviceOffering.GUID, resources.Metadata{Labels: labels}, Warnings(warnings))
154}
155
156func (actor *Actor) UpdateServicePlanLabels(servicePlanName string, serviceOfferingName string, serviceBrokerName string, labels map[string]types.NullString) (Warnings, error) {
157 servicePlan, warnings, err := actor.GetServicePlanByNameOfferingAndBroker(servicePlanName, serviceOfferingName, serviceBrokerName)

Callers

nothing calls this directly

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 4

EnrichAPIErrorsFunction · 0.92
WarningsTypeAlias · 0.70

Tested by

no test coverage detected