From 66f3e2871cc2f6abef453e8dd16e354b0995bc61 Mon Sep 17 00:00:00 2001 From: AsabuHere Date: Wed, 11 Dec 2024 22:47:50 +0530 Subject: [PATCH] Organization api uptake changes --- twilio/rest/preview/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/twilio/rest/preview/__init__.py b/twilio/rest/preview/__init__.py index 2f6334ae0..7b099b968 100644 --- a/twilio/rest/preview/__init__.py +++ b/twilio/rest/preview/__init__.py @@ -1,6 +1,7 @@ from warnings import warn from twilio.rest.preview.PreviewBase import PreviewBase +from twilio.rest.preview.deployed_devices.fleet import FleetList from twilio.rest.preview.hosted_numbers.authorization_document import ( AuthorizationDocumentList, ) @@ -14,6 +15,14 @@ class Preview(PreviewBase): + @property + def fleets(self) -> FleetList: + warn( + "fleets is deprecated. Use deployed_devices.fleets instead.", + DeprecationWarning, + stacklevel=2, + ) + return self.deployed_devices.fleets @property