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 (185 lines) | stat: -rw-r--r-- 6,332 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
from warnings import warn

from twilio.rest.flex_api.FlexApiBase import FlexApiBase
from twilio.rest.flex_api.v1.assessments import AssessmentsList
from twilio.rest.flex_api.v1.channel import ChannelList
from twilio.rest.flex_api.v1.configuration import ConfigurationList
from twilio.rest.flex_api.v1.flex_flow import FlexFlowList
from twilio.rest.flex_api.v1.insights_assessments_comment import (
    InsightsAssessmentsCommentList,
)
from twilio.rest.flex_api.v1.insights_conversations import InsightsConversationsList
from twilio.rest.flex_api.v1.insights_questionnaires import InsightsQuestionnairesList
from twilio.rest.flex_api.v1.insights_questionnaires_category import (
    InsightsQuestionnairesCategoryList,
)
from twilio.rest.flex_api.v1.insights_questionnaires_question import (
    InsightsQuestionnairesQuestionList,
)
from twilio.rest.flex_api.v1.insights_segments import InsightsSegmentsList
from twilio.rest.flex_api.v1.insights_session import InsightsSessionList
from twilio.rest.flex_api.v1.insights_settings_answer_sets import (
    InsightsSettingsAnswerSetsList,
)
from twilio.rest.flex_api.v1.insights_settings_comment import (
    InsightsSettingsCommentList,
)
from twilio.rest.flex_api.v1.insights_user_roles import InsightsUserRolesList
from twilio.rest.flex_api.v1.interaction import InteractionList
from twilio.rest.flex_api.v1.web_channel import WebChannelList
from twilio.rest.flex_api.v2.web_channels import WebChannelsList


class FlexApi(FlexApiBase):
    @property
    def assessments(self) -> AssessmentsList:
        warn(
            "assessments is deprecated. Use v1.assessments instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.assessments

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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