Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e412378

Browse files
author
matt
committed
Fix limits, mount api/v2010 under client
1 parent 79b44d7 commit e412378

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+223
-69
lines changed

twilio/rest/__init__.py

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,161 @@ def trunking(self):
188188
self._trunking = Trunking(self)
189189
return self._trunking
190190

191+
@property
192+
def account(self):
193+
"""
194+
:returns: Account provided as the authenticating account
195+
:rtype: AccountContext
196+
"""
197+
return self.api.v2010.account
198+
199+
@property
200+
def accounts(self):
201+
"""
202+
:rtype: AccountList
203+
"""
204+
return self.api.v2010.accounts
205+
206+
@property
207+
def addresses(self):
208+
"""
209+
:rtype: AddressList
210+
"""
211+
return self.account.addresses
212+
213+
@property
214+
def applications(self):
215+
"""
216+
:rtype: ApplicationList
217+
"""
218+
return self.account.applications
219+
220+
@property
221+
def authorized_connect_apps(self):
222+
"""
223+
:rtype: AuthorizedConnectAppList
224+
"""
225+
return self.account.authorized_connect_apps
226+
227+
@property
228+
def available_phone_numbers(self):
229+
"""
230+
:rtype: AvailablePhoneNumberCountryList
231+
"""
232+
return self.account.available_phone_numbers
233+
234+
@property
235+
def calls(self):
236+
"""
237+
:rtype: CallList
238+
"""
239+
return self.account.calls
240+
241+
@property
242+
def conferences(self):
243+
"""
244+
:rtype: ConferenceList
245+
"""
246+
return self.account.conferences
247+
248+
@property
249+
def connect_apps(self):
250+
"""
251+
:rtype: ConnectAppList
252+
"""
253+
return self.account.connect_apps
254+
255+
@property
256+
def incoming_phone_numbers(self):
257+
"""
258+
:rtype: IncomingPhoneNumberList
259+
"""
260+
return self.account.incoming_phone_numbers
261+
262+
@property
263+
def messages(self):
264+
"""
265+
:rtype: MessageList
266+
"""
267+
return self.account.messages
268+
269+
@property
270+
def notifications(self):
271+
"""
272+
:rtype: NotificationList
273+
"""
274+
return self.account.notifications
275+
276+
@property
277+
def outgoing_caller_ids(self):
278+
"""
279+
:rtype: OutgoingCallerIdList
280+
"""
281+
return self.account.outgoing_caller_ids
282+
283+
@property
284+
def queues(self):
285+
"""
286+
:rtype: QueueList
287+
"""
288+
return self.account.queues
289+
290+
@property
291+
def recordings(self):
292+
"""
293+
:rtype: RecordingList
294+
"""
295+
return self.account.recordings
296+
297+
@property
298+
def sandbox(self):
299+
"""
300+
:rtype: SandboxList
301+
"""
302+
return self.account.sandbox
303+
304+
@property
305+
def sip(self):
306+
"""
307+
:rtype: SipList
308+
"""
309+
return self.account.sip
310+
311+
@property
312+
def sms(self):
313+
"""
314+
:rtype: SmsList
315+
"""
316+
return self.account.sms
317+
318+
@property
319+
def tokens(self):
320+
"""
321+
:rtype: TokenList
322+
"""
323+
return self.account.tokens
324+
325+
@property
326+
def transcriptions(self):
327+
"""
328+
:rtype: TranscriptionList
329+
"""
330+
return self.account.transcriptions
331+
332+
@property
333+
def usage(self):
334+
"""
335+
:rtype: UsageList
336+
"""
337+
return self.account.usage
338+
339+
@property
340+
def validation_requests(self):
341+
"""
342+
:rtype: ValidationRequestList
343+
"""
344+
return self.account.validation_requests
345+
191346
def __repr__(self):
192347
"""
193348
Provide a friendly representation

twilio/rest/api/v2010/account/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def stream(self, friendly_name=values.unset, status=values.unset, limit=None,
106106
return self._version.stream(page, limits['limit'], limits['page_limit'])
107107

108108
def read(self, friendly_name=values.unset, status=values.unset, limit=None,
109-
page_size=values.unset):
109+
page_size=None):
110110
"""
111111
Reads AccountInstance records from the API as a list.
112112
Unlike stream(), this operation is eager and will load `limit` records into

