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 67 68 69 70 71 72 73 74 75 76 77
|
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.preview.hosted_numbers import HostedNumbers
from twilio.rest.preview.sync import Sync
from twilio.rest.preview.marketplace import Marketplace
from twilio.rest.preview.wireless import Wireless
class PreviewBase(Domain):
def __init__(self, twilio: Client):
"""
Initialize the Preview Domain
:returns: Domain for Preview
"""
super().__init__(twilio, "https://preview.twilio.com")
self._hosted_numbers: Optional[HostedNumbers] = None
self._sync: Optional[Sync] = None
self._marketplace: Optional[Marketplace] = None
self._wireless: Optional[Wireless] = None
@property
def hosted_numbers(self) -> HostedNumbers:
"""
:returns: Versions hosted_numbers of Preview
"""
if self._hosted_numbers is None:
self._hosted_numbers = HostedNumbers(self)
return self._hosted_numbers
@property
def sync(self) -> Sync:
"""
:returns: Versions sync of Preview
"""
if self._sync is None:
self._sync = Sync(self)
return self._sync
@property
def marketplace(self) -> Marketplace:
"""
:returns: Versions marketplace of Preview
"""
if self._marketplace is None:
self._marketplace = Marketplace(self)
return self._marketplace
@property
def wireless(self) -> Wireless:
"""
:returns: Versions wireless of Preview
"""
if self._wireless is None:
self._wireless = Wireless(self)
return self._wireless
def __repr__(self) -> str:
"""
Provide a friendly representation
:returns: Machine friendly representation
"""
return "<Twilio.Preview>"
|