diff options
-rw-r--r-- | keystoneclient/v3/contrib/federation/mappings.py | 107 |
1 files changed, 49 insertions, 58 deletions
diff --git a/keystoneclient/v3/contrib/federation/mappings.py b/keystoneclient/v3/contrib/federation/mappings.py index d0c033f..1cdb879 100644 --- a/keystoneclient/v3/contrib/federation/mappings.py +++ b/keystoneclient/v3/contrib/federation/mappings.py @@ -48,35 +48,30 @@ class MappingManager(base.CrudManager): :param mapping_id: user defined string identifier of the federation mapping. - :param rules: a JSON dictionary with list a list - of mapping rules. - - Example of the ``rules``:: - - { - "mapping": { - "rules": [ - { - "local": [ - { - "group": { - "id": "0cd5e9" - } - } - ], - "remote": [ - { - "type": "orgPersonType", - "not_any_of": [ - "Contractor", - "Guest" - ] - } - ] - } - ] - } - } + :param rules: a list of mapping rules. + + Example of the ``rules`` parameter:: + + [ + { + "local": [ + { + "group": { + "id": "0cd5e9" + } + } + ], + "remote": [ + { + "type": "orgPersonType", + "not_any_of": [ + "Contractor", + "Guest" + ] + } + ] + } + ] """ return self._build_url_and_put( @@ -112,35 +107,31 @@ class MappingManager(base.CrudManager): :param mapping: a Mapping type object with mapping id stored inside. - :param rules: a JSON dictionary with list a list - of mapping rules. - - Example of the ``rules``:: - - { - "mapping": { - "rules": [ - { - "local": [ - { - "group": { - "id": "0cd5e9" - } - } - ], - "remote": [ - { - "type": "orgPersonType", - "not_any_of": [ - "Contractor", - "Guest" - ] - } - ] - } - ] - } - } + :param rules: a list of mapping rules. + + Example of the ``rules`` parameter:: + + + [ + { + "local": [ + { + "group": { + "id": "0cd5e9" + } + } + ], + "remote": [ + { + "type": "orgPersonType", + "not_any_of": [ + "Contractor", + "Guest" + ] + } + ] + } + ] """ return super(MappingManager, self).update( |