Fix REST API service classes methods.

Change-Id: I97b618a6788e7b9381cc8dbdaa09253dbcebd395
This commit is contained in:
Dina Belova 2013-10-28 20:00:37 +04:00
parent dfeacfa37e
commit 868ff3e62c

View File

@ -23,11 +23,11 @@ class API(object):
## Leases operations ## Leases operations
def get_leases(): def get_leases(self):
"""List all existing leases.""" """List all existing leases."""
pass pass
def create_lease(data): def create_lease(self, data):
"""Create new lease. """Create new lease.
:param data: New lease characteristics. :param data: New lease characteristics.
@ -35,7 +35,7 @@ class API(object):
""" """
pass pass
def get_lease(lease_id): def get_lease(self, lease_id):
"""Get lease by its ID. """Get lease by its ID.
:param lease_id: ID of the lease in Climate DB. :param lease_id: ID of the lease in Climate DB.
@ -43,7 +43,7 @@ class API(object):
""" """
pass pass
def update_lease(lease_id, data): def update_lease(self, lease_id, data):
"""Update lease. Only name changing and prolonging may be proceeded. """Update lease. Only name changing and prolonging may be proceeded.
:param lease_id: ID of the lease in Climate DB. :param lease_id: ID of the lease in Climate DB.
@ -53,7 +53,7 @@ class API(object):
""" """
pass pass
def delete_lease(lease_id): def delete_lease(self, lease_id):
"""Delete specified lease. """Delete specified lease.
:param lease_id: ID of the lease in Climate DB. :param lease_id: ID of the lease in Climate DB.
@ -63,6 +63,6 @@ class API(object):
## Plugins operations ## Plugins operations
def get_plugins(): def get_plugins(self):
"""List all possible plugins.""" """List all possible plugins."""
pass pass