8000 chore: add static init file to iam domain (#813) · CodeAiModels/twilio-python@3eacd66 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3eacd66

Browse files
chore: add static init file to iam domain (twilio#813)
1 parent 74b506e commit 3eacd66

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

twilio/rest/iam/__init__.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
from warnings import warn
2+
3+
from twilio.rest.iam.IamBase import IamBase
4+
from twilio.rest.iam.v1.api_key import ApiKeyList
5+
from twilio.rest.iam.v1.get_api_keys import GetApiKeysList
6+
from twilio.rest.iam.v1.new_api_key import NewApiKeyList
7+
8+
9+
class Accounts(IamBase):
10+
@property
11+
def api_key(self) -> ApiKeyList:
12+
warn(
13+
"api_key is deprecated. Use v1.api_key instead.",
14+
DeprecationWarning,
15+
stacklevel=2,
16+
)
17+
return self.v1.api_key
18+
19+
@property
20+
def get_api_keys(self) -> GetApiKeysList:
21+
warn(
22+
"get_api_keys is deprecated. Use v1.get_api_keys instead.",
23+
DeprecationWarning,
24+
stacklevel=2,
25+
)
26+
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

0 commit comments

Comments
 (0)
0