Add predictive pricing
Change-Id: Ia6d461539e3732597f7930a86f1a163243617fc0
This commit is contained in:

committed by
Gauvain Pocentek

parent
b299a805a9
commit
a2bd4f8127
@@ -55,6 +55,7 @@ class Client(object):
|
|||||||
self.http_client = client.BaseClient(self.client)
|
self.http_client = client.BaseClient(self.client)
|
||||||
self.modules = core.CloudkittyModuleManager(self.http_client)
|
self.modules = core.CloudkittyModuleManager(self.http_client)
|
||||||
self.reports = report.ReportManager(self.http_client)
|
self.reports = report.ReportManager(self.http_client)
|
||||||
|
self.quotations = core.QuotationManager(self.http_client)
|
||||||
self._expose_submodules()
|
self._expose_submodules()
|
||||||
|
|
||||||
def _expose_submodules(self):
|
def _expose_submodules(self):
|
||||||
|
@@ -51,3 +51,12 @@ class CollectorManager(base.Manager):
|
|||||||
base_url = "/v1/rating"
|
base_url = "/v1/rating"
|
||||||
key = "collector"
|
key = "collector"
|
||||||
collection_key = "collectors"
|
collection_key = "collectors"
|
||||||
|
|
||||||
|
|
||||||
|
class QuotationManager(base.Manager):
|
||||||
|
base_url = "/v1/rating/quote"
|
||||||
|
|
||||||
|
def quote(self, resources):
|
||||||
|
out = self.api.post(self.base_url,
|
||||||
|
json={'resources': resources}).json()
|
||||||
|
return out
|
||||||
|
Reference in New Issue
Block a user