Skip to content

Commit 6dcb0a8

Browse files
committed
chore: test code generation
1 parent b672e15 commit 6dcb0a8

5 files changed

Lines changed: 6097 additions & 0 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
r"""
2+
This code was generated by
3+
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
7+
Maestro (Conversations)
8+
Manage configurations, conversations, participants, and communications. Create configurations to define capture rules and channel settings, then use conversations to group related communications.
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.conversations.v2.communication import CommunicationList
19+
from twilio.rest.conversations.v2.configuration import ConfigurationList
20+
from twilio.rest.conversations.v2.conversation import ConversationList
21+
from twilio.rest.conversations.v2.participant import ParticipantList
22+
23+
24+
class V2(Version):
25+
26+
def __init__(self, domain: Domain):
27+
"""
28+
Initialize the V2 version of Conversations
29+
30+
:param domain: The Twilio.conversations domain
31+
"""
32+
super().__init__(domain, "v2")
33+
self._communications: Optional[CommunicationList] = None
34+
self._configurations: Optional[ConfigurationList] = None
35+
self._conversations: Optional[ConversationList] = None
36+
self._participants: Optional[ParticipantList] = None
37+
38+
@property
39+
def communications(self) -> CommunicationList:
40+
if self._communications is None:
41+
self._communications = CommunicationList(self)
42+
return self._communications
43+
44+
@property
45+
def configurations(self) -> ConfigurationList:
46+
if self._configurations is None:
47+
self._configurations = ConfigurationList(self)
48+
return self._configurations
49+
50+
@property
51+
def conversations(self) -> ConversationList:
52+
if self._conversations is None:
53+
self._conversations = ConversationList(self)
54+
return self._conversations
55+
56+
@property
57+
def participants(self) -> ParticipantList:
58+
if self._participants is None:
59+
self._participants = ParticipantList(self)
60+
return self._participants
61+
62+
def __repr__(self) -> str:
63+
"""
64+
Provide a friendly representation
65+
:returns: Machine friendly representation
66+
"""
67+
return "<Twilio.Conversations.V2>"

0 commit comments

Comments
 (0)