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 3
3
from twilio .rest .iam .IamBase import IamBase
4
4
from twilio .rest .iam .v1 .api_key import ApiKeyList
5
5
from twilio .rest .iam .v1 .get_api_keys import GetApiKeysList
6
- from twilio .rest .iam .v1 .new_api_key import NewApiKeyList
7
6
8
7
9
8
class Iam (IamBase ):
@@ -24,12 +23,3 @@ def get_api_keys(self) -> GetApiKeysList:
24
23
stacklevel = 2 ,
25
24
)
26
25
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 1
1
from warnings import warn
2
2
3
3
from 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
7
4
from twilio .rest .oauth .v1 .token import TokenList
8
- from twilio .rest .oauth .v1 .user_info import UserInfoList
9
5
10
6
11
7
class 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
38
8
39
9
@property
40
10
def token (self ) -> TokenList :
@@ -44,12 +14,3 @@ def token(self) -> TokenList:
44
14
stacklevel = 2 ,
45
15
)
46
16
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 1
1
from warnings import warn
2
2
3
3
from twilio .rest .preview .PreviewBase import PreviewBase
4
- from twilio .rest .preview .deployed_devices .fleet import FleetList
5
4
from twilio .rest .preview .hosted_numbers .authorization_document import (
6
5
AuthorizationDocumentList ,
7
6
)
15
14
16
15
17
16
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
26
17
27
18
@property
28
19
def authorization_documents (self ) -> AuthorizationDocumentList :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments