twilio-ruby 5.8.1 → 5.9.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,7 @@ module Twilio
|
|
13
15
|
##
|
14
16
|
# Initialize the TaskQueueList
|
15
17
|
# @param [Version] version Version that contains the resource
|
16
|
-
# @param [String] workspace_sid The
|
18
|
+
# @param [String] workspace_sid The ID of the Workspace that owns this TaskQueue
|
17
19
|
# @return [TaskQueueList] TaskQueueList
|
18
20
|
def initialize(version, workspace_sid: nil)
|
19
21
|
super(version)
|
@@ -30,8 +32,11 @@ module Twilio
|
|
30
32
|
# Lists TaskQueueInstance 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] friendly_name
|
34
|
-
#
|
35
|
+
# @param [String] friendly_name Filter by a human readable description of a
|
36
|
+
# TaskQueue (for example "Customer Support" or "2014 Election Campaign")
|
37
|
+
# @param [String] evaluate_worker_attributes Provide a Worker attributes
|
38
|
+
# expression, and this will return the list of TaskQueues that would distribute
|
39
|
+
# tasks to a worker with these attributes.
|
35
40
|
# @param [String] worker_sid The worker_sid
|
36
41
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
37
42
|
# guarantees to never return more than limit. Default is no limit
|
@@ -54,8 +59,11 @@ module Twilio
|
|
54
59
|
# Streams TaskQueueInstance records from the API as an Enumerable.
|
55
60
|
# This operation lazily loads records as efficiently as possible until the limit
|
56
61
|
# is reached.
|
57
|
-
# @param [String] friendly_name
|
58
|
-
#
|
62
|
+
# @param [String] friendly_name Filter by a human readable description of a
|
63
|
+
# TaskQueue (for example "Customer Support" or "2014 Election Campaign")
|
64
|
+
# @param [String] evaluate_worker_attributes Provide a Worker attributes
|
65
|
+
# expression, and this will return the list of TaskQueues that would distribute
|
66
|
+
# tasks to a worker with these attributes.
|
59
67
|
# @param [String] worker_sid The worker_sid
|
60
68
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
61
69
|
# guarantees to never return more than limit. Default is no limit.
|
@@ -94,8 +102,11 @@ module Twilio
|
|
94
102
|
##
|
95
103
|
# Retrieve a single page of TaskQueueInstance records from the API.
|
96
104
|
# Request is executed immediately.
|
97
|
-
# @param [String] friendly_name
|
98
|
-
#
|
105
|
+
# @param [String] friendly_name Filter by a human readable description of a
|
106
|
+
# TaskQueue (for example "Customer Support" or "2014 Election Campaign")
|
107
|
+
# @param [String] evaluate_worker_attributes Provide a Worker attributes
|
108
|
+
# expression, and this will return the list of TaskQueues that would distribute
|
109
|
+
# tasks to a worker with these attributes.
|
99
110
|
# @param [String] worker_sid The worker_sid
|
100
111
|
# @param [String] page_token PageToken provided by the API
|
101
112
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
@@ -134,12 +145,25 @@ module Twilio
|
|
134
145
|
##
|
135
146
|
# Retrieve a single page of TaskQueueInstance records from the API.
|
136
147
|
# Request is executed immediately.
|
137
|
-
# @param [String] friendly_name
|
138
|
-
#
|
139
|
-
# @param [String]
|
140
|
-
#
|
141
|
-
# @param [String]
|
142
|
-
#
|
148
|
+
# @param [String] friendly_name Human readable description of this TaskQueue (for
|
149
|
+
# example "Support – Tier 1", "Sales" or "Escalation")
|
150
|
+
# @param [String] reservation_activity_sid ActivitySID to assign workers once a
|
151
|
+
# task is reserved for them
|
152
|
+
# @param [String] assignment_activity_sid ActivitySID to assign workers once a
|
153
|
+
# task is assigned for them
|
154
|
+
# @param [String] target_workers A string describing the Worker selection criteria
|
155
|
+
# for any Tasks that enter this TaskQueue. For example `'"language" == "spanish"'`
|
156
|
+
# If no TargetWorkers parameter is provided, Tasks will wait in this TaskQueue
|
157
|
+
# until they are either deleted or moved to another TaskQueue. Additional examples
|
158
|
+
# on how to describing Worker selection criteria below. Defaults to 1==1.
|
159
|
+
# @param [String] max_reserved_workers The maximum amount of workers to create
|
160
|
+
# reservations for the assignment of a task while in this queue. Defaults to 1,
|
161
|
+
# with a Maximum of 50.
|
162
|
+
# @param [task_queue.TaskOrder] task_order TaskOrder will determine which order
|
163
|
+
# the Tasks will be assigned to Workers. Set this parameter to LIFO to assign most
|
164
|
+
# recently created Task first or FIFO to assign the oldest Task. Default is FIFO.
|
165
|
+
# [Click here](https://www.twilio.com/docs/api/taskrouter/last-first-out-lifo) to
|
166
|
+
# learn more.
|
143
167
|
# @return [TaskQueueInstance] Newly created TaskQueueInstance
|
144
168
|
def create(friendly_name: nil, reservation_activity_sid: nil, assignment_activity_sid: nil, target_workers: :unset, max_reserved_workers: :unset, task_order: :unset)
|
145
169
|
data = Twilio::Values.of({
|
@@ -246,12 +270,24 @@ module Twilio
|
|
246
270
|
|
247
271
|
##
|
248
272
|
# Update the TaskQueueInstance
|
249
|
-
# @param [String] friendly_name
|
250
|
-
#
|
251
|
-
# @param [String]
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
273
|
+
# @param [String] friendly_name Human readable description of this TaskQueue (for
|
274
|
+
# example "Support – Tier 1", "Sales" or "Escalation")
|
275
|
+
# @param [String] target_workers A string describing the Worker selection criteria
|
276
|
+
# for any Tasks that enter this TaskQueue. For example '"language" == "spanish"'
|
277
|
+
# If no TargetWorkers parameter is provided, Tasks will wait in this queue until
|
278
|
+
# they are either deleted or moved to another queue. Additional examples on how to
|
279
|
+
# describing Worker selection criteria below.
|
280
|
+
# @param [String] reservation_activity_sid ActivitySID that will be assigned to
|
281
|
+
# Workers when they are reserved for a task from this TaskQueue.
|
282
|
+
# @param [String] assignment_activity_sid ActivitySID that will be assigned to
|
283
|
+
# Workers when they are assigned a task from this TaskQueue.
|
284
|
+
# @param [String] max_reserved_workers The maximum amount of workers to create
|
285
|
+
# reservations for the assignment of a task while in this queue. Maximum of 50.
|
286
|
+
# @param [task_queue.TaskOrder] task_order TaskOrder will determine which order
|
287
|
+
# the Tasks will be assigned to Workers. Set this parameter to LIFO to assign most
|
288
|
+
# recently created Task first or FIFO to assign the oldest Task. Default is FIFO.
|
289
|
+
# [Click here](https://www.twilio.com/docs/api/taskrouter/last-first-out-lifo) to
|
290
|
+
# learn more.
|
255
291
|
# @return [TaskQueueInstance] Updated TaskQueueInstance
|
256
292
|
def update(friendly_name: :unset, target_workers: :unset, reservation_activity_sid: :unset, assignment_activity_sid: :unset, max_reserved_workers: :unset, task_order: :unset)
|
257
293
|
data = Twilio::Values.of({
|
@@ -321,7 +357,7 @@ module Twilio
|
|
321
357
|
# Initialize the TaskQueueInstance
|
322
358
|
# @param [Version] version Version that contains the resource
|
323
359
|
# @param [Hash] payload payload that contains response from Twilio
|
324
|
-
# @param [String] workspace_sid The
|
360
|
+
# @param [String] workspace_sid The ID of the Workspace that owns this TaskQueue
|
325
361
|
# @param [String] sid The sid
|
326
362
|
# @return [TaskQueueInstance] TaskQueueInstance
|
327
363
|
def initialize(version, payload, workspace_sid: nil, sid: nil)
|
@@ -363,13 +399,13 @@ module Twilio
|
|
363
399
|
end
|
364
400
|
|
365
401
|
##
|
366
|
-
# @return [String] The
|
402
|
+
# @return [String] The ID of the Account that owns this TaskQueue
|
367
403
|
def account_sid
|
368
404
|
@properties['account_sid']
|
369
405
|
end
|
370
406
|
|
371
407
|
##
|
372
|
-
# @return [String]
|
408
|
+
# @return [String] ActivitySID to assign workers once a task is assigned for them
|
373
409
|
def assignment_activity_sid
|
374
410
|
@properties['assignment_activity_sid']
|
375
411
|
end
|
@@ -393,19 +429,19 @@ module Twilio
|
|
393
429
|
end
|
394
430
|
|
395
431
|
##
|
396
|
-
# @return [String]
|
432
|
+
# @return [String] Filter by a human readable description of a TaskQueue
|
397
433
|
def friendly_name
|
398
434
|
@properties['friendly_name']
|
399
435
|
end
|
400
436
|
|
401
437
|
##
|
402
|
-
# @return [String] The
|
438
|
+
# @return [String] The maximum amount of workers to create reservations for the assignment of a task while in this queue.
|
403
439
|
def max_reserved_workers
|
404
440
|
@properties['max_reserved_workers']
|
405
441
|
end
|
406
442
|
|
407
443
|
##
|
408
|
-
# @return [String]
|
444
|
+
# @return [String] ActivitySID to assign workers once a task is reserved for them
|
409
445
|
def reservation_activity_sid
|
410
446
|
@properties['reservation_activity_sid']
|
411
447
|
end
|
@@ -417,19 +453,19 @@ module Twilio
|
|
417
453
|
end
|
418
454
|
|
419
455
|
##
|
420
|
-
# @return [String] The
|
456
|
+
# @return [String] The unique ID of the TaskQueue
|
421
457
|
def sid
|
422
458
|
@properties['sid']
|
423
459
|
end
|
424
460
|
|
425
461
|
##
|
426
|
-
# @return [String]
|
462
|
+
# @return [String] A string describing the Worker selection criteria for any Tasks that enter this TaskQueue.
|
427
463
|
def target_workers
|
428
464
|
@properties['target_workers']
|
429
465
|
end
|
430
466
|
|
431
467
|
##
|
432
|
-
# @return [task_queue.TaskOrder]
|
468
|
+
# @return [task_queue.TaskOrder] TaskOrder will determine which order the Tasks will be assigned to Workers.
|
433
469
|
def task_order
|
434
470
|
@properties['task_order']
|
435
471
|
end
|
@@ -441,7 +477,7 @@ module Twilio
|
|
441
477
|
end
|
442
478
|
|
443
479
|
##
|
444
|
-
# @return [String] The
|
480
|
+
# @return [String] The ID of the Workspace that owns this TaskQueue
|
445
481
|
def workspace_sid
|
446
482
|
@properties['workspace_sid']
|
447
483
|
end
|
@@ -461,12 +497,24 @@ module Twilio
|
|
461
497
|
|
462
498
|
##
|
463
499
|
# Update the TaskQueueInstance
|
464
|
-
# @param [String] friendly_name
|
465
|
-
#
|
466
|
-
# @param [String]
|
467
|
-
#
|
468
|
-
#
|
469
|
-
#
|
500
|
+
# @param [String] friendly_name Human readable description of this TaskQueue (for
|
501
|
+
# example "Support – Tier 1", "Sales" or "Escalation")
|
502
|
+
# @param [String] target_workers A string describing the Worker selection criteria
|
503
|
+
# for any Tasks that enter this TaskQueue. For example '"language" == "spanish"'
|
504
|
+
# If no TargetWorkers parameter is provided, Tasks will wait in this queue until
|
505
|
+
# they are either deleted or moved to another queue. Additional examples on how to
|
506
|
+
# describing Worker selection criteria below.
|
507
|
+
# @param [String] reservation_activity_sid ActivitySID that will be assigned to
|
508
|
+
# Workers when they are reserved for a task from this TaskQueue.
|
509
|
+
# @param [String] assignment_activity_sid ActivitySID that will be assigned to
|
510
|
+
# Workers when they are assigned a task from this TaskQueue.
|
511
|
+
# @param [String] max_reserved_workers The maximum amount of workers to create
|
512
|
+
# reservations for the assignment of a task while in this queue. Maximum of 50.
|
513
|
+
# @param [task_queue.TaskOrder] task_order TaskOrder will determine which order
|
514
|
+
# the Tasks will be assigned to Workers. Set this parameter to LIFO to assign most
|
515
|
+
# recently created Task first or FIFO to assign the oldest Task. Default is FIFO.
|
516
|
+
# [Click here](https://www.twilio.com/docs/api/taskrouter/last-first-out-lifo) to
|
517
|
+
# learn more.
|
470
518
|
# @return [TaskQueueInstance] Updated TaskQueueInstance
|
471
519
|
def update(friendly_name: :unset, target_workers: :unset, reservation_activity_sid: :unset, assignment_activity_sid: :unset, max_reserved_workers: :unset, task_order: :unset)
|
472
520
|
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
|
@@ -29,7 +31,8 @@ module Twilio
|
|
29
31
|
# Lists ReservationInstance records from the API as a list.
|
30
32
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
31
33
|
# memory before returning.
|
32
|
-
# @param [reservation.Status] reservation_status
|
34
|
+
# @param [reservation.Status] reservation_status Filter by a worker’s reservation
|
35
|
+
# status (pending, accepted, rejected, timeout, canceled, rescinded)
|
33
36
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
34
37
|
# guarantees to never return more than limit. Default is no limit
|
35
38
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -45,7 +48,8 @@ module Twilio
|
|
45
48
|
# Streams ReservationInstance records from the API as an Enumerable.
|
46
49
|
# This operation lazily loads records as efficiently as possible until the limit
|
47
50
|
# is reached.
|
48
|
-
# @param [reservation.Status] reservation_status
|
51
|
+
# @param [reservation.Status] reservation_status Filter by a worker’s reservation
|
52
|
+
# status (pending, accepted, rejected, timeout, canceled, rescinded)
|
49
53
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
50
54
|
# guarantees to never return more than limit. Default is no limit.
|
51
55
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -78,7 +82,8 @@ module Twilio
|
|
78
82
|
##
|
79
83
|
# Retrieve a single page of ReservationInstance records from the API.
|
80
84
|
# Request is executed immediately.
|
81
|
-
# @param [reservation.Status] reservation_status
|
85
|
+
# @param [reservation.Status] reservation_status Filter by a worker’s reservation
|
86
|
+
# status (pending, accepted, rejected, timeout, canceled, rescinded)
|
82
87
|
# @param [String] page_token PageToken provided by the API
|
83
88
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
84
89
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -191,23 +196,22 @@ module Twilio
|
|
191
196
|
|
192
197
|
##
|
193
198
|
# Update the ReservationInstance
|
194
|
-
# @param [reservation.Status] reservation_status
|
195
|
-
# @param [String] worker_activity_sid
|
196
|
-
# @param [String] instruction
|
197
|
-
# @param [String] dequeue_post_work_activity_sid
|
198
|
-
#
|
199
|
-
# @param [String] dequeue_from The dequeue_from
|
199
|
+
# @param [reservation.Status] reservation_status Yes
|
200
|
+
# @param [String] worker_activity_sid No
|
201
|
+
# @param [String] instruction Yes
|
202
|
+
# @param [String] dequeue_post_work_activity_sid No
|
203
|
+
# @param [String] dequeue_from Yes
|
200
204
|
# @param [String] dequeue_record The dequeue_record
|
201
205
|
# @param [String] dequeue_timeout The dequeue_timeout
|
202
206
|
# @param [String] dequeue_to The dequeue_to
|
203
207
|
# @param [String] dequeue_status_callback_url The dequeue_status_callback_url
|
204
|
-
# @param [String] call_from
|
208
|
+
# @param [String] call_from Yes
|
205
209
|
# @param [String] call_record The call_record
|
206
210
|
# @param [String] call_timeout The call_timeout
|
207
211
|
# @param [String] call_to The call_to
|
208
|
-
# @param [String] call_url
|
209
|
-
# @param [String] call_status_callback_url
|
210
|
-
# @param [Boolean] call_accept
|
212
|
+
# @param [String] call_url Yes
|
213
|
+
# @param [String] call_status_callback_url No
|
214
|
+
# @param [Boolean] call_accept No
|
211
215
|
# @param [String] redirect_call_sid The redirect_call_sid
|
212
216
|
# @param [Boolean] redirect_accept The redirect_accept
|
213
217
|
# @param [String] redirect_url The redirect_url
|
@@ -394,7 +398,7 @@ module Twilio
|
|
394
398
|
end
|
395
399
|
|
396
400
|
##
|
397
|
-
# @return [reservation.Status]
|
401
|
+
# @return [reservation.Status] Filter by a worker’s reservation status
|
398
402
|
def reservation_status
|
399
403
|
@properties['reservation_status']
|
400
404
|
end
|
@@ -450,23 +454,22 @@ module Twilio
|
|
450
454
|
|
451
455
|
##
|
452
456
|
# Update the ReservationInstance
|
453
|
-
# @param [reservation.Status] reservation_status
|
454
|
-
# @param [String] worker_activity_sid
|
455
|
-
# @param [String] instruction
|
456
|
-
# @param [String] dequeue_post_work_activity_sid
|
457
|
-
#
|
458
|
-
# @param [String] dequeue_from The dequeue_from
|
457
|
+
# @param [reservation.Status] reservation_status Yes
|
458
|
+
# @param [String] worker_activity_sid No
|
459
|
+
# @param [String] instruction Yes
|
460
|
+
# @param [String] dequeue_post_work_activity_sid No
|
461
|
+
# @param [String] dequeue_from Yes
|
459
462
|
# @param [String] dequeue_record The dequeue_record
|
460
463
|
# @param [String] dequeue_timeout The dequeue_timeout
|
461
464
|
# @param [String] dequeue_to The dequeue_to
|
462
465
|
# @param [String] dequeue_status_callback_url The dequeue_status_callback_url
|
463
|
-
# @param [String] call_from
|
466
|
+
# @param [String] call_from Yes
|
464
467
|
# @param [String] call_record The call_record
|
465
468
|
# @param [String] call_timeout The call_timeout
|
466
469
|
# @param [String] call_to The call_to
|
467
|
-
# @param [String] call_url
|
468
|
-
# @param [String] call_status_callback_url
|
469
|
-
# @param [Boolean] call_accept
|
470
|
+
# @param [String] call_url Yes
|
471
|
+
# @param [String] call_status_callback_url No
|
472
|
+
# @param [Boolean] call_accept No
|
470
473
|
# @param [String] redirect_call_sid The redirect_call_sid
|
471
474
|
# @param [Boolean] redirect_accept The redirect_accept
|
472
475
|
# @param [String] redirect_url The redirect_url
|
@@ -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
|
@@ -14,8 +16,10 @@ module Twilio
|
|
14
16
|
##
|
15
17
|
# Initialize the WorkerChannelList
|
16
18
|
# @param [Version] version Version that contains the resource
|
17
|
-
# @param [String] workspace_sid The
|
18
|
-
#
|
19
|
+
# @param [String] workspace_sid The unique ID of the Workspace that this
|
20
|
+
# WorkerChannel belongs to.
|
21
|
+
# @param [String] worker_sid The unique ID of the Worker that this WorkerChannel
|
22
|
+
# belongs to.
|
19
23
|
# @return [WorkerChannelList] WorkerChannelList
|
20
24
|
def initialize(version, workspace_sid: nil, worker_sid: nil)
|
21
25
|
super(version)
|
@@ -187,8 +191,13 @@ module Twilio
|
|
187
191
|
|
188
192
|
##
|
189
193
|
# Update the WorkerChannelInstance
|
190
|
-
# @param [String] capacity The
|
191
|
-
#
|
194
|
+
# @param [String] capacity The total number of Tasks worker should handle for this
|
195
|
+
# TaskChannel type. TaskRouter will only create reservations for Tasks of this
|
196
|
+
# TaskChannel type up to the capacity configured. If the capacity is 0, no new
|
197
|
+
# reservations will be created
|
198
|
+
# @param [Boolean] available Toggle the availability of the WorkerChannel. Set
|
199
|
+
# this to 'False' to make worker unavailable to receive any new Tasks of this
|
200
|
+
# TaskChannel type.
|
192
201
|
# @return [WorkerChannelInstance] Updated WorkerChannelInstance
|
193
202
|
def update(capacity: :unset, available: :unset)
|
194
203
|
data = Twilio::Values.of({'Capacity' => capacity, 'Available' => available, })
|
@@ -221,8 +230,10 @@ module Twilio
|
|
221
230
|
# Initialize the WorkerChannelInstance
|
222
231
|
# @param [Version] version Version that contains the resource
|
223
232
|
# @param [Hash] payload payload that contains response from Twilio
|
224
|
-
# @param [String] workspace_sid The
|
225
|
-
#
|
233
|
+
# @param [String] workspace_sid The unique ID of the Workspace that this
|
234
|
+
# WorkerChannel belongs to.
|
235
|
+
# @param [String] worker_sid The unique ID of the Worker that this WorkerChannel
|
236
|
+
# belongs to.
|
226
237
|
# @param [String] sid The sid
|
227
238
|
# @return [WorkerChannelInstance] WorkerChannelInstance
|
228
239
|
def initialize(version, payload, workspace_sid: nil, worker_sid: nil, sid: nil)
|
@@ -271,73 +282,73 @@ module Twilio
|
|
271
282
|
end
|
272
283
|
|
273
284
|
##
|
274
|
-
# @return [String] The
|
285
|
+
# @return [String] The unique ID of the Account that owns this WorkerChannel.
|
275
286
|
def account_sid
|
276
287
|
@properties['account_sid']
|
277
288
|
end
|
278
289
|
|
279
290
|
##
|
280
|
-
# @return [String] The
|
291
|
+
# @return [String] The total number of tasks assigned to Worker for this TaskChannel type.
|
281
292
|
def assigned_tasks
|
282
293
|
@properties['assigned_tasks']
|
283
294
|
end
|
284
295
|
|
285
296
|
##
|
286
|
-
# @return [Boolean]
|
297
|
+
# @return [Boolean] Boolean value indicating whether the worker should receive Tasks of this TaskChannel type.
|
287
298
|
def available
|
288
299
|
@properties['available']
|
289
300
|
end
|
290
301
|
|
291
302
|
##
|
292
|
-
# @return [String] The
|
303
|
+
# @return [String] The current available capacity between 0 to 100 for this TaskChannel.
|
293
304
|
def available_capacity_percentage
|
294
305
|
@properties['available_capacity_percentage']
|
295
306
|
end
|
296
307
|
|
297
308
|
##
|
298
|
-
# @return [String] The
|
309
|
+
# @return [String] The current configured capacity for the WorkerChannel.
|
299
310
|
def configured_capacity
|
300
311
|
@properties['configured_capacity']
|
301
312
|
end
|
302
313
|
|
303
314
|
##
|
304
|
-
# @return [Time] The
|
315
|
+
# @return [Time] The date this Activity was created.
|
305
316
|
def date_created
|
306
317
|
@properties['date_created']
|
307
318
|
end
|
308
319
|
|
309
320
|
##
|
310
|
-
# @return [Time] The
|
321
|
+
# @return [Time] The date this Activity was updated.
|
311
322
|
def date_updated
|
312
323
|
@properties['date_updated']
|
313
324
|
end
|
314
325
|
|
315
326
|
##
|
316
|
-
# @return [String] The
|
327
|
+
# @return [String] The unique ID for this WorkerChannel.
|
317
328
|
def sid
|
318
329
|
@properties['sid']
|
319
330
|
end
|
320
331
|
|
321
332
|
##
|
322
|
-
# @return [String] The
|
333
|
+
# @return [String] The unique ID of the TaskChannel.
|
323
334
|
def task_channel_sid
|
324
335
|
@properties['task_channel_sid']
|
325
336
|
end
|
326
337
|
|
327
338
|
##
|
328
|
-
# @return [String] The
|
339
|
+
# @return [String] The unique name of TaskChannel, such as 'voice', 'sms', etc.
|
329
340
|
def task_channel_unique_name
|
330
341
|
@properties['task_channel_unique_name']
|
331
342
|
end
|
332
343
|
|
333
344
|
##
|
334
|
-
# @return [String] The
|
345
|
+
# @return [String] The unique ID of the Worker that this WorkerChannel belongs to.
|
335
346
|
def worker_sid
|
336
347
|
@properties['worker_sid']
|
337
348
|
end
|
338
349
|
|
339
350
|
##
|
340
|
-
# @return [String] The
|
351
|
+
# @return [String] The unique ID of the Workspace that this WorkerChannel belongs to.
|
341
352
|
def workspace_sid
|
342
353
|
@properties['workspace_sid']
|
343
354
|
end
|
@@ -357,8 +368,13 @@ module Twilio
|
|
357
368
|
|
358
369
|
##
|
359
370
|
# Update the WorkerChannelInstance
|
360
|
-
# @param [String] capacity The
|
361
|
-
#
|
371
|
+
# @param [String] capacity The total number of Tasks worker should handle for this
|
372
|
+
# TaskChannel type. TaskRouter will only create reservations for Tasks of this
|
373
|
+
# TaskChannel type up to the capacity configured. If the capacity is 0, no new
|
374
|
+
# reservations will be created
|
375
|
+
# @param [Boolean] available Toggle the availability of the WorkerChannel. Set
|
376
|
+
# this to 'False' to make worker unavailable to receive any new Tasks of this
|
377
|
+
# TaskChannel type.
|
362
378
|
# @return [WorkerChannelInstance] Updated WorkerChannelInstance
|
363
379
|
def update(capacity: :unset, available: :unset)
|
364
380
|
context.update(capacity: capacity, available: available, )
|