summaryrefslogtreecommitdiffstats
path: root/azure/multicloud_azure/swagger/views/registry/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'azure/multicloud_azure/swagger/views/registry/views.py')
-rw-r--r--azure/multicloud_azure/swagger/views/registry/views.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/azure/multicloud_azure/swagger/views/registry/views.py b/azure/multicloud_azure/swagger/views/registry/views.py
index 8464ce4..c5f7ab3 100644
--- a/azure/multicloud_azure/swagger/views/registry/views.py
+++ b/azure/multicloud_azure/swagger/views/registry/views.py
@@ -85,3 +85,17 @@ class UnRegistry(APIView):
return Response(data=e.message,
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
return Response(data="", status=status.HTTP_204_NO_CONTENT)
+
+
+class APIv1Registry(Registry):
+
+ def post(self, request, cloud_owner, cloud_region_id):
+ vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id)
+ return super(APIv1Registry, self).post(request, vimid)
+
+
+class APIv1UnRegistry(UnRegistry):
+
+ def delete(self, request, cloud_owner, cloud_region_id):
+ vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id)
+ return super(APIv1UnRegistry, self).delete(request, vimid)