Пример #1
0
 def get(self, path, **kwargs):
     result = client.RestResult()
     result.status = client.Status.OK
     result.data = json.JSONEncoder().encode({'group':
                                             {'initiators':
                                              ['iqn.1-0.org.deb:01:d7']}})
     return result
Пример #2
0
 def post(self, path, body="", **kwargs):
     result = client.RestResult()
     result.status = client.Status.CREATED
     return result
Пример #3
0
 def put(self, path, body="", **kwargs):
     result = client.RestResult()
     result.status = client.Status.ACCEPTED
     return result
Пример #4
0
 def logout(self):
     result = client.RestResult()
     result.status = client.Status.ACCEPTED
     return result