twilio-ruby 5.0.0.rc26 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +21 -0
- data/.rubocop_todo.yml +187 -0
- data/.travis.yml +13 -0
- data/CHANGES.md +4 -0
- data/Gemfile +2 -2
- data/Makefile +8 -1
- data/Rakefile +3 -7
- data/examples/examples.rb +12 -10
- data/examples/{print-call-log.rb → print_call_log.rb} +4 -4
- data/lib/rack/twilio_webhook_authentication.rb +2 -3
- data/lib/twilio-ruby/framework/domain.rb +2 -6
- data/lib/twilio-ruby/framework/error.rb +0 -1
- data/lib/twilio-ruby/framework/helper.rb +1 -1
- data/lib/twilio-ruby/framework/page.rb +23 -25
- data/lib/twilio-ruby/framework/resource.rb +2 -2
- data/lib/twilio-ruby/framework/serialize.rb +5 -12
- data/lib/twilio-ruby/framework/twilio_response.rb +1 -1
- data/lib/twilio-ruby/framework/values.rb +2 -2
- data/lib/twilio-ruby/framework/version.rb +19 -37
- data/lib/twilio-ruby/http/http_client.rb +5 -6
- data/lib/twilio-ruby/jwt/access_token.rb +27 -41
- data/lib/twilio-ruby/jwt/client_capability.rb +11 -16
- data/lib/twilio-ruby/jwt/jwt.rb +7 -13
- data/lib/twilio-ruby/jwt/task_router.rb +40 -38
- data/lib/twilio-ruby/rest/accounts.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +12 -7
- data/lib/twilio-ruby/rest/api.rb +96 -0
- data/lib/twilio-ruby/rest/api/v2010.rb +5 -0
- data/lib/twilio-ruby/rest/api/v2010/account.rb +66 -56
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +30 -13
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +22 -8
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +40 -11
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +20 -9
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +16 -15
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +26 -28
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +26 -28
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +26 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +64 -34
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +12 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +28 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +37 -16
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +25 -15
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +28 -27
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +28 -19
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +22 -9
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +62 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +52 -12
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +52 -12
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +52 -12
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +8 -9
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +47 -20
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +17 -17
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +10 -2
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +10 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +37 -16
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +14 -13
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +20 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +37 -21
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +22 -13
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +22 -13
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +26 -9
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +24 -13
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +8 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +8 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +16 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +14 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +36 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +14 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +16 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +16 -9
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +14 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +26 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +4 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +44 -33
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +28 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +32 -15
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +10 -1
- data/lib/twilio-ruby/rest/chat.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v1.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +16 -7
- data/lib/twilio-ruby/rest/chat/v1/service.rb +48 -13
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/chat/v2.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +16 -7
- data/lib/twilio-ruby/rest/chat/v2/service.rb +46 -13
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/client.rb +94 -45
- data/lib/twilio-ruby/rest/ip_messaging.rb +8 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +8 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +16 -7
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +48 -13
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +8 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +16 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +46 -13
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +34 -15
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +20 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +22 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +26 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +18 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +30 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +16 -8
- data/lib/twilio-ruby/rest/lookups.rb +4 -0
- data/lib/twilio-ruby/rest/lookups/v1.rb +9 -5
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +14 -1
- data/lib/twilio-ruby/rest/monitor.rb +8 -0
- data/lib/twilio-ruby/rest/monitor/v1.rb +8 -0
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +34 -10
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +28 -13
- data/lib/twilio-ruby/rest/pricing.rb +6 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +6 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +8 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +12 -7
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +8 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +10 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +10 -4
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +12 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +14 -1
- data/lib/twilio-ruby/rest/taskrouter.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +46 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +16 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +30 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +42 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +22 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +16 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +34 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +12 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +10 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +34 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +22 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +28 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +10 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +10 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +28 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +12 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +10 -2
- data/lib/twilio-ruby/rest/trunking.rb +4 -0
- data/lib/twilio-ruby/rest/trunking/v1.rb +4 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +36 -15
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +14 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +14 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +22 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +52 -8
- data/lib/twilio-ruby/rest/video.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +26 -12
- data/lib/twilio-ruby/rest/video/v1/room.rb +34 -13
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +28 -12
- data/lib/twilio-ruby/security/request_validator.rb +1 -2
- data/lib/twilio-ruby/twiml/messaging_response.rb +7 -19
- data/lib/twilio-ruby/twiml/twiml.rb +8 -14
- data/lib/twilio-ruby/twiml/voice_response.rb +157 -169
- data/lib/twilio-ruby/util.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/serialize_spec.rb +17 -30
- data/spec/holodeck/holodeck.rb +6 -6
- data/spec/jwt/access_token_spec.rb +0 -6
- data/spec/jwt/client_capability_spec.rb +3 -3
- data/spec/jwt/task_router_spec.rb +16 -21
- data/spec/rack/twilio_webhook_authentication_spec.rb +12 -16
- data/spec/spec_helper.rb +2 -2
- data/spec/support/fakeweb.rb +1 -1
- data/spec/twiml/voice_response_spec.rb +33 -20
- data/twilio-ruby.gemspec +7 -3
- metadata +21 -193
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -420
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -345
- data/lib/twilio-ruby/rest/fax.rb +0 -40
- data/lib/twilio-ruby/rest/fax/v1.rb +0 -37
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -520
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +0 -321
- data/lib/twilio-ruby/rest/messaging.rb +0 -40
- data/lib/twilio-ruby/rest/messaging/v1.rb +0 -37
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -604
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -344
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -349
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -349
- data/lib/twilio-ruby/rest/notify.rb +0 -44
- data/lib/twilio-ruby/rest/notify/v1.rb +0 -48
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -394
- data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -611
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -414
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -249
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +0 -219
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +0 -437
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +0 -247
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +0 -418
- data/lib/twilio-ruby/rest/preview.rb +0 -107
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -48
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -198
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +0 -209
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -232
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +0 -37
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -539
- data/lib/twilio-ruby/rest/preview/marketplace.rb +0 -48
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -326
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -297
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -427
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -335
- data/lib/twilio-ruby/rest/preview/proxy.rb +0 -37
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +0 -489
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +0 -349
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +0 -525
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +0 -406
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +0 -495
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +0 -422
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +0 -349
- data/lib/twilio-ruby/rest/preview/sync.rb +0 -37
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -491
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -431
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -390
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -422
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -390
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -424
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -390
- data/lib/twilio-ruby/rest/preview/wireless.rb +0 -59
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -371
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -414
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -512
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -220
- data/lib/twilio-ruby/rest/sync.rb +0 -40
- data/lib/twilio-ruby/rest/sync/v1.rb +0 -37
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -491
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +0 -431
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -390
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +0 -422
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -390
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +0 -424
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -390
- data/lib/twilio-ruby/rest/wireless.rb +0 -48
- data/lib/twilio-ruby/rest/wireless/v1.rb +0 -59
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +0 -357
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +0 -427
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +0 -516
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +0 -235
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +0 -135
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +0 -223
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +0 -126
- data/spec/integration/fax/v1/fax_spec.rb +0 -272
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +0 -170
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +0 -201
- data/spec/integration/messaging/v1/service/short_code_spec.rb +0 -173
- data/spec/integration/messaging/v1/service_spec.rb +0 -263
- data/spec/integration/notify/v1/credential_spec.rb +0 -223
- data/spec/integration/notify/v1/service/binding_spec.rb +0 -227
- data/spec/integration/notify/v1/service/notification_spec.rb +0 -97
- data/spec/integration/notify/v1/service/segment_spec.rb +0 -84
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +0 -118
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +0 -269
- data/spec/integration/notify/v1/service/user_spec.rb +0 -213
- data/spec/integration/notify/v1/service_spec.rb +0 -280
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +0 -56
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +0 -79
- data/spec/integration/preview/bulk_exports/export_spec.rb +0 -43
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +0 -276
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +0 -121
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +0 -142
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +0 -164
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +0 -252
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +0 -173
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +0 -104
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +0 -164
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +0 -226
- data/spec/integration/preview/proxy/service/session_spec.rb +0 -216
- data/spec/integration/preview/proxy/service/short_code_spec.rb +0 -173
- data/spec/integration/preview/proxy/service_spec.rb +0 -200
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/document_spec.rb +0 -254
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +0 -256
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/sync_list_spec.rb +0 -207
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +0 -257
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/sync_map_spec.rb +0 -207
- data/spec/integration/preview/sync/service_spec.rb +0 -244
- data/spec/integration/preview/wireless/command_spec.rb +0 -169
- data/spec/integration/preview/wireless/rate_plan_spec.rb +0 -260
- data/spec/integration/preview/wireless/sim/usage_spec.rb +0 -49
- data/spec/integration/preview/wireless/sim_spec.rb +0 -208
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/document_spec.rb +0 -254
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +0 -256
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/sync_list_spec.rb +0 -207
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +0 -257
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/sync_map_spec.rb +0 -207
- data/spec/integration/sync/v1/service_spec.rb +0 -244
- data/spec/integration/wireless/v1/command_spec.rb +0 -166
- data/spec/integration/wireless/v1/rate_plan_spec.rb +0 -268
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +0 -65
- data/spec/integration/wireless/v1/sim_spec.rb +0 -208
@@ -91,12 +91,6 @@ module Twilio
|
|
91
91
|
# When passed a block, yields PhoneNumberInstance records from the API.
|
92
92
|
# This operation lazily loads records as efficiently as possible until the limit
|
93
93
|
# is reached.
|
94
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
95
|
-
# guarantees to never return more than limit. Default is no limit
|
96
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
97
|
-
# the default value of 50 records. If no page_size is defined
|
98
|
-
# but a limit is defined, stream() will attempt to read the
|
99
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
100
94
|
def each
|
101
95
|
limits = @version.read_limits
|
102
96
|
|
@@ -156,7 +150,6 @@ module Twilio
|
|
156
150
|
# @param [Version] version Version that contains the resource
|
157
151
|
# @param [Response] response Response from the API
|
158
152
|
# @param [Hash] solution Path solution for the resource
|
159
|
-
# @param [String] trunk_sid The trunk_sid
|
160
153
|
# @return [PhoneNumberPage] PhoneNumberPage
|
161
154
|
def initialize(version, response, solution)
|
162
155
|
super(version, response)
|
@@ -289,7 +282,6 @@ module Twilio
|
|
289
282
|
##
|
290
283
|
# Generate an instance context for the instance, the context is capable of
|
291
284
|
# performing various actions. All instance actions are proxied to the context
|
292
|
-
# @param [Version] version Version that contains the resource
|
293
285
|
# @return [PhoneNumberContext] PhoneNumberContext for this PhoneNumberInstance
|
294
286
|
def context
|
295
287
|
unless @instance_context
|
@@ -302,106 +294,158 @@ module Twilio
|
|
302
294
|
@instance_context
|
303
295
|
end
|
304
296
|
|
297
|
+
##
|
298
|
+
# @return [String] The account_sid
|
305
299
|
def account_sid
|
306
300
|
@properties['account_sid']
|
307
301
|
end
|
308
302
|
|
303
|
+
##
|
304
|
+
# @return [phone_number.AddressRequirement] The address_requirements
|
309
305
|
def address_requirements
|
310
306
|
@properties['address_requirements']
|
311
307
|
end
|
312
308
|
|
309
|
+
##
|
310
|
+
# @return [String] The api_version
|
313
311
|
def api_version
|
314
312
|
@properties['api_version']
|
315
313
|
end
|
316
314
|
|
315
|
+
##
|
316
|
+
# @return [Boolean] The beta
|
317
317
|
def beta
|
318
318
|
@properties['beta']
|
319
319
|
end
|
320
320
|
|
321
|
+
##
|
322
|
+
# @return [String] The capabilities
|
321
323
|
def capabilities
|
322
324
|
@properties['capabilities']
|
323
325
|
end
|
324
326
|
|
327
|
+
##
|
328
|
+
# @return [Time] The date_created
|
325
329
|
def date_created
|
326
330
|
@properties['date_created']
|
327
331
|
end
|
328
332
|
|
333
|
+
##
|
334
|
+
# @return [Time] The date_updated
|
329
335
|
def date_updated
|
330
336
|
@properties['date_updated']
|
331
337
|
end
|
332
338
|
|
339
|
+
##
|
340
|
+
# @return [String] The friendly_name
|
333
341
|
def friendly_name
|
334
342
|
@properties['friendly_name']
|
335
343
|
end
|
336
344
|
|
345
|
+
##
|
346
|
+
# @return [String] The links
|
337
347
|
def links
|
338
348
|
@properties['links']
|
339
349
|
end
|
340
350
|
|
351
|
+
##
|
352
|
+
# @return [String] The phone_number
|
341
353
|
def phone_number
|
342
354
|
@properties['phone_number']
|
343
355
|
end
|
344
356
|
|
357
|
+
##
|
358
|
+
# @return [String] The sid
|
345
359
|
def sid
|
346
360
|
@properties['sid']
|
347
361
|
end
|
348
362
|
|
363
|
+
##
|
364
|
+
# @return [String] The sms_application_sid
|
349
365
|
def sms_application_sid
|
350
366
|
@properties['sms_application_sid']
|
351
367
|
end
|
352
368
|
|
369
|
+
##
|
370
|
+
# @return [String] The sms_fallback_method
|
353
371
|
def sms_fallback_method
|
354
372
|
@properties['sms_fallback_method']
|
355
373
|
end
|
356
374
|
|
375
|
+
##
|
376
|
+
# @return [String] The sms_fallback_url
|
357
377
|
def sms_fallback_url
|
358
378
|
@properties['sms_fallback_url']
|
359
379
|
end
|
360
380
|
|
381
|
+
##
|
382
|
+
# @return [String] The sms_method
|
361
383
|
def sms_method
|
362
384
|
@properties['sms_method']
|
363
385
|
end
|
364
386
|
|
387
|
+
##
|
388
|
+
# @return [String] The sms_url
|
365
389
|
def sms_url
|
366
390
|
@properties['sms_url']
|
367
391
|
end
|
368
392
|
|
393
|
+
##
|
394
|
+
# @return [String] The status_callback
|
369
395
|
def status_callback
|
370
396
|
@properties['status_callback']
|
371
397
|
end
|
372
398
|
|
399
|
+
##
|
400
|
+
# @return [String] The status_callback_method
|
373
401
|
def status_callback_method
|
374
402
|
@properties['status_callback_method']
|
375
403
|
end
|
376
404
|
|
405
|
+
##
|
406
|
+
# @return [String] The trunk_sid
|
377
407
|
def trunk_sid
|
378
408
|
@properties['trunk_sid']
|
379
409
|
end
|
380
410
|
|
411
|
+
##
|
412
|
+
# @return [String] The url
|
381
413
|
def url
|
382
414
|
@properties['url']
|
383
415
|
end
|
384
416
|
|
417
|
+
##
|
418
|
+
# @return [String] The voice_application_sid
|
385
419
|
def voice_application_sid
|
386
420
|
@properties['voice_application_sid']
|
387
421
|
end
|
388
422
|
|
423
|
+
##
|
424
|
+
# @return [Boolean] The voice_caller_id_lookup
|
389
425
|
def voice_caller_id_lookup
|
390
426
|
@properties['voice_caller_id_lookup']
|
391
427
|
end
|
392
428
|
|
429
|
+
##
|
430
|
+
# @return [String] The voice_fallback_method
|
393
431
|
def voice_fallback_method
|
394
432
|
@properties['voice_fallback_method']
|
395
433
|
end
|
396
434
|
|
435
|
+
##
|
436
|
+
# @return [String] The voice_fallback_url
|
397
437
|
def voice_fallback_url
|
398
438
|
@properties['voice_fallback_url']
|
399
439
|
end
|
400
440
|
|
441
|
+
##
|
442
|
+
# @return [String] The voice_method
|
401
443
|
def voice_method
|
402
444
|
@properties['voice_method']
|
403
445
|
end
|
404
446
|
|
447
|
+
##
|
448
|
+
# @return [String] The voice_url
|
405
449
|
def voice_url
|
406
450
|
@properties['voice_url']
|
407
451
|
end
|
@@ -26,10 +26,18 @@ module Twilio
|
|
26
26
|
@v1 ||= V1.new self
|
27
27
|
end
|
28
28
|
|
29
|
+
##
|
30
|
+
# @param [String] sid The sid
|
31
|
+
# @return [Twilio::REST::Video::V1::RecordingInstance] if sid was passed.
|
32
|
+
# @return [Twilio::REST::Video::V1::RecordingList]
|
29
33
|
def recordings(sid=:unset)
|
30
34
|
self.v1.recordings(sid)
|
31
35
|
end
|
32
36
|
|
37
|
+
##
|
38
|
+
# @param [String] sid The sid
|
39
|
+
# @return [Twilio::REST::Video::V1::RoomInstance] if sid was passed.
|
40
|
+
# @return [Twilio::REST::Video::V1::RoomList]
|
33
41
|
def rooms(sid=:unset)
|
34
42
|
self.v1.rooms(sid)
|
35
43
|
end
|
@@ -17,6 +17,10 @@ module Twilio
|
|
17
17
|
@rooms = nil
|
18
18
|
end
|
19
19
|
|
20
|
+
##
|
21
|
+
# @param [String] sid The sid
|
22
|
+
# @return [Twilio::REST::Video::V1::RecordingInstance] if sid was passed.
|
23
|
+
# @return [Twilio::REST::Video::V1::RecordingList]
|
20
24
|
def recordings(sid=:unset)
|
21
25
|
if sid.nil?
|
22
26
|
raise ArgumentError, 'sid cannot be nil'
|
@@ -27,6 +31,10 @@ module Twilio
|
|
27
31
|
end
|
28
32
|
end
|
29
33
|
|
34
|
+
##
|
35
|
+
# @param [String] sid The sid
|
36
|
+
# @return [Twilio::REST::Video::V1::RoomInstance] if sid was passed.
|
37
|
+
# @return [Twilio::REST::Video::V1::RoomList]
|
30
38
|
def rooms(sid=:unset)
|
31
39
|
if sid.nil?
|
32
40
|
raise ArgumentError, 'sid cannot be nil'
|
@@ -84,17 +84,6 @@ module Twilio
|
|
84
84
|
# When passed a block, yields RecordingInstance records from the API.
|
85
85
|
# This operation lazily loads records as efficiently as possible until the limit
|
86
86
|
# is reached.
|
87
|
-
# @param [recording.Status] status The status
|
88
|
-
# @param [String] source_sid The source_sid
|
89
|
-
# @param [String] grouping_sid The grouping_sid
|
90
|
-
# @param [Time] date_created_after The date_created_after
|
91
|
-
# @param [Time] date_created_before The date_created_before
|
92
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
93
|
-
# guarantees to never return more than limit. Default is no limit
|
94
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
95
|
-
# the default value of 50 records. If no page_size is defined
|
96
|
-
# but a limit is defined, stream() will attempt to read the
|
97
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
98
87
|
def each
|
99
88
|
limits = @version.read_limits
|
100
89
|
|
@@ -277,7 +266,6 @@ module Twilio
|
|
277
266
|
##
|
278
267
|
# Generate an instance context for the instance, the context is capable of
|
279
268
|
# performing various actions. All instance actions are proxied to the context
|
280
|
-
# @param [Version] version Version that contains the resource
|
281
269
|
# @return [RecordingContext] RecordingContext for this RecordingInstance
|
282
270
|
def context
|
283
271
|
unless @instance_context
|
@@ -289,54 +277,80 @@ module Twilio
|
|
289
277
|
@instance_context
|
290
278
|
end
|
291
279
|
|
280
|
+
##
|
281
|
+
# @return [String] The account_sid
|
292
282
|
def account_sid
|
293
283
|
@properties['account_sid']
|
294
284
|
end
|
295
285
|
|
286
|
+
##
|
287
|
+
# @return [recording.Status] The status
|
296
288
|
def status
|
297
289
|
@properties['status']
|
298
290
|
end
|
299
291
|
|
292
|
+
##
|
293
|
+
# @return [Time] The date_created
|
300
294
|
def date_created
|
301
295
|
@properties['date_created']
|
302
296
|
end
|
303
297
|
|
298
|
+
##
|
299
|
+
# @return [String] The sid
|
304
300
|
def sid
|
305
301
|
@properties['sid']
|
306
302
|
end
|
307
303
|
|
304
|
+
##
|
305
|
+
# @return [String] The source_sid
|
308
306
|
def source_sid
|
309
307
|
@properties['source_sid']
|
310
308
|
end
|
311
309
|
|
310
|
+
##
|
311
|
+
# @return [String] The size
|
312
312
|
def size
|
313
313
|
@properties['size']
|
314
314
|
end
|
315
315
|
|
316
|
+
##
|
317
|
+
# @return [String] The url
|
316
318
|
def url
|
317
319
|
@properties['url']
|
318
320
|
end
|
319
321
|
|
322
|
+
##
|
323
|
+
# @return [recording.Type] The type
|
320
324
|
def type
|
321
325
|
@properties['type']
|
322
326
|
end
|
323
327
|
|
328
|
+
##
|
329
|
+
# @return [String] The duration
|
324
330
|
def duration
|
325
331
|
@properties['duration']
|
326
332
|
end
|
327
333
|
|
334
|
+
##
|
335
|
+
# @return [recording.Format] The container_format
|
328
336
|
def container_format
|
329
337
|
@properties['container_format']
|
330
338
|
end
|
331
339
|
|
340
|
+
##
|
341
|
+
# @return [recording.Codec] The codec
|
332
342
|
def codec
|
333
343
|
@properties['codec']
|
334
344
|
end
|
335
345
|
|
346
|
+
##
|
347
|
+
# @return [Hash] The grouping_sids
|
336
348
|
def grouping_sids
|
337
349
|
@properties['grouping_sids']
|
338
350
|
end
|
339
351
|
|
352
|
+
##
|
353
|
+
# @return [String] The links
|
340
354
|
def links
|
341
355
|
@properties['links']
|
342
356
|
end
|
@@ -115,16 +115,6 @@ module Twilio
|
|
115
115
|
# When passed a block, yields RoomInstance records from the API.
|
116
116
|
# This operation lazily loads records as efficiently as possible until the limit
|
117
117
|
# is reached.
|
118
|
-
# @param [room.RoomStatus] status The status
|
119
|
-
# @param [String] unique_name The unique_name
|
120
|
-
# @param [Time] date_created_after The date_created_after
|
121
|
-
# @param [Time] date_created_before The date_created_before
|
122
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
123
|
-
# guarantees to never return more than limit. Default is no limit
|
124
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
125
|
-
# the default value of 50 records. If no page_size is defined
|
126
|
-
# but a limit is defined, stream() will attempt to read the
|
127
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
128
118
|
def each
|
129
119
|
limits = @version.read_limits
|
130
120
|
|
@@ -280,8 +270,8 @@ module Twilio
|
|
280
270
|
|
281
271
|
##
|
282
272
|
# Access the recordings
|
283
|
-
# @return [RoomRecordingList]
|
284
|
-
# @return [RoomRecordingContext] if
|
273
|
+
# @return [RoomRecordingList]
|
274
|
+
# @return [RoomRecordingContext] if sid was passed.
|
285
275
|
def recordings(sid=:unset)
|
286
276
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
287
277
|
|
@@ -351,7 +341,6 @@ module Twilio
|
|
351
341
|
##
|
352
342
|
# Generate an instance context for the instance, the context is capable of
|
353
343
|
# performing various actions. All instance actions are proxied to the context
|
354
|
-
# @param [Version] version Version that contains the resource
|
355
344
|
# @return [RoomContext] RoomContext for this RoomInstance
|
356
345
|
def context
|
357
346
|
unless @instance_context
|
@@ -363,66 +352,98 @@ module Twilio
|
|
363
352
|
@instance_context
|
364
353
|
end
|
365
354
|
|
355
|
+
##
|
356
|
+
# @return [String] The sid
|
366
357
|
def sid
|
367
358
|
@properties['sid']
|
368
359
|
end
|
369
360
|
|
361
|
+
##
|
362
|
+
# @return [room.RoomStatus] The status
|
370
363
|
def status
|
371
364
|
@properties['status']
|
372
365
|
end
|
373
366
|
|
367
|
+
##
|
368
|
+
# @return [Time] The date_created
|
374
369
|
def date_created
|
375
370
|
@properties['date_created']
|
376
371
|
end
|
377
372
|
|
373
|
+
##
|
374
|
+
# @return [Time] The date_updated
|
378
375
|
def date_updated
|
379
376
|
@properties['date_updated']
|
380
377
|
end
|
381
378
|
|
379
|
+
##
|
380
|
+
# @return [String] The account_sid
|
382
381
|
def account_sid
|
383
382
|
@properties['account_sid']
|
384
383
|
end
|
385
384
|
|
385
|
+
##
|
386
|
+
# @return [Boolean] The enable_turn
|
386
387
|
def enable_turn
|
387
388
|
@properties['enable_turn']
|
388
389
|
end
|
389
390
|
|
391
|
+
##
|
392
|
+
# @return [String] The unique_name
|
390
393
|
def unique_name
|
391
394
|
@properties['unique_name']
|
392
395
|
end
|
393
396
|
|
397
|
+
##
|
398
|
+
# @return [String] The status_callback
|
394
399
|
def status_callback
|
395
400
|
@properties['status_callback']
|
396
401
|
end
|
397
402
|
|
403
|
+
##
|
404
|
+
# @return [String] The status_callback_method
|
398
405
|
def status_callback_method
|
399
406
|
@properties['status_callback_method']
|
400
407
|
end
|
401
408
|
|
409
|
+
##
|
410
|
+
# @return [Time] The end_time
|
402
411
|
def end_time
|
403
412
|
@properties['end_time']
|
404
413
|
end
|
405
414
|
|
415
|
+
##
|
416
|
+
# @return [String] The duration
|
406
417
|
def duration
|
407
418
|
@properties['duration']
|
408
419
|
end
|
409
420
|
|
421
|
+
##
|
422
|
+
# @return [room.RoomType] The type
|
410
423
|
def type
|
411
424
|
@properties['type']
|
412
425
|
end
|
413
426
|
|
427
|
+
##
|
428
|
+
# @return [String] The max_participants
|
414
429
|
def max_participants
|
415
430
|
@properties['max_participants']
|
416
431
|
end
|
417
432
|
|
433
|
+
##
|
434
|
+
# @return [Boolean] The record_participants_on_connect
|
418
435
|
def record_participants_on_connect
|
419
436
|
@properties['record_participants_on_connect']
|
420
437
|
end
|
421
438
|
|
439
|
+
##
|
440
|
+
# @return [String] The url
|
422
441
|
def url
|
423
442
|
@properties['url']
|
424
443
|
end
|
425
444
|
|
445
|
+
##
|
446
|
+
# @return [String] The links
|
426
447
|
def links
|
427
448
|
@properties['links']
|
428
449
|
end
|