File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments