projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #64 from juju/issues/27
[osm/N2VC.git]
/
juju
/
juju.py
diff --git
a/juju/juju.py
b/juju/juju.py
index
b2c6152
..
a9fcbbe
100644
(file)
--- a/
juju/juju.py
+++ b/
juju/juju.py
@@
-14,7
+14,7
@@
class Juju(object):
endpoint: https://london.mycloud.com:35574/v3.0/
"""
endpoint: https://london.mycloud.com:35574/v3.0/
"""
- pass
+ raise NotImplementedError()
def agree(self, *terms):
"""Agree to the terms of a charm.
def agree(self, *terms):
"""Agree to the terms of a charm.
@@
-22,45
+22,45
@@
class Juju(object):
:param str \*terms: Terms to agree to
"""
:param str \*terms: Terms to agree to
"""
- pass
+ raise NotImplementedError()
def autoload_credentials(self):
"""Finds cloud credentials and caches them for use by Juju when
bootstrapping.
"""
def autoload_credentials(self):
"""Finds cloud credentials and caches them for use by Juju when
bootstrapping.
"""
- pass
+ raise NotImplementedError()
def create_budget(self):
"""Create a new budget.
"""
def create_budget(self):
"""Create a new budget.
"""
- pass
+ raise NotImplementedError()
def get_agreements(self):
"""Return list of terms to which the current user has agreed.
"""
def get_agreements(self):
"""Return list of terms to which the current user has agreed.
"""
- pass
+ raise NotImplementedError()
def get_budgets(self):
"""Return list of available budgets.
"""
def get_budgets(self):
"""Return list of available budgets.
"""
- pass
+ raise NotImplementedError()
def get_clouds(self):
"""Return list of all available clouds.
"""
def get_clouds(self):
"""Return list of all available clouds.
"""
- pass
+ raise NotImplementedError()
def get_controllers(self):
"""Return list of all available controllers.
(maybe move this to Cloud?)
"""
def get_controllers(self):
"""Return list of all available controllers.
(maybe move this to Cloud?)
"""
- pass
+ raise NotImplementedError()
def get_plans(self, charm_url):
"""Return list of plans available for the specified charm.
def get_plans(self, charm_url):
"""Return list of plans available for the specified charm.
@@
-68,7
+68,7
@@
class Juju(object):
:param str charm_url: Charm url
"""
:param str charm_url: Charm url
"""
- pass
+ raise NotImplementedError()
def register(self, registration_string):
"""Register a user to a controller.
def register(self, registration_string):
"""Register a user to a controller.
@@
-76,35
+76,43
@@
class Juju(object):
:param str registration_string: The registration string
"""
:param str registration_string: The registration string
"""
- pass
+ raise NotImplementedError()
- def set_budget(self, name, amount):
- """Set a budget limit.
+ def set_budget(self, name, limit):
+ """Set a monthly budget limit.
+
+ :param str name: Name of budget
+ :param int limit: Monthly limit
"""
"""
- pass
+ raise NotImplementedError()
def get_cloud(self, name):
"""Get a cloud by name.
def get_cloud(self, name):
"""Get a cloud by name.
+ :param str name: Name of cloud
+
"""
"""
- pass
+ raise NotImplementedError()
- def get_controller(self):
+ def get_controller(self
, name, include_passwords=False
):
"""Get a controller by name.
"""Get a controller by name.
+ :param str name: Name of controller
+ :param bool include_passwords: Include passwords for accounts
+
(maybe move this to Cloud?)
"""
(maybe move this to Cloud?)
"""
- pass
+ raise NotImplementedError()
def update_clouds(self):
"""Update public cloud info available to Juju.
"""
def update_clouds(self):
"""Update public cloud info available to Juju.
"""
- pass
+ raise NotImplementedError()
def version(self):
"""Return the Juju version.
"""
def version(self):
"""Return the Juju version.
"""
- pass
+ raise NotImplementedError()