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