8000 chore: add assistants init files (#816) · CodeAiModels/twilio-python@7fc68cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fc68cb

Browse files
chore: add assistants init files (twilio#816)
1 parent 0f81bbb commit 7fc68cb

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

twilio/rest/assistants/__init__.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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

twilio/rest/iam/__init__.py

Lines changed: 1 addition & 1 deletion
< 6E3E div data-testid="deletion diffstat" class="DiffSquares-module__diffSquare--h5kjy DiffSquares-module__deletion--hKV3q">
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from twilio.rest.iam.v1.new_api_key import NewApiKeyList
77

88

9-
class Accounts(IamBase):
9+
class Iam(IamBase):
1010
@property
1111
def api_key(self) -> ApiKeyList:
1212
warn(

0 commit comments

Comments
 (0)
0