summaryrefslogtreecommitdiff
path: root/novaclient/v2/versions.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/v2/versions.py')
-rw-r--r--novaclient/v2/versions.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/novaclient/v2/versions.py b/novaclient/v2/versions.py
new file mode 100644
index 0000000..5ab09a1
--- /dev/null
+++ b/novaclient/v2/versions.py
@@ -0,0 +1,35 @@
1# Copyright 2014 NEC Corporation. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15"""
16version interface
17"""
18
19from novaclient import base
20
21
22class Version(base.Resource):
23 """
24 Compute REST API information
25 """
26 def __repr__(self):
27 return "<Version>"
28
29
30class VersionManager(base.ManagerWithFind):
31 resource_class = Version
32
33 def list(self):
34 """List all versions."""
35 return self._list(None, "versions")