@@ -45,6 +45,11 @@ func (s *PricingService) EstimateInstance(ctx context.Context, region string, in
|
||||
err := s.client.do(ctx, http.MethodPost, "/regions/"+escaped(region)+"/price-estimate", input, &result, newID())
|
||||
return &result, err
|
||||
}
|
||||
func (s *PricingService) EstimateExistingInstance(ctx context.Context, region, instanceID string) (*PriceEstimate, error) {
|
||||
var result PriceEstimate
|
||||
err := s.client.do(ctx, http.MethodPost, instancesPath(region, instanceID)+"/price-estimate", map[string]any{}, &result, "")
|
||||
return &result, err
|
||||
}
|
||||
func catalogPath(region, resource string, options ListOptions) string {
|
||||
values := url.Values{}
|
||||
if options.Query != "" {
|
||||
|
||||
Reference in New Issue
Block a user