From 86ef81cebf5c5a7cf841194992e2f873089a0344 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Wed, 16 Oct 2019 09:34:21 -0400 Subject: [PATCH] API deprecation of inventory script views --- awx/api/views/inventory.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/awx/api/views/inventory.py b/awx/api/views/inventory.py index dfa3f6627a..987f5467b4 100644 --- a/awx/api/views/inventory.py +++ b/awx/api/views/inventory.py @@ -70,12 +70,16 @@ class InventoryUpdateEventsList(SubListAPIView): class InventoryScriptList(ListCreateAPIView): + deprecated = True + model = CustomInventoryScript serializer_class = CustomInventoryScriptSerializer class InventoryScriptDetail(RetrieveUpdateDestroyAPIView): + deprecated = True + model = CustomInventoryScript serializer_class = CustomInventoryScriptSerializer @@ -92,6 +96,8 @@ class InventoryScriptDetail(RetrieveUpdateDestroyAPIView): class InventoryScriptObjectRolesList(SubListAPIView): + deprecated = True + model = Role serializer_class = RoleSerializer parent_model = CustomInventoryScript @@ -105,6 +111,8 @@ class InventoryScriptObjectRolesList(SubListAPIView): class InventoryScriptCopy(CopyAPIView): + deprecated = True + model = CustomInventoryScript copy_return_serializer_class = CustomInventoryScriptSerializer