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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# \ / _ _ _| _ _
|
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
+
# / /
|
|
6
|
+
|
|
7
|
+
module Twilio
|
|
8
|
+
module REST
|
|
9
|
+
class Fax
|
|
10
|
+
class V1 < Version
|
|
11
|
+
##
|
|
12
|
+
# Initialize the V1 version of Fax
|
|
13
|
+
def initialize(domain)
|
|
14
|
+
super
|
|
15
|
+
@version = 'v1'
|
|
16
|
+
@faxes = nil
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
##
|
|
20
|
+
# @param [String] sid A 34 character string that uniquely identifies this fax.
|
|
21
|
+
# @return [Twilio::REST::Fax::V1::FaxInstance] if sid was passed.
|
|
22
|
+
# @return [Twilio::REST::Fax::V1::FaxList]
|
|
23
|
+
def faxes(sid=:unset)
|
|
24
|
+
if sid.nil?
|
|
25
|
+
raise ArgumentError, 'sid cannot be nil'
|
|
26
|
+
elsif sid == :unset
|
|
27
|
+
@faxes ||= FaxList.new self
|
|
28
|
+
else
|
|
29
|
+
FaxContext.new(self, sid)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
##
|
|
34
|
+
# Provide a user friendly representation
|
|
35
|
+
def to_s
|
|
36
|
+
'<Twilio::REST::Fax::V1>'
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# \ / _ _ _| _ _
|
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
+
# / /
|
|
6
|
+
|
|
7
|
+
module Twilio
|
|
8
|
+
module REST
|
|
9
|
+
class Fax < Domain
|
|
10
|
+
##
|
|
11
|
+
# Initialize the Fax Domain
|
|
12
|
+
def initialize(twilio)
|
|
13
|
+
super
|
|
14
|
+
|
|
15
|
+
@base_url = 'https://fax.twilio.com'
|
|
16
|
+
@host = 'fax.twilio.com'
|
|
17
|
+
@port = 443
|
|
18
|
+
|
|
19
|
+
# Versions
|
|
20
|
+
@v1 = nil
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
##
|
|
24
|
+
# Version v1 of fax
|
|
25
|
+
def v1
|
|
26
|
+
@v1 ||= V1.new self
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
##
|
|
30
|
+
# @param [String] sid A 34 character string that uniquely identifies this fax.
|
|
31
|
+
# @return [Twilio::REST::Fax::V1::FaxInstance] if sid was passed.
|
|
32
|
+
# @return [Twilio::REST::Fax::V1::FaxList]
|
|
33
|
+
def faxes(sid=:unset)
|
|
34
|
+
self.v1.faxes(sid)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
##
|
|
38
|
+
# Provide a user friendly representation
|
|
39
|
+
def to_s
|
|
40
|
+
'#<Twilio::REST::Fax>'
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -26,11 +26,11 @@ module Twilio
|
|
|
26
26
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
27
27
|
# memory before returning.
|
|
28
28
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
29
|
-
#
|
|
30
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
29
|
+
# guarantees to never return more than limit. Default is no limit
|
|
30
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
31
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
32
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
33
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
34
34
|
# @return [Array] Array of up to limit results
|
|
35
35
|
def list(limit: nil, page_size: nil)
|
|
36
36
|
self.stream(
|
|
@@ -43,12 +43,12 @@ module Twilio
|
|
|
43
43
|
# Streams CredentialInstance records from the API as an Enumerable.
|
|
44
44
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
45
45
|
# is reached.
|
|
46
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
47
|
-
#
|
|
48
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
46
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
47
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
48
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
49
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
50
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
51
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
52
52
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
53
53
|
def stream(limit: nil, page_size: nil)
|
|
54
54
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -60,11 +60,11 @@ module Twilio
|
|
|
60
60
|
# memory before returning.
|
|
61
61
|
# @param [String] identity The identity
|
|
62
62
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
63
|
-
#
|
|
64
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
65
|
-
#
|
|
66
|
-
#
|
|
67
|
-
#
|
|
63
|
+
# guarantees to never return more than limit. Default is no limit
|
|
64
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
65
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
66
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
67
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
68
68
|
# @return [Array] Array of up to limit results
|
|
69
69
|
def list(identity: :unset, limit: nil, page_size: nil)
|
|
70
70
|
self.stream(
|
|
@@ -79,12 +79,12 @@ module Twilio
|
|
|
79
79
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
80
80
|
# is reached.
|
|
81
81
|
# @param [String] identity The identity
|
|
82
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
83
|
-
#
|
|
84
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
82
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
83
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
84
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
85
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
86
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
87
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
88
88
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
89
89
|
def stream(identity: :unset, limit: nil, page_size: nil)
|
|
90
90
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -60,11 +60,11 @@ module Twilio
|
|
|
60
60
|
# memory before returning.
|
|
61
61
|
# @param [String] identity The identity
|
|
62
62
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
63
|
-
#
|
|
64
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
65
|
-
#
|
|
66
|
-
#
|
|
67
|
-
#
|
|
63
|
+
# guarantees to never return more than limit. Default is no limit
|
|
64
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
65
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
66
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
67
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
68
68
|
# @return [Array] Array of up to limit results
|
|
69
69
|
def list(identity: :unset, limit: nil, page_size: nil)
|
|
70
70
|
self.stream(
|
|
@@ -79,12 +79,12 @@ module Twilio
|
|
|
79
79
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
80
80
|
# is reached.
|
|
81
81
|
# @param [String] identity The identity
|
|
82
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
83
|
-
#
|
|
84
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
82
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
83
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
84
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
85
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
86
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
87
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
88
88
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
89
89
|
def stream(identity: :unset, limit: nil, page_size: nil)
|
|
90
90
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -62,11 +62,11 @@ module Twilio
|
|
|
62
62
|
# memory before returning.
|
|
63
63
|
# @param [message.OrderType] order The order
|
|
64
64
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
65
|
-
#
|
|
66
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
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 [Array] Array of up to limit results
|
|
71
71
|
def list(order: :unset, limit: nil, page_size: nil)
|
|
72
72
|
self.stream(
|
|
@@ -81,12 +81,12 @@ module Twilio
|
|
|
81
81
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
82
82
|
# is reached.
|
|
83
83
|
# @param [message.OrderType] order The order
|
|
84
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
85
|
-
#
|
|
86
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
#
|
|
84
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
85
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
86
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
87
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
88
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
89
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
90
90
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
91
91
|
def stream(order: :unset, limit: nil, page_size: nil)
|
|
92
92
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -60,11 +60,11 @@ module Twilio
|
|
|
60
60
|
# memory before returning.
|
|
61
61
|
# @param [channel.ChannelType] type The type
|
|
62
62
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
63
|
-
#
|
|
64
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
65
|
-
#
|
|
66
|
-
#
|
|
67
|
-
#
|
|
63
|
+
# guarantees to never return more than limit. Default is no limit
|
|
64
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
65
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
66
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
67
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
68
68
|
# @return [Array] Array of up to limit results
|
|
69
69
|
def list(type: :unset, limit: nil, page_size: nil)
|
|
70
70
|
self.stream(
|
|
@@ -79,12 +79,12 @@ module Twilio
|
|
|
79
79
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
80
80
|
# is reached.
|
|
81
81
|
# @param [channel.ChannelType] type The type
|
|
82
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
83
|
-
#
|
|
84
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
82
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
83
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
84
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
85
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
86
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
87
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
88
88
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
89
89
|
def stream(type: :unset, limit: nil, page_size: nil)
|
|
90
90
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -57,11 +57,11 @@ module Twilio
|
|
|
57
57
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
58
58
|
# memory before returning.
|
|
59
59
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
60
|
-
#
|
|
61
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
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 [Array] Array of up to limit results
|
|
66
66
|
def list(limit: nil, page_size: nil)
|
|
67
67
|
self.stream(
|
|
@@ -74,12 +74,12 @@ module Twilio
|
|
|
74
74
|
# Streams RoleInstance records from the API as an Enumerable.
|
|
75
75
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
76
76
|
# is reached.
|
|
77
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
78
|
-
#
|
|
79
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
80
|
-
#
|
|
81
|
-
#
|
|
82
|
-
#
|
|
77
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
78
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
79
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
80
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
81
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
82
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
83
83
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
84
84
|
def stream(limit: nil, page_size: nil)
|
|
85
85
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -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 UserChannelInstance 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)
|
|
@@ -59,11 +59,11 @@ module Twilio
|
|
|
59
59
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
60
60
|
# memory before returning.
|
|
61
61
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
62
|
-
#
|
|
63
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
64
|
-
#
|
|
65
|
-
#
|
|
66
|
-
#
|
|
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 [Array] Array of up to limit results
|
|
68
68
|
def list(limit: nil, page_size: nil)
|
|
69
69
|
self.stream(
|
|
@@ -76,12 +76,12 @@ module Twilio
|
|
|
76
76
|
# Streams UserInstance records from the API as an Enumerable.
|
|
77
77
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
78
78
|
# is reached.
|
|
79
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
80
|
-
#
|
|
81
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
82
|
-
#
|
|
83
|
-
#
|
|
84
|
-
#
|
|
79
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
80
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
81
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
82
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
83
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
84
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
85
85
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
86
86
|
def stream(limit: nil, page_size: nil)
|
|
87
87
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -48,11 +48,11 @@ module Twilio
|
|
|
48
48
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
49
49
|
# memory before returning.
|
|
50
50
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
51
|
-
#
|
|
52
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
53
|
-
#
|
|
54
|
-
#
|
|
55
|
-
#
|
|
51
|
+
# guarantees to never return more than limit. Default is no limit
|
|
52
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
53
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
54
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
55
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
56
56
|
# @return [Array] Array of up to limit results
|
|
57
57
|
def list(limit: nil, page_size: nil)
|
|
58
58
|
self.stream(
|
|
@@ -65,12 +65,12 @@ module Twilio
|
|
|
65
65
|
# Streams ServiceInstance records from the API as an Enumerable.
|
|
66
66
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
67
67
|
# is reached.
|
|
68
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
69
|
-
#
|
|
70
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
71
|
-
#
|
|
72
|
-
#
|
|
73
|
-
#
|
|
68
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
69
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
70
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
71
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
72
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
73
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
74
74
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
75
75
|
def stream(limit: nil, page_size: nil)
|
|
76
76
|
limits = @version.read_limits(limit, page_size)
|
|
@@ -26,11 +26,11 @@ module Twilio
|
|
|
26
26
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
27
27
|
# memory before returning.
|
|
28
28
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
29
|
-
#
|
|
30
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
29
|
+
# guarantees to never return more than limit. Default is no limit
|
|
30
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
31
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
32
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
33
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
34
34
|
# @return [Array] Array of up to limit results
|
|
35
35
|
def list(limit: nil, page_size: nil)
|
|
36
36
|
self.stream(
|
|
@@ -43,12 +43,12 @@ module Twilio
|
|
|
43
43
|
# Streams CredentialInstance records from the API as an Enumerable.
|
|
44
44
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
45
45
|
# is reached.
|
|
46
|
-
# @param [Integer] limit Upper limit for the number of records to return.
|
|
47
|
-
#
|
|
48
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
46
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
47
|
+
# guarantees to never return more than limit. Default is no limit.
|
|
48
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
49
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
50
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
51
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
52
52
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
53
53
|
def stream(limit: nil, page_size: nil)
|
|
54
54
|
limits = @version.read_limits(limit, page_size)
|