diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-03-17 19:31:54 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-03-17 19:31:54 +0000 |
| commit | 6db884e91f258b985fb8239c15ec0d6405dffa5d (patch) | |
| tree | 89aa3a5b439eb040571bb8b9b376cf6cab9ae6c9 /nova/api | |
| parent | f32bd1e8cc9bf824052ee3b6e087cfbac2790197 (diff) | |
| parent | f5212a583188e0aa0e5c7c960b43231085dd9545 (diff) | |
| download | nova-6db884e91f258b985fb8239c15ec0d6405dffa5d.tar.gz nova-6db884e91f258b985fb8239c15ec0d6405dffa5d.tar.xz nova-6db884e91f258b985fb8239c15ec0d6405dffa5d.zip | |
Merge "Add standard methods to the Limits API"
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/limits.py | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/nova/api/openstack/compute/limits.py b/nova/api/openstack/compute/limits.py index 2f69d5737..07e791306 100644 --- a/nova/api/openstack/compute/limits.py +++ b/nova/api/openstack/compute/limits.py @@ -75,15 +75,11 @@ class LimitsTemplate(xmlutil.TemplateBuilder): class LimitsController(object): - """ - Controller for accessing limits in the OpenStack API. - """ + """Controller for accessing limits in the OpenStack API.""" @wsgi.serializers(xml=LimitsTemplate) def index(self, req): - """ - Return all global and rate limit information. - """ + """Return all global and rate limit information.""" context = req.environ['nova.context'] quotas = QUOTAS.get_project_quotas(context, context.project_id, usages=False) @@ -93,6 +89,26 @@ class LimitsController(object): builder = self._get_view_builder(req) return builder.build(rate_limits, abs_limits) + def create(self, req, body): + """Create a new limit.""" + raise webob.exc.HTTPNotImplemented() + + def delete(self, req, id): + """Delete the limit.""" + raise webob.exc.HTTPNotImplemented() + + def detail(self, req): + """Return limit details.""" + raise webob.exc.HTTPNotImplemented() + + def show(self, req, id): + """Show limit information.""" + raise webob.exc.HTTPNotImplemented() + + def update(self, req, id, body): + """Update existing limit.""" + raise webob.exc.HTTPNotImplemented() + def _get_view_builder(self, req): return limits_views.ViewBuilder() |
