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 (258 lines) | stat: -rw-r--r-- 8,255 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
from warnings import warn

from twilio.rest.api.ApiBase import ApiBase
from twilio.rest.api.v2010.account import AccountContext, AccountList
from twilio.rest.api.v2010.account.address import AddressList
from twilio.rest.api.v2010.account.application import ApplicationList
from twilio.rest.api.v2010.account.authorized_connect_app import (
    AuthorizedConnectAppList,
)
from twilio.rest.api.v2010.account.available_phone_number_country import (
    AvailablePhoneNumberCountryList,
)
from twilio.rest.api.v2010.account.balance import BalanceList
from twilio.rest.api.v2010.account.call import CallList
from twilio.rest.api.v2010.account.conference import ConferenceList
from twilio.rest.api.v2010.account.connect_app import ConnectAppList
from twilio.rest.api.v2010.account.incoming_phone_number import IncomingPhoneNumberList
from twilio.rest.api.v2010.account.key import KeyList
from twilio.rest.api.v2010.account.message import MessageList
from twilio.rest.api.v2010.account.new_key import NewKeyList
from twilio.rest.api.v2010.account.new_signing_key import NewSigningKeyList
from twilio.rest.api.v2010.account.notification import NotificationList
from twilio.rest.api.v2010.account.outgoing_caller_id import OutgoingCallerIdList
from twilio.rest.api.v2010.account.queue import QueueList
from twilio.rest.api.v2010.account.recording import RecordingList
from twilio.rest.api.v2010.account.short_code import ShortCodeList
from twilio.rest.api.v2010.account.signing_key import SigningKeyList
from twilio.rest.api.v2010.account.sip import SipList
from twilio.rest.api.v2010.account.token import TokenList
from twilio.rest.api.v2010.account.transcription import TranscriptionList
from twilio.rest.api.v2010.account.usage import UsageList
from twilio.rest.api.v2010.account.validation_request import ValidationRequestList


class Api(ApiBase):
    @property
    def account(self) -> AccountContext:
        return self.v2010.account

    @property
    def accounts(self) -> AccountList:
        return self.v2010.accounts

    @property
    def addresses(self) -> AddressList:
        warn(
            "addresses is deprecated. Use account.addresses instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.addresses

    @property
    def applications(self) -> ApplicationList:
        warn(
            "applications is deprecated. Use account.applications instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.applications

    @property
    def authorized_connect_apps(self) -> AuthorizedConnectAppList:
        warn(
            "authorized_connect_apps is deprecated. Use account.authorized_connect_apps instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.authorized_connect_apps

    @property
    def available_phone_numbers(self) -> AvailablePhoneNumberCountryList:
        warn(
            "available_phone_numbers is deprecated. Use account.available_phone_numbers instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.available_phone_numbers

    @property
    def balance(self) -> BalanceList:
        warn(
            "balance is deprecated. Use account.balance instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.balance

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

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

    @property
    def connect_apps(self) -> ConnectAppList:
        warn(
            "connect_apps is deprecated. Use account.connect_apps instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.connect_apps

    @property
    def incoming_phone_numbers(self) -> IncomingPhoneNumberList:
        warn(
            "incoming_phone_numbers is deprecated. Use account.incoming_phone_numbers instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.incoming_phone_numbers

    @property
    def keys(self) -> KeyList:
        warn(
            "keys is deprecated. Use account.keys instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.keys

    @property
    def messages(self) -> MessageList:
        warn(
            "messages is deprecated. Use account.messages instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.messages

    @property
    def new_keys(self) -> NewKeyList:
        warn(
            "new_keys is deprecated. Use account.new_keys instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.new_keys

    @property
    def new_signing_keys(self) -> NewSigningKeyList:
        warn(
            "new_signing_keys is deprecated. Use account.new_signing_keys instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.new_signing_keys

    @property
    def notifications(self) -> NotificationList:
        warn(
            "notifications is deprecated. Use account.notifications instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.notifications

    @property
    def outgoing_caller_ids(self) -> OutgoingCallerIdList:
        warn(
            "outgoing_caller_ids is deprecated. Use account.outgoing_caller_ids instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.outgoing_caller_ids

    @property
    def queues(self) -> QueueList:
        warn(
            "queues is deprecated. Use account.queues instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.queues

    @property
    def recordings(self) -> RecordingList:
        warn(
            "recordings is deprecated. Use account.recordings instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.recordings

    @property
    def signing_keys(self) -> SigningKeyList:
        warn(
            "signing_keys is deprecated. Use account.signing_keys instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.signing_keys

    @property
    def sip(self) -> SipList:
        warn(
            "sip is deprecated. Use account.sip instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.sip

    @property
    def short_codes(self) -> ShortCodeList:
        warn(
            "short_codes is deprecated. Use account.short_codes instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.short_codes

    @property
    def tokens(self) -> TokenList:
        warn(
            "tokens is deprecated. Use account.tokens instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.tokens

    @property
    def transcriptions(self) -> TranscriptionList:
        warn(
            "transcriptions is deprecated. Use account.transcriptions instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.transcriptions

    @property
    def usage(self) -> UsageList:
        warn(
            "usage is deprecated. Use account.usage instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.usage

    @property
    def validation_requests(self) -> ValidationRequestList:
        warn(
            "validation_requests is deprecated. Use account.validation_requests instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.account.validation_requests