~ubuntu-branches/ubuntu/saucy/quantum/saucy

« back to all changes in this revision

Viewing changes to quantum/plugins/services/service_base.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-05-31 09:37:25 UTC
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: package-import@ubuntu.com-20130531093725-09i9oem8a2xlw442
Tags: upstream-2013.2~b1
ImportĀ upstreamĀ versionĀ 2013.2~b1

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
 
23
23
class ServicePluginBase(extensions.PluginInterface):
24
 
    """ defines base interface for any Advanced Service plugin """
 
24
    """Define base interface for any Advanced Service plugin."""
25
25
    __metaclass__ = abc.ABCMeta
26
26
    supported_extension_aliases = []
27
27
 
28
28
    @abc.abstractmethod
29
29
    def get_plugin_type(self):
30
 
        """ returns one of predefine service types. see
31
 
            quantum/plugins/common/constants.py """
 
30
        """Return one of predefined service types.
 
31
 
 
32
        See quantum/plugins/common/constants.py
 
33
        """
32
34
        pass
33
35
 
34
36
    @abc.abstractmethod
35
37
    def get_plugin_name(self):
36
 
        """ return a symbolic name for the plugin.
 
38
        """Return a symbolic name for the plugin.
37
39
 
38
40
        Each service plugin should have a symbolic name. This name
39
41
        will be used, for instance, by service definitions in service types
42
44
 
43
45
    @abc.abstractmethod
44
46
    def get_plugin_description(self):
45
 
        """ returns string description of the plugin """
 
47
        """Return string description of the plugin."""
46
48
        pass