Revision 7e950d31 lib/rapi/rlib2.py
b/lib/rapi/rlib2.py | ||
---|---|---|
77 | 77 |
to adapt clients accordingly. |
78 | 78 |
|
79 | 79 |
""" |
80 |
def GET(self): |
|
80 |
@staticmethod |
|
81 |
def GET(): |
|
81 | 82 |
"""Returns the remote API version. |
82 | 83 |
|
83 | 84 |
""" |
... | ... | |
88 | 89 |
"""Cluster info. |
89 | 90 |
|
90 | 91 |
""" |
91 |
def GET(self): |
|
92 |
@staticmethod |
|
93 |
def GET(): |
|
92 | 94 |
"""Returns cluster information. |
93 | 95 |
|
94 | 96 |
""" |
... | ... | |
100 | 102 |
"""/2/os resource. |
101 | 103 |
|
102 | 104 |
""" |
103 |
def GET(self): |
|
105 |
@staticmethod |
|
106 |
def GET(): |
|
104 | 107 |
"""Return a list of all OSes. |
105 | 108 |
|
106 | 109 |
Can return error 500 in case of a problem. |
... | ... | |
131 | 134 |
"""/2/redistribute-config resource. |
132 | 135 |
|
133 | 136 |
""" |
134 |
def PUT(self): |
|
137 |
@staticmethod |
|
138 |
def PUT(): |
|
135 | 139 |
"""Redistribute configuration to all nodes. |
136 | 140 |
|
137 | 141 |
""" |
... | ... | |
142 | 146 |
"""/2/jobs resource. |
143 | 147 |
|
144 | 148 |
""" |
145 |
def GET(self): |
|
149 |
@staticmethod |
|
150 |
def GET(): |
|
146 | 151 |
"""Returns a dictionary of jobs. |
147 | 152 |
|
148 | 153 |
@return: a dictionary with jobs id and uri. |
Also available in: Unified diff