twilio-ruby 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +30 -2
- data/CONTRIBUTING.md +159 -0
- data/ISSUE_TEMPLATE.md +26 -0
- data/LICENSE.md +1 -1
- data/README.md +6 -7
- data/VERSIONS.md +21 -49
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +11 -18
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +358 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +439 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +48 -11
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +22 -12
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +11 -18
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/service.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service.rb +11 -11
- data/lib/twilio-ruby/rest/client.rb +42 -0
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +334 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +549 -0
- data/lib/twilio-ruby/rest/fax/v1.rb +41 -0
- data/lib/twilio-ruby/rest/fax.rb +44 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +11 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +360 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +367 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +367 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +645 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +41 -0
- data/lib/twilio-ruby/rest/messaging.rb +44 -0
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +11 -11
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +11 -11
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +411 -0
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +438 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +294 -0
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +230 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +262 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +442 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +453 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +647 -0
- data/lib/twilio-ruby/rest/notify/v1.rb +56 -0
- data/lib/twilio-ruby/rest/notify.rb +52 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +216 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +211 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +251 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +56 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +570 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +42 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +309 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +341 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +349 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +448 -0
- data/lib/twilio-ruby/rest/preview/marketplace.rb +58 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +367 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +437 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +460 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +514 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +544 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +367 -0
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +508 -0
- data/lib/twilio-ruby/rest/preview/proxy.rb +41 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +403 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +453 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +438 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +403 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +446 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +440 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +403 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +446 -0
- data/lib/twilio-ruby/rest/preview/sync/service.rb +512 -0
- data/lib/twilio-ruby/rest/preview/sync.rb +41 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +390 -0
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +443 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +244 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +552 -0
- data/lib/twilio-ruby/rest/preview/wireless.rb +71 -0
- data/lib/twilio-ruby/rest/preview.rb +145 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +11 -11
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +11 -11
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +11 -11
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +403 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +453 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +438 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +403 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +446 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +440 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +403 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +446 -0
- data/lib/twilio-ruby/rest/sync/v1/service.rb +512 -0
- data/lib/twilio-ruby/rest/sync/v1.rb +41 -0
- data/lib/twilio-ruby/rest/sync.rb +44 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +11 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +11 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +143 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +11 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +11 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +11 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +11 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +143 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +11 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +11 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +11 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +11 -11
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +11 -11
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +11 -11
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +11 -11
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +11 -11
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +11 -11
- data/lib/twilio-ruby/rest/video/v1/recording.rb +11 -11
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +11 -11
- data/lib/twilio-ruby/rest/video/v1/room.rb +11 -11
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +375 -0
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +460 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +241 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +556 -0
- data/lib/twilio-ruby/rest/wireless/v1.rb +71 -0
- data/lib/twilio-ruby/rest/wireless.rb +60 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call/recording_spec.rb +0 -2
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +135 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +223 -0
- data/spec/integration/api/v2010/account/recording_spec.rb +0 -2
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +126 -0
- data/spec/integration/fax/v1/fax_spec.rb +272 -0
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +170 -0
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +201 -0
- data/spec/integration/messaging/v1/service/short_code_spec.rb +173 -0
- data/spec/integration/messaging/v1/service_spec.rb +263 -0
- data/spec/integration/notify/v1/credential_spec.rb +223 -0
- data/spec/integration/notify/v1/service/binding_spec.rb +227 -0
- data/spec/integration/notify/v1/service/notification_spec.rb +97 -0
- data/spec/integration/notify/v1/service/segment_spec.rb +84 -0
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +118 -0
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +269 -0
- data/spec/integration/notify/v1/service/user_spec.rb +213 -0
- data/spec/integration/notify/v1/service_spec.rb +280 -0
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +56 -0
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +79 -0
- data/spec/integration/preview/bulk_exports/export_spec.rb +43 -0
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +280 -0
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +121 -0
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +142 -0
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +164 -0
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +252 -0
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +173 -0
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +104 -0
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +164 -0
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +226 -0
- data/spec/integration/preview/proxy/service/session_spec.rb +216 -0
- data/spec/integration/preview/proxy/service/short_code_spec.rb +173 -0
- data/spec/integration/preview/proxy/service_spec.rb +200 -0
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +206 -0
- data/spec/integration/preview/sync/service/document_spec.rb +254 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +256 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +206 -0
- data/spec/integration/preview/sync/service/sync_list_spec.rb +207 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +257 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +206 -0
- data/spec/integration/preview/sync/service/sync_map_spec.rb +207 -0
- data/spec/integration/preview/sync/service_spec.rb +244 -0
- data/spec/integration/preview/wireless/command_spec.rb +169 -0
- data/spec/integration/preview/wireless/rate_plan_spec.rb +260 -0
- data/spec/integration/preview/wireless/sim/usage_spec.rb +49 -0
- data/spec/integration/preview/wireless/sim_spec.rb +208 -0
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +206 -0
- data/spec/integration/sync/v1/service/document_spec.rb +254 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +256 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +206 -0
- data/spec/integration/sync/v1/service/sync_list_spec.rb +207 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +257 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +206 -0
- data/spec/integration/sync/v1/service/sync_map_spec.rb +207 -0
- data/spec/integration/sync/v1/service_spec.rb +244 -0
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +5 -5
- data/spec/integration/wireless/v1/command_spec.rb +166 -0
- data/spec/integration/wireless/v1/rate_plan_spec.rb +268 -0
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +65 -0
- data/spec/integration/wireless/v1/sim_spec.rb +208 -0
- data/twilio-ruby.gemspec +1 -3
- metadata +192 -2
|
@@ -36,11 +36,11 @@ module Twilio
|
|
|
36
36
|
# @param [String] phone_number The phone_number
|
|
37
37
|
# @param [String] origin The origin
|
|
38
38
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
39
|
-
#
|
|
40
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
#
|
|
39
|
+
# guarantees to never return more than limit. Default is no limit
|
|
40
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
41
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
42
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
43
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
44
44
|
# @return [Array] Array of up to limit results
|
|
45
45
|
def list(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :unset, limit: nil, page_size: nil)
|
|
46
46
|
self.stream(
|
|
@@ -61,12 +61,12 @@ module Twilio
|
|
|
61
61
|
# @param [String] friendly_name The friendly_name
|
|
62
62
|
# @param [String] phone_number The phone_number
|
|
63
63
|
# @param [String] origin The origin
|
|
64
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
65
|
-
#
|
|
66
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
64
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
65
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
66
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
67
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
68
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
69
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
70
70
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
71
71
|
def stream(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :unset, limit: nil, page_size: nil)
|
|
72
72
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -36,11 +36,11 @@ module Twilio
|
|
|
36
36
|
# @param [String] phone_number The phone_number
|
|
37
37
|
# @param [String] origin The origin
|
|
38
38
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
39
|
-
#
|
|
40
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
#
|
|
39
|
+
# guarantees to never return more than limit. Default is no limit
|
|
40
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
41
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
42
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
43
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
44
44
|
# @return [Array] Array of up to limit results
|
|
45
45
|
def list(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :unset, limit: nil, page_size: nil)
|
|
46
46
|
self.stream(
|
|
@@ -61,12 +61,12 @@ module Twilio
|
|
|
61
61
|
# @param [String] friendly_name The friendly_name
|
|
62
62
|
# @param [String] phone_number The phone_number
|
|
63
63
|
# @param [String] origin The origin
|
|
64
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
65
|
-
#
|
|
66
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
64
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
65
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
66
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
67
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
68
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
69
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
70
70
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
71
71
|
def stream(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :unset, limit: nil, page_size: nil)
|
|
72
72
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -36,11 +36,11 @@ module Twilio
|
|
|
36
36
|
# @param [String] phone_number The phone_number
|
|
37
37
|
# @param [String] origin The origin
|
|
38
38
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
39
|
-
#
|
|
40
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
#
|
|
39
|
+
# guarantees to never return more than limit. Default is no limit
|
|
40
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
41
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
42
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
43
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
44
44
|
# @return [Array] Array of up to limit results
|
|
45
45
|
def list(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :unset, limit: nil, page_size: nil)
|
|
46
46
|
self.stream(
|
|
@@ -61,12 +61,12 @@ module Twilio
|
|
|
61
61
|
# @param [String] friendly_name The friendly_name
|
|
62
62
|
# @param [String] phone_number The phone_number
|
|
63
63
|
# @param [String] origin The origin
|
|
64
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
65
|
-
#
|
|
66
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
64
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
65
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
66
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
67
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
68
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
69
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
70
70
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
71
71
|
def stream(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :unset, limit: nil, page_size: nil)
|
|
72
72
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -42,11 +42,11 @@ module Twilio
|
|
|
42
42
|
# match this pattern
|
|
43
43
|
# @param [String] origin The origin
|
|
44
44
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
45
|
-
#
|
|
46
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
45
|
+
# guarantees to never return more than limit. Default is no limit
|
|
46
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
47
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
48
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
49
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
50
50
|
# @return [Array] Array of up to limit results
|
|
51
51
|
def list(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :unset, limit: nil, page_size: nil)
|
|
52
52
|
self.stream(
|
|
@@ -69,12 +69,12 @@ module Twilio
|
|
|
69
69
|
# @param [String] phone_number Only show the incoming phone number resources that
|
|
70
70
|
# match this pattern
|
|
71
71
|
# @param [String] origin The origin
|
|
72
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
73
|
-
#
|
|
74
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
75
|
-
#
|
|
76
|
-
#
|
|
77
|
-
#
|
|
72
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
73
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
74
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
75
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
76
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
77
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
78
78
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
79
79
|
def stream(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :unset, limit: nil, page_size: nil)
|
|
80
80
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -330,6 +330,9 @@ module Twilio
|
|
|
330
330
|
sid: sid,
|
|
331
331
|
}
|
|
332
332
|
@uri = "/Accounts/#{@solution[:account_sid]}/IncomingPhoneNumbers/#{@solution[:sid]}.json"
|
|
333
|
+
|
|
334
|
+
# Dependents
|
|
335
|
+
@assigned_add_ons = nil
|
|
333
336
|
end
|
|
334
337
|
|
|
335
338
|
##
|
|
@@ -443,6 +446,33 @@ module Twilio
|
|
|
443
446
|
@version.delete('delete', @uri)
|
|
444
447
|
end
|
|
445
448
|
|
|
449
|
+
##
|
|
450
|
+
# Access the assigned_add_ons
|
|
451
|
+
# @return [AssignedAddOnList]
|
|
452
|
+
# @return [AssignedAddOnContext] if sid was passed.
|
|
453
|
+
def assigned_add_ons(sid=:unset)
|
|
454
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
455
|
+
|
|
456
|
+
if sid != :unset
|
|
457
|
+
return AssignedAddOnContext.new(
|
|
458
|
+
@version,
|
|
459
|
+
@solution[:account_sid],
|
|
460
|
+
@solution[:sid],
|
|
461
|
+
sid,
|
|
462
|
+
)
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
unless @assigned_add_ons
|
|
466
|
+
@assigned_add_ons = AssignedAddOnList.new(
|
|
467
|
+
@version,
|
|
468
|
+
account_sid: @solution[:account_sid],
|
|
469
|
+
resource_sid: @solution[:sid],
|
|
470
|
+
)
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
@assigned_add_ons
|
|
474
|
+
end
|
|
475
|
+
|
|
446
476
|
##
|
|
447
477
|
# Provide a user friendly representation
|
|
448
478
|
def to_s
|
|
@@ -772,6 +802,13 @@ module Twilio
|
|
|
772
802
|
context.delete
|
|
773
803
|
end
|
|
774
804
|
|
|
805
|
+
##
|
|
806
|
+
# Access the assigned_add_ons
|
|
807
|
+
# @return [assigned_add_ons] assigned_add_ons
|
|
808
|
+
def assigned_add_ons
|
|
809
|
+
context.assigned_add_ons
|
|
810
|
+
end
|
|
811
|
+
|
|
775
812
|
##
|
|
776
813
|
# Provide a user friendly representation
|
|
777
814
|
def to_s
|
|
@@ -31,11 +31,11 @@ module Twilio
|
|
|
31
31
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
32
32
|
# memory before returning.
|
|
33
33
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
34
|
-
#
|
|
35
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
34
|
+
# guarantees to never return more than limit. Default is no limit
|
|
35
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
36
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
37
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
38
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
39
39
|
# @return [Array] Array of up to limit results
|
|
40
40
|
def list(limit: nil, page_size: nil)
|
|
41
41
|
self.stream(
|
|
@@ -48,12 +48,12 @@ module Twilio
|
|
|
48
48
|
# Streams KeyInstance records from the API as an Enumerable.
|
|
49
49
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
50
50
|
# is reached.
|
|
51
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
52
|
-
#
|
|
53
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
54
|
-
#
|
|
55
|
-
#
|
|
56
|
-
#
|
|
51
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
52
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
53
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
54
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
55
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
56
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
57
57
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
58
58
|
def stream(limit: nil, page_size: nil)
|
|
59
59
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -38,11 +38,11 @@ module Twilio
|
|
|
38
38
|
# @param [Time] date_created Filter by date created
|
|
39
39
|
# @param [Time] date_created_after Filter by date created
|
|
40
40
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
41
|
-
#
|
|
42
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
#
|
|
41
|
+
# guarantees to never return more than limit. Default is no limit
|
|
42
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
43
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
44
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
45
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
46
46
|
# @return [Array] Array of up to limit results
|
|
47
47
|
def list(date_created_before: :unset, date_created: :unset, date_created_after: :unset, limit: nil, page_size: nil)
|
|
48
48
|
self.stream(
|
|
@@ -61,12 +61,12 @@ module Twilio
|
|
|
61
61
|
# @param [Time] date_created_before Filter by date created
|
|
62
62
|
# @param [Time] date_created Filter by date created
|
|
63
63
|
# @param [Time] date_created_after Filter by date created
|
|
64
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
65
|
-
#
|
|
66
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
64
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
65
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
66
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
67
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
68
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
69
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
70
70
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
71
71
|
def stream(date_created_before: :unset, date_created: :unset, date_created_after: :unset, limit: nil, page_size: nil)
|
|
72
72
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -38,13 +38,18 @@ module Twilio
|
|
|
38
38
|
# @param [String] max_price The max_price
|
|
39
39
|
# @param [Boolean] provide_feedback The provide_feedback
|
|
40
40
|
# @param [String] validity_period The validity_period
|
|
41
|
+
# @param [String] max_rate The max_rate
|
|
42
|
+
# @param [Boolean] force_delivery The force_delivery
|
|
43
|
+
# @param [String] provider_sid The provider_sid
|
|
44
|
+
# @param [message.ContentRetention] content_retention The content_retention
|
|
45
|
+
# @param [message.AddressRetention] address_retention The address_retention
|
|
41
46
|
# @param [String] from A Twilio phone number or alphanumeric sender ID enabled for
|
|
42
47
|
# the type of message you wish to send.
|
|
43
48
|
# @param [String] messaging_service_sid The messaging_service_sid
|
|
44
49
|
# @param [String] body The body
|
|
45
50
|
# @param [String] media_url The media_url
|
|
46
51
|
# @return [MessageInstance] Newly created MessageInstance
|
|
47
|
-
def create(to: nil, status_callback: :unset, application_sid: :unset, max_price: :unset, provide_feedback: :unset, validity_period: :unset, from: :unset, messaging_service_sid: :unset, body: :unset, media_url: :unset)
|
|
52
|
+
def create(to: nil, status_callback: :unset, application_sid: :unset, max_price: :unset, provide_feedback: :unset, validity_period: :unset, max_rate: :unset, force_delivery: :unset, provider_sid: :unset, content_retention: :unset, address_retention: :unset, from: :unset, messaging_service_sid: :unset, body: :unset, media_url: :unset)
|
|
48
53
|
data = Twilio::Values.of({
|
|
49
54
|
'To' => to,
|
|
50
55
|
'From' => from,
|
|
@@ -56,6 +61,11 @@ module Twilio
|
|
|
56
61
|
'MaxPrice' => max_price,
|
|
57
62
|
'ProvideFeedback' => provide_feedback,
|
|
58
63
|
'ValidityPeriod' => validity_period,
|
|
64
|
+
'MaxRate' => max_rate,
|
|
65
|
+
'ForceDelivery' => force_delivery,
|
|
66
|
+
'ProviderSid' => provider_sid,
|
|
67
|
+
'ContentRetention' => content_retention,
|
|
68
|
+
'AddressRetention' => address_retention,
|
|
59
69
|
})
|
|
60
70
|
|
|
61
71
|
payload = @version.create(
|
|
@@ -81,11 +91,11 @@ module Twilio
|
|
|
81
91
|
# @param [Time] date_sent Filter by date sent
|
|
82
92
|
# @param [Time] date_sent_after Filter by date sent
|
|
83
93
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
84
|
-
#
|
|
85
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
94
|
+
# guarantees to never return more than limit. Default is no limit
|
|
95
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
96
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
97
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
98
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
89
99
|
# @return [Array] Array of up to limit results
|
|
90
100
|
def list(to: :unset, from: :unset, date_sent_before: :unset, date_sent: :unset, date_sent_after: :unset, limit: nil, page_size: nil)
|
|
91
101
|
self.stream(
|
|
@@ -108,12 +118,12 @@ module Twilio
|
|
|
108
118
|
# @param [Time] date_sent_before Filter by date sent
|
|
109
119
|
# @param [Time] date_sent Filter by date sent
|
|
110
120
|
# @param [Time] date_sent_after Filter by date sent
|
|
111
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
112
|
-
#
|
|
113
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
114
|
-
#
|
|
115
|
-
#
|
|
116
|
-
#
|
|
121
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
122
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
123
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
124
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
125
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
126
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
117
127
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
118
128
|
def stream(to: :unset, from: :unset, date_sent_before: :unset, date_sent: :unset, date_sent_after: :unset, limit: nil, page_size: nil)
|
|
119
129
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -35,11 +35,11 @@ module Twilio
|
|
|
35
35
|
# @param [Time] message_date Filter by date
|
|
36
36
|
# @param [Time] message_date_after Filter by date
|
|
37
37
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
38
|
-
#
|
|
39
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
#
|
|
38
|
+
# guarantees to never return more than limit. Default is no limit
|
|
39
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
40
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
41
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
42
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
43
43
|
# @return [Array] Array of up to limit results
|
|
44
44
|
def list(log: :unset, message_date_before: :unset, message_date: :unset, message_date_after: :unset, limit: nil, page_size: nil)
|
|
45
45
|
self.stream(
|
|
@@ -60,12 +60,12 @@ module Twilio
|
|
|
60
60
|
# @param [Time] message_date_before Filter by date
|
|
61
61
|
# @param [Time] message_date Filter by date
|
|
62
62
|
# @param [Time] message_date_after Filter by date
|
|
63
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
64
|
-
#
|
|
65
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
66
|
-
#
|
|
67
|
-
#
|
|
68
|
-
#
|
|
63
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
64
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
65
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
66
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
67
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
68
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
69
69
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
70
70
|
def stream(log: :unset, message_date_before: :unset, message_date: :unset, message_date_after: :unset, limit: nil, page_size: nil)
|
|
71
71
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -35,11 +35,11 @@ module Twilio
|
|
|
35
35
|
# @param [String] friendly_name Only show the caller id resource that exactly
|
|
36
36
|
# matches this name
|
|
37
37
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
38
|
-
#
|
|
39
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
#
|
|
38
|
+
# guarantees to never return more than limit. Default is no limit
|
|
39
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
40
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
41
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
42
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
43
43
|
# @return [Array] Array of up to limit results
|
|
44
44
|
def list(phone_number: :unset, friendly_name: :unset, limit: nil, page_size: nil)
|
|
45
45
|
self.stream(
|
|
@@ -58,12 +58,12 @@ module Twilio
|
|
|
58
58
|
# matches this phone number
|
|
59
59
|
# @param [String] friendly_name Only show the caller id resource that exactly
|
|
60
60
|
# matches this name
|
|
61
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
62
|
-
#
|
|
63
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
64
|
-
#
|
|
65
|
-
#
|
|
66
|
-
#
|
|
61
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
62
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
63
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
64
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
65
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
66
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
67
67
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
68
68
|
def stream(phone_number: :unset, friendly_name: :unset, limit: nil, page_size: nil)
|
|
69
69
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -34,11 +34,11 @@ module Twilio
|
|
|
34
34
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
35
35
|
# memory before returning.
|
|
36
36
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
37
|
-
#
|
|
38
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
37
|
+
# guarantees to never return more than limit. Default is no limit
|
|
38
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
39
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
40
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
41
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
42
42
|
# @return [Array] Array of up to limit results
|
|
43
43
|
def list(limit: nil, page_size: nil)
|
|
44
44
|
self.stream(
|
|
@@ -51,12 +51,12 @@ module Twilio
|
|
|
51
51
|
# Streams MemberInstance records from the API as an Enumerable.
|
|
52
52
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
53
53
|
# is reached.
|
|
54
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
55
|
-
#
|
|
56
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
57
|
-
#
|
|
58
|
-
#
|
|
59
|
-
#
|
|
54
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
55
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
56
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
57
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
58
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
59
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
60
60
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
61
61
|
def stream(limit: nil, page_size: nil)
|
|
62
62
|
limits = @version.read_limits(limit, page_size)
|