Skip to content

Commit

Permalink
Organization api uptake changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere committed Dec 11, 2024
1 parent 644f94b commit 66f3e28
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions twilio/rest/preview/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
)
Expand All @@ -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
Expand Down

0 comments on commit 66f3e28

Please sign in to comment.