File tree Expand file tree Collapse file tree 2 files changed +57
-1
lines changed Expand file tree Collapse file tree 2 files changed +57
-1
lines changed Original file line number Diff line number Diff line change
1
+ from warnings import warn
2
+
3
+ from twilio .rest .assistants import AssistantsBase
4
+ from twilio .rest .assistants .v1 .assistant import AssistantList
5
+ from twilio .rest .assistants .v1 .knowledge import KnowledgeList
6
+ from twilio .rest .assistants .v1 .policy import PolicyList
7
+ from twilio .rest .assistants .v1 .session import SessionList
8
+ from twilio .rest .assistants .v1 .tool import ToolList
9
+
10
+
11
+ class Assistants (AssistantsBase ):
12
+
13
+ @property
14
+ def assistants (self ) -> AssistantList :
15
+ warn (
16
+ "assistants is deprecated. Use v1.assistants instead." ,
17
+ DeprecationWarning ,
18
+ stacklevel = 2 ,
19
+ )
20
+ return self .v1 .assistants
21
+
22
+ @property
23
+ def knowledge (self ) -> KnowledgeList :
24
+ warn (
25
+ "knowledge is deprecated. Use v1.knowledge instead." ,
26
+ DeprecationWarning ,
27
+ stacklevel = 2 ,
28
+ )
29
+ return self .v1 .knowledge
30
+
31
+ @property
32
+ def policies (self ) -> PolicyList :
33
+ warn (
34
+ "policies is deprecated. Use v1.policies instead." ,
35
+ DeprecationWarning ,
36
+ stacklevel = 2 ,
37
+ )
38
+ return self .v1 .policies
39
+
40
+ @property
41
+ def sessions (self ) -> SessionList :
42
+ warn (
43
+ "sessions is deprecated. Use v1.sessions instead." ,
44
+ DeprecationWarning ,
45
+ stacklevel = 2 ,
46
+ )
47
+ return self .v1 .sessions
48
+
49
+ @property
50
+ def tools (self ) -> ToolList :
51
+ warn (
52
+ "tools is deprecated. Use v1.tools instead." ,
53
+ DeprecationWarning ,
54
+ stacklevel = 2 ,
55
+ )
56
+ return self .v1 .tools
Original file line number Diff line number Diff line change 6
6
from twilio .rest .iam .v1 .new_api_key import NewApiKeyList
7
7
8
8
9
- class Accounts (IamBase ):
9
+ class Iam (IamBase ):
10
10
@property
11
11
def api_key (self ) -> ApiKeyList :
12
12
warn (
You can’t perform that action at this time.
0 commit comments