mirror of
https://github.com/ansible/awx.git
synced 2026-03-29 06:45:09 -02:30
API deprecation of inventory script views
This commit is contained in:
@@ -70,12 +70,16 @@ class InventoryUpdateEventsList(SubListAPIView):
|
|||||||
|
|
||||||
class InventoryScriptList(ListCreateAPIView):
|
class InventoryScriptList(ListCreateAPIView):
|
||||||
|
|
||||||
|
deprecated = True
|
||||||
|
|
||||||
model = CustomInventoryScript
|
model = CustomInventoryScript
|
||||||
serializer_class = CustomInventoryScriptSerializer
|
serializer_class = CustomInventoryScriptSerializer
|
||||||
|
|
||||||
|
|
||||||
class InventoryScriptDetail(RetrieveUpdateDestroyAPIView):
|
class InventoryScriptDetail(RetrieveUpdateDestroyAPIView):
|
||||||
|
|
||||||
|
deprecated = True
|
||||||
|
|
||||||
model = CustomInventoryScript
|
model = CustomInventoryScript
|
||||||
serializer_class = CustomInventoryScriptSerializer
|
serializer_class = CustomInventoryScriptSerializer
|
||||||
|
|
||||||
@@ -92,6 +96,8 @@ class InventoryScriptDetail(RetrieveUpdateDestroyAPIView):
|
|||||||
|
|
||||||
class InventoryScriptObjectRolesList(SubListAPIView):
|
class InventoryScriptObjectRolesList(SubListAPIView):
|
||||||
|
|
||||||
|
deprecated = True
|
||||||
|
|
||||||
model = Role
|
model = Role
|
||||||
serializer_class = RoleSerializer
|
serializer_class = RoleSerializer
|
||||||
parent_model = CustomInventoryScript
|
parent_model = CustomInventoryScript
|
||||||
@@ -105,6 +111,8 @@ class InventoryScriptObjectRolesList(SubListAPIView):
|
|||||||
|
|
||||||
class InventoryScriptCopy(CopyAPIView):
|
class InventoryScriptCopy(CopyAPIView):
|
||||||
|
|
||||||
|
deprecated = True
|
||||||
|
|
||||||
model = CustomInventoryScript
|
model = CustomInventoryScript
|
||||||
copy_return_serializer_class = CustomInventoryScriptSerializer
|
copy_return_serializer_class = CustomInventoryScriptSerializer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user