Skip to content

Commit 6a60871

Browse files
committed
deprecate the getIncludeServicePlan method
1 parent f084f55 commit 6a60871

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

client/service_plan.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ func (c *ServicePlanClient) Get(ctx context.Context, guid string) (*resource.Ser
6363
return &ServicePlan, nil
6464
}
6565

66+
// Deprecated: GetIncludeServicePlan allows callers to fetch a service plan and include the associated service offering
67+
func (c *ServicePlanClient) GetIncludeServicePlan(ctx context.Context, guid string) (*resource.ServicePlan, *resource.ServiceOffering, error) {
68+
return c.GetIncludeServiceOffering(ctx, guid)
69+
}
70+
6671
// GetIncludeServiceOffering allows callers to fetch a service plan and include the associated service offering
6772
func (c *ServicePlanClient) GetIncludeServiceOffering(ctx context.Context, guid string) (*resource.ServicePlan, *resource.ServiceOffering, error) {
6873
var servicePlan resource.ServicePlanWithIncluded
@@ -108,11 +113,6 @@ func (c *ServicePlanClient) ListAll(ctx context.Context, opts *ServicePlanListOp
108113
})
109114
}
110115

111-
// Deprecated: ListIncludeServicePlan page all service plans the user has access to and include the associated service offerings
112-
func (c *ServicePlanClient) ListIncludeServicePlan(ctx context.Context, opts *ServicePlanListOptions) ([]*resource.ServicePlan, []*resource.ServiceOffering, *Pager, error) {
113-
return c.ListIncludeServiceOffering(ctx, opts)
114-
}
115-
116116
// ListIncludeServiceOffering page all service plans the user has access to and include the associated service offerings
117117
func (c *ServicePlanClient) ListIncludeServiceOffering(ctx context.Context, opts *ServicePlanListOptions) ([]*resource.ServicePlan, []*resource.ServiceOffering, *Pager, error) {
118118
if opts == nil {

0 commit comments

Comments
 (0)