File tree Expand file tree Collapse file tree 6 files changed +0
-131
lines changed Expand file tree Collapse file tree 6 files changed +0
-131
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33from twilio .rest .iam .IamBase import IamBase
44from twilio .rest .iam .v1 .api_key import ApiKeyList
55from twilio .rest .iam .v1 .get_api_keys import GetApiKeysList
6- from twilio .rest .iam .v1 .new_api_key import NewApiKeyList
76
87
98class Iam (IamBase ):
@@ -24,12 +23,3 @@ def get_api_keys(self) -> GetApiKeysList:
2423 stacklevel = 2 ,
2524 )
2625 return self .v1 .get_api_keys
27-
28- @property
29- def new_api_key (self ) -> NewApiKeyList :
30- warn (
31- "new_api_key is deprecated. Use v1.new_api_key instead." ,
32- DeprecationWarning ,
33- stacklevel = 2 ,
34- )
35- return self .v1 .new_api_key
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11from warnings import warn
22
33from twilio .rest .oauth .OauthBase import OauthBase
4- from twilio .rest .oauth .v1 .device_code import DeviceCodeList
5- from twilio .rest .oauth .v1 .oauth import OauthList
6- from twilio .rest .oauth .v1 .openid_discovery import OpenidDiscoveryList
74from twilio .rest .oauth .v1 .token import TokenList
8- from twilio .rest .oauth .v1 .user_info import UserInfoList
95
106
117class Oauth (OauthBase ):
12- @property
13- def oauth (self ) -> OauthList :
14- warn (
15- "oauth is deprecated. Use v1.oauth instead." ,
16- DeprecationWarning ,
17- stacklevel = 2 ,
18- )
19- return self .v1 .oauth
20-
21- @property
22- def device_code (self ) -> DeviceCodeList :
23- warn (
24- "device_code is deprecated. Use v1.device_code instead." ,
25- DeprecationWarning ,
26- stacklevel = 2 ,
27- )
28- return self .v1 .device_code
29-
30- @property
31- def openid_discovery (self ) -> OpenidDiscoveryList :
32- warn (
33- "openid_discovery is deprecated. Use v1.openid_discovery instead." ,
34- DeprecationWarning ,
35- stacklevel = 2 ,
36- )
37- return self .v1 .openid_discovery
388
399 @property
4010 def token (self ) -> TokenList :
@@ -44,12 +14,3 @@ def token(self) -> TokenList:
4414 stacklevel = 2 ,
4515 )
4616 return self .v1 .token
47-
48- @property
49- def user_info (self ) -> UserInfoList :
50- warn (
51- "user_info is deprecated. Use v1.user_info instead." ,
52- DeprecationWarning ,
53- stacklevel = 2 ,
54- )
55- return self .v1 .user_info
Original file line number Diff line number Diff line change 11from warnings import warn
22
33from twilio .rest .preview .PreviewBase import PreviewBase
4- from twilio .rest .preview .deployed_devices .fleet import FleetList
54from twilio .rest .preview .hosted_numbers .authorization_document import (
65 AuthorizationDocumentList ,
76)
1514
1615
1716class 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
2617
2718 @property
2819 def authorization_documents (self ) -> AuthorizationDocumentList :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments