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
|
|
@@ -15,7 +17,8 @@ module Twilio
|
|
|
15
17
|
##
|
|
16
18
|
# Initialize the AlphaSenderList
|
|
17
19
|
# @param [Version] version Version that contains the resource
|
|
18
|
-
# @param [String] service_sid The
|
|
20
|
+
# @param [String] service_sid The 34 character unique sid of the Messaging
|
|
21
|
+
# Service.
|
|
19
22
|
# @return [AlphaSenderList] AlphaSenderList
|
|
20
23
|
def initialize(version, service_sid: nil)
|
|
21
24
|
super(version)
|
|
@@ -28,7 +31,9 @@ module Twilio
|
|
|
28
31
|
##
|
|
29
32
|
# Retrieve a single page of AlphaSenderInstance records from the API.
|
|
30
33
|
# Request is executed immediately.
|
|
31
|
-
# @param [String] alpha_sender
|
|
34
|
+
# @param [String] alpha_sender An Alphanumeric Sender ID string, up to 11
|
|
35
|
+
# characters. Valid characters are A-Z, a-z, 0-9, space and dash ( - ). An
|
|
36
|
+
# Alphanumeric Sender ID string cannot be comprised of only numbers.
|
|
32
37
|
# @return [AlphaSenderInstance] Newly created AlphaSenderInstance
|
|
33
38
|
def create(alpha_sender: nil)
|
|
34
39
|
data = Twilio::Values.of({'AlphaSender' => alpha_sender, })
|
|
@@ -221,7 +226,8 @@ module Twilio
|
|
|
221
226
|
# Initialize the AlphaSenderInstance
|
|
222
227
|
# @param [Version] version Version that contains the resource
|
|
223
228
|
# @param [Hash] payload payload that contains response from Twilio
|
|
224
|
-
# @param [String] service_sid The
|
|
229
|
+
# @param [String] service_sid The 34 character unique sid of the Messaging
|
|
230
|
+
# Service.
|
|
225
231
|
# @param [String] sid The sid
|
|
226
232
|
# @return [AlphaSenderInstance] AlphaSenderInstance
|
|
227
233
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
|
@@ -256,49 +262,49 @@ module Twilio
|
|
|
256
262
|
end
|
|
257
263
|
|
|
258
264
|
##
|
|
259
|
-
# @return [String] The sid
|
|
265
|
+
# @return [String] The 34 character unique sid of the Alpha Sender ID.
|
|
260
266
|
def sid
|
|
261
267
|
@properties['sid']
|
|
262
268
|
end
|
|
263
269
|
|
|
264
270
|
##
|
|
265
|
-
# @return [String] The
|
|
271
|
+
# @return [String] The 34 character unique sid of the Account.
|
|
266
272
|
def account_sid
|
|
267
273
|
@properties['account_sid']
|
|
268
274
|
end
|
|
269
275
|
|
|
270
276
|
##
|
|
271
|
-
# @return [String] The
|
|
277
|
+
# @return [String] The 34 character unique sid of the Messaging Service.
|
|
272
278
|
def service_sid
|
|
273
279
|
@properties['service_sid']
|
|
274
280
|
end
|
|
275
281
|
|
|
276
282
|
##
|
|
277
|
-
# @return [Time] The
|
|
283
|
+
# @return [Time] The date that this resource was created.
|
|
278
284
|
def date_created
|
|
279
285
|
@properties['date_created']
|
|
280
286
|
end
|
|
281
287
|
|
|
282
288
|
##
|
|
283
|
-
# @return [Time] The
|
|
289
|
+
# @return [Time] The date that this resource was last updated.
|
|
284
290
|
def date_updated
|
|
285
291
|
@properties['date_updated']
|
|
286
292
|
end
|
|
287
293
|
|
|
288
294
|
##
|
|
289
|
-
# @return [String]
|
|
295
|
+
# @return [String] An Alphanumeric Sender ID string, up to 11 characters.
|
|
290
296
|
def alpha_sender
|
|
291
297
|
@properties['alpha_sender']
|
|
292
298
|
end
|
|
293
299
|
|
|
294
300
|
##
|
|
295
|
-
# @return [Hash]
|
|
301
|
+
# @return [Hash] An array of values that indicate whether the number can receive calls or messages.
|
|
296
302
|
def capabilities
|
|
297
303
|
@properties['capabilities']
|
|
298
304
|
end
|
|
299
305
|
|
|
300
306
|
##
|
|
301
|
-
# @return [String] The
|
|
307
|
+
# @return [String] The absolute URL for this resource.
|
|
302
308
|
def url
|
|
303
309
|
@properties['url']
|
|
304
310
|
end
|
|
@@ -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
|
|
@@ -15,7 +17,7 @@ module Twilio
|
|
|
15
17
|
##
|
|
16
18
|
# Initialize the PhoneNumberList
|
|
17
19
|
# @param [Version] version Version that contains the resource
|
|
18
|
-
# @param [String] service_sid The
|
|
20
|
+
# @param [String] service_sid The 34 character unique sid of the Service.
|
|
19
21
|
# @return [PhoneNumberList] PhoneNumberList
|
|
20
22
|
def initialize(version, service_sid: nil)
|
|
21
23
|
super(version)
|
|
@@ -28,7 +30,8 @@ module Twilio
|
|
|
28
30
|
##
|
|
29
31
|
# Retrieve a single page of PhoneNumberInstance records from the API.
|
|
30
32
|
# Request is executed immediately.
|
|
31
|
-
# @param [String] phone_number_sid
|
|
33
|
+
# @param [String] phone_number_sid Phone Number SID for the Phone Number being
|
|
34
|
+
# added to the Service.
|
|
32
35
|
# @return [PhoneNumberInstance] Newly created PhoneNumberInstance
|
|
33
36
|
def create(phone_number_sid: nil)
|
|
34
37
|
data = Twilio::Values.of({'PhoneNumberSid' => phone_number_sid, })
|
|
@@ -221,7 +224,7 @@ module Twilio
|
|
|
221
224
|
# Initialize the PhoneNumberInstance
|
|
222
225
|
# @param [Version] version Version that contains the resource
|
|
223
226
|
# @param [Hash] payload payload that contains response from Twilio
|
|
224
|
-
# @param [String] service_sid The
|
|
227
|
+
# @param [String] service_sid The 34 character unique sid of the Service.
|
|
225
228
|
# @param [String] sid The sid
|
|
226
229
|
# @return [PhoneNumberInstance] PhoneNumberInstance
|
|
227
230
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
|
@@ -257,55 +260,55 @@ module Twilio
|
|
|
257
260
|
end
|
|
258
261
|
|
|
259
262
|
##
|
|
260
|
-
# @return [String] The sid
|
|
263
|
+
# @return [String] The 34 character unique sid of the Phone Number.
|
|
261
264
|
def sid
|
|
262
265
|
@properties['sid']
|
|
263
266
|
end
|
|
264
267
|
|
|
265
268
|
##
|
|
266
|
-
# @return [String] The
|
|
269
|
+
# @return [String] The 34 character unique sid of the Account.
|
|
267
270
|
def account_sid
|
|
268
271
|
@properties['account_sid']
|
|
269
272
|
end
|
|
270
273
|
|
|
271
274
|
##
|
|
272
|
-
# @return [String] The
|
|
275
|
+
# @return [String] The 34 character unique sid of the Service.
|
|
273
276
|
def service_sid
|
|
274
277
|
@properties['service_sid']
|
|
275
278
|
end
|
|
276
279
|
|
|
277
280
|
##
|
|
278
|
-
# @return [Time] The
|
|
281
|
+
# @return [Time] The date that this resource was created.
|
|
279
282
|
def date_created
|
|
280
283
|
@properties['date_created']
|
|
281
284
|
end
|
|
282
285
|
|
|
283
286
|
##
|
|
284
|
-
# @return [Time] The
|
|
287
|
+
# @return [Time] The date that this resource was last updated.
|
|
285
288
|
def date_updated
|
|
286
289
|
@properties['date_updated']
|
|
287
290
|
end
|
|
288
291
|
|
|
289
292
|
##
|
|
290
|
-
# @return [String] The
|
|
293
|
+
# @return [String] The E.
|
|
291
294
|
def phone_number
|
|
292
295
|
@properties['phone_number']
|
|
293
296
|
end
|
|
294
297
|
|
|
295
298
|
##
|
|
296
|
-
# @return [String] The
|
|
299
|
+
# @return [String] The 2 character ISO Country Code of the number.
|
|
297
300
|
def country_code
|
|
298
301
|
@properties['country_code']
|
|
299
302
|
end
|
|
300
303
|
|
|
301
304
|
##
|
|
302
|
-
# @return [String]
|
|
305
|
+
# @return [String] Any array of values that indicate whether the number can receive calls or messages.
|
|
303
306
|
def capabilities
|
|
304
307
|
@properties['capabilities']
|
|
305
308
|
end
|
|
306
309
|
|
|
307
310
|
##
|
|
308
|
-
# @return [String] The
|
|
311
|
+
# @return [String] The absolute URL for this resource.
|
|
309
312
|
def url
|
|
310
313
|
@properties['url']
|
|
311
314
|
end
|
|
@@ -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
|
|
@@ -26,20 +28,44 @@ module Twilio
|
|
|
26
28
|
##
|
|
27
29
|
# Retrieve a single page of ServiceInstance records from the API.
|
|
28
30
|
# Request is executed immediately.
|
|
29
|
-
# @param [String] friendly_name
|
|
30
|
-
#
|
|
31
|
-
# @param [String]
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
# @param [
|
|
37
|
-
#
|
|
31
|
+
# @param [String] friendly_name A human readable descriptive text for this
|
|
32
|
+
# resource, up to 64 characters.
|
|
33
|
+
# @param [String] inbound_request_url A [webhook
|
|
34
|
+
# request](https://www.twilio.com/docs/api/twiml/sms/twilio_request) is made to
|
|
35
|
+
# the Inbound Request URL when a message is received by any phone number or
|
|
36
|
+
# shortcode associated to your Messaging Service. Set to `null` to disable inbound
|
|
37
|
+
# messaging.
|
|
38
|
+
# @param [String] inbound_method The HTTP method used when making requests to the
|
|
39
|
+
# Inbound Request URL. Either `GET` or `POST`. Default value is `POST`.
|
|
40
|
+
# @param [String] fallback_url A request is made to the Fallback URL if an error
|
|
41
|
+
# occurs with retrieving or executing the TwiML from you Inbound Request URL.
|
|
42
|
+
# @param [String] fallback_method The HTTP method used when requesting the
|
|
43
|
+
# Fallback URL. Either `GET` or `POST`. Default value is `POST`.
|
|
44
|
+
# @param [String] status_callback A webhook request is made to the Status Callback
|
|
45
|
+
# to pass [status
|
|
46
|
+
# updates](https://www.twilio.com/docs/api/rest/message#sms-status-values) about
|
|
47
|
+
# your messages. These status updates let you know if your accepted message were
|
|
48
|
+
# successfully sent and delivered or if a [delivery related
|
|
49
|
+
# error](https://www.twilio.com/docs/api/rest/message#error-values) may have
|
|
50
|
+
# occurred.
|
|
51
|
+
# @param [Boolean] sticky_sender Configuration to enable or disable Sticky Sender
|
|
52
|
+
# on your Service Instance. Possible values are `true` and `false`. Default value
|
|
53
|
+
# is `true`.
|
|
54
|
+
# @param [Boolean] mms_converter Configuration to enable or disable MMS Converter
|
|
55
|
+
# on your Service Instance. Possible values are `true` and `false`. Default value
|
|
56
|
+
# is `true`.
|
|
57
|
+
# @param [Boolean] smart_encoding Configuration to enable or disable [Smart
|
|
58
|
+
# Encoding](https://www.twilio.com/docs/api/messaging/services-and-copilot#smart-encoding). Possible values are `true` and `false`. Default value is `true`.
|
|
38
59
|
# @param [service.ScanMessageContent] scan_message_content The
|
|
39
60
|
# scan_message_content
|
|
40
|
-
# @param [Boolean] fallback_to_long_code
|
|
41
|
-
#
|
|
42
|
-
#
|
|
61
|
+
# @param [Boolean] fallback_to_long_code Configuration to enable or disable
|
|
62
|
+
# [Fallback to Long
|
|
63
|
+
# Code](https://www.twilio.com/docs/api/messaging/services-and-copilot#fallback-to-long-code). Possible values are `true` and `false`. Default value is `false`.
|
|
64
|
+
# @param [Boolean] area_code_geomatch Configuration to enable or disable [Area
|
|
65
|
+
# Code
|
|
66
|
+
# Geomatch](https://www.twilio.com/docs/api/messaging/services-and-copilot#area-code-geomatch). Possible values are `true` and `false`. Default value is `false`.
|
|
67
|
+
# @param [String] validity_period Configuration to set the [validity
|
|
68
|
+
# period](https://www.twilio.com/docs/api/messaging/services-and-copilot#validity-period) of all messages sent from your Service, in seconds. Acceptable integers range from `1` to `14,400`. Default value is `14,400`.
|
|
43
69
|
# @param [Boolean] synchronous_validation The synchronous_validation
|
|
44
70
|
# @return [ServiceInstance] Newly created ServiceInstance
|
|
45
71
|
def create(friendly_name: nil, inbound_request_url: :unset, inbound_method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, sticky_sender: :unset, mms_converter: :unset, smart_encoding: :unset, scan_message_content: :unset, fallback_to_long_code: :unset, area_code_geomatch: :unset, validity_period: :unset, synchronous_validation: :unset)
|
|
@@ -392,79 +418,79 @@ module Twilio
|
|
|
392
418
|
end
|
|
393
419
|
|
|
394
420
|
##
|
|
395
|
-
# @return [String]
|
|
421
|
+
# @return [String] Unique 34 character ID of the Service.
|
|
396
422
|
def sid
|
|
397
423
|
@properties['sid']
|
|
398
424
|
end
|
|
399
425
|
|
|
400
426
|
##
|
|
401
|
-
# @return [String]
|
|
427
|
+
# @return [String] Unique 34 character ID of the Account that created this Service.
|
|
402
428
|
def account_sid
|
|
403
429
|
@properties['account_sid']
|
|
404
430
|
end
|
|
405
431
|
|
|
406
432
|
##
|
|
407
|
-
# @return [String]
|
|
433
|
+
# @return [String] A human readable descriptive text for this resource, up to 64 characters.
|
|
408
434
|
def friendly_name
|
|
409
435
|
@properties['friendly_name']
|
|
410
436
|
end
|
|
411
437
|
|
|
412
438
|
##
|
|
413
|
-
# @return [Time] The
|
|
439
|
+
# @return [Time] The date that this resource was created.
|
|
414
440
|
def date_created
|
|
415
441
|
@properties['date_created']
|
|
416
442
|
end
|
|
417
443
|
|
|
418
444
|
##
|
|
419
|
-
# @return [Time] The
|
|
445
|
+
# @return [Time] The date that this resource was last updated.
|
|
420
446
|
def date_updated
|
|
421
447
|
@properties['date_updated']
|
|
422
448
|
end
|
|
423
449
|
|
|
424
450
|
##
|
|
425
|
-
# @return [String] The
|
|
451
|
+
# @return [String] The URL Twilio will make a webhook request to when a message is received by any phone number or short code in your Service.
|
|
426
452
|
def inbound_request_url
|
|
427
453
|
@properties['inbound_request_url']
|
|
428
454
|
end
|
|
429
455
|
|
|
430
456
|
##
|
|
431
|
-
# @return [String] The
|
|
457
|
+
# @return [String] The HTTP method Twilio will use when making requests to the Inbound Request URL.
|
|
432
458
|
def inbound_method
|
|
433
459
|
@properties['inbound_method']
|
|
434
460
|
end
|
|
435
461
|
|
|
436
462
|
##
|
|
437
|
-
# @return [String] The
|
|
463
|
+
# @return [String] The URL that Twilio will request if an error occurs when retrieving or executing the TwiML from your Inbound Request URL.
|
|
438
464
|
def fallback_url
|
|
439
465
|
@properties['fallback_url']
|
|
440
466
|
end
|
|
441
467
|
|
|
442
468
|
##
|
|
443
|
-
# @return [String] The
|
|
469
|
+
# @return [String] The HTTP method Twilio will use when making requests to the Fallback URL.
|
|
444
470
|
def fallback_method
|
|
445
471
|
@properties['fallback_method']
|
|
446
472
|
end
|
|
447
473
|
|
|
448
474
|
##
|
|
449
|
-
# @return [String] The
|
|
475
|
+
# @return [String] The URL Twilio will make a webhook request to when passing you status updates about the delivery of your messages.
|
|
450
476
|
def status_callback
|
|
451
477
|
@properties['status_callback']
|
|
452
478
|
end
|
|
453
479
|
|
|
454
480
|
##
|
|
455
|
-
# @return [Boolean]
|
|
481
|
+
# @return [Boolean] Configuration to enable or disable Sticky Sender on your Service instance.
|
|
456
482
|
def sticky_sender
|
|
457
483
|
@properties['sticky_sender']
|
|
458
484
|
end
|
|
459
485
|
|
|
460
486
|
##
|
|
461
|
-
# @return [Boolean]
|
|
487
|
+
# @return [Boolean] Configuration to enable or disable MMS Converter for messages sent through your Service instance.
|
|
462
488
|
def mms_converter
|
|
463
489
|
@properties['mms_converter']
|
|
464
490
|
end
|
|
465
491
|
|
|
466
492
|
##
|
|
467
|
-
# @return [Boolean]
|
|
493
|
+
# @return [Boolean] Configuration to enable or disable Smart Encoding for messages sent through your Service instance.
|
|
468
494
|
def smart_encoding
|
|
469
495
|
@properties['smart_encoding']
|
|
470
496
|
end
|
|
@@ -476,13 +502,13 @@ module Twilio
|
|
|
476
502
|
end
|
|
477
503
|
|
|
478
504
|
##
|
|
479
|
-
# @return [Boolean]
|
|
505
|
+
# @return [Boolean] Configuration to enable or disable Fallback to Long Code for messages sent through your Service instance.
|
|
480
506
|
def fallback_to_long_code
|
|
481
507
|
@properties['fallback_to_long_code']
|
|
482
508
|
end
|
|
483
509
|
|
|
484
510
|
##
|
|
485
|
-
# @return [Boolean]
|
|
511
|
+
# @return [Boolean] Configuration to enable or disable Area Code Geomatch on your Service Instance.
|
|
486
512
|
def area_code_geomatch
|
|
487
513
|
@properties['area_code_geomatch']
|
|
488
514
|
end
|
|
@@ -494,7 +520,7 @@ module Twilio
|
|
|
494
520
|
end
|
|
495
521
|
|
|
496
522
|
##
|
|
497
|
-
# @return [String] The
|
|
523
|
+
# @return [String] The number of seconds all messages sent from your Service are valid for.
|
|
498
524
|
def validity_period
|
|
499
525
|
@properties['validity_period']
|
|
500
526
|
end
|
|
@@ -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
|
|
32
|
+
# @param [String] sid Unique 34 character ID of the Service.
|
|
31
33
|
# @return [Twilio::REST::Messaging::V1::ServiceInstance] if sid was passed.
|
|
32
34
|
# @return [Twilio::REST::Messaging::V1::ServiceList]
|
|
33
35
|
def services(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
|
|
@@ -25,9 +27,18 @@ module Twilio
|
|
|
25
27
|
# Lists AlertInstance records from the API as a list.
|
|
26
28
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
27
29
|
# memory before returning.
|
|
28
|
-
# @param [String] log_level
|
|
29
|
-
#
|
|
30
|
-
# @param [Date]
|
|
30
|
+
# @param [String] log_level Only show alerts for this log-level. One of 'error',
|
|
31
|
+
# 'warning', 'notice', or 'debug'.
|
|
32
|
+
# @param [Date] start_date Only show Alerts on or after this date. Useful in
|
|
33
|
+
# combination with `EndDate` to define a date-range of Alerts. Input is a [UTC
|
|
34
|
+
# ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day
|
|
35
|
+
# is ignored by the filter. Queries for Alerts older than 30 days are not
|
|
36
|
+
# supported.
|
|
37
|
+
# @param [Date] end_date Only show Alerts on or before this date. Useful in
|
|
38
|
+
# combination with `StartDate` to define a date-range of Alerts. Input is a [UTC
|
|
39
|
+
# ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day
|
|
40
|
+
# is ignored by the filter. Queries for Alerts older than 30 days are not
|
|
41
|
+
# supported.
|
|
31
42
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
32
43
|
# guarantees to never return more than limit. Default is no limit
|
|
33
44
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -49,9 +60,18 @@ module Twilio
|
|
|
49
60
|
# Streams AlertInstance records from the API as an Enumerable.
|
|
50
61
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
51
62
|
# is reached.
|
|
52
|
-
# @param [String] log_level
|
|
53
|
-
#
|
|
54
|
-
# @param [Date]
|
|
63
|
+
# @param [String] log_level Only show alerts for this log-level. One of 'error',
|
|
64
|
+
# 'warning', 'notice', or 'debug'.
|
|
65
|
+
# @param [Date] start_date Only show Alerts on or after this date. Useful in
|
|
66
|
+
# combination with `EndDate` to define a date-range of Alerts. Input is a [UTC
|
|
67
|
+
# ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day
|
|
68
|
+
# is ignored by the filter. Queries for Alerts older than 30 days are not
|
|
69
|
+
# supported.
|
|
70
|
+
# @param [Date] end_date Only show Alerts on or before this date. Useful in
|
|
71
|
+
# combination with `StartDate` to define a date-range of Alerts. Input is a [UTC
|
|
72
|
+
# ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day
|
|
73
|
+
# is ignored by the filter. Queries for Alerts older than 30 days are not
|
|
74
|
+
# supported.
|
|
55
75
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
56
76
|
# guarantees to never return more than limit. Default is no limit.
|
|
57
77
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -89,9 +109,18 @@ module Twilio
|
|
|
89
109
|
##
|
|
90
110
|
# Retrieve a single page of AlertInstance records from the API.
|
|
91
111
|
# Request is executed immediately.
|
|
92
|
-
# @param [String] log_level
|
|
93
|
-
#
|
|
94
|
-
# @param [Date]
|
|
112
|
+
# @param [String] log_level Only show alerts for this log-level. One of 'error',
|
|
113
|
+
# 'warning', 'notice', or 'debug'.
|
|
114
|
+
# @param [Date] start_date Only show Alerts on or after this date. Useful in
|
|
115
|
+
# combination with `EndDate` to define a date-range of Alerts. Input is a [UTC
|
|
116
|
+
# ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day
|
|
117
|
+
# is ignored by the filter. Queries for Alerts older than 30 days are not
|
|
118
|
+
# supported.
|
|
119
|
+
# @param [Date] end_date Only show Alerts on or before this date. Useful in
|
|
120
|
+
# combination with `StartDate` to define a date-range of Alerts. Input is a [UTC
|
|
121
|
+
# ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day
|
|
122
|
+
# is ignored by the filter. Queries for Alerts older than 30 days are not
|
|
123
|
+
# supported.
|
|
95
124
|
# @param [String] page_token PageToken provided by the API
|
|
96
125
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
97
126
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -254,67 +283,67 @@ module Twilio
|
|
|
254
283
|
end
|
|
255
284
|
|
|
256
285
|
##
|
|
257
|
-
# @return [String] The
|
|
286
|
+
# @return [String] The unique id of the Account responsible for this alert.
|
|
258
287
|
def account_sid
|
|
259
288
|
@properties['account_sid']
|
|
260
289
|
end
|
|
261
290
|
|
|
262
291
|
##
|
|
263
|
-
# @return [String] The
|
|
292
|
+
# @return [String] The text of the alert.
|
|
264
293
|
def alert_text
|
|
265
294
|
@properties['alert_text']
|
|
266
295
|
end
|
|
267
296
|
|
|
268
297
|
##
|
|
269
|
-
# @return [String] The
|
|
298
|
+
# @return [String] The version of the Twilio API in use when this alert was generated.
|
|
270
299
|
def api_version
|
|
271
300
|
@properties['api_version']
|
|
272
301
|
end
|
|
273
302
|
|
|
274
303
|
##
|
|
275
|
-
# @return [Time] The
|
|
304
|
+
# @return [Time] The date that this resource was created, given in ISO 8601 format.
|
|
276
305
|
def date_created
|
|
277
306
|
@properties['date_created']
|
|
278
307
|
end
|
|
279
308
|
|
|
280
309
|
##
|
|
281
|
-
# @return [Time] The
|
|
310
|
+
# @return [Time] The date the alert was actually generated, given in ISO 8601 format.
|
|
282
311
|
def date_generated
|
|
283
312
|
@properties['date_generated']
|
|
284
313
|
end
|
|
285
314
|
|
|
286
315
|
##
|
|
287
|
-
# @return [Time] The
|
|
316
|
+
# @return [Time] The most recent date that this resource was updated, given in ISO 8601 format.
|
|
288
317
|
def date_updated
|
|
289
318
|
@properties['date_updated']
|
|
290
319
|
end
|
|
291
320
|
|
|
292
321
|
##
|
|
293
|
-
# @return [String]
|
|
322
|
+
# @return [String] A unique error code for the error condition.
|
|
294
323
|
def error_code
|
|
295
324
|
@properties['error_code']
|
|
296
325
|
end
|
|
297
326
|
|
|
298
327
|
##
|
|
299
|
-
# @return [String]
|
|
328
|
+
# @return [String] A string representing the log level.
|
|
300
329
|
def log_level
|
|
301
330
|
@properties['log_level']
|
|
302
331
|
end
|
|
303
332
|
|
|
304
333
|
##
|
|
305
|
-
# @return [String]
|
|
334
|
+
# @return [String] A URL for more information about the error condition.
|
|
306
335
|
def more_info
|
|
307
336
|
@properties['more_info']
|
|
308
337
|
end
|
|
309
338
|
|
|
310
339
|
##
|
|
311
|
-
# @return [String]
|
|
340
|
+
# @return [String] If the Alert was generated by a request Twilio made to your server, this will be the request method used when Twilio made the request to your server.
|
|
312
341
|
def request_method
|
|
313
342
|
@properties['request_method']
|
|
314
343
|
end
|
|
315
344
|
|
|
316
345
|
##
|
|
317
|
-
# @return [String]
|
|
346
|
+
# @return [String] If the Alert was generated by a request Twilio made to your server, this will be the URL on your server that generated the alert.
|
|
318
347
|
def request_url
|
|
319
348
|
@properties['request_url']
|
|
320
349
|
end
|
|
@@ -326,7 +355,7 @@ module Twilio
|
|
|
326
355
|
end
|
|
327
356
|
|
|
328
357
|
##
|
|
329
|
-
# @return [String] The
|
|
358
|
+
# @return [String] The unique ID of the resource for which the Alert was generated.
|
|
330
359
|
def resource_sid
|
|
331
360
|
@properties['resource_sid']
|
|
332
361
|
end
|
|
@@ -344,13 +373,13 @@ module Twilio
|
|
|
344
373
|
end
|
|
345
374
|
|
|
346
375
|
##
|
|
347
|
-
# @return [String]
|
|
376
|
+
# @return [String] A 34 character string that uniquely identifies this Alert.
|
|
348
377
|
def sid
|
|
349
378
|
@properties['sid']
|
|
350
379
|
end
|
|
351
380
|
|
|
352
381
|
##
|
|
353
|
-
# @return [String] The
|
|
382
|
+
# @return [String] The absolute URL for this resource.
|
|
354
383
|
def url
|
|
355
384
|
@properties['url']
|
|
356
385
|
end
|