8000 chore: removing unavailable references from init files (#818) · CodeAiModels/twilio-python@efa2803 · GitHub
[go: up one dir, main page]

Skip to content

Commit efa2803

Browse files
chore: removing unavailable references from init files (twilio#818)
1 parent 19e54f9 commit efa2803

File tree

6 files changed

+0
-131
lines changed

6 files changed

+0
-131
lines changed

twilio/rest/autopilot/__init__.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

twilio/rest/iam/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from twilio.rest.iam.IamBase import IamBase
44
from twilio.rest.iam.v1.api_key import ApiKeyList
55
from twilio.rest.iam.v1.get_api_keys import GetApiKeysList
6-
from twilio.rest.iam.v1.new_api_key import NewApiKeyList
76

87

98
class 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

twilio/rest/media/__init__.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

twilio/rest/oauth/__init__.py

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,10 @@
11
from warnings import warn
22

33
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
74
from twilio.rest.oauth.v1.token import TokenList
8-
from twilio.rest.oauth.v1.user_info import UserInfoList
95

106

117
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
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

twilio/rest/preview/__init__.py

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

33
from twilio.rest.preview.PreviewBase import PreviewBase
4-
from twilio.rest.preview.deployed_devices.fleet import FleetList
54
from twilio.rest.preview.hosted_numbers.authorization_document import (
65
AuthorizationDocumentList,
76
)
@@ -15,14 +14,6 @@
1514

1615

1716
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
2617

2718
@property
2819
def authorization_documents(self) -> AuthorizationDocumentList:

twilio/rest/preview_messaging/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0