twilio-ruby 5.8.1 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +9 -0
- data/PULL_REQUEST_TEMPLATE.md +4 -0
- data/README.md +2 -2
- data/lib/rack/twilio_webhook_authentication.rb +2 -0
- data/lib/twilio-ruby/framework/domain.rb +2 -0
- data/lib/twilio-ruby/framework/error.rb +2 -0
- data/lib/twilio-ruby/framework/helper.rb +2 -0
- data/lib/twilio-ruby/framework/obsolete_client.rb +2 -0
- data/lib/twilio-ruby/framework/page.rb +2 -0
- data/lib/twilio-ruby/framework/request.rb +2 -0
- data/lib/twilio-ruby/framework/resource.rb +2 -0
- data/lib/twilio-ruby/framework/response.rb +2 -0
- data/lib/twilio-ruby/framework/serialize.rb +2 -0
- data/lib/twilio-ruby/framework/twilio_response.rb +2 -0
- data/lib/twilio-ruby/framework/values.rb +2 -0
- data/lib/twilio-ruby/framework/version.rb +2 -0
- data/lib/twilio-ruby/http/http_client.rb +2 -0
- data/lib/twilio-ruby/jwt/access_token.rb +2 -0
- data/lib/twilio-ruby/jwt/client_capability.rb +2 -0
- data/lib/twilio-ruby/jwt/jwt.rb +2 -0
- data/lib/twilio-ruby/jwt/task_router.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +2 -0
- data/lib/twilio-ruby/rest/accounts.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +82 -45
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +65 -51
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +12 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +19 -9
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +150 -81
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +66 -50
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +13 -7
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +19 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +106 -79
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +74 -26
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +12 -5
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +18 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +7 -3
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +21 -14
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +7 -5
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +29 -13
- data/lib/twilio-ruby/rest/api/v2010/account.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010.rb +2 -0
- data/lib/twilio-ruby/rest/api.rb +3 -1
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat.rb +2 -0
- data/lib/twilio-ruby/rest/client.rb +3 -1
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +2 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +11 -6
- data/lib/twilio-ruby/rest/fax/v1.rb +2 -0
- data/lib/twilio-ruby/rest/fax.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging.rb +2 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/lookups/v1.rb +2 -0
- data/lib/twilio-ruby/rest/lookups.rb +2 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +17 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +15 -12
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +2 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +54 -28
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/messaging.rb +3 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +52 -23
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +2 -0
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/monitor.rb +3 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +2 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +14 -12
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +26 -21
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +36 -25
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +9 -5
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent/field.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent/sample.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless.rb +2 -0
- data/lib/twilio-ruby/rest/preview.rb +5 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +2 -0
- data/lib/twilio-ruby/rest/pricing.rb +2 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +16 -32
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +15 -15
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +15 -17
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +37 -42
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +4 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +34 -23
- data/lib/twilio-ruby/rest/proxy/v1.rb +2 -0
- data/lib/twilio-ruby/rest/proxy.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1.rb +2 -0
- data/lib/twilio-ruby/rest/studio.rb +2 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +31 -21
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +40 -22
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +20 -15
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +31 -20
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +24 -17
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +10 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +14 -9
- data/lib/twilio-ruby/rest/sync/v1/service.rb +39 -16
- data/lib/twilio-ruby/rest/sync/v1.rb +2 -0
- data/lib/twilio-ruby/rest/sync.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +42 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +56 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +69 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +128 -55
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +51 -25
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +15 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +61 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +83 -35
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +27 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +36 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +24 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +31 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +36 -14
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +71 -37
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +52 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +11 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +68 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +52 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +13 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +95 -36
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter.rb +3 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1.rb +2 -0
- data/lib/twilio-ruby/rest/trunking.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +29 -24
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +34 -21
- data/lib/twilio-ruby/rest/video/v1/room.rb +59 -40
- data/lib/twilio-ruby/rest/video/v1.rb +2 -0
- data/lib/twilio-ruby/rest/video.rb +4 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1.rb +2 -0
- data/lib/twilio-ruby/rest/wireless.rb +2 -0
- data/lib/twilio-ruby/security/request_validator.rb +2 -0
- data/lib/twilio-ruby/twiml/fax_response.rb +2 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +2 -0
- data/lib/twilio-ruby/twiml/twiml.rb +2 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +2 -0
- data/lib/twilio-ruby/util/configuration.rb +2 -0
- data/lib/twilio-ruby/util.rb +2 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/lib/twilio-ruby.rb +2 -0
- data/spec/integration/accounts/v1/credential/aws_spec.rb +2 -0
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +2 -0
- data/spec/integration/accounts/v1/credential_spec.rb +2 -0
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/address_spec.rb +2 -0
- data/spec/integration/api/v2010/account/application_spec.rb +2 -0
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/notification_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/recording_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call_spec.rb +2 -0
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +2 -0
- data/spec/integration/api/v2010/account/conference_spec.rb +2 -0
- data/spec/integration/api/v2010/account/connect_app_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message/media_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message_spec.rb +2 -0
- data/spec/integration/api/v2010/account/new_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/notification_spec.rb +2 -0
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +2 -0
- data/spec/integration/api/v2010/account/queue/member_spec.rb +2 -0
- data/spec/integration/api/v2010/account/queue_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording_spec.rb +2 -0
- data/spec/integration/api/v2010/account/short_code_spec.rb +2 -0
- data/spec/integration/api/v2010/account/signing_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip_spec.rb +2 -0
- data/spec/integration/api/v2010/account/token_spec.rb +2 -0
- data/spec/integration/api/v2010/account/transcription_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage_spec.rb +2 -0
- data/spec/integration/api/v2010/account/validation_request_spec.rb +2 -0
- data/spec/integration/api/v2010/account_spec.rb +2 -0
- data/spec/integration/chat/v1/credential_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/member_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/message_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel_spec.rb +2 -0
- data/spec/integration/chat/v1/service/role_spec.rb +2 -0
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/chat/v1/service/user_spec.rb +2 -0
- data/spec/integration/chat/v1/service_spec.rb +2 -0
- data/spec/integration/chat/v2/credential_spec.rb +2 -0
- data/spec/integration/chat/v2/service/binding_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/member_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/message_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel_spec.rb +2 -0
- data/spec/integration/chat/v2/service/role_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user_spec.rb +2 -0
- data/spec/integration/chat/v2/service_spec.rb +2 -0
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +2 -0
- data/spec/integration/fax/v1/fax_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/credential_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/credential_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service_spec.rb +2 -0
- data/spec/integration/lookups/v1/phone_number_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/short_code_spec.rb +2 -0
- data/spec/integration/messaging/v1/service_spec.rb +2 -0
- data/spec/integration/monitor/v1/alert_spec.rb +2 -0
- data/spec/integration/monitor/v1/event_spec.rb +2 -0
- data/spec/integration/notify/v1/credential_spec.rb +2 -0
- data/spec/integration/notify/v1/service/binding_spec.rb +2 -0
- data/spec/integration/notify/v1/service/notification_spec.rb +2 -0
- data/spec/integration/notify/v1/service/segment_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user_spec.rb +2 -0
- data/spec/integration/notify/v1/service_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service/verification_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +2 -0
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +2 -0
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +2 -0
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +2 -0
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/short_code_spec.rb +2 -0
- data/spec/integration/preview/proxy/service_spec.rb +2 -0
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +2 -0
- data/spec/integration/preview/studio/flow/engagement_spec.rb +2 -0
- data/spec/integration/preview/studio/flow_spec.rb +2 -0
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/document_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map_spec.rb +2 -0
- data/spec/integration/preview/sync/service_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/field_type_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent/field_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent/sample_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/model_build_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/query_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant_spec.rb +2 -0
- data/spec/integration/preview/wireless/command_spec.rb +2 -0
- data/spec/integration/preview/wireless/rate_plan_spec.rb +2 -0
- data/spec/integration/preview/wireless/sim/usage_spec.rb +2 -0
- data/spec/integration/preview/wireless/sim_spec.rb +2 -0
- data/spec/integration/pricing/v1/messaging/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/messaging_spec.rb +2 -0
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/phone_number_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice/number_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/short_code_spec.rb +2 -0
- data/spec/integration/proxy/v1/service_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement_spec.rb +2 -0
- data/spec/integration/studio/v1/flow_spec.rb +2 -0
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/document_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +2 -0
- data/spec/integration/sync/v1/service_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk_spec.rb +2 -0
- data/spec/integration/video/v1/composition_spec.rb +118 -19
- data/spec/integration/video/v1/recording_spec.rb +2 -0
- data/spec/integration/video/v1/room/recording_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant_spec.rb +2 -0
- data/spec/integration/video/v1/room_spec.rb +2 -0
- data/spec/integration/wireless/v1/command_spec.rb +2 -0
- data/spec/integration/wireless/v1/rate_plan_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim_spec.rb +2 -0
- metadata +3 -2
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
# \ / _ _ _| _ _
|
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
5
|
# / /
|
|
6
|
+
#
|
|
7
|
+
# frozen_string_literal: true
|
|
6
8
|
|
|
7
9
|
module Twilio
|
|
8
10
|
module REST
|
|
@@ -27,7 +29,7 @@ module Twilio
|
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
##
|
|
30
|
-
# @param [String] sid The
|
|
32
|
+
# @param [String] sid The unique ID of the Workspace
|
|
31
33
|
# @return [Twilio::REST::Taskrouter::V1::WorkspaceInstance] if sid was passed.
|
|
32
34
|
# @return [Twilio::REST::Taskrouter::V1::WorkspaceList]
|
|
33
35
|
def workspaces(sid=:unset)
|
|
@@ -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
|
|
@@ -137,31 +139,27 @@ module Twilio
|
|
|
137
139
|
##
|
|
138
140
|
# Retrieve a single page of CompositionInstance records from the API.
|
|
139
141
|
# Request is executed immediately.
|
|
142
|
+
# @param [String] room_sid The room_sid
|
|
143
|
+
# @param [Hash] video_layout The video_layout
|
|
140
144
|
# @param [String] audio_sources The audio_sources
|
|
141
|
-
# @param [String]
|
|
142
|
-
# @param [composition.VideoLayout] video_layout The video_layout
|
|
145
|
+
# @param [String] audio_sources_excluded The audio_sources_excluded
|
|
143
146
|
# @param [String] resolution The resolution
|
|
144
147
|
# @param [composition.Format] format The format
|
|
145
|
-
# @param [String] desired_bitrate The desired_bitrate
|
|
146
|
-
# @param [String] desired_max_duration The desired_max_duration
|
|
147
148
|
# @param [String] status_callback The status_callback
|
|
148
149
|
# @param [String] status_callback_method The status_callback_method
|
|
149
150
|
# @param [Boolean] trim The trim
|
|
150
|
-
# @param [Boolean] reuse The reuse
|
|
151
151
|
# @return [CompositionInstance] Newly created CompositionInstance
|
|
152
|
-
def create(
|
|
152
|
+
def create(room_sid: :unset, video_layout: :unset, audio_sources: :unset, audio_sources_excluded: :unset, resolution: :unset, format: :unset, status_callback: :unset, status_callback_method: :unset, trim: :unset)
|
|
153
153
|
data = Twilio::Values.of({
|
|
154
|
+
'RoomSid' => room_sid,
|
|
155
|
+
'VideoLayout' => Twilio.serialize_object(video_layout),
|
|
154
156
|
'AudioSources' => Twilio.serialize_list(audio_sources) { |e| e },
|
|
155
|
-
'
|
|
156
|
-
'VideoLayout' => video_layout,
|
|
157
|
+
'AudioSourcesExcluded' => Twilio.serialize_list(audio_sources_excluded) { |e| e },
|
|
157
158
|
'Resolution' => resolution,
|
|
158
159
|
'Format' => format,
|
|
159
|
-
'DesiredBitrate' => desired_bitrate,
|
|
160
|
-
'DesiredMaxDuration' => desired_max_duration,
|
|
161
160
|
'StatusCallback' => status_callback,
|
|
162
161
|
'StatusCallbackMethod' => status_callback_method,
|
|
163
162
|
'Trim' => trim,
|
|
164
|
-
'Reuse' => reuse,
|
|
165
163
|
})
|
|
166
164
|
|
|
167
165
|
payload = @version.create(
|
|
@@ -277,16 +275,17 @@ module Twilio
|
|
|
277
275
|
'date_completed' => payload['date_completed'],
|
|
278
276
|
'date_deleted' => payload['date_deleted'],
|
|
279
277
|
'sid' => payload['sid'],
|
|
278
|
+
'room_sid' => payload['room_sid'],
|
|
280
279
|
'audio_sources' => payload['audio_sources'],
|
|
281
|
-
'
|
|
280
|
+
'audio_sources_excluded' => payload['audio_sources_excluded'],
|
|
282
281
|
'video_layout' => payload['video_layout'],
|
|
283
282
|
'resolution' => payload['resolution'],
|
|
283
|
+
'trim' => payload['trim'],
|
|
284
284
|
'format' => payload['format'],
|
|
285
285
|
'bitrate' => payload['bitrate'].to_i,
|
|
286
|
-
'size' => payload['size']
|
|
286
|
+
'size' => payload['size'],
|
|
287
287
|
'duration' => payload['duration'].to_i,
|
|
288
288
|
'url' => payload['url'],
|
|
289
|
-
'room_sid' => payload['room_sid'],
|
|
290
289
|
'links' => payload['links'],
|
|
291
290
|
}
|
|
292
291
|
|
|
@@ -342,6 +341,12 @@ module Twilio
|
|
|
342
341
|
@properties['sid']
|
|
343
342
|
end
|
|
344
343
|
|
|
344
|
+
##
|
|
345
|
+
# @return [String] The room_sid
|
|
346
|
+
def room_sid
|
|
347
|
+
@properties['room_sid']
|
|
348
|
+
end
|
|
349
|
+
|
|
345
350
|
##
|
|
346
351
|
# @return [String] The audio_sources
|
|
347
352
|
def audio_sources
|
|
@@ -349,13 +354,13 @@ module Twilio
|
|
|
349
354
|
end
|
|
350
355
|
|
|
351
356
|
##
|
|
352
|
-
# @return [String] The
|
|
353
|
-
def
|
|
354
|
-
@properties['
|
|
357
|
+
# @return [String] The audio_sources_excluded
|
|
358
|
+
def audio_sources_excluded
|
|
359
|
+
@properties['audio_sources_excluded']
|
|
355
360
|
end
|
|
356
361
|
|
|
357
362
|
##
|
|
358
|
-
# @return [
|
|
363
|
+
# @return [Hash] The video_layout
|
|
359
364
|
def video_layout
|
|
360
365
|
@properties['video_layout']
|
|
361
366
|
end
|
|
@@ -366,6 +371,12 @@ module Twilio
|
|
|
366
371
|
@properties['resolution']
|
|
367
372
|
end
|
|
368
373
|
|
|
374
|
+
##
|
|
375
|
+
# @return [Boolean] The trim
|
|
376
|
+
def trim
|
|
377
|
+
@properties['trim']
|
|
378
|
+
end
|
|
379
|
+
|
|
369
380
|
##
|
|
370
381
|
# @return [composition.Format] The format
|
|
371
382
|
def format
|
|
@@ -396,12 +407,6 @@ module Twilio
|
|
|
396
407
|
@properties['url']
|
|
397
408
|
end
|
|
398
409
|
|
|
399
|
-
##
|
|
400
|
-
# @return [String] The room_sid
|
|
401
|
-
def room_sid
|
|
402
|
-
@properties['room_sid']
|
|
403
|
-
end
|
|
404
|
-
|
|
405
410
|
##
|
|
406
411
|
# @return [String] The links
|
|
407
412
|
def links
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
# \ / _ _ _| _ _
|
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
5
|
# / /
|
|
6
|
+
#
|
|
7
|
+
# frozen_string_literal: true
|
|
6
8
|
|
|
7
9
|
module Twilio
|
|
8
10
|
module REST
|
|
@@ -13,7 +15,8 @@ module Twilio
|
|
|
13
15
|
##
|
|
14
16
|
# Initialize the ParticipantList
|
|
15
17
|
# @param [Version] version Version that contains the resource
|
|
16
|
-
# @param [String] room_sid
|
|
18
|
+
# @param [String] room_sid A system-generated 34-character string that uniquely
|
|
19
|
+
# identifies. this room
|
|
17
20
|
# @return [ParticipantList] ParticipantList
|
|
18
21
|
def initialize(version, room_sid: nil)
|
|
19
22
|
super(version)
|
|
@@ -27,8 +30,11 @@ module Twilio
|
|
|
27
30
|
# Lists ParticipantInstance records from the API as a list.
|
|
28
31
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
29
32
|
# memory before returning.
|
|
30
|
-
# @param [participant.Status] status
|
|
31
|
-
#
|
|
33
|
+
# @param [participant.Status] status Only show Participants with the given Status.
|
|
34
|
+
# For `in-progress` Rooms the default Status is `connected`, for `completed`
|
|
35
|
+
# Rooms only `disconnected` Participants are returned.
|
|
36
|
+
# @param [String] identity Only show Participants that connected to the Room using
|
|
37
|
+
# the provided Identity.
|
|
32
38
|
# @param [Time] date_created_after The date_created_after
|
|
33
39
|
# @param [Time] date_created_before The date_created_before
|
|
34
40
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -53,8 +59,11 @@ module Twilio
|
|
|
53
59
|
# Streams ParticipantInstance records from the API as an Enumerable.
|
|
54
60
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
55
61
|
# is reached.
|
|
56
|
-
# @param [participant.Status] status
|
|
57
|
-
#
|
|
62
|
+
# @param [participant.Status] status Only show Participants with the given Status.
|
|
63
|
+
# For `in-progress` Rooms the default Status is `connected`, for `completed`
|
|
64
|
+
# Rooms only `disconnected` Participants are returned.
|
|
65
|
+
# @param [String] identity Only show Participants that connected to the Room using
|
|
66
|
+
# the provided Identity.
|
|
58
67
|
# @param [Time] date_created_after The date_created_after
|
|
59
68
|
# @param [Time] date_created_before The date_created_before
|
|
60
69
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -95,8 +104,11 @@ module Twilio
|
|
|
95
104
|
##
|
|
96
105
|
# Retrieve a single page of ParticipantInstance records from the API.
|
|
97
106
|
# Request is executed immediately.
|
|
98
|
-
# @param [participant.Status] status
|
|
99
|
-
#
|
|
107
|
+
# @param [participant.Status] status Only show Participants with the given Status.
|
|
108
|
+
# For `in-progress` Rooms the default Status is `connected`, for `completed`
|
|
109
|
+
# Rooms only `disconnected` Participants are returned.
|
|
110
|
+
# @param [String] identity Only show Participants that connected to the Room using
|
|
111
|
+
# the provided Identity.
|
|
100
112
|
# @param [Time] date_created_after The date_created_after
|
|
101
113
|
# @param [Time] date_created_before The date_created_before
|
|
102
114
|
# @param [String] page_token PageToken provided by the API
|
|
@@ -206,7 +218,7 @@ module Twilio
|
|
|
206
218
|
|
|
207
219
|
##
|
|
208
220
|
# Update the ParticipantInstance
|
|
209
|
-
# @param [participant.Status] status
|
|
221
|
+
# @param [participant.Status] status Set to `disconnected` to remove participant.
|
|
210
222
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
211
223
|
def update(status: :unset)
|
|
212
224
|
data = Twilio::Values.of({'Status' => status, })
|
|
@@ -271,7 +283,8 @@ module Twilio
|
|
|
271
283
|
# Initialize the ParticipantInstance
|
|
272
284
|
# @param [Version] version Version that contains the resource
|
|
273
285
|
# @param [Hash] payload payload that contains response from Twilio
|
|
274
|
-
# @param [String] room_sid
|
|
286
|
+
# @param [String] room_sid A system-generated 34-character string that uniquely
|
|
287
|
+
# identifies. this room
|
|
275
288
|
# @param [String] sid The sid
|
|
276
289
|
# @return [ParticipantInstance] ParticipantInstance
|
|
277
290
|
def initialize(version, payload, room_sid: nil, sid: nil)
|
|
@@ -310,67 +323,67 @@ module Twilio
|
|
|
310
323
|
end
|
|
311
324
|
|
|
312
325
|
##
|
|
313
|
-
# @return [String]
|
|
326
|
+
# @return [String] A 34 character string that uniquely identifies this resource.
|
|
314
327
|
def sid
|
|
315
328
|
@properties['sid']
|
|
316
329
|
end
|
|
317
330
|
|
|
318
331
|
##
|
|
319
|
-
# @return [String]
|
|
332
|
+
# @return [String] A system-generated 34-character string that uniquely identifies.
|
|
320
333
|
def room_sid
|
|
321
334
|
@properties['room_sid']
|
|
322
335
|
end
|
|
323
336
|
|
|
324
337
|
##
|
|
325
|
-
# @return [String] The
|
|
338
|
+
# @return [String] The unique ID of the Account associated with this Room.
|
|
326
339
|
def account_sid
|
|
327
340
|
@properties['account_sid']
|
|
328
341
|
end
|
|
329
342
|
|
|
330
343
|
##
|
|
331
|
-
# @return [participant.Status]
|
|
344
|
+
# @return [participant.Status] A string representing the status of the Participant.
|
|
332
345
|
def status
|
|
333
346
|
@properties['status']
|
|
334
347
|
end
|
|
335
348
|
|
|
336
349
|
##
|
|
337
|
-
# @return [String] The
|
|
350
|
+
# @return [String] The unique name identifier that is assigned to this Participant.
|
|
338
351
|
def identity
|
|
339
352
|
@properties['identity']
|
|
340
353
|
end
|
|
341
354
|
|
|
342
355
|
##
|
|
343
|
-
# @return [Time] The
|
|
356
|
+
# @return [Time] The date that this resource was created, given as a UTC ISO 8601 Timestamp.
|
|
344
357
|
def date_created
|
|
345
358
|
@properties['date_created']
|
|
346
359
|
end
|
|
347
360
|
|
|
348
361
|
##
|
|
349
|
-
# @return [Time] The
|
|
362
|
+
# @return [Time] The date that this resource was last updated, given as a UTC ISO 8601 Timestamp.
|
|
350
363
|
def date_updated
|
|
351
364
|
@properties['date_updated']
|
|
352
365
|
end
|
|
353
366
|
|
|
354
367
|
##
|
|
355
|
-
# @return [Time] The
|
|
368
|
+
# @return [Time] The time of Participant connected to the Room, given as a UTC ISO 8601 Timestamp.
|
|
356
369
|
def start_time
|
|
357
370
|
@properties['start_time']
|
|
358
371
|
end
|
|
359
372
|
|
|
360
373
|
##
|
|
361
|
-
# @return [Time] The
|
|
374
|
+
# @return [Time] The time of Participant disconnected from the Room, given as a UTC ISO 8601 Timestamp.
|
|
362
375
|
def end_time
|
|
363
376
|
@properties['end_time']
|
|
364
377
|
end
|
|
365
378
|
|
|
366
379
|
##
|
|
367
|
-
# @return [String]
|
|
380
|
+
# @return [String] Duration of time in seconds this Participant was connected.
|
|
368
381
|
def duration
|
|
369
382
|
@properties['duration']
|
|
370
383
|
end
|
|
371
384
|
|
|
372
385
|
##
|
|
373
|
-
# @return [String] The
|
|
386
|
+
# @return [String] The absolute URL for this resource.
|
|
374
387
|
def url
|
|
375
388
|
@properties['url']
|
|
376
389
|
end
|
|
@@ -390,7 +403,7 @@ module Twilio
|
|
|
390
403
|
|
|
391
404
|
##
|
|
392
405
|
# Update the ParticipantInstance
|
|
393
|
-
# @param [participant.Status] status
|
|
406
|
+
# @param [participant.Status] status Set to `disconnected` to remove participant.
|
|
394
407
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
395
408
|
def update(status: :unset)
|
|
396
409
|
context.update(status: status, )
|
|
@@ -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
|
|
@@ -24,16 +26,27 @@ module Twilio
|
|
|
24
26
|
##
|
|
25
27
|
# Retrieve a single page of RoomInstance records from the API.
|
|
26
28
|
# Request is executed immediately.
|
|
27
|
-
# @param [Boolean] enable_turn
|
|
28
|
-
#
|
|
29
|
-
# @param [
|
|
30
|
-
#
|
|
31
|
-
# @param [String]
|
|
32
|
-
#
|
|
33
|
-
# @param [
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
# @param [String]
|
|
29
|
+
# @param [Boolean] enable_turn Use Twilio Network Traversal for TURN service.
|
|
30
|
+
# Defaults to true. Only applicable to Rooms with type `peer-to-peer`.
|
|
31
|
+
# @param [room.RoomType] type Type of room, either `peer-to-peer` or `group`. Will
|
|
32
|
+
# be `group` by default.
|
|
33
|
+
# @param [String] unique_name Name of the Room. This is unique for `in-progress`
|
|
34
|
+
# rooms. If not provided, Room name will be set to the Room Sid.
|
|
35
|
+
# @param [String] status_callback A URL that Twilio sends asynchronous webhook
|
|
36
|
+
# requests to on every room event. If not provided, status callback events will
|
|
37
|
+
# not be dispatched.
|
|
38
|
+
# @param [String] status_callback_method HTTP method Twilio should use when
|
|
39
|
+
# requesting the above URL. Defaults to `POST`.
|
|
40
|
+
# @param [String] max_participants Maximum number of Participants in the Room.
|
|
41
|
+
# peer-to-peer rooms can have a maximum of 10 Participants.
|
|
42
|
+
# @param [Boolean] record_participants_on_connect Start Participant recording when
|
|
43
|
+
# connected. ***This feature is not available in `peer-to-peer` rooms.***
|
|
44
|
+
# @param [room.VideoCodec] video_codecs An array of video codecs supported when
|
|
45
|
+
# publishing a Track in the Room. `VP8` and `H264` codecs are supported. ***This
|
|
46
|
+
# feature is not available in `peer-to-peer` rooms***
|
|
47
|
+
# @param [String] media_region Region for the media server in Group Rooms.
|
|
48
|
+
# Default region is `us1`. See the list of [available Media
|
|
49
|
+
# Regions.](https://www.twilio.com/docs/api/video/ip-address-whitelisting#group-rooms-media-servers)***This feature is not available in `peer-to-peer` rooms.***
|
|
37
50
|
# @return [RoomInstance] Newly created RoomInstance
|
|
38
51
|
def create(enable_turn: :unset, type: :unset, unique_name: :unset, status_callback: :unset, status_callback_method: :unset, max_participants: :unset, record_participants_on_connect: :unset, video_codecs: :unset, media_region: :unset)
|
|
39
52
|
data = Twilio::Values.of({
|
|
@@ -61,10 +74,12 @@ module Twilio
|
|
|
61
74
|
# Lists RoomInstance records from the API as a list.
|
|
62
75
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
63
76
|
# memory before returning.
|
|
64
|
-
# @param [room.RoomStatus] status
|
|
65
|
-
# @param [String] unique_name
|
|
66
|
-
# @param [Time] date_created_after
|
|
67
|
-
#
|
|
77
|
+
# @param [room.RoomStatus] status Only show Rooms with the given status.
|
|
78
|
+
# @param [String] unique_name Only show Rooms with the provided Name.
|
|
79
|
+
# @param [Time] date_created_after Only show Rooms that started on or after this
|
|
80
|
+
# date, given as `YYYY-MM-DD`.
|
|
81
|
+
# @param [Time] date_created_before Only show Rooms that started before this date,
|
|
82
|
+
# given as `YYYY-MM-DD`.
|
|
68
83
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
69
84
|
# guarantees to never return more than limit. Default is no limit
|
|
70
85
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -87,10 +102,12 @@ module Twilio
|
|
|
87
102
|
# Streams RoomInstance records from the API as an Enumerable.
|
|
88
103
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
89
104
|
# is reached.
|
|
90
|
-
# @param [room.RoomStatus] status
|
|
91
|
-
# @param [String] unique_name
|
|
92
|
-
# @param [Time] date_created_after
|
|
93
|
-
#
|
|
105
|
+
# @param [room.RoomStatus] status Only show Rooms with the given status.
|
|
106
|
+
# @param [String] unique_name Only show Rooms with the provided Name.
|
|
107
|
+
# @param [Time] date_created_after Only show Rooms that started on or after this
|
|
108
|
+
# date, given as `YYYY-MM-DD`.
|
|
109
|
+
# @param [Time] date_created_before Only show Rooms that started before this date,
|
|
110
|
+
# given as `YYYY-MM-DD`.
|
|
94
111
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
95
112
|
# guarantees to never return more than limit. Default is no limit.
|
|
96
113
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -129,10 +146,12 @@ module Twilio
|
|
|
129
146
|
##
|
|
130
147
|
# Retrieve a single page of RoomInstance records from the API.
|
|
131
148
|
# Request is executed immediately.
|
|
132
|
-
# @param [room.RoomStatus] status
|
|
133
|
-
# @param [String] unique_name
|
|
134
|
-
# @param [Time] date_created_after
|
|
135
|
-
#
|
|
149
|
+
# @param [room.RoomStatus] status Only show Rooms with the given status.
|
|
150
|
+
# @param [String] unique_name Only show Rooms with the provided Name.
|
|
151
|
+
# @param [Time] date_created_after Only show Rooms that started on or after this
|
|
152
|
+
# date, given as `YYYY-MM-DD`.
|
|
153
|
+
# @param [Time] date_created_before Only show Rooms that started before this date,
|
|
154
|
+
# given as `YYYY-MM-DD`.
|
|
136
155
|
# @param [String] page_token PageToken provided by the API
|
|
137
156
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
138
157
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -239,7 +258,7 @@ module Twilio
|
|
|
239
258
|
|
|
240
259
|
##
|
|
241
260
|
# Update the RoomInstance
|
|
242
|
-
# @param [room.RoomStatus] status
|
|
261
|
+
# @param [room.RoomStatus] status Set to `completed` to end the Room.
|
|
243
262
|
# @return [RoomInstance] Updated RoomInstance
|
|
244
263
|
def update(status: nil)
|
|
245
264
|
data = Twilio::Values.of({'Status' => status, })
|
|
@@ -346,85 +365,85 @@ module Twilio
|
|
|
346
365
|
end
|
|
347
366
|
|
|
348
367
|
##
|
|
349
|
-
# @return [String]
|
|
368
|
+
# @return [String] A system-generated 34-character string that uniquely identifies this resource.
|
|
350
369
|
def sid
|
|
351
370
|
@properties['sid']
|
|
352
371
|
end
|
|
353
372
|
|
|
354
373
|
##
|
|
355
|
-
# @return [room.RoomStatus]
|
|
374
|
+
# @return [room.RoomStatus] A string representing the status of the Room.
|
|
356
375
|
def status
|
|
357
376
|
@properties['status']
|
|
358
377
|
end
|
|
359
378
|
|
|
360
379
|
##
|
|
361
|
-
# @return [Time] The
|
|
380
|
+
# @return [Time] The date that this resource was created, given as a UTC ISO 8601 Timestamp.
|
|
362
381
|
def date_created
|
|
363
382
|
@properties['date_created']
|
|
364
383
|
end
|
|
365
384
|
|
|
366
385
|
##
|
|
367
|
-
# @return [Time] The
|
|
386
|
+
# @return [Time] The date that this resource was last updated, given as a UTC ISO 8601 Timestamp.
|
|
368
387
|
def date_updated
|
|
369
388
|
@properties['date_updated']
|
|
370
389
|
end
|
|
371
390
|
|
|
372
391
|
##
|
|
373
|
-
# @return [String] The
|
|
392
|
+
# @return [String] The unique ID of the Account associated with this Room.
|
|
374
393
|
def account_sid
|
|
375
394
|
@properties['account_sid']
|
|
376
395
|
end
|
|
377
396
|
|
|
378
397
|
##
|
|
379
|
-
# @return [Boolean]
|
|
398
|
+
# @return [Boolean] Enable Twilio's Network Traversal TURN service.
|
|
380
399
|
def enable_turn
|
|
381
400
|
@properties['enable_turn']
|
|
382
401
|
end
|
|
383
402
|
|
|
384
403
|
##
|
|
385
|
-
# @return [String]
|
|
404
|
+
# @return [String] A developer-supplied Name of the Room.
|
|
386
405
|
def unique_name
|
|
387
406
|
@properties['unique_name']
|
|
388
407
|
end
|
|
389
408
|
|
|
390
409
|
##
|
|
391
|
-
# @return [String]
|
|
410
|
+
# @return [String] A URL that Twilio sends asynchronous webhook requests to on every Room event.
|
|
392
411
|
def status_callback
|
|
393
412
|
@properties['status_callback']
|
|
394
413
|
end
|
|
395
414
|
|
|
396
415
|
##
|
|
397
|
-
# @return [String]
|
|
416
|
+
# @return [String] HTTP method Twilio should use when requesting the above URL.
|
|
398
417
|
def status_callback_method
|
|
399
418
|
@properties['status_callback_method']
|
|
400
419
|
end
|
|
401
420
|
|
|
402
421
|
##
|
|
403
|
-
# @return [Time] The
|
|
422
|
+
# @return [Time] The end time of the Room, given as a UTC ISO 8601 Timestamp.
|
|
404
423
|
def end_time
|
|
405
424
|
@properties['end_time']
|
|
406
425
|
end
|
|
407
426
|
|
|
408
427
|
##
|
|
409
|
-
# @return [String] The duration
|
|
428
|
+
# @return [String] The duration of the Room in seconds.
|
|
410
429
|
def duration
|
|
411
430
|
@properties['duration']
|
|
412
431
|
end
|
|
413
432
|
|
|
414
433
|
##
|
|
415
|
-
# @return [room.RoomType]
|
|
434
|
+
# @return [room.RoomType] Type of Room, either peer-to-peer or group.
|
|
416
435
|
def type
|
|
417
436
|
@properties['type']
|
|
418
437
|
end
|
|
419
438
|
|
|
420
439
|
##
|
|
421
|
-
# @return [String]
|
|
440
|
+
# @return [String] Maximum number of concurrent Participants allowed in the Room.
|
|
422
441
|
def max_participants
|
|
423
442
|
@properties['max_participants']
|
|
424
443
|
end
|
|
425
444
|
|
|
426
445
|
##
|
|
427
|
-
# @return [Boolean]
|
|
446
|
+
# @return [Boolean] Start recording when Participants connect.
|
|
428
447
|
def record_participants_on_connect
|
|
429
448
|
@properties['record_participants_on_connect']
|
|
430
449
|
end
|
|
@@ -436,13 +455,13 @@ module Twilio
|
|
|
436
455
|
end
|
|
437
456
|
|
|
438
457
|
##
|
|
439
|
-
# @return [String]
|
|
458
|
+
# @return [String] Region for the media server in Group Rooms.
|
|
440
459
|
def media_region
|
|
441
460
|
@properties['media_region']
|
|
442
461
|
end
|
|
443
462
|
|
|
444
463
|
##
|
|
445
|
-
# @return [String] The
|
|
464
|
+
# @return [String] The absolute URL for this resource.
|
|
446
465
|
def url
|
|
447
466
|
@properties['url']
|
|
448
467
|
end
|
|
@@ -462,7 +481,7 @@ module Twilio
|
|
|
462
481
|
|
|
463
482
|
##
|
|
464
483
|
# Update the RoomInstance
|
|
465
|
-
# @param [room.RoomStatus] status
|
|
484
|
+
# @param [room.RoomStatus] status Set to `completed` to end the Room.
|
|
466
485
|
# @return [RoomInstance] Updated RoomInstance
|
|
467
486
|
def update(status: nil)
|
|
468
487
|
context.update(status: status, )
|