projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filling in params, docstrings (wip)
[osm/N2VC.git]
/
juju
/
unit.py
diff --git
a/juju/unit.py
b/juju/unit.py
index
1a26a55
..
6450691
100644
(file)
--- a/
juju/unit.py
+++ b/
juju/unit.py
@@
-1,7
+1,11
@@
class Unit(object):
class Unit(object):
- def add_storage(self):
+ def add_storage(self
, name, constraints=None
):
"""Add unit storage dynamically.
"""Add unit storage dynamically.
+ :param str name: Storage name, as specified by the charm
+ :param str constraints: Comma-separated list of constraints in the
+ form 'POOL,COUNT,SIZE'
+
"""
pass
"""
pass
@@
-18,9
+22,12
@@
class Unit(object):
pass
remove = destroy
pass
remove = destroy
- def get_resources(self):
+ def get_resources(self
, details=False
):
"""Return resources for this unit.
"""Return resources for this unit.
+ :param bool details: Include detailed info about resources used by each
+ unit
+
"""
pass
"""
pass