10000 Organization api uptake changes · twilio/twilio-python@66f3e28 · GitHub
[go: up one dir, main page]

Skip to content

Commit 66f3e28

Browse files
committed
Organization api uptake changes
1 parent 644f94b commit 66f3e28

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

twilio/rest/preview/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from warnings import warn
22

33
from twilio.rest.preview.PreviewBase import PreviewBase
4+
from twilio.rest.preview.deployed_devices.fleet import FleetList
45
from twilio.rest.preview.hosted_numbers.authorization_document import (
56
AuthorizationDocumentList,
67
)
@@ -14,6 +15,14 @@
1415

1516

1617
class Preview(PreviewBase):
18+
@property
19+
def fleets(self) -> FleetList:
20+
warn(
21+
"fleets is deprecated. Use deployed_devices.fleets instead.",
22+
DeprecationWarning,
23+
stacklevel=2,
24+
)
25+
return self.deployed_devices.fleets
1726

1827

1928
@property

0 commit comments

Comments
 (0)
0