twilio-ruby 5.8.1 → 5.9.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 +9 -0
- data/PULL_REQUEST_TEMPLATE.md +4 -0
- data/README.md +2 -2
- data/lib/rack/twilio_webhook_authentication.rb +2 -0
- data/lib/twilio-ruby/framework/domain.rb +2 -0
- data/lib/twilio-ruby/framework/error.rb +2 -0
- data/lib/twilio-ruby/framework/helper.rb +2 -0
- data/lib/twilio-ruby/framework/obsolete_client.rb +2 -0
- data/lib/twilio-ruby/framework/page.rb +2 -0
- data/lib/twilio-ruby/framework/request.rb +2 -0
- data/lib/twilio-ruby/framework/resource.rb +2 -0
- data/lib/twilio-ruby/framework/response.rb +2 -0
- data/lib/twilio-ruby/framework/serialize.rb +2 -0
- data/lib/twilio-ruby/framework/twilio_response.rb +2 -0
- data/lib/twilio-ruby/framework/values.rb +2 -0
- data/lib/twilio-ruby/framework/version.rb +2 -0
- data/lib/twilio-ruby/http/http_client.rb +2 -0
- data/lib/twilio-ruby/jwt/access_token.rb +2 -0
- data/lib/twilio-ruby/jwt/client_capability.rb +2 -0
- data/lib/twilio-ruby/jwt/jwt.rb +2 -0
- data/lib/twilio-ruby/jwt/task_router.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +2 -0
- data/lib/twilio-ruby/rest/accounts.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +82 -45
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +65 -51
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +12 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +19 -9
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +150 -81
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +66 -50
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +13 -7
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +19 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +106 -79
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +74 -26
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +12 -5
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +18 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +7 -3
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +21 -14
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +7 -5
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +29 -13
- data/lib/twilio-ruby/rest/api/v2010/account.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010.rb +2 -0
- data/lib/twilio-ruby/rest/api.rb +3 -1
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat.rb +2 -0
- data/lib/twilio-ruby/rest/client.rb +3 -1
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +2 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +11 -6
- data/lib/twilio-ruby/rest/fax/v1.rb +2 -0
- data/lib/twilio-ruby/rest/fax.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging.rb +2 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/lookups/v1.rb +2 -0
- data/lib/twilio-ruby/rest/lookups.rb +2 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +17 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +15 -12
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +2 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +54 -28
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/messaging.rb +3 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +52 -23
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +2 -0
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/monitor.rb +3 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +2 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +14 -12
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +26 -21
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +36 -25
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +9 -5
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent/field.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent/sample.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless.rb +2 -0
- data/lib/twilio-ruby/rest/preview.rb +5 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +2 -0
- data/lib/twilio-ruby/rest/pricing.rb +2 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +16 -32
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +15 -15
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +15 -17
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +37 -42
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +4 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +34 -23
- data/lib/twilio-ruby/rest/proxy/v1.rb +2 -0
- data/lib/twilio-ruby/rest/proxy.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1.rb +2 -0
- data/lib/twilio-ruby/rest/studio.rb +2 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +31 -21
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +40 -22
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +20 -15
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +31 -20
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +24 -17
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +10 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +14 -9
- data/lib/twilio-ruby/rest/sync/v1/service.rb +39 -16
- data/lib/twilio-ruby/rest/sync/v1.rb +2 -0
- data/lib/twilio-ruby/rest/sync.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +42 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +56 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +69 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +128 -55
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +51 -25
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +15 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +61 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +83 -35
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +27 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +36 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +24 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +31 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +36 -14
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +71 -37
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +52 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +11 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +68 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +52 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +13 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +95 -36
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter.rb +3 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1.rb +2 -0
- data/lib/twilio-ruby/rest/trunking.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +29 -24
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +34 -21
- data/lib/twilio-ruby/rest/video/v1/room.rb +59 -40
- data/lib/twilio-ruby/rest/video/v1.rb +2 -0
- data/lib/twilio-ruby/rest/video.rb +4 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1.rb +2 -0
- data/lib/twilio-ruby/rest/wireless.rb +2 -0
- data/lib/twilio-ruby/security/request_validator.rb +2 -0
- data/lib/twilio-ruby/twiml/fax_response.rb +2 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +2 -0
- data/lib/twilio-ruby/twiml/twiml.rb +2 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +2 -0
- data/lib/twilio-ruby/util/configuration.rb +2 -0
- data/lib/twilio-ruby/util.rb +2 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/lib/twilio-ruby.rb +2 -0
- data/spec/integration/accounts/v1/credential/aws_spec.rb +2 -0
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +2 -0
- data/spec/integration/accounts/v1/credential_spec.rb +2 -0
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/address_spec.rb +2 -0
- data/spec/integration/api/v2010/account/application_spec.rb +2 -0
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/notification_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/recording_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call_spec.rb +2 -0
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +2 -0
- data/spec/integration/api/v2010/account/conference_spec.rb +2 -0
- data/spec/integration/api/v2010/account/connect_app_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message/media_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message_spec.rb +2 -0
- data/spec/integration/api/v2010/account/new_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/notification_spec.rb +2 -0
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +2 -0
- data/spec/integration/api/v2010/account/queue/member_spec.rb +2 -0
- data/spec/integration/api/v2010/account/queue_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording_spec.rb +2 -0
- data/spec/integration/api/v2010/account/short_code_spec.rb +2 -0
- data/spec/integration/api/v2010/account/signing_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip_spec.rb +2 -0
- data/spec/integration/api/v2010/account/token_spec.rb +2 -0
- data/spec/integration/api/v2010/account/transcription_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage_spec.rb +2 -0
- data/spec/integration/api/v2010/account/validation_request_spec.rb +2 -0
- data/spec/integration/api/v2010/account_spec.rb +2 -0
- data/spec/integration/chat/v1/credential_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/member_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/message_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel_spec.rb +2 -0
- data/spec/integration/chat/v1/service/role_spec.rb +2 -0
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/chat/v1/service/user_spec.rb +2 -0
- data/spec/integration/chat/v1/service_spec.rb +2 -0
- data/spec/integration/chat/v2/credential_spec.rb +2 -0
- data/spec/integration/chat/v2/service/binding_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/member_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/message_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel_spec.rb +2 -0
- data/spec/integration/chat/v2/service/role_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user_spec.rb +2 -0
- data/spec/integration/chat/v2/service_spec.rb +2 -0
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +2 -0
- data/spec/integration/fax/v1/fax_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/credential_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/credential_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service_spec.rb +2 -0
- data/spec/integration/lookups/v1/phone_number_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/short_code_spec.rb +2 -0
- data/spec/integration/messaging/v1/service_spec.rb +2 -0
- data/spec/integration/monitor/v1/alert_spec.rb +2 -0
- data/spec/integration/monitor/v1/event_spec.rb +2 -0
- data/spec/integration/notify/v1/credential_spec.rb +2 -0
- data/spec/integration/notify/v1/service/binding_spec.rb +2 -0
- data/spec/integration/notify/v1/service/notification_spec.rb +2 -0
- data/spec/integration/notify/v1/service/segment_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user_spec.rb +2 -0
- data/spec/integration/notify/v1/service_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service/verification_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +2 -0
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +2 -0
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +2 -0
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +2 -0
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/short_code_spec.rb +2 -0
- data/spec/integration/preview/proxy/service_spec.rb +2 -0
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +2 -0
- data/spec/integration/preview/studio/flow/engagement_spec.rb +2 -0
- data/spec/integration/preview/studio/flow_spec.rb +2 -0
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/document_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map_spec.rb +2 -0
- data/spec/integration/preview/sync/service_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/field_type_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent/field_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent/sample_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/model_build_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/query_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant_spec.rb +2 -0
- data/spec/integration/preview/wireless/command_spec.rb +2 -0
- data/spec/integration/preview/wireless/rate_plan_spec.rb +2 -0
- data/spec/integration/preview/wireless/sim/usage_spec.rb +2 -0
- data/spec/integration/preview/wireless/sim_spec.rb +2 -0
- data/spec/integration/pricing/v1/messaging/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/messaging_spec.rb +2 -0
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/phone_number_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice/number_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/short_code_spec.rb +2 -0
- data/spec/integration/proxy/v1/service_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement_spec.rb +2 -0
- data/spec/integration/studio/v1/flow_spec.rb +2 -0
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/document_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +2 -0
- data/spec/integration/sync/v1/service_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk_spec.rb +2 -0
- data/spec/integration/video/v1/composition_spec.rb +118 -19
- data/spec/integration/video/v1/recording_spec.rb +2 -0
- data/spec/integration/video/v1/room/recording_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant_spec.rb +2 -0
- data/spec/integration/video/v1/room_spec.rb +2 -0
- data/spec/integration/wireless/v1/command_spec.rb +2 -0
- data/spec/integration/wireless/v1/rate_plan_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim_spec.rb +2 -0
- metadata +3 -2
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
# \ / _ _ _| _ _
|
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
5
|
# / /
|
|
6
|
+
#
|
|
7
|
+
# frozen_string_literal: true
|
|
6
8
|
|
|
7
9
|
module Twilio
|
|
8
10
|
module REST
|
|
@@ -13,7 +15,8 @@ module Twilio
|
|
|
13
15
|
##
|
|
14
16
|
# Initialize the ApplicationList
|
|
15
17
|
# @param [Version] version Version that contains the resource
|
|
16
|
-
# @param [String] account_sid The unique id of the
|
|
18
|
+
# @param [String] account_sid The unique id of the
|
|
19
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this
|
|
17
20
|
# application.
|
|
18
21
|
# @return [ApplicationList] ApplicationList
|
|
19
22
|
def initialize(version, account_sid: nil)
|
|
@@ -29,37 +32,43 @@ module Twilio
|
|
|
29
32
|
# Request is executed immediately.
|
|
30
33
|
# @param [String] friendly_name A human readable description of the new
|
|
31
34
|
# application, maximum of 64 characters.
|
|
32
|
-
# @param [String] api_version Requests to this application will start a new
|
|
33
|
-
# session with this API version.
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
35
|
+
# @param [String] api_version Requests to this application's URLs will start a new
|
|
36
|
+
# TwiML session with this API version. Either `2010-04-01` or `2008-08-01`.
|
|
37
|
+
# Defaults to your account's default API version.
|
|
38
|
+
# @param [String] voice_url The URL that Twilio should request when somebody dials
|
|
39
|
+
# a phone number assigned to this application.
|
|
40
|
+
# @param [String] voice_method The HTTP method that should be used to request the
|
|
41
|
+
# `VoiceUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
|
|
38
42
|
# @param [String] voice_fallback_url The URL that Twilio will request if an error
|
|
39
43
|
# occurs retrieving or executing the TwiML requested by `Url`.
|
|
40
|
-
# @param [String] voice_fallback_method The HTTP method
|
|
41
|
-
#
|
|
44
|
+
# @param [String] voice_fallback_method The HTTP method that should be used to
|
|
45
|
+
# request the `VoiceFallbackUrl`. Either `GET` or `POST`. Defaults to `POST`.
|
|
42
46
|
# @param [String] status_callback The URL that Twilio will request to pass status
|
|
43
47
|
# parameters (such as call ended) to your application.
|
|
44
48
|
# @param [String] status_callback_method The HTTP method Twilio will use to make
|
|
45
|
-
# requests to the `StatusCallback` URL. Either `GET` or `POST`.
|
|
46
|
-
#
|
|
47
|
-
#
|
|
49
|
+
# requests to the `StatusCallback` URL. Either `GET` or `POST`. Defaults to
|
|
50
|
+
# `POST`.
|
|
51
|
+
# @param [Boolean] voice_caller_id_lookup Do a lookup of a caller's name from the
|
|
52
|
+
# CNAM database and post it to your app. Either `true` or `false`. Defaults to
|
|
53
|
+
# `false`.
|
|
48
54
|
# @param [String] sms_url The URL Twilio will request when a phone number assigned
|
|
49
55
|
# to this application receives an incoming SMS message.
|
|
50
|
-
# @param [String] sms_method The HTTP method
|
|
51
|
-
#
|
|
52
|
-
# @param [String] sms_fallback_url
|
|
53
|
-
# occurs
|
|
54
|
-
# @param [String] sms_fallback_method The HTTP method
|
|
55
|
-
#
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
#
|
|
56
|
+
# @param [String] sms_method The HTTP method that should be used to request the
|
|
57
|
+
# `SmsUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
|
|
58
|
+
# @param [String] sms_fallback_url A URL that Twilio will request if an error
|
|
59
|
+
# occurs requesting or executing the TwiML defined by `SmsUrl`.
|
|
60
|
+
# @param [String] sms_fallback_method The HTTP method that should be used to
|
|
61
|
+
# request the `SmsFallbackUrl`. Must be either `GET` or `POST`. Defaults to
|
|
62
|
+
# `POST`.
|
|
63
|
+
# @param [String] sms_status_callback Twilio will make a `POST` request to this
|
|
64
|
+
# URL to pass status parameters (such as sent or failed) to your application if
|
|
65
|
+
# you specify this application's `Sid` as the `ApplicationSid` on an [outgoing SMS
|
|
66
|
+
# request](https://www.twilio.com/docs/sms/send-messages).
|
|
59
67
|
# @param [String] message_status_callback Twilio will make a `POST` request to
|
|
60
68
|
# this URL to pass status parameters (such as sent or failed) to your application
|
|
61
69
|
# if you use the `/Messages` endpoint to send the message and specify this
|
|
62
|
-
# application's `Sid` as the `ApplicationSid` on an outgoing SMS
|
|
70
|
+
# application's `Sid` as the `ApplicationSid` on an [outgoing SMS
|
|
71
|
+
# request](https://www.twilio.com/docs/sms/send-messages).
|
|
63
72
|
# @return [ApplicationInstance] Newly created ApplicationInstance
|
|
64
73
|
def create(friendly_name: nil, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset)
|
|
65
74
|
data = Twilio::Values.of({
|
|
@@ -259,16 +268,16 @@ module Twilio
|
|
|
259
268
|
|
|
260
269
|
##
|
|
261
270
|
# Update the ApplicationInstance
|
|
262
|
-
# @param [String] friendly_name A human readable
|
|
263
|
-
#
|
|
264
|
-
# @param [String] api_version Requests to this application will start a new
|
|
265
|
-
# session with this API version.
|
|
266
|
-
# @param [String] voice_url The URL Twilio
|
|
267
|
-
# assigned to this application
|
|
271
|
+
# @param [String] friendly_name A human readable description of the application,
|
|
272
|
+
# with maximum length 64 characters.
|
|
273
|
+
# @param [String] api_version Requests to this application's URLs will start a new
|
|
274
|
+
# TwiML session with this API version. Either `2010-04-01` or `2008-08-01`.
|
|
275
|
+
# @param [String] voice_url The URL that Twilio should request when somebody dials
|
|
276
|
+
# a phone number assigned to this application.
|
|
268
277
|
# @param [String] voice_method The HTTP method Twilio will use when requesting the
|
|
269
278
|
# above `Url`. Either `GET` or `POST`.
|
|
270
|
-
# @param [String] voice_fallback_url
|
|
271
|
-
# occurs
|
|
279
|
+
# @param [String] voice_fallback_url A URL that Twilio will request if an error
|
|
280
|
+
# occurs requesting or executing the TwiML defined by `VoiceUrl`.
|
|
272
281
|
# @param [String] voice_fallback_method The HTTP method Twilio will use when
|
|
273
282
|
# requesting the `VoiceFallbackUrl`. Either `GET` or `POST`.
|
|
274
283
|
# @param [String] status_callback The URL that Twilio will request to pass status
|
|
@@ -281,17 +290,19 @@ module Twilio
|
|
|
281
290
|
# to this application receives an incoming SMS message.
|
|
282
291
|
# @param [String] sms_method The HTTP method Twilio will use when making requests
|
|
283
292
|
# to the `SmsUrl`. Either `GET` or `POST`.
|
|
284
|
-
# @param [String] sms_fallback_url
|
|
285
|
-
# occurs
|
|
286
|
-
# @param [String] sms_fallback_method The HTTP method
|
|
287
|
-
#
|
|
293
|
+
# @param [String] sms_fallback_url A URL that Twilio will request if an error
|
|
294
|
+
# occurs requesting or executing the TwiML defined by `SmsUrl`.
|
|
295
|
+
# @param [String] sms_fallback_method The HTTP method that should be used to
|
|
296
|
+
# request the `SmsFallbackUrl`. Either `GET` or `POST`.
|
|
288
297
|
# @param [String] sms_status_callback The URL that Twilio will `POST` to when a
|
|
289
298
|
# message is sent via the `/SMS/Messages` endpoint if you specify the `Sid` of
|
|
290
|
-
# this application on an outgoing SMS
|
|
299
|
+
# this application on an [outgoing SMS
|
|
300
|
+
# request](https://www.twilio.com/docs/sms/send-messages).
|
|
291
301
|
# @param [String] message_status_callback Twilio will make a `POST` request to
|
|
292
302
|
# this URL to pass status parameters (such as sent or failed) to your application
|
|
293
303
|
# if you use the `/Messages` endpoint to send the message and specify this
|
|
294
|
-
# application's `Sid` as the `ApplicationSid` on an outgoing SMS
|
|
304
|
+
# application's `Sid` as the `ApplicationSid` on an [outgoing SMS
|
|
305
|
+
# request](https://www.twilio.com/docs/sms/send-messages).
|
|
295
306
|
# @return [ApplicationInstance] Updated ApplicationInstance
|
|
296
307
|
def update(friendly_name: :unset, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset)
|
|
297
308
|
data = Twilio::Values.of({
|
|
@@ -339,7 +350,8 @@ module Twilio
|
|
|
339
350
|
# Initialize the ApplicationInstance
|
|
340
351
|
# @param [Version] version Version that contains the resource
|
|
341
352
|
# @param [Hash] payload payload that contains response from Twilio
|
|
342
|
-
# @param [String] account_sid The unique id of the
|
|
353
|
+
# @param [String] account_sid The unique id of the
|
|
354
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) that created this
|
|
343
355
|
# application.
|
|
344
356
|
# @param [String] sid The application Sid that that uniquely identifies this
|
|
345
357
|
# resource
|
|
@@ -523,16 +535,16 @@ module Twilio
|
|
|
523
535
|
|
|
524
536
|
##
|
|
525
537
|
# Update the ApplicationInstance
|
|
526
|
-
# @param [String] friendly_name A human readable
|
|
527
|
-
#
|
|
528
|
-
# @param [String] api_version Requests to this application will start a new
|
|
529
|
-
# session with this API version.
|
|
530
|
-
# @param [String] voice_url The URL Twilio
|
|
531
|
-
# assigned to this application
|
|
538
|
+
# @param [String] friendly_name A human readable description of the application,
|
|
539
|
+
# with maximum length 64 characters.
|
|
540
|
+
# @param [String] api_version Requests to this application's URLs will start a new
|
|
541
|
+
# TwiML session with this API version. Either `2010-04-01` or `2008-08-01`.
|
|
542
|
+
# @param [String] voice_url The URL that Twilio should request when somebody dials
|
|
543
|
+
# a phone number assigned to this application.
|
|
532
544
|
# @param [String] voice_method The HTTP method Twilio will use when requesting the
|
|
533
545
|
# above `Url`. Either `GET` or `POST`.
|
|
534
|
-
# @param [String] voice_fallback_url
|
|
535
|
-
# occurs
|
|
546
|
+
# @param [String] voice_fallback_url A URL that Twilio will request if an error
|
|
547
|
+
# occurs requesting or executing the TwiML defined by `VoiceUrl`.
|
|
536
548
|
# @param [String] voice_fallback_method The HTTP method Twilio will use when
|
|
537
549
|
# requesting the `VoiceFallbackUrl`. Either `GET` or `POST`.
|
|
538
550
|
# @param [String] status_callback The URL that Twilio will request to pass status
|
|
@@ -545,17 +557,19 @@ module Twilio
|
|
|
545
557
|
# to this application receives an incoming SMS message.
|
|
546
558
|
# @param [String] sms_method The HTTP method Twilio will use when making requests
|
|
547
559
|
# to the `SmsUrl`. Either `GET` or `POST`.
|
|
548
|
-
# @param [String] sms_fallback_url
|
|
549
|
-
# occurs
|
|
550
|
-
# @param [String] sms_fallback_method The HTTP method
|
|
551
|
-
#
|
|
560
|
+
# @param [String] sms_fallback_url A URL that Twilio will request if an error
|
|
561
|
+
# occurs requesting or executing the TwiML defined by `SmsUrl`.
|
|
562
|
+
# @param [String] sms_fallback_method The HTTP method that should be used to
|
|
563
|
+
# request the `SmsFallbackUrl`. Either `GET` or `POST`.
|
|
552
564
|
# @param [String] sms_status_callback The URL that Twilio will `POST` to when a
|
|
553
565
|
# message is sent via the `/SMS/Messages` endpoint if you specify the `Sid` of
|
|
554
|
-
# this application on an outgoing SMS
|
|
566
|
+
# this application on an [outgoing SMS
|
|
567
|
+
# request](https://www.twilio.com/docs/sms/send-messages).
|
|
555
568
|
# @param [String] message_status_callback Twilio will make a `POST` request to
|
|
556
569
|
# this URL to pass status parameters (such as sent or failed) to your application
|
|
557
570
|
# if you use the `/Messages` endpoint to send the message and specify this
|
|
558
|
-
# application's `Sid` as the `ApplicationSid` on an outgoing SMS
|
|
571
|
+
# application's `Sid` as the `ApplicationSid` on an [outgoing SMS
|
|
572
|
+
# request](https://www.twilio.com/docs/sms/send-messages).
|
|
559
573
|
# @return [ApplicationInstance] Updated ApplicationInstance
|
|
560
574
|
def update(friendly_name: :unset, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset)
|
|
561
575
|
context.update(
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
# \ / _ _ _| _ _
|
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
5
|
# / /
|
|
6
|
+
#
|
|
7
|
+
# frozen_string_literal: true
|
|
6
8
|
|
|
7
9
|
module Twilio
|
|
8
10
|
module REST
|
|
@@ -30,26 +32,59 @@ module Twilio
|
|
|
30
32
|
# Lists LocalInstance records from the API as a list.
|
|
31
33
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
32
34
|
# memory before returning.
|
|
33
|
-
# @param [String] area_code
|
|
34
|
-
#
|
|
35
|
-
# @param [
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
# @param [Boolean]
|
|
40
|
-
#
|
|
41
|
-
# @param [Boolean]
|
|
42
|
-
#
|
|
43
|
-
# @param [Boolean]
|
|
44
|
-
#
|
|
45
|
-
# @param [
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
# @param [
|
|
51
|
-
#
|
|
52
|
-
#
|
|
35
|
+
# @param [String] area_code Find phone numbers in the specified area code. (US and
|
|
36
|
+
# Canada only)
|
|
37
|
+
# @param [String] contains A pattern on which to match phone numbers. Valid
|
|
38
|
+
# characters are `'*'` and `[0-9a-zA-Z]`. The `'*'` character will match any
|
|
39
|
+
# single digit. See [Example
|
|
40
|
+
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3) below. *NOTE:* Patterns must be at least two characters long.
|
|
41
|
+
# @param [Boolean] sms_enabled This indicates whether the phone numbers can
|
|
42
|
+
# receive text messages. Possible values are `true` or `false`.
|
|
43
|
+
# @param [Boolean] mms_enabled This indicates whether the phone numbers can
|
|
44
|
+
# receive MMS messages. Possible values are `true` or `false`.
|
|
45
|
+
# @param [Boolean] voice_enabled This indicates whether the phone numbers can
|
|
46
|
+
# receive calls. Possible values are `true` or `false`.
|
|
47
|
+
# @param [Boolean] exclude_all_address_required Indicates whether the response
|
|
48
|
+
# includes phone numbers which require any
|
|
49
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
|
50
|
+
# `true` or `false`. If not specified, the default is `false`, and results could
|
|
51
|
+
# include phone numbers with an Address required.
|
|
52
|
+
# @param [Boolean] exclude_local_address_required Indicates whether the response
|
|
53
|
+
# includes phone numbers which require a local
|
|
54
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
|
55
|
+
# `true` or `false`. If not specified, the default is `false`, and results could
|
|
56
|
+
# include phone numbers with a local Address required.
|
|
57
|
+
# @param [Boolean] exclude_foreign_address_required Indicates whether the response
|
|
58
|
+
# includes phone numbers which require a foreign
|
|
59
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
|
60
|
+
# `true` or `false`. If not specified, the default is `false`, and results could
|
|
61
|
+
# include phone numbers with a foreign Address required.
|
|
62
|
+
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
|
63
|
+
# values are either `true` or `false`. Default is `true`.
|
|
64
|
+
# @param [String] near_number Given a phone number, find a geographically close
|
|
65
|
+
# number within `Distance` miles. Distance defaults to 25 miles.
|
|
66
|
+
# @param [String] near_lat_long Given a latitude/longitude pair `lat,long` find
|
|
67
|
+
# geographically close numbers within `Distance` miles.
|
|
68
|
+
# @param [String] distance Specifies the search radius for a `Near-` query in
|
|
69
|
+
# miles. If not specified this defaults to 25 miles. Maximum searchable distance
|
|
70
|
+
# is 500 miles.
|
|
71
|
+
# @param [String] in_postal_code Limit results to a particular postal code. Given
|
|
72
|
+
# a phone number, search within the same postal code as that number.
|
|
73
|
+
# @param [String] in_region Limit results to a particular region (i.e.
|
|
74
|
+
# State/Province). Given a phone number, search within the same Region as that
|
|
75
|
+
# number.
|
|
76
|
+
# @param [String] in_rate_center Limit results to a specific rate center, or given
|
|
77
|
+
# a phone number search within the same rate center as that number. Requires
|
|
78
|
+
# InLata to be set as well.
|
|
79
|
+
# @param [String] in_lata Limit results to a specific Local access and transport
|
|
80
|
+
# area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)).
|
|
81
|
+
# Given a phone number, search within the same
|
|
82
|
+
# [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that
|
|
83
|
+
# number.
|
|
84
|
+
# @param [String] in_locality Limit results to a particular locality (i.e. City).
|
|
85
|
+
# Given a phone number, search within the same Locality as that number.
|
|
86
|
+
# @param [Boolean] fax_enabled This indicates whether the phone numbers can
|
|
87
|
+
# receive faxes. Possible values are `true` or `false`.
|
|
53
88
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
54
89
|
# guarantees to never return more than limit. Default is no limit
|
|
55
90
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -86,26 +121,59 @@ module Twilio
|
|
|
86
121
|
# Streams LocalInstance records from the API as an Enumerable.
|
|
87
122
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
88
123
|
# is reached.
|
|
89
|
-
# @param [String] area_code
|
|
90
|
-
#
|
|
91
|
-
# @param [
|
|
92
|
-
#
|
|
93
|
-
#
|
|
94
|
-
#
|
|
95
|
-
# @param [Boolean]
|
|
96
|
-
#
|
|
97
|
-
# @param [Boolean]
|
|
98
|
-
#
|
|
99
|
-
# @param [Boolean]
|
|
100
|
-
#
|
|
101
|
-
# @param [
|
|
102
|
-
#
|
|
103
|
-
#
|
|
104
|
-
#
|
|
105
|
-
#
|
|
106
|
-
# @param [
|
|
107
|
-
#
|
|
108
|
-
#
|
|
124
|
+
# @param [String] area_code Find phone numbers in the specified area code. (US and
|
|
125
|
+
# Canada only)
|
|
126
|
+
# @param [String] contains A pattern on which to match phone numbers. Valid
|
|
127
|
+
# characters are `'*'` and `[0-9a-zA-Z]`. The `'*'` character will match any
|
|
128
|
+
# single digit. See [Example
|
|
129
|
+
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3) below. *NOTE:* Patterns must be at least two characters long.
|
|
130
|
+
# @param [Boolean] sms_enabled This indicates whether the phone numbers can
|
|
131
|
+
# receive text messages. Possible values are `true` or `false`.
|
|
132
|
+
# @param [Boolean] mms_enabled This indicates whether the phone numbers can
|
|
133
|
+
# receive MMS messages. Possible values are `true` or `false`.
|
|
134
|
+
# @param [Boolean] voice_enabled This indicates whether the phone numbers can
|
|
135
|
+
# receive calls. Possible values are `true` or `false`.
|
|
136
|
+
# @param [Boolean] exclude_all_address_required Indicates whether the response
|
|
137
|
+
# includes phone numbers which require any
|
|
138
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
|
139
|
+
# `true` or `false`. If not specified, the default is `false`, and results could
|
|
140
|
+
# include phone numbers with an Address required.
|
|
141
|
+
# @param [Boolean] exclude_local_address_required Indicates whether the response
|
|
142
|
+
# includes phone numbers which require a local
|
|
143
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
|
144
|
+
# `true` or `false`. If not specified, the default is `false`, and results could
|
|
145
|
+
# include phone numbers with a local Address required.
|
|
146
|
+
# @param [Boolean] exclude_foreign_address_required Indicates whether the response
|
|
147
|
+
# includes phone numbers which require a foreign
|
|
148
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
|
149
|
+
# `true` or `false`. If not specified, the default is `false`, and results could
|
|
150
|
+
# include phone numbers with a foreign Address required.
|
|
151
|
+
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
|
152
|
+
# values are either `true` or `false`. Default is `true`.
|
|
153
|
+
# @param [String] near_number Given a phone number, find a geographically close
|
|
154
|
+
# number within `Distance` miles. Distance defaults to 25 miles.
|
|
155
|
+
# @param [String] near_lat_long Given a latitude/longitude pair `lat,long` find
|
|
156
|
+
# geographically close numbers within `Distance` miles.
|
|
157
|
+
# @param [String] distance Specifies the search radius for a `Near-` query in
|
|
158
|
+
# miles. If not specified this defaults to 25 miles. Maximum searchable distance
|
|
159
|
+
# is 500 miles.
|
|
160
|
+
# @param [String] in_postal_code Limit results to a particular postal code. Given
|
|
161
|
+
# a phone number, search within the same postal code as that number.
|
|
162
|
+
# @param [String] in_region Limit results to a particular region (i.e.
|
|
163
|
+
# State/Province). Given a phone number, search within the same Region as that
|
|
164
|
+
# number.
|
|
165
|
+
# @param [String] in_rate_center Limit results to a specific rate center, or given
|
|
166
|
+
# a phone number search within the same rate center as that number. Requires
|
|
167
|
+
# InLata to be set as well.
|
|
168
|
+
# @param [String] in_lata Limit results to a specific Local access and transport
|
|
169
|
+
# area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)).
|
|
170
|
+
# Given a phone number, search within the same
|
|
171
|
+
# [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that
|
|
172
|
+
# number.
|
|
173
|
+
# @param [String] in_locality Limit results to a particular locality (i.e. City).
|
|
174
|
+
# Given a phone number, search within the same Locality as that number.
|
|
175
|
+
# @param [Boolean] fax_enabled This indicates whether the phone numbers can
|
|
176
|
+
# receive faxes. Possible values are `true` or `false`.
|
|
109
177
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
110
178
|
# guarantees to never return more than limit. Default is no limit.
|
|
111
179
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -158,26 +226,59 @@ module Twilio
|
|
|
158
226
|
##
|
|
159
227
|
# Retrieve a single page of LocalInstance records from the API.
|
|
160
228
|
# Request is executed immediately.
|
|
161
|
-
# @param [String] area_code
|
|
162
|
-
#
|
|
163
|
-
# @param [
|
|
164
|
-
#
|
|
165
|
-
#
|
|
166
|
-
#
|
|
167
|
-
# @param [Boolean]
|
|
168
|
-
#
|
|
169
|
-
# @param [Boolean]
|
|
170
|
-
#
|
|
171
|
-
# @param [Boolean]
|
|
172
|
-
#
|
|
173
|
-
# @param [
|
|
174
|
-
#
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
# @param [
|
|
179
|
-
#
|
|
180
|
-
#
|
|
229
|
+
# @param [String] area_code Find phone numbers in the specified area code. (US and
|
|
230
|
+
# Canada only)
|
|
231
|
+
# @param [String] contains A pattern on which to match phone numbers. Valid
|
|
232
|
+
# characters are `'*'` and `[0-9a-zA-Z]`. The `'*'` character will match any
|
|
233
|
+
# single digit. See [Example
|
|
234
|
+
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3) below. *NOTE:* Patterns must be at least two characters long.
|
|
235
|
+
# @param [Boolean] sms_enabled This indicates whether the phone numbers can
|
|
236
|
+
# receive text messages. Possible values are `true` or `false`.
|
|
237
|
+
# @param [Boolean] mms_enabled This indicates whether the phone numbers can
|
|
238
|
+
# receive MMS messages. Possible values are `true` or `false`.
|
|
239
|
+
# @param [Boolean] voice_enabled This indicates whether the phone numbers can
|
|
240
|
+
# receive calls. Possible values are `true` or `false`.
|
|
241
|
+
# @param [Boolean] exclude_all_address_required Indicates whether the response
|
|
242
|
+
# includes phone numbers which require any
|
|
243
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
|
244
|
+
# `true` or `false`. If not specified, the default is `false`, and results could
|
|
245
|
+
# include phone numbers with an Address required.
|
|
246
|
+
# @param [Boolean] exclude_local_address_required Indicates whether the response
|
|
247
|
+
# includes phone numbers which require a local
|
|
248
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
|
249
|
+
# `true` or `false`. If not specified, the default is `false`, and results could
|
|
250
|
+
# include phone numbers with a local Address required.
|
|
251
|
+
# @param [Boolean] exclude_foreign_address_required Indicates whether the response
|
|
252
|
+
# includes phone numbers which require a foreign
|
|
253
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
|
254
|
+
# `true` or `false`. If not specified, the default is `false`, and results could
|
|
255
|
+
# include phone numbers with a foreign Address required.
|
|
256
|
+
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
|
257
|
+
# values are either `true` or `false`. Default is `true`.
|
|
258
|
+
# @param [String] near_number Given a phone number, find a geographically close
|
|
259
|
+
# number within `Distance` miles. Distance defaults to 25 miles.
|
|
260
|
+
# @param [String] near_lat_long Given a latitude/longitude pair `lat,long` find
|
|
261
|
+
# geographically close numbers within `Distance` miles.
|
|
262
|
+
# @param [String] distance Specifies the search radius for a `Near-` query in
|
|
263
|
+
# miles. If not specified this defaults to 25 miles. Maximum searchable distance
|
|
264
|
+
# is 500 miles.
|
|
265
|
+
# @param [String] in_postal_code Limit results to a particular postal code. Given
|
|
266
|
+
# a phone number, search within the same postal code as that number.
|
|
267
|
+
# @param [String] in_region Limit results to a particular region (i.e.
|
|
268
|
+
# State/Province). Given a phone number, search within the same Region as that
|
|
269
|
+
# number.
|
|
270
|
+
# @param [String] in_rate_center Limit results to a specific rate center, or given
|
|
271
|
+
# a phone number search within the same rate center as that number. Requires
|
|
272
|
+
# InLata to be set as well.
|
|
273
|
+
# @param [String] in_lata Limit results to a specific Local access and transport
|
|
274
|
+
# area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)).
|
|
275
|
+
# Given a phone number, search within the same
|
|
276
|
+
# [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that
|
|
277
|
+
# number.
|
|
278
|
+
# @param [String] in_locality Limit results to a particular locality (i.e. City).
|
|
279
|
+
# Given a phone number, search within the same Locality as that number.
|
|
280
|
+
# @param [Boolean] fax_enabled This indicates whether the phone numbers can
|
|
281
|
+
# receive faxes. Possible values are `true` or `false`.
|
|
181
282
|
# @param [String] page_token PageToken provided by the API
|
|
182
283
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
183
284
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -299,79 +400,79 @@ module Twilio
|
|
|
299
400
|
end
|
|
300
401
|
|
|
301
402
|
##
|
|
302
|
-
# @return [String]
|
|
403
|
+
# @return [String] A nicely-formatted version of the phone number.
|
|
303
404
|
def friendly_name
|
|
304
405
|
@properties['friendly_name']
|
|
305
406
|
end
|
|
306
407
|
|
|
307
408
|
##
|
|
308
|
-
# @return [String] The
|
|
409
|
+
# @return [String] The phone number, in E.
|
|
309
410
|
def phone_number
|
|
310
411
|
@properties['phone_number']
|
|
311
412
|
end
|
|
312
413
|
|
|
313
414
|
##
|
|
314
|
-
# @return [String] The
|
|
415
|
+
# @return [String] The LATA of this phone number.
|
|
315
416
|
def lata
|
|
316
417
|
@properties['lata']
|
|
317
418
|
end
|
|
318
419
|
|
|
319
420
|
##
|
|
320
|
-
# @return [String] The locality
|
|
421
|
+
# @return [String] The locality/city of this phone number.
|
|
321
422
|
def locality
|
|
322
423
|
@properties['locality']
|
|
323
424
|
end
|
|
324
425
|
|
|
325
426
|
##
|
|
326
|
-
# @return [String] The
|
|
427
|
+
# @return [String] The rate center of this phone number.
|
|
327
428
|
def rate_center
|
|
328
429
|
@properties['rate_center']
|
|
329
430
|
end
|
|
330
431
|
|
|
331
432
|
##
|
|
332
|
-
# @return [String] The latitude
|
|
433
|
+
# @return [String] The latitude coordinate of this phone number.
|
|
333
434
|
def latitude
|
|
334
435
|
@properties['latitude']
|
|
335
436
|
end
|
|
336
437
|
|
|
337
438
|
##
|
|
338
|
-
# @return [String] The longitude
|
|
439
|
+
# @return [String] The longitude coordinate of this phone number.
|
|
339
440
|
def longitude
|
|
340
441
|
@properties['longitude']
|
|
341
442
|
end
|
|
342
443
|
|
|
343
444
|
##
|
|
344
|
-
# @return [String] The
|
|
445
|
+
# @return [String] The two-letter state or province abbreviation of this phone number.
|
|
345
446
|
def region
|
|
346
447
|
@properties['region']
|
|
347
448
|
end
|
|
348
449
|
|
|
349
450
|
##
|
|
350
|
-
# @return [String] The
|
|
451
|
+
# @return [String] The postal code of this phone number.
|
|
351
452
|
def postal_code
|
|
352
453
|
@properties['postal_code']
|
|
353
454
|
end
|
|
354
455
|
|
|
355
456
|
##
|
|
356
|
-
# @return [String] The
|
|
457
|
+
# @return [String] The ISO country code of this phone number.
|
|
357
458
|
def iso_country
|
|
358
459
|
@properties['iso_country']
|
|
359
460
|
end
|
|
360
461
|
|
|
361
462
|
##
|
|
362
|
-
# @return [String]
|
|
463
|
+
# @return [String] This indicates whether the phone number requires you or your customer to have an Address registered with Twilio.
|
|
363
464
|
def address_requirements
|
|
364
465
|
@properties['address_requirements']
|
|
365
466
|
end
|
|
366
467
|
|
|
367
468
|
##
|
|
368
|
-
# @return [Boolean]
|
|
469
|
+
# @return [Boolean] Phone numbers new to the Twilio platform are marked as beta.
|
|
369
470
|
def beta
|
|
370
471
|
@properties['beta']
|
|
371
472
|
end
|
|
372
473
|
|
|
373
474
|
##
|
|
374
|
-
# @return [String]
|
|
475
|
+
# @return [String] This is a set of boolean properties that indicate whether a phone number can receive calls or messages.
|
|
375
476
|
def capabilities
|
|
376
477
|
@properties['capabilities']
|
|
377
478
|
end
|