lib/3scale/api/client.rb in 3scale-api-1.0.0 vs lib/3scale/api/client.rb in 3scale-api-1.1.0

- old
+ new

@@ -521,9 +521,19 @@ response = http_client.post("/admin/api/application_plans/#{application_plan_id}/metrics/#{metric_id}/pricing_rules", body: attributes) extract(entity: 'pricing_rule', from: response) end # @api public + # @param [Fixnum] application_plan_id Application Plan ID + # @param [Fixnum] metric_id Metric ID + # @param [Fixnum] id Rule ID + # @return [Bool] + def delete_application_plan_pricingrule(application_plan_id, metric_id, id) + http_client.delete("/admin/api/application_plans/#{application_plan_id}/metrics/#{metric_id}/pricing_rules/#{id}") + true + end + + # @api public # @return [Array<Hash>] def list_activedocs response = http_client.get('/admin/api/active_docs') extract(collection: 'api_docs', entity: 'api_doc', from: response) end