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

Method getServicePlans

api/cloudcontroller/ccv3/service_plan.go:33–47  ·  view source on GitHub ↗
(query ...Query)

Source from the content-addressed store, hash-verified

31}
32
33func (client *Client) getServicePlans(query ...Query) ([]resources.ServicePlan, IncludedResources, Warnings, error) {
34 var plans []resources.ServicePlan
35
36 included, warnings, err := client.MakeListRequest(RequestParams{
37 RequestName: internal.GetServicePlansRequest,
38 Query: query,
39 ResponseBody: resources.ServicePlan{},
40 AppendToList: func(item interface{}) error {
41 plans = append(plans, item.(resources.ServicePlan))
42 return nil
43 },
44 })
45
46 return plans, included, warnings, err
47}
48
49type ServicePlanWithSpaceAndOrganization struct {
50 // GUID is a unique service plan identifier.

Calls 1

MakeListRequestMethod · 0.65

Tested by

no test coverage detected