File: __init__.py

package info (click to toggle)
python-twilio 9.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,756 kB
  • sloc: python: 8,281; makefile: 65
file content (35 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download
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
from warnings import warn

from twilio.rest.routes.RoutesBase import RoutesBase
from twilio.rest.routes.v2.phone_number import PhoneNumberList
from twilio.rest.routes.v2.sip_domain import SipDomainList
from twilio.rest.routes.v2.trunk import TrunkList


class Routes(RoutesBase):
    @property
    def phone_numbers(self) -> PhoneNumberList:
        warn(
            "phone_numbers is deprecated. Use v2.phone_numbers instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v2.phone_numbers

    @property
    def sip_domains(self) -> SipDomainList:
        warn(
            "sip_domains is deprecated. Use v2.sip_domains instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v2.sip_domains

    @property
    def trunks(self) -> TrunkList:
        warn(
            "trunks is deprecated. Use v2.trunks instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v2.trunks