X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=juju%2Funit.py;h=6450691a3a37af3d7a4b9d100aed5438fd449f18;hb=79da3cabfd6f424ebf303095600d78e1fb1311f2;hp=1a26a55a36ab73623b38dcecac2196c8a9a7ad6d;hpb=3817609d3a0889b444f3cd4ffd3a72bbb21d0c9d;p=osm%2FN2VC.git diff --git a/juju/unit.py b/juju/unit.py index 1a26a55..6450691 100644 --- a/juju/unit.py +++ b/juju/unit.py @@ -1,7 +1,11 @@ class Unit(object): - def add_storage(self): + def add_storage(self, name, constraints=None): """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 @@ -18,9 +22,12 @@ class Unit(object): pass remove = destroy - def get_resources(self): + def get_resources(self, details=False): """Return resources for this unit. + :param bool details: Include detailed info about resources used by each + unit + """ pass