twilio/rest/api/v2010/account/address/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def stream(self, customer_name=values.unset, friendly_name=values.unset,
106106
return self._version.stream(page, limits['limit'], limits['page_limit'])
107107

108108
def read(self, customer_name=values.unset, friendly_name=values.unset,
109-
iso_country=values.unset, limit=None, page_size=values.unset):
109+
iso_country=values.unset, limit=None, page_size=None):
110110
"""
111111
Reads AddressInstance records from the API as a list.
112112
Unlike stream(), this operation is eager and will load `limit` records into

twilio/rest/api/v2010/account/address/dependent_phone_number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def stream(self, limit=None, page_size=None):
6060

6161
return self._version.stream(page, limits['limit'], limits['page_limit'])
6262

63-
def read(self, limit=None, page_size=values.unset):
63+
def read(self, limit=None, page_size=None):
6464
"""
6565
Reads DependentPhoneNumberInstance records from the API as a list.
6666
Unlike stream(), this operation is eager and will load `limit` records into

twilio/rest/api/v2010/account/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def stream(self, friendly_name=values.unset, limit=None, page_size=None):
121121

122122
return self._version.stream(page, limits['limit'], limits['page_limit'])
123123

124-
def read(self, friendly_name=values.unset, limit=None, page_size=values.unset):
124+
def read(self, friendly_name=values.unset, limit=None, page_size=None):
125125
"""
126126
Reads ApplicationInstance records from the API as a list.
127127
Unlike stream(), this operation is eager and will load `limit` records into

twilio/rest/api/v2010/account/authorized_connect_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def stream(self, limit=None, page_size=None):
5959

6060
return self._version.stream(page, limits['limit'], limits['page_limit'])
6161

62-
def read(self, limit=None, page_size=values.unset):
62+
def read(self, limit=None, page_size=None):
6363
"""
6464
Reads AuthorizedConnectAppInstance records from the API as a list.
6565
Unlike stream(), this operation is eager and will load `limit` records into

twilio/rest/api/v2010/account/available_phone_number/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def stream(self, limit=None, page_size=None):
6161

6262
return self._version.stream(page, limits['limit'], limits['page_limit'])
6363

64-
def read(self, limit=None, page_size=values.unset):
64+
def read(self, limit=None, page_size=None):
6565
"""
6666
Reads AvailablePhoneNumberCountryInstance records from the API as a list.
6767
Unlike stream(), this operation is eager and will load `limit` records into

twilio/rest/api/v2010/account/available_phone_number/local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def read(self, area_code=values.unset, contains=values.unset,
8989
voice_enabled=values.unset, exclude_all_address_required=values.unset,
9090
exclude_local_address_required=values.unset,
9191
exclude_foreign_address_required=values.unset, beta=values.unset,
92-
limit=None, page_size=values.unset):
92+
limit=None, page_size=None):
9393
"""
9494
Reads LocalInstance records from the API as a list.
9595
Unlike stream(), this operation is eager and will load `limit` records into

twilio/rest/api/v2010/account/available_phone_number/mobile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def read(self, area_code=values.unset, contains=values.unset,
8989
voice_enabled=values.unset, exclude_all_address_required=values.unset,
9090
exclude_local_address_required=values.unset,
9191
exclude_foreign_address_required=values.unset, beta=values.unset,
92-
limit=None, page_size=values.unset):
92+
limit=None, page_size=None):
9393
"""
9494
Reads MobileInstance records from the API as a list.
9595
Unlike stream(), this operation is eager and will load `limit` records into

twilio/rest/api/v2010/account/available_phone_number/toll_free.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def read(self, area_code=values.unset, contains=values.unset,
8989
voice_enabled=values.unset, exclude_all_address_required=values.unset,
9090
exclude_local_address_required=values.unset,
9191
exclude_foreign_address_required=values.unset, beta=values.unset,
92-
limit=None, page_size=values.unset):
92+
limit=None, page_size=None):
9393
"""
9494
Reads TollFreeInstance records from the API as a list.
9595
Unlike stream(), this operation is eager and will load `limit` records into

0 commit comments

Comments
 (0)