apmec.extensions.meso
Module¶apmec.extensions.meso.
MECDriverNotfound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'MEC driver not specified for the MESD %(mesd_name)'¶apmec.extensions.meso.
MESDInUse
(**kwargs)¶Bases: apmec.common.exceptions.InUse
message
= u'MESD %(mesd_id)s is still in use'¶apmec.extensions.meso.
MESDNotFound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'MESD %(mesd_id)s could not be found'¶apmec.extensions.meso.
MESInUse
(**kwargs)¶Bases: apmec.common.exceptions.InUse
message
= u'MES %(mes_id)s is still in use'¶apmec.extensions.meso.
MESNotFound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'MES %(mes_id)s could not be found'¶apmec.extensions.meso.
MESOPluginBase
¶Bases: apmec.services.service_base.MECPluginBase
create_mes
(context, mes)¶create_mesd
(context, mesd)¶delete_mes
(context, mes_id)¶delete_mesd
(context, mesd_id)¶get_mes
(context, mes_id, fields=None)¶get_mesd
(context, mesd_id, fields=None)¶get_mesds
(context, filters=None, fields=None)¶get_mess
(context, filters=None, fields=None)¶get_plugin_description
()¶Return string description of the plugin.
get_plugin_name
()¶Return a symbolic name for the plugin.
Each service plugin should have a symbolic name. This name will be used, for instance, by service definitions in service types
get_plugin_type
()¶Return one of predefined service types.
See apmec/plugins/common/constants.py
update_mes
(context, mes_id, mes)¶apmec.extensions.meso.
Meso
¶Bases: apmec.api.extensions.ExtensionDescriptor
get_alias
()¶The alias for the extension.
e.g. ‘FOXNSOX’
get_description
()¶Friendly description for the extension.
e.g. ‘The Fox In Socks Extension’
get_extended_resources
(version)¶Retrieve extended resources or attributes for core resources.
Extended attributes are implemented by a core plugin similarly to the attributes defined in the core, and can appear in request and response messages. Their names are scoped with the extension’s prefix. The core API version is passed to this function, which must return a map[<resource_name>][<attribute_name>][<attribute_property>] specifying the extended resource attribute properties required by that API version.
Extension can add resources and their attr definitions too. The returned map can be integrated into RESOURCE_ATTRIBUTE_MAP.
get_name
()¶The name of the extension.
e.g. ‘Fox In Socks’
get_namespace
()¶The XML namespace for the extension.
get_plugin_interface
()¶Returns an abstract class which defines contract for the plugin.
The abstract class should inherit from extesnions.PluginInterface, Methods in this abstract class should be decorated as abstractmethod
get_resources
()¶List of extensions.ResourceExtension extension objects.
Resources define new nouns, and are accessible through URLs.
get_updated
()¶The timestamp when the extension was last updated.
e.g. ‘2011-01-22T13:25:27-06:00’
update_attributes_map
(attributes)¶Update attributes map for this extension.
This is default method for extending an extension’s attributes map. An extension can use this method and supplying its own resource attribute map in extension_attrs_map argument to extend all its attributes that needs to be extended.
If an extension does not implement update_attributes_map, the method does nothing and just return.
apmec.extensions.meso.
NFVDriverNotFound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'NFV driver is not specified for the MESD %(mesd_name)'¶apmec.extensions.meso.
NSDNotFound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'NSD template(s) not existed for MESD %(mesd_name)'¶apmec.extensions.meso.
NoTasksException
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'No tasks to run for %(action)s on %(resource)s'¶apmec.extensions.meso.
ToscaParserFailed
(**kwargs)¶Bases: apmec.common.exceptions.InvalidInput
message
= u'tosca-parser failed: - %(error_msg_details)s'¶apmec.extensions.meso.
VNFFGDNotFound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'VNFFGD template(s) not existed for MESD %(mesd_name)'¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.