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 (55 lines) | stat: -rw-r--r-- 1,579 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from warnings import warn

from twilio.rest.insights.InsightsBase import InsightsBase
from twilio.rest.insights.v1.call import CallList
from twilio.rest.insights.v1.call_summaries import CallSummariesList
from twilio.rest.insights.v1.conference import ConferenceList
from twilio.rest.insights.v1.room import RoomList
from twilio.rest.insights.v1.setting import SettingList


class Insights(InsightsBase):
    @property
    def settings(self) -> SettingList:
        warn(
            "settings is deprecated. Use v1.settings instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.settings

    @property
    def calls(self) -> CallList:
        warn(
            "calls is deprecated. Use v1.calls instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.calls

    @property
    def call_summaries(self) -> CallSummariesList:
        warn(
            "call_summaries is deprecated. Use v1.call_summaries instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.call_summaries

    @property
    def conferences(self) -> ConferenceList:
        warn(
            "conferences is deprecated. Use v1.conferences instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.conferences

    @property
    def rooms(self) -> RoomList:
        warn(
            "rooms is deprecated. Use v1.rooms instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.rooms