8000 [Librarian] Regenerated @ 1b6718f23da76f150eac392860c66a26de9af713 ce… · CoolNightTimeCoder/twilio-python@e595e28 · GitHub
[go: up one dir, main page]

Skip to content

Commit e595e28

Browse files
committed
[Librarian] Regenerated @ 1b6718f23da76f150eac392860c66a26de9af713 ceb130295f80bc623f22496076e3dd57e27da2fb
1 parent 3eacd66 commit e595e28

File tree

18 files changed

+3980
-78
lines changed

18 files changed

+3980
-78
lines changed

CHANGES.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ twilio-python Changelog
33

44
Here you can see the full list of changes between each twilio-python release.
55

6+
[2024-09-18] Version 9.3.1
7+
--------------------------
8+
**Library - Chore**
9+
- [PR #813](https://github.com/twilio/twilio-python/pull/813): add static init file to iam domain. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
10+
11+
**Intelligence**
12+
- Remove public from operator_type
13+
- Update operator_type to include general-availablity and deprecated
14+
15+
**Numbers**
16+
- Remove beta flag for bundle clone API
17+
18+
619
[2024-09-05] Version 9.3.0
720
--------------------------
821
**Iam**

twilio/rest/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
if TYPE_CHECKING:
1717
from twilio.rest.accounts import Accounts
1818
from twilio.rest.api import Api
19+
from twilio.rest.assistants import Assistants
1920
from twilio.rest.bulkexports import Bulkexports
2021
from twilio.rest.chat import Chat
2122
from twilio.rest.content import Content
@@ -125,6 +126,7 @@ def __init__(
125126
# Domains
126127
self._accounts: Optional["Accounts"] = None
127128
self._api: Optional["Api"] = None
129+
self._assistants: Optional["Assistants"] = None
128130
self._bulkexports: Optional["Bulkexports"] = None
129131
self._chat: Optional["Chat"] = None
130132
self._content: Optional["Content"] = None
@@ -186,6 +188,19 @@ def api(self) -> "Api":
186188
self._api = Api(self)
187189
return self._api
188190

191+
@property
192+
def assistants(self) -> "Assistants":
193+
"""
194+
Access the Assistants Twilio Domain
195+
196+
:returns: Assistants Twilio Domain
197+
"""
198+
if self._assistants is None:
199+
from twilio.rest.assistants import Assistants
200+
201+
self._assistants = Assistants(self)
202+
return self._assistants
203+
189204
@property
190205
def bulkexports(self) -> "Bulkexports":
191206
"""
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
r"""
2+
This code was generated by
3+
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
7+
NOTE: This class is auto generated by OpenAPI Generator.
8+
https://openapi-generator.tech
9+
Do not edit the class manually.
10+
"""
11+
12+
from typing import Optional
13+
14+
from twilio.base.domain import Domain
15+
from twilio.rest import Client
16+
from twilio.rest.assistants.v1 import V1
17+
18+
19+
class AssistantsBase(Domain):
20+
21+
def __init__(self, twilio: Client):
22+
"""
23+
Initialize the Assistants Domain
24+
25+
:returns: Domain for Assistants
26+
"""
27+
super().__init__(twilio, "https://assistants.twilio.com")
28+
self._v1: Optional[V1] = None
29+
30+
@property
31+
def v1(self) -> V1:
32+
"""
33+
:returns: Versions v1 of Assistants
34+
"""
35+
if self._v1 is None:
36+
self._v1 = V1(self)
37+
return self._v1
38+
39+
def __repr__(self) -> str:
40+
"""
41+
Provide a friendly representation
42+
:returns: Machine friendly representation
43+
"""
44+
return "<Twilio.Assistants>"

twilio/rest/assistants/v1/__init__.py

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
r"""
2+
This code was generated by
3+
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
7+
Twilio - Assistants
8+
This is the public Twilio REST API.
9+
10+
NOTE: This class is auto generated by OpenAPI Generator.
11+
https://openapi-generator.tech
12+
Do not edit the class manually.
13+
"""
14+
15+
from typing import Optional
16+
from twilio.base.version import Version
17+
from twilio.base.domain import Domain
18+
from twilio.rest.assistants.v1.assistant import AssistantList
19+
from twilio.rest.assistants.v1.knowledge import KnowledgeList
20+
from twilio.rest.assistants.v1.policy import PolicyList
21+
from twilio.rest.assistants.v1.session import SessionList
22+
from twilio.rest.assistants.v1.tool import ToolList
23+
24+
25+
class V1(Version):
26+
27+
def __init__(self, domain: Domain):
28+
"""
29+
Initialize the V1 version of Assistants
30+
31+
:param domain: The Twilio.assistants domain
32+
"""
33+
super().__init__(domain, "v1")
34+
self._assistants: Optional[AssistantList] = None
35+
self._knowledge: Optional[KnowledgeList] = None
36+
self._policies: Optional[PolicyList] = None
37+
self._sessions: Optional[SessionList] = None
38+
self._tools: Optional[ToolList] = None
39+
40+
@property
41+
def assistants(self) -> AssistantList:
42+
if self._assistants is None:
43+
self._assistants = AssistantList(self)
44+
return self._assistants
45+
46+
@property
47+
def knowledge(self) -> KnowledgeList:
48+
if self._knowledge is None:
49+
self._knowledge = KnowledgeList(self)
50+
return self._knowledge
51+
52+
@property
53+
def policies(self) -> PolicyList:
54+
if self._policies is None:
55+
self._policies = PolicyList(self)
56+
return self._policies
57+
58+
@property
59+
def sessions(self) -> SessionList:
60+
if self._sessions is None:
61+
self._sessions = SessionList(self)
62+
return self._sessions
63+
64+
@property
65+
def tools(self) -> ToolList:
66+
if self._tools is None:
67+
self._tools = ToolList(self)
68+
return self._tools
69+
70+
def __repr__(self) -> str:
71+
"""
72+
Provide a friendly representation
73+
:returns: Machine friendly representation
74+
"""
75+
return "<Twilio.Assistants.V1>"

0 commit comments

Comments
 (0)