Merge "Fix mappings.Mapping docstring"

This commit is contained in:
Jenkins
2014-10-20 00:51:25 +00:00
committed by Gerrit Code Review

View File

@@ -48,14 +48,11 @@ class MappingManager(base.CrudManager):
:param mapping_id: user defined string identifier of the federation :param mapping_id: user defined string identifier of the federation
mapping. mapping.
:param rules: a JSON dictionary with list a list :param rules: a list of mapping rules.
of mapping rules.
Example of the ``rules``:: Example of the ``rules`` parameter::
{ [
"mapping": {
"rules": [
{ {
"local": [ "local": [
{ {
@@ -75,8 +72,6 @@ class MappingManager(base.CrudManager):
] ]
} }
] ]
}
}
""" """
return self._build_url_and_put( return self._build_url_and_put(
@@ -112,14 +107,12 @@ class MappingManager(base.CrudManager):
:param mapping: a Mapping type object with mapping id :param mapping: a Mapping type object with mapping id
stored inside. stored inside.
:param rules: a JSON dictionary with list a list :param rules: a list of mapping rules.
of mapping rules.
Example of the ``rules``:: Example of the ``rules`` parameter::
{
"mapping": { [
"rules": [
{ {
"local": [ "local": [
{ {
@@ -139,8 +132,6 @@ class MappingManager(base.CrudManager):
] ]
} }
] ]
}
}
""" """
return super(MappingManager, self).update( return super(MappingManager, self).update(