~ubuntu-branches/ubuntu/vivid/ironic/vivid-updates

« back to all changes in this revision

Viewing changes to ironic/api/controllers/v1/__init__.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-01-05 12:21:37 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20150105122137-171bqrdpcxqipunk
Tags: 2015.1~b1-0ubuntu1
* New upstream beta release:
  - d/control: Align version requirements with upstream release.
* d/watch: Update uversionmangle to deal with kilo beta versioning
  changes.
* d/control: Bumped Standards-Version to 3.9.6, no changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
import pecan
26
26
from pecan import rest
27
 
 
28
27
from wsme import types as wtypes
29
28
import wsmeext.pecan as wsme_pecan
30
29
 
51
50
    """The representation of the version 1 of the API."""
52
51
 
53
52
    id = wtypes.text
54
 
    "The ID of the version, also acts as the release number"
 
53
    """The ID of the version, also acts as the release number"""
55
54
 
56
55
    media_types = [MediaType]
57
 
    "An array of supported media types for this version"
 
56
    """An array of supported media types for this version"""
58
57
 
59
58
    links = [link.Link]
60
 
    "Links that point to a specific URL for this version and documentation"
 
59
    """Links that point to a specific URL for this version and documentation"""
61
60
 
62
61
    chassis = [link.Link]
63
 
    "Links to the chassis resource"
 
62
    """Links to the chassis resource"""
64
63
 
65
64
    nodes = [link.Link]
66
 
    "Links to the nodes resource"
 
65
    """Links to the nodes resource"""
67
66
 
68
67
    ports = [link.Link]
69
 
    "Links to the ports resource"
 
68
    """Links to the ports resource"""
70
69
 
71
70
    drivers = [link.Link]
72
 
    "Links to the drivers resource"
 
71
    """Links to the drivers resource"""
73
72
 
74
 
    @classmethod
75
 
    def convert(self):
 
73
    @staticmethod
 
74
    def convert():
76
75
        v1 = V1()
77
76
        v1.id = "v1"
78
77
        v1.links = [link.Link.make_link('self', pecan.request.host_url,