twilio-ruby 5.0.0.rc26 → 5.0.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/.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
|
@@ -75,13 +75,6 @@ module Twilio
|
|
|
75
75
|
# When passed a block, yields ReservationInstance records from the API.
|
|
76
76
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
77
77
|
# is reached.
|
|
78
|
-
# @param [reservation.Status] reservation_status The reservation_status
|
|
79
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
80
|
-
# guarantees to never return more than limit. Default is no limit
|
|
81
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
|
82
|
-
# the default value of 50 records. If no page_size is defined
|
|
83
|
-
# but a limit is defined, stream() will attempt to read the
|
|
84
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
85
78
|
def each
|
|
86
79
|
limits = @version.read_limits
|
|
87
80
|
|
|
@@ -143,8 +136,6 @@ module Twilio
|
|
|
143
136
|
# @param [Version] version Version that contains the resource
|
|
144
137
|
# @param [Response] response Response from the API
|
|
145
138
|
# @param [Hash] solution Path solution for the resource
|
|
146
|
-
# @param [String] workspace_sid The workspace_sid
|
|
147
|
-
# @param [String] task_sid The task_sid
|
|
148
139
|
# @return [ReservationPage] ReservationPage
|
|
149
140
|
def initialize(version, response, solution)
|
|
150
141
|
super(version, response)
|
|
@@ -322,7 +313,6 @@ module Twilio
|
|
|
322
313
|
##
|
|
323
314
|
# Generate an instance context for the instance, the context is capable of
|
|
324
315
|
# performing various actions. All instance actions are proxied to the context
|
|
325
|
-
# @param [Version] version Version that contains the resource
|
|
326
316
|
# @return [ReservationContext] ReservationContext for this ReservationInstance
|
|
327
317
|
def context
|
|
328
318
|
unless @instance_context
|
|
@@ -336,46 +326,68 @@ module Twilio
|
|
|
336
326
|
@instance_context
|
|
337
327
|
end
|
|
338
328
|
|
|
329
|
+
##
|
|
330
|
+
# @return [String] The account_sid
|
|
339
331
|
def account_sid
|
|
340
332
|
@properties['account_sid']
|
|
341
333
|
end
|
|
342
334
|
|
|
335
|
+
##
|
|
336
|
+
# @return [Time] The date_created
|
|
343
337
|
def date_created
|
|
344
338
|
@properties['date_created']
|
|
345
339
|
end
|
|
346
340
|
|
|
341
|
+
##
|
|
342
|
+
# @return [Time] The date_updated
|
|
347
343
|
def date_updated
|
|
348
344
|
@properties['date_updated']
|
|
349
345
|
end
|
|
350
346
|
|
|
347
|
+
##
|
|
348
|
+
# @return [reservation.Status] The reservation_status
|
|
351
349
|
def reservation_status
|
|
352
350
|
@properties['reservation_status']
|
|
353
351
|
end
|
|
354
352
|
|
|
353
|
+
##
|
|
354
|
+
# @return [String] The sid
|
|
355
355
|
def sid
|
|
356
356
|
@properties['sid']
|
|
357
357
|
end
|
|
358
358
|
|
|
359
|
+
##
|
|
360
|
+
# @return [String] The task_sid
|
|
359
361
|
def task_sid
|
|
360
362
|
@properties['task_sid']
|
|
361
363
|
end
|
|
362
364
|
|
|
365
|
+
##
|
|
366
|
+
# @return [String] The worker_name
|
|
363
367
|
def worker_name
|
|
364
368
|
@properties['worker_name']
|
|
365
369
|
end
|
|
366
370
|
|
|
371
|
+
##
|
|
372
|
+
# @return [String] The worker_sid
|
|
367
373
|
def worker_sid
|
|
368
374
|
@properties['worker_sid']
|
|
369
375
|
end
|
|
370
376
|
|
|
377
|
+
##
|
|
378
|
+
# @return [String] The workspace_sid
|
|
371
379
|
def workspace_sid
|
|
372
380
|
@properties['workspace_sid']
|
|
373
381
|
end
|
|
374
382
|
|
|
383
|
+
##
|
|
384
|
+
# @return [String] The url
|
|
375
385
|
def url
|
|
376
386
|
@properties['url']
|
|
377
387
|
end
|
|
378
388
|
|
|
389
|
+
##
|
|
390
|
+
# @return [String] The links
|
|
379
391
|
def links
|
|
380
392
|
@properties['links']
|
|
381
393
|
end
|
|
@@ -68,12 +68,6 @@ module Twilio
|
|
|
68
68
|
# When passed a block, yields TaskChannelInstance records from the API.
|
|
69
69
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
70
70
|
# is reached.
|
|
71
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
72
|
-
# guarantees to never return more than limit. Default is no limit
|
|
73
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
|
74
|
-
# the default value of 50 records. If no page_size is defined
|
|
75
|
-
# but a limit is defined, stream() will attempt to read the
|
|
76
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
77
71
|
def each
|
|
78
72
|
limits = @version.read_limits
|
|
79
73
|
|
|
@@ -133,7 +127,6 @@ module Twilio
|
|
|
133
127
|
# @param [Version] version Version that contains the resource
|
|
134
128
|
# @param [Response] response Response from the API
|
|
135
129
|
# @param [Hash] solution Path solution for the resource
|
|
136
|
-
# @param [String] workspace_sid The workspace_sid
|
|
137
130
|
# @return [TaskChannelPage] TaskChannelPage
|
|
138
131
|
def initialize(version, response, solution)
|
|
139
132
|
super(version, response)
|
|
@@ -241,7 +234,6 @@ module Twilio
|
|
|
241
234
|
##
|
|
242
235
|
# Generate an instance context for the instance, the context is capable of
|
|
243
236
|
# performing various actions. All instance actions are proxied to the context
|
|
244
|
-
# @param [Version] version Version that contains the resource
|
|
245
237
|
# @return [TaskChannelContext] TaskChannelContext for this TaskChannelInstance
|
|
246
238
|
def context
|
|
247
239
|
unless @instance_context
|
|
@@ -254,34 +246,50 @@ module Twilio
|
|
|
254
246
|
@instance_context
|
|
255
247
|
end
|
|
256
248
|
|
|
249
|
+
##
|
|
250
|
+
# @return [String] The account_sid
|
|
257
251
|
def account_sid
|
|
258
252
|
@properties['account_sid']
|
|
259
253
|
end
|
|
260
254
|
|
|
255
|
+
##
|
|
256
|
+
# @return [Time] The date_created
|
|
261
257
|
def date_created
|
|
262
258
|
@properties['date_created']
|
|
263
259
|
end
|
|
264
260
|
|
|
261
|
+
##
|
|
262
|
+
# @return [Time] The date_updated
|
|
265
263
|
def date_updated
|
|
266
264
|
@properties['date_updated']
|
|
267
265
|
end
|
|
268
266
|
|
|
267
|
+
##
|
|
268
|
+
# @return [String] The friendly_name
|
|
269
269
|
def friendly_name
|
|
270
270
|
@properties['friendly_name']
|
|
271
271
|
end
|
|
272
272
|
|
|
273
|
+
##
|
|
274
|
+
# @return [String] The sid
|
|
273
275
|
def sid
|
|
274
276
|
@properties['sid']
|
|
275
277
|
end
|
|
276
278
|
|
|
279
|
+
##
|
|
280
|
+
# @return [String] The unique_name
|
|
277
281
|
def unique_name
|
|
278
282
|
@properties['unique_name']
|
|
279
283
|
end
|
|
280
284
|
|
|
285
|
+
##
|
|
286
|
+
# @return [String] The workspace_sid
|
|
281
287
|
def workspace_sid
|
|
282
288
|
@properties['workspace_sid']
|
|
283
289
|
end
|
|
284
290
|
|
|
291
|
+
##
|
|
292
|
+
# @return [String] The url
|
|
285
293
|
def url
|
|
286
294
|
@properties['url']
|
|
287
295
|
end
|
|
@@ -80,15 +80,6 @@ module Twilio
|
|
|
80
80
|
# When passed a block, yields TaskQueueInstance records from the API.
|
|
81
81
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
82
82
|
# is reached.
|
|
83
|
-
# @param [String] friendly_name The friendly_name
|
|
84
|
-
# @param [String] evaluate_worker_attributes The evaluate_worker_attributes
|
|
85
|
-
# @param [String] worker_sid The worker_sid
|
|
86
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
87
|
-
# guarantees to never return more than limit. Default is no limit
|
|
88
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
|
89
|
-
# the default value of 50 records. If no page_size is defined
|
|
90
|
-
# but a limit is defined, stream() will attempt to read the
|
|
91
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
92
83
|
def each
|
|
93
84
|
limits = @version.read_limits
|
|
94
85
|
|
|
@@ -187,7 +178,6 @@ module Twilio
|
|
|
187
178
|
# @param [Version] version Version that contains the resource
|
|
188
179
|
# @param [Response] response Response from the API
|
|
189
180
|
# @param [Hash] solution Path solution for the resource
|
|
190
|
-
# @param [String] workspace_sid The workspace_sid
|
|
191
181
|
# @return [TaskQueuePage] TaskQueuePage
|
|
192
182
|
def initialize(version, response, solution)
|
|
193
183
|
super(version, response)
|
|
@@ -299,8 +289,8 @@ module Twilio
|
|
|
299
289
|
|
|
300
290
|
##
|
|
301
291
|
# Access the task_queues_statistics
|
|
302
|
-
# @return [TaskQueuesStatisticsList]
|
|
303
|
-
# @return [TaskQueuesStatisticsContext]
|
|
292
|
+
# @return [TaskQueuesStatisticsList]
|
|
293
|
+
# @return [TaskQueuesStatisticsContext]
|
|
304
294
|
def task_queues_statistics
|
|
305
295
|
unless @task_queues_statistics
|
|
306
296
|
@task_queues_statistics = TaskQueuesStatisticsList.new(
|
|
@@ -314,8 +304,8 @@ module Twilio
|
|
|
314
304
|
|
|
315
305
|
##
|
|
316
306
|
# Access the task_queue_statistics
|
|
317
|
-
# @return [TaskQueueStatisticsList]
|
|
318
|
-
# @return [TaskQueueStatisticsContext]
|
|
307
|
+
# @return [TaskQueueStatisticsList]
|
|
308
|
+
# @return [TaskQueueStatisticsContext]
|
|
319
309
|
def task_queue_statistics
|
|
320
310
|
TaskQueueStatisticsContext.new(
|
|
321
311
|
@version,
|
|
@@ -373,7 +363,6 @@ module Twilio
|
|
|
373
363
|
##
|
|
374
364
|
# Generate an instance context for the instance, the context is capable of
|
|
375
365
|
# performing various actions. All instance actions are proxied to the context
|
|
376
|
-
# @param [Version] version Version that contains the resource
|
|
377
366
|
# @return [TaskQueueContext] TaskQueueContext for this TaskQueueInstance
|
|
378
367
|
def context
|
|
379
368
|
unless @instance_context
|
|
@@ -386,62 +375,92 @@ module Twilio
|
|
|
386
375
|
@instance_context
|
|
387
376
|
end
|
|
388
377
|
|
|
378
|
+
##
|
|
379
|
+
# @return [String] The account_sid
|
|
389
380
|
def account_sid
|
|
390
381
|
@properties['account_sid']
|
|
391
382
|
end
|
|
392
383
|
|
|
384
|
+
##
|
|
385
|
+
# @return [String] The assignment_activity_sid
|
|
393
386
|
def assignment_activity_sid
|
|
394
387
|
@properties['assignment_activity_sid']
|
|
395
388
|
end
|
|
396
389
|
|
|
390
|
+
##
|
|
391
|
+
# @return [String] The assignment_activity_name
|
|
397
392
|
def assignment_activity_name
|
|
398
393
|
@properties['assignment_activity_name']
|
|
399
394
|
end
|
|
400
395
|
|
|
396
|
+
##
|
|
397
|
+
# @return [Time] The date_created
|
|
401
398
|
def date_created
|
|
402
399
|
@properties['date_created']
|
|
403
400
|
end
|
|
404
401
|
|
|
402
|
+
##
|
|
403
|
+
# @return [Time] The date_updated
|
|
405
404
|
def date_updated
|
|
406
405
|
@properties['date_updated']
|
|
407
406
|
end
|
|
408
407
|
|
|
408
|
+
##
|
|
409
|
+
# @return [String] The friendly_name
|
|
409
410
|
def friendly_name
|
|
410
411
|
@properties['friendly_name']
|
|
411
412
|
end
|
|
412
413
|
|
|
414
|
+
##
|
|
415
|
+
# @return [String] The max_reserved_workers
|
|
413
416
|
def max_reserved_workers
|
|
414
417
|
@properties['max_reserved_workers']
|
|
415
418
|
end
|
|
416
419
|
|
|
420
|
+
##
|
|
421
|
+
# @return [String] The reservation_activity_sid
|
|
417
422
|
def reservation_activity_sid
|
|
418
423
|
@properties['reservation_activity_sid']
|
|
419
424
|
end
|
|
420
425
|
|
|
426
|
+
##
|
|
427
|
+
# @return [String] The reservation_activity_name
|
|
421
428
|
def reservation_activity_name
|
|
422
429
|
@properties['reservation_activity_name']
|
|
423
430
|
end
|
|
424
431
|
|
|
432
|
+
##
|
|
433
|
+
# @return [String] The sid
|
|
425
434
|
def sid
|
|
426
435
|
@properties['sid']
|
|
427
436
|
end
|
|
428
437
|
|
|
438
|
+
##
|
|
439
|
+
# @return [String] The target_workers
|
|
429
440
|
def target_workers
|
|
430
441
|
@properties['target_workers']
|
|
431
442
|
end
|
|
432
443
|
|
|
444
|
+
##
|
|
445
|
+
# @return [task_queue.TaskOrder] The task_order
|
|
433
446
|
def task_order
|
|
434
447
|
@properties['task_order']
|
|
435
448
|
end
|
|
436
449
|
|
|
450
|
+
##
|
|
451
|
+
# @return [String] The url
|
|
437
452
|
def url
|
|
438
453
|
@properties['url']
|
|
439
454
|
end
|
|
440
455
|
|
|
456
|
+
##
|
|
457
|
+
# @return [String] The workspace_sid
|
|
441
458
|
def workspace_sid
|
|
442
459
|
@properties['workspace_sid']
|
|
443
460
|
end
|
|
444
461
|
|
|
462
|
+
##
|
|
463
|
+
# @return [String] The links
|
|
445
464
|
def links
|
|
446
465
|
@properties['links']
|
|
447
466
|
end
|
|
@@ -40,8 +40,6 @@ module Twilio
|
|
|
40
40
|
# @param [Version] version Version that contains the resource
|
|
41
41
|
# @param [Response] response Response from the API
|
|
42
42
|
# @param [Hash] solution Path solution for the resource
|
|
43
|
-
# @param [String] workspace_sid The workspace_sid
|
|
44
|
-
# @param [String] task_queue_sid The task_queue_sid
|
|
45
43
|
# @return [TaskQueueStatisticsPage] TaskQueueStatisticsPage
|
|
46
44
|
def initialize(version, response, solution)
|
|
47
45
|
super(version, response)
|
|
@@ -155,7 +153,6 @@ module Twilio
|
|
|
155
153
|
##
|
|
156
154
|
# Generate an instance context for the instance, the context is capable of
|
|
157
155
|
# performing various actions. All instance actions are proxied to the context
|
|
158
|
-
# @param [Version] version Version that contains the resource
|
|
159
156
|
# @return [TaskQueueStatisticsContext] TaskQueueStatisticsContext for this TaskQueueStatisticsInstance
|
|
160
157
|
def context
|
|
161
158
|
unless @instance_context
|
|
@@ -168,26 +165,38 @@ module Twilio
|
|
|
168
165
|
@instance_context
|
|
169
166
|
end
|
|
170
167
|
|
|
168
|
+
##
|
|
169
|
+
# @return [String] The account_sid
|
|
171
170
|
def account_sid
|
|
172
171
|
@properties['account_sid']
|
|
173
172
|
end
|
|
174
173
|
|
|
174
|
+
##
|
|
175
|
+
# @return [Hash] The cumulative
|
|
175
176
|
def cumulative
|
|
176
177
|
@properties['cumulative']
|
|
177
178
|
end
|
|
178
179
|
|
|
180
|
+
##
|
|
181
|
+
# @return [Hash] The realtime
|
|
179
182
|
def realtime
|
|
180
183
|
@properties['realtime']
|
|
181
184
|
end
|
|
182
185
|
|
|
186
|
+
##
|
|
187
|
+
# @return [String] The task_queue_sid
|
|
183
188
|
def task_queue_sid
|
|
184
189
|
@properties['task_queue_sid']
|
|
185
190
|
end
|
|
186
191
|
|
|
192
|
+
##
|
|
193
|
+
# @return [String] The workspace_sid
|
|
187
194
|
def workspace_sid
|
|
188
195
|
@properties['workspace_sid']
|
|
189
196
|
end
|
|
190
197
|
|
|
198
|
+
##
|
|
199
|
+
# @return [String] The url
|
|
191
200
|
def url
|
|
192
201
|
@properties['url']
|
|
193
202
|
end
|
|
@@ -85,16 +85,6 @@ module Twilio
|
|
|
85
85
|
# When passed a block, yields TaskQueuesStatisticsInstance records from the API.
|
|
86
86
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
87
87
|
# is reached.
|
|
88
|
-
# @param [Time] end_date The end_date
|
|
89
|
-
# @param [String] friendly_name The friendly_name
|
|
90
|
-
# @param [String] minutes The minutes
|
|
91
|
-
# @param [Time] start_date The start_date
|
|
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
88
|
def each
|
|
99
89
|
limits = @version.read_limits
|
|
100
90
|
|
|
@@ -162,7 +152,6 @@ module Twilio
|
|
|
162
152
|
# @param [Version] version Version that contains the resource
|
|
163
153
|
# @param [Response] response Response from the API
|
|
164
154
|
# @param [Hash] solution Path solution for the resource
|
|
165
|
-
# @param [String] workspace_sid The workspace_sid
|
|
166
155
|
# @return [TaskQueuesStatisticsPage] TaskQueuesStatisticsPage
|
|
167
156
|
def initialize(version, response, solution)
|
|
168
157
|
super(version, response)
|
|
@@ -210,22 +199,32 @@ module Twilio
|
|
|
210
199
|
}
|
|
211
200
|
end
|
|
212
201
|
|
|
202
|
+
##
|
|
203
|
+
# @return [String] The account_sid
|
|
213
204
|
def account_sid
|
|
214
205
|
@properties['account_sid']
|
|
215
206
|
end
|
|
216
207
|
|
|
208
|
+
##
|
|
209
|
+
# @return [Hash] The cumulative
|
|
217
210
|
def cumulative
|
|
218
211
|
@properties['cumulative']
|
|
219
212
|
end
|
|
220
213
|
|
|
214
|
+
##
|
|
215
|
+
# @return [Hash] The realtime
|
|
221
216
|
def realtime
|
|
222
217
|
@properties['realtime']
|
|
223
218
|
end
|
|
224
219
|
|
|
220
|
+
##
|
|
221
|
+
# @return [String] The task_queue_sid
|
|
225
222
|
def task_queue_sid
|
|
226
223
|
@properties['task_queue_sid']
|
|
227
224
|
end
|
|
228
225
|
|
|
226
|
+
##
|
|
227
|
+
# @return [String] The workspace_sid
|
|
229
228
|
def workspace_sid
|
|
230
229
|
@properties['workspace_sid']
|
|
231
230
|
end
|
|
@@ -99,19 +99,6 @@ module Twilio
|
|
|
99
99
|
# When passed a block, yields WorkerInstance records from the API.
|
|
100
100
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
101
101
|
# is reached.
|
|
102
|
-
# @param [String] activity_name The activity_name
|
|
103
|
-
# @param [String] activity_sid The activity_sid
|
|
104
|
-
# @param [String] available The available
|
|
105
|
-
# @param [String] friendly_name The friendly_name
|
|
106
|
-
# @param [String] target_workers_expression The target_workers_expression
|
|
107
|
-
# @param [String] task_queue_name The task_queue_name
|
|
108
|
-
# @param [String] task_queue_sid The task_queue_sid
|
|
109
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
110
|
-
# guarantees to never return more than limit. Default is no limit
|
|
111
|
-
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
|
112
|
-
# the default value of 50 records. If no page_size is defined
|
|
113
|
-
# but a limit is defined, stream() will attempt to read the
|
|
114
|
-
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
115
102
|
def each
|
|
116
103
|
limits = @version.read_limits
|
|
117
104
|
|
|
@@ -201,8 +188,8 @@ module Twilio
|
|
|
201
188
|
|
|
202
189
|
##
|
|
203
190
|
# Access the statistics
|
|
204
|
-
# @return [WorkersStatisticsList]
|
|
205
|
-
# @return [WorkersStatisticsContext]
|
|
191
|
+
# @return [WorkersStatisticsList]
|
|
192
|
+
# @return [WorkersStatisticsContext]
|
|
206
193
|
def statistics
|
|
207
194
|
return WorkersStatisticsContext.new(
|
|
208
195
|
@version,
|
|
@@ -228,7 +215,6 @@ module Twilio
|
|
|
228
215
|
# @param [Version] version Version that contains the resource
|
|
229
216
|
# @param [Response] response Response from the API
|
|
230
217
|
# @param [Hash] solution Path solution for the resource
|
|
231
|
-
# @param [String] workspace_sid The workspace_sid
|
|
232
218
|
# @return [WorkerPage] WorkerPage
|
|
233
219
|
def initialize(version, response, solution)
|
|
234
220
|
super(version, response)
|
|
@@ -335,8 +321,8 @@ module Twilio
|
|
|
335
321
|
|
|
336
322
|
##
|
|
337
323
|
# Access the statistics
|
|
338
|
-
# @return [WorkerStatisticsList]
|
|
339
|
-
# @return [WorkerStatisticsContext]
|
|
324
|
+
# @return [WorkerStatisticsList]
|
|
325
|
+
# @return [WorkerStatisticsContext]
|
|
340
326
|
def statistics
|
|
341
327
|
WorkerStatisticsContext.new(
|
|
342
328
|
@version,
|
|
@@ -347,8 +333,8 @@ module Twilio
|
|
|
347
333
|
|
|
348
334
|
##
|
|
349
335
|
# Access the reservations
|
|
350
|
-
# @return [ReservationList]
|
|
351
|
-
# @return [ReservationContext] if
|
|
336
|
+
# @return [ReservationList]
|
|
337
|
+
# @return [ReservationContext] if sid was passed.
|
|
352
338
|
def reservations(sid=:unset)
|
|
353
339
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
354
340
|
|
|
@@ -374,8 +360,8 @@ module Twilio
|
|
|
374
360
|
|
|
375
361
|
##
|
|
376
362
|
# Access the worker_channels
|
|
377
|
-
# @return [WorkerChannelList]
|
|
378
|
-
# @return [WorkerChannelContext] if
|
|
363
|
+
# @return [WorkerChannelList]
|
|
364
|
+
# @return [WorkerChannelContext] if sid was passed.
|
|
379
365
|
def worker_channels(sid=:unset)
|
|
380
366
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
381
367
|
|
|
@@ -446,7 +432,6 @@ module Twilio
|
|
|
446
432
|
##
|
|
447
433
|
# Generate an instance context for the instance, the context is capable of
|
|
448
434
|
# performing various actions. All instance actions are proxied to the context
|
|
449
|
-
# @param [Version] version Version that contains the resource
|
|
450
435
|
# @return [WorkerContext] WorkerContext for this WorkerInstance
|
|
451
436
|
def context
|
|
452
437
|
unless @instance_context
|
|
@@ -459,54 +444,80 @@ module Twilio
|
|
|
459
444
|
@instance_context
|
|
460
445
|
end
|
|
461
446
|
|
|
447
|
+
##
|
|
448
|
+
# @return [String] The account_sid
|
|
462
449
|
def account_sid
|
|
463
450
|
@properties['account_sid']
|
|
464
451
|
end
|
|
465
452
|
|
|
453
|
+
##
|
|
454
|
+
# @return [String] The activity_name
|
|
466
455
|
def activity_name
|
|
467
456
|
@properties['activity_name']
|
|
468
457
|
end
|
|
469
458
|
|
|
459
|
+
##
|
|
460
|
+
# @return [String] The activity_sid
|
|
470
461
|
def activity_sid
|
|
471
462
|
@properties['activity_sid']
|
|
472
463
|
end
|
|
473
464
|
|
|
465
|
+
##
|
|
466
|
+
# @return [String] The attributes
|
|
474
467
|
def attributes
|
|
475
468
|
@properties['attributes']
|
|
476
469
|
end
|
|
477
470
|
|
|
471
|
+
##
|
|
472
|
+
# @return [Boolean] The available
|
|
478
473
|
def available
|
|
479
474
|
@properties['available']
|
|
480
475
|
end
|
|
481
476
|
|
|
477
|
+
##
|
|
478
|
+
# @return [Time] The date_created
|
|
482
479
|
def date_created
|
|
483
480
|
@properties['date_created']
|
|
484
481
|
end
|
|
485
482
|
|
|
483
|
+
##
|
|
484
|
+
# @return [Time] The date_status_changed
|
|
486
485
|
def date_status_changed
|
|
487
486
|
@properties['date_status_changed']
|
|
488
487
|
end
|
|
489
488
|
|
|
489
|
+
##
|
|
490
|
+
# @return [Time] The date_updated
|
|
490
491
|
def date_updated
|
|
491
492
|
@properties['date_updated']
|
|
492
493
|
end
|
|
493
494
|
|
|
495
|
+
##
|
|
496
|
+
# @return [String] The friendly_name
|
|
494
497
|
def friendly_name
|
|
495
498
|
@properties['friendly_name']
|
|
496
499
|
end
|
|
497
500
|
|
|
501
|
+
##
|
|
502
|
+
# @return [String] The sid
|
|
498
503
|
def sid
|
|
499
504
|
@properties['sid']
|
|
500
505
|
end
|
|
501
506
|
|
|
507
|
+
##
|
|
508
|
+
# @return [String] The workspace_sid
|
|
502
509
|
def workspace_sid
|
|
503
510
|
@properties['workspace_sid']
|
|
504
511
|
end
|
|
505
512
|
|
|
513
|
+
##
|
|
514
|
+
# @return [String] The url
|
|
506
515
|
def url
|
|
507
516
|
@properties['url']
|
|
508
517
|
end
|
|
509
518
|
|
|
519
|
+
##
|
|
520
|
+
# @return [String] The links
|
|
510
521
|
def links
|
|
511
522
|
@properties['links']
|
|
512
523
|
end
|