1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
r"""
This code was generated by
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
NOTE: This class is auto generated by OpenAPI Generator.
https://openapi-generator.tech
Do not edit the class manually.
"""
from typing import Optional
from twilio.base.domain import Domain
from twilio.rest import Client
from twilio.rest.chat.v1 import V1
from twilio.rest.chat.v2 import V2
from twilio.rest.chat.v3 import V3
class ChatBase(Domain):
def __init__(self, twilio: Client):
"""
Initialize the Chat Domain
:returns: Domain for Chat
"""
super().__init__(twilio, "https://chat.twilio.com")
self._v1: Optional[V1] = None
self._v2: Optional[V2] = None
self._v3: Optional[V3] = None
@property
def v1(self) -> V1:
"""
:returns: Versions v1 of Chat
"""
if self._v1 is None:
self._v1 = V1(self)
return self._v1
@property
def v2(self) -> V2:
"""
:returns: Versions v2 of Chat
"""
if self._v2 is None:
self._v2 = V2(self)
return self._v2
@property
def v3(self) -> V3:
"""
:returns: Versions v3 of Chat
"""
if self._v3 is None:
self._v3 = V3(self)
return self._v3
def __repr__(self) -> str:
"""
Provide a friendly representation
:returns: Machine friendly representation
"""
return "<Twilio.Chat>"
|