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
|
@@ -33,11 +33,11 @@ module Twilio
|
|
|
33
33
|
# @param [String] evaluate_worker_attributes The evaluate_worker_attributes
|
|
34
34
|
# @param [String] worker_sid The worker_sid
|
|
35
35
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
36
|
-
#
|
|
37
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
36
|
+
# guarantees to never return more than limit. Default is no limit
|
|
37
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
38
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
39
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
40
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
41
41
|
# @return [Array] Array of up to limit results
|
|
42
42
|
def list(friendly_name: :unset, evaluate_worker_attributes: :unset, worker_sid: :unset, limit: nil, page_size: nil)
|
|
43
43
|
self.stream(
|
|
@@ -56,12 +56,12 @@ module Twilio
|
|
|
56
56
|
# @param [String] friendly_name The friendly_name
|
|
57
57
|
# @param [String] evaluate_worker_attributes The evaluate_worker_attributes
|
|
58
58
|
# @param [String] worker_sid The worker_sid
|
|
59
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
60
|
-
#
|
|
61
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
59
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
60
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
61
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
62
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
63
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
64
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
65
65
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
66
66
|
def stream(friendly_name: :unset, evaluate_worker_attributes: :unset, worker_sid: :unset, limit: nil, page_size: nil)
|
|
67
67
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -34,11 +34,11 @@ module Twilio
|
|
|
34
34
|
# memory before returning.
|
|
35
35
|
# @param [reservation.Status] reservation_status The reservation_status
|
|
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(reservation_status: :unset, limit: nil, page_size: nil)
|
|
44
44
|
self.stream(
|
|
@@ -53,12 +53,12 @@ module Twilio
|
|
|
53
53
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
54
54
|
# is reached.
|
|
55
55
|
# @param [reservation.Status] reservation_status The reservation_status
|
|
56
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
57
|
-
#
|
|
58
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
-
#
|
|
56
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
57
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
58
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
59
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
60
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
61
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
62
62
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
63
63
|
def stream(reservation_status: :unset, limit: nil, page_size: nil)
|
|
64
64
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -227,8 +227,43 @@ module Twilio
|
|
|
227
227
|
# @param [String] redirect_call_sid The redirect_call_sid
|
|
228
228
|
# @param [Boolean] redirect_accept The redirect_accept
|
|
229
229
|
# @param [String] redirect_url The redirect_url
|
|
230
|
+
# @param [String] to The to
|
|
231
|
+
# @param [String] from The from
|
|
232
|
+
# @param [String] status_callback The status_callback
|
|
233
|
+
# @param [String] status_callback_method The status_callback_method
|
|
234
|
+
# @param [reservation.CallStatus] status_callback_event The status_callback_event
|
|
235
|
+
# @param [String] timeout The timeout
|
|
236
|
+
# @param [Boolean] record The record
|
|
237
|
+
# @param [Boolean] muted The muted
|
|
238
|
+
# @param [String] beep The beep
|
|
239
|
+
# @param [Boolean] start_conference_on_enter The start_conference_on_enter
|
|
240
|
+
# @param [Boolean] end_conference_on_exit The end_conference_on_exit
|
|
241
|
+
# @param [String] wait_url The wait_url
|
|
242
|
+
# @param [String] wait_method The wait_method
|
|
243
|
+
# @param [Boolean] early_media The early_media
|
|
244
|
+
# @param [String] max_participants The max_participants
|
|
245
|
+
# @param [String] conference_status_callback The conference_status_callback
|
|
246
|
+
# @param [String] conference_status_callback_method The
|
|
247
|
+
# conference_status_callback_method
|
|
248
|
+
# @param [reservation.ConferenceEvent] conference_status_callback_event The
|
|
249
|
+
# conference_status_callback_event
|
|
250
|
+
# @param [String] conference_record The conference_record
|
|
251
|
+
# @param [String] conference_trim The conference_trim
|
|
252
|
+
# @param [String] recording_channels The recording_channels
|
|
253
|
+
# @param [String] recording_status_callback The recording_status_callback
|
|
254
|
+
# @param [String] recording_status_callback_method The
|
|
255
|
+
# recording_status_callback_method
|
|
256
|
+
# @param [String] conference_recording_status_callback The
|
|
257
|
+
# conference_recording_status_callback
|
|
258
|
+
# @param [String] conference_recording_status_callback_method The
|
|
259
|
+
# conference_recording_status_callback_method
|
|
260
|
+
# @param [String] region The region
|
|
261
|
+
# @param [String] sip_auth_username The sip_auth_username
|
|
262
|
+
# @param [String] sip_auth_password The sip_auth_password
|
|
263
|
+
# @param [String] dequeue_status_callback_event The dequeue_status_callback_event
|
|
264
|
+
# @param [String] post_work_activity_sid The post_work_activity_sid
|
|
230
265
|
# @return [ReservationInstance] Updated ReservationInstance
|
|
231
|
-
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset)
|
|
266
|
+
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset)
|
|
232
267
|
data = Twilio::Values.of({
|
|
233
268
|
'ReservationStatus' => reservation_status,
|
|
234
269
|
'WorkerActivitySid' => worker_activity_sid,
|
|
@@ -249,6 +284,36 @@ module Twilio
|
|
|
249
284
|
'RedirectCallSid' => redirect_call_sid,
|
|
250
285
|
'RedirectAccept' => redirect_accept,
|
|
251
286
|
'RedirectUrl' => redirect_url,
|
|
287
|
+
'To' => to,
|
|
288
|
+
'From' => from,
|
|
289
|
+
'StatusCallback' => status_callback,
|
|
290
|
+
'StatusCallbackMethod' => status_callback_method,
|
|
291
|
+
'StatusCallbackEvent' => status_callback_event,
|
|
292
|
+
'Timeout' => timeout,
|
|
293
|
+
'Record' => record,
|
|
294
|
+
'Muted' => muted,
|
|
295
|
+
'Beep' => beep,
|
|
296
|
+
'StartConferenceOnEnter' => start_conference_on_enter,
|
|
297
|
+
'EndConferenceOnExit' => end_conference_on_exit,
|
|
298
|
+
'WaitUrl' => wait_url,
|
|
299
|
+
'WaitMethod' => wait_method,
|
|
300
|
+
'EarlyMedia' => early_media,
|
|
301
|
+
'MaxParticipants' => max_participants,
|
|
302
|
+
'ConferenceStatusCallback' => conference_status_callback,
|
|
303
|
+
'ConferenceStatusCallbackMethod' => conference_status_callback_method,
|
|
304
|
+
'ConferenceStatusCallbackEvent' => conference_status_callback_event,
|
|
305
|
+
'ConferenceRecord' => conference_record,
|
|
306
|
+
'ConferenceTrim' => conference_trim,
|
|
307
|
+
'RecordingChannels' => recording_channels,
|
|
308
|
+
'RecordingStatusCallback' => recording_status_callback,
|
|
309
|
+
'RecordingStatusCallbackMethod' => recording_status_callback_method,
|
|
310
|
+
'ConferenceRecordingStatusCallback' => conference_recording_status_callback,
|
|
311
|
+
'ConferenceRecordingStatusCallbackMethod' => conference_recording_status_callback_method,
|
|
312
|
+
'Region' => region,
|
|
313
|
+
'SipAuthUsername' => sip_auth_username,
|
|
314
|
+
'SipAuthPassword' => sip_auth_password,
|
|
315
|
+
'DequeueStatusCallbackEvent' => dequeue_status_callback_event,
|
|
316
|
+
'PostWorkActivitySid' => post_work_activity_sid,
|
|
252
317
|
})
|
|
253
318
|
|
|
254
319
|
payload = @version.update(
|
|
@@ -421,8 +486,43 @@ module Twilio
|
|
|
421
486
|
# @param [String] redirect_call_sid The redirect_call_sid
|
|
422
487
|
# @param [Boolean] redirect_accept The redirect_accept
|
|
423
488
|
# @param [String] redirect_url The redirect_url
|
|
489
|
+
# @param [String] to The to
|
|
490
|
+
# @param [String] from The from
|
|
491
|
+
# @param [String] status_callback The status_callback
|
|
492
|
+
# @param [String] status_callback_method The status_callback_method
|
|
493
|
+
# @param [reservation.CallStatus] status_callback_event The status_callback_event
|
|
494
|
+
# @param [String] timeout The timeout
|
|
495
|
+
# @param [Boolean] record The record
|
|
496
|
+
# @param [Boolean] muted The muted
|
|
497
|
+
# @param [String] beep The beep
|
|
498
|
+
# @param [Boolean] start_conference_on_enter The start_conference_on_enter
|
|
499
|
+
# @param [Boolean] end_conference_on_exit The end_conference_on_exit
|
|
500
|
+
# @param [String] wait_url The wait_url
|
|
501
|
+
# @param [String] wait_method The wait_method
|
|
502
|
+
# @param [Boolean] early_media The early_media
|
|
503
|
+
# @param [String] max_participants The max_participants
|
|
504
|
+
# @param [String] conference_status_callback The conference_status_callback
|
|
505
|
+
# @param [String] conference_status_callback_method The
|
|
506
|
+
# conference_status_callback_method
|
|
507
|
+
# @param [reservation.ConferenceEvent] conference_status_callback_event The
|
|
508
|
+
# conference_status_callback_event
|
|
509
|
+
# @param [String] conference_record The conference_record
|
|
510
|
+
# @param [String] conference_trim The conference_trim
|
|
511
|
+
# @param [String] recording_channels The recording_channels
|
|
512
|
+
# @param [String] recording_status_callback The recording_status_callback
|
|
513
|
+
# @param [String] recording_status_callback_method The
|
|
514
|
+
# recording_status_callback_method
|
|
515
|
+
# @param [String] conference_recording_status_callback The
|
|
516
|
+
# conference_recording_status_callback
|
|
517
|
+
# @param [String] conference_recording_status_callback_method The
|
|
518
|
+
# conference_recording_status_callback_method
|
|
519
|
+
# @param [String] region The region
|
|
520
|
+
# @param [String] sip_auth_username The sip_auth_username
|
|
521
|
+
# @param [String] sip_auth_password The sip_auth_password
|
|
522
|
+
# @param [String] dequeue_status_callback_event The dequeue_status_callback_event
|
|
523
|
+
# @param [String] post_work_activity_sid The post_work_activity_sid
|
|
424
524
|
# @return [ReservationInstance] Updated ReservationInstance
|
|
425
|
-
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset)
|
|
525
|
+
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset)
|
|
426
526
|
context.update(
|
|
427
527
|
reservation_status: reservation_status,
|
|
428
528
|
worker_activity_sid: worker_activity_sid,
|
|
@@ -443,6 +543,36 @@ module Twilio
|
|
|
443
543
|
redirect_call_sid: redirect_call_sid,
|
|
444
544
|
redirect_accept: redirect_accept,
|
|
445
545
|
redirect_url: redirect_url,
|
|
546
|
+
to: to,
|
|
547
|
+
from: from,
|
|
548
|
+
status_callback: status_callback,
|
|
549
|
+
status_callback_method: status_callback_method,
|
|
550
|
+
status_callback_event: status_callback_event,
|
|
551
|
+
timeout: timeout,
|
|
552
|
+
record: record,
|
|
553
|
+
muted: muted,
|
|
554
|
+
beep: beep,
|
|
555
|
+
start_conference_on_enter: start_conference_on_enter,
|
|
556
|
+
end_conference_on_exit: end_conference_on_exit,
|
|
557
|
+
wait_url: wait_url,
|
|
558
|
+
wait_method: wait_method,
|
|
559
|
+
early_media: early_media,
|
|
560
|
+
max_participants: max_participants,
|
|
561
|
+
conference_status_callback: conference_status_callback,
|
|
562
|
+
conference_status_callback_method: conference_status_callback_method,
|
|
563
|
+
conference_status_callback_event: conference_status_callback_event,
|
|
564
|
+
conference_record: conference_record,
|
|
565
|
+
conference_trim: conference_trim,
|
|
566
|
+
recording_channels: recording_channels,
|
|
567
|
+
recording_status_callback: recording_status_callback,
|
|
568
|
+
recording_status_callback_method: recording_status_callback_method,
|
|
569
|
+
conference_recording_status_callback: conference_recording_status_callback,
|
|
570
|
+
conference_recording_status_callback_method: conference_recording_status_callback_method,
|
|
571
|
+
region: region,
|
|
572
|
+
sip_auth_username: sip_auth_username,
|
|
573
|
+
sip_auth_password: sip_auth_password,
|
|
574
|
+
dequeue_status_callback_event: dequeue_status_callback_event,
|
|
575
|
+
post_work_activity_sid: post_work_activity_sid,
|
|
446
576
|
)
|
|
447
577
|
end
|
|
448
578
|
|
|
@@ -33,11 +33,11 @@ module Twilio
|
|
|
33
33
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
34
34
|
# memory before returning.
|
|
35
35
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
36
|
-
#
|
|
37
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
36
|
+
# guarantees to never return more than limit. Default is no limit
|
|
37
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
38
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
39
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
40
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
41
41
|
# @return [Array] Array of up to limit results
|
|
42
42
|
def list(limit: nil, page_size: nil)
|
|
43
43
|
self.stream(
|
|
@@ -50,12 +50,12 @@ module Twilio
|
|
|
50
50
|
# Streams WorkerChannelInstance records from the API as an Enumerable.
|
|
51
51
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
52
52
|
# is reached.
|
|
53
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
54
|
-
#
|
|
55
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
#
|
|
53
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
54
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
55
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
56
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
57
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
58
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
59
59
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
60
60
|
def stream(limit: nil, page_size: nil)
|
|
61
61
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -40,11 +40,11 @@ module Twilio
|
|
|
40
40
|
# @param [String] task_queue_name The task_queue_name
|
|
41
41
|
# @param [String] task_queue_sid The task_queue_sid
|
|
42
42
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
43
|
-
#
|
|
44
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
43
|
+
# guarantees to never return more than limit. Default is no limit
|
|
44
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
45
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
46
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
47
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
48
48
|
# @return [Array] Array of up to limit results
|
|
49
49
|
def list(activity_name: :unset, activity_sid: :unset, available: :unset, friendly_name: :unset, target_workers_expression: :unset, task_queue_name: :unset, task_queue_sid: :unset, limit: nil, page_size: nil)
|
|
50
50
|
self.stream(
|
|
@@ -71,12 +71,12 @@ module Twilio
|
|
|
71
71
|
# @param [String] target_workers_expression The target_workers_expression
|
|
72
72
|
# @param [String] task_queue_name The task_queue_name
|
|
73
73
|
# @param [String] task_queue_sid The task_queue_sid
|
|
74
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
75
|
-
#
|
|
76
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
77
|
-
#
|
|
78
|
-
#
|
|
79
|
-
#
|
|
74
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
75
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
76
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
77
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
78
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
79
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
80
80
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
81
81
|
def stream(activity_name: :unset, activity_sid: :unset, available: :unset, friendly_name: :unset, target_workers_expression: :unset, task_queue_name: :unset, task_queue_sid: :unset, limit: nil, page_size: nil)
|
|
82
82
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -31,11 +31,11 @@ module Twilio
|
|
|
31
31
|
# memory before returning.
|
|
32
32
|
# @param [String] friendly_name The friendly_name
|
|
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(friendly_name: :unset, limit: nil, page_size: nil)
|
|
41
41
|
self.stream(
|
|
@@ -50,12 +50,12 @@ module Twilio
|
|
|
50
50
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
51
51
|
# is reached.
|
|
52
52
|
# @param [String] friendly_name The friendly_name
|
|
53
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
54
|
-
#
|
|
55
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
#
|
|
53
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
54
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
55
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
56
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
57
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
58
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
59
59
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
60
60
|
def stream(friendly_name: :unset, limit: nil, page_size: nil)
|
|
61
61
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -27,11 +27,11 @@ module Twilio
|
|
|
27
27
|
# memory before returning.
|
|
28
28
|
# @param [String] friendly_name The friendly_name
|
|
29
29
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
30
|
-
#
|
|
31
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
30
|
+
# guarantees to never return more than limit. Default is no limit
|
|
31
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
32
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
33
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
34
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
35
35
|
# @return [Array] Array of up to limit results
|
|
36
36
|
def list(friendly_name: :unset, limit: nil, page_size: nil)
|
|
37
37
|
self.stream(
|
|
@@ -46,12 +46,12 @@ module Twilio
|
|
|
46
46
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
47
47
|
# is reached.
|
|
48
48
|
# @param [String] friendly_name The friendly_name
|
|
49
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
50
|
-
#
|
|
51
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
#
|
|
49
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
50
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
51
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
52
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
53
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
54
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
55
55
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
56
56
|
def stream(friendly_name: :unset, limit: nil, page_size: nil)
|
|
57
57
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -53,11 +53,11 @@ module Twilio
|
|
|
53
53
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
54
54
|
# memory before returning.
|
|
55
55
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
56
|
-
#
|
|
57
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
58
|
-
#
|
|
59
|
-
#
|
|
60
|
-
#
|
|
56
|
+
# guarantees to never return more than limit. Default is no limit
|
|
57
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
58
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
59
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
60
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
61
61
|
# @return [Array] Array of up to limit results
|
|
62
62
|
def list(limit: nil, page_size: nil)
|
|
63
63
|
self.stream(
|
|
@@ -70,12 +70,12 @@ module Twilio
|
|
|
70
70
|
# Streams CredentialListInstance records from the API as an Enumerable.
|
|
71
71
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
72
72
|
# is reached.
|
|
73
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
74
|
-
#
|
|
75
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
#
|
|
73
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
74
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
75
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
76
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
77
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
78
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
79
79
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
80
80
|
def stream(limit: nil, page_size: nil)
|
|
81
81
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -53,11 +53,11 @@ module Twilio
|
|
|
53
53
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
54
54
|
# memory before returning.
|
|
55
55
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
56
|
-
#
|
|
57
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
58
|
-
#
|
|
59
|
-
#
|
|
60
|
-
#
|
|
56
|
+
# guarantees to never return more than limit. Default is no limit
|
|
57
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
58
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
59
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
60
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
61
61
|
# @return [Array] Array of up to limit results
|
|
62
62
|
def list(limit: nil, page_size: nil)
|
|
63
63
|
self.stream(
|
|
@@ -70,12 +70,12 @@ module Twilio
|
|
|
70
70
|
# Streams IpAccessControlListInstance records from the API as an Enumerable.
|
|
71
71
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
72
72
|
# is reached.
|
|
73
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
74
|
-
#
|
|
75
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
#
|
|
73
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
74
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
75
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
76
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
77
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
78
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
79
79
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
80
80
|
def stream(limit: nil, page_size: nil)
|
|
81
81
|
limits = @version.read_limits(limit, page_size)
|