Exemplo n.º 1
0
 def patch_organization(self, context, organization_id, **kwargs):
     scim = self._denormalize(kwargs, context["path"])
     organization = conv.organization_scim2key(scim, path=context["path"])
     ref = super(ScimOrganizationV3Controller, self).update_project(
         context, project_id=organization_id, project=organization
     )
     return conv.organization_key2scim(ref.get("project", None), path=context["path"])
Exemplo n.º 2
0
 def create_organization(self, context, **kwargs):
     scim = self._denormalize(kwargs, context['path'])
     organization = conv.organization_scim2key(scim, path=context['path'])
     ref = super(ScimOrganizationV3Controller,
                 self).create_project(context, project=organization)
     return conv.organization_key2scim(ref.get('project', None),
                                       path=context['path'])
Exemplo n.º 3
0
 def get_organization(self, context, organization_id):
     ref = super(ScimOrganizationV3Controller, self).get_project(context, project_id=organization_id)
     return conv.organization_key2scim(ref["project"], path=context["path"])
Exemplo n.º 4
0
 def get_organization(self, context, organization_id):
     ref = super(ScimOrganizationV3Controller,
                 self).get_project(context, project_id=organization_id)
     return conv.organization_key2scim(ref['project'], path=context['path'])
Exemplo n.º 5
0
 def create_organization(self, context, **kwargs):
     scim = self._denormalize(kwargs, context['path'])
     organization = conv.organization_scim2key(scim, path=context['path'])
     ref = super(ScimOrganizationV3Controller, self).create_project(
         context, project=organization)
     return conv.organization_key2scim(ref.get('project', None), path=context['path'])