X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=juju%2Fcloud.py;h=e4793ee5ea682e40566edfe330bc90391c0898d9;hb=refs%2Ftags%2F0.4.0;hp=6baa943992d5217ba52bcf53e68a9c2072a12172;hpb=596ccbe375a3a45e1625b798bb42da3df284ed09;p=osm%2FN2VC.git diff --git a/juju/cloud.py b/juju/cloud.py index 6baa943..e4793ee 100644 --- a/juju/cloud.py +++ b/juju/cloud.py @@ -10,13 +10,13 @@ class Cloud(object): :param `juju.Credential` credential: The Credential to add """ - pass + raise NotImplementedError() def get_credentials(self): """Return list of all credentials for this cloud. """ - pass + raise NotImplementedError() def remove_credential(self, credential_name): """Remove a credential for this cloud. @@ -24,7 +24,7 @@ class Cloud(object): :param str credential_name: Name of the credential to remove """ - pass + raise NotImplementedError() def bootstrap( self, controller_name, region=None, agent_version=None, @@ -41,14 +41,15 @@ class Cloud(object): :param str agent_version: Version of tools to use for Juju agents :param bool auto_upgrade: Upgrade to latest path release tools on first bootstrap - :param :class:`juju.Constraints` bootstrap_constraints: Constraints - for the bootstrap machine + :param bootstrap_constraints: Constraints for the bootstrap machine + :type bootstrap_constraints: :class:`juju.Constraints` :param str bootstrap_series: Series of the bootstrap machine :param dict config: Controller configuration - :param :class:`juju.Constraints` constraints: Default constraints for - all future workload machines - :param :class:`juju.Credential` credential: Credential to use when - bootstrapping + :param constraints: Default constraints for all future workload + machines + :type constraints: :class:`juju.Constraints` + :param credential: Credential to use when bootstrapping + :type credential: :class:`juju.Credential` :param str default_model: Name to give the default model :param bool keep_broken: Don't destroy model if bootstrap fails :param str metadata_source: Local path to use as tools and/or metadata @@ -61,7 +62,7 @@ class Cloud(object): bootstrapping """ - pass + raise NotImplementedError() def set_default_credential(self, credential_name): """Set the default credentials for this cloud. @@ -69,7 +70,7 @@ class Cloud(object): :param str credential_name: Credential to make default """ - pass + raise NotImplementedError() def set_default_region(self, region): """Set the default region for this cloud. @@ -77,4 +78,4 @@ class Cloud(object): :param str region: Name of region to make default """ - pass + raise NotImplementedError()