twilio-ruby 5.39.0 → 5.40.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGES.md +80 -1
- data/CONTRIBUTING.md +2 -2
- data/ISSUE_TEMPLATE.md +5 -1
- data/Makefile +1 -1
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +4 -3
- data/lib/twilio-ruby/framework/version.rb +1 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +1 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +7 -5
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +79 -60
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +15 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +15 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +15 -1
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +1 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +1 -1
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +13 -3
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +1 -1
- data/lib/twilio-ruby/rest/events.rb +55 -0
- data/lib/twilio-ruby/rest/events/v1.rb +59 -0
- data/lib/twilio-ruby/rest/events/v1/sink.rb +380 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +119 -0
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +363 -0
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +322 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/messaging.rb +6 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +1 -1
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +17 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +1 -1
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +1 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +1 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +1 -1
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +1 -1
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +1 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +43 -5
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +14 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +13 -12
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +25 -5
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +76 -10
- data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +26 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +22 -10
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +11 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/composition.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +0 -6
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +6 -20
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/version_spec.rb +166 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +35 -36
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +39 -40
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +35 -36
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +25 -23
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/bulkexports/v1/export/day_spec.rb +5 -5
- data/spec/integration/bulkexports/v1/export_configuration_spec.rb +4 -4
- data/spec/integration/bulkexports/v1/export_spec.rb +3 -3
- data/spec/integration/conversations/v1/conversation/message_spec.rb +38 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +56 -0
- data/spec/integration/conversations/v1/conversation_spec.rb +30 -0
- data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
- data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
- data/spec/integration/events/v1/sink_spec.rb +217 -0
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +212 -0
- data/spec/integration/events/v1/subscription_spec.rb +205 -0
- data/spec/integration/messaging/v1/deactivation_spec.rb +40 -0
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +27 -0
- data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +1 -0
- data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +1 -0
- data/spec/integration/supersim/v1/usage_record_spec.rb +463 -18
- data/spec/integration/trunking/v1/trunk_spec.rb +4 -0
- data/spec/integration/verify/v2/service/access_token_spec.rb +1 -1
- data/spec/integration/verify/v2/service/entity/challenge_spec.rb +8 -8
- data/spec/integration/video/v1/room_spec.rb +37 -0
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +24 -2
@@ -100,6 +100,43 @@ describe 'Message' do
|
|
100
100
|
expect(actual).to_not eq(nil)
|
101
101
|
end
|
102
102
|
|
103
|
+
it "receives create_with_messaging_service responses" do
|
104
|
+
@holodeck.mock(Twilio::Response.new(
|
105
|
+
201,
|
106
|
+
%q[
|
107
|
+
{
|
108
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
109
|
+
"api_version": "2010-04-01",
|
110
|
+
"body": "Hello! \ud83d\udc4d",
|
111
|
+
"date_created": "Thu, 30 Jul 2015 20:12:31 +0000",
|
112
|
+
"date_sent": "Thu, 30 Jul 2015 20:12:33 +0000",
|
113
|
+
"date_updated": "Thu, 30 Jul 2015 20:12:33 +0000",
|
114
|
+
"direction": "outbound-api",
|
115
|
+
"error_code": null,
|
116
|
+
"error_message": null,
|
117
|
+
"from": null,
|
118
|
+
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
119
|
+
"num_media": "0",
|
120
|
+
"num_segments": "1",
|
121
|
+
"price": null,
|
122
|
+
"price_unit": null,
|
123
|
+
"sid": "SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
124
|
+
"status": "sent",
|
125
|
+
"subresource_uris": {
|
126
|
+
"media": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media.json"
|
127
|
+
},
|
128
|
+
"to": "+14155552345",
|
129
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
130
|
+
}
|
131
|
+
]
|
132
|
+
))
|
133
|
+
|
134
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
135
|
+
.messages.create(to: '+15558675310')
|
136
|
+
|
137
|
+
expect(actual).to_not eq(nil)
|
138
|
+
end
|
139
|
+
|
103
140
|
it "can delete" do
|
104
141
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
105
142
|
|
@@ -64,9 +64,9 @@ describe 'Day' do
|
|
64
64
|
"meta": {
|
65
65
|
"page": 0,
|
66
66
|
"page_size": 50,
|
67
|
-
"first_page_url": "https://bulkexports.twilio.com/v1/Exports/
|
67
|
+
"first_page_url": "https://bulkexports.twilio.com/v1/Exports/Messages/Days?PageSize=50&Page=0",
|
68
68
|
"previous_page_url": null,
|
69
|
-
"url": "https://bulkexports.twilio.com/v1/Exports/
|
69
|
+
"url": "https://bulkexports.twilio.com/v1/Exports/Messages/Days?PageSize=50&Page=0",
|
70
70
|
"next_page_url": null,
|
71
71
|
"key": "days"
|
72
72
|
}
|
@@ -89,7 +89,7 @@ describe 'Day' do
|
|
89
89
|
{
|
90
90
|
"day": "2017-04-01",
|
91
91
|
"size": 100,
|
92
|
-
"resource_type": "
|
92
|
+
"resource_type": "Messages",
|
93
93
|
"create_date": "2017-04-02",
|
94
94
|
"friendly_name": "friendly_name"
|
95
95
|
}
|
@@ -97,9 +97,9 @@ describe 'Day' do
|
|
97
97
|
"meta": {
|
98
98
|
"page": 0,
|
99
99
|
"page_size": 50,
|
100
|
-
"first_page_url": "https://bulkexports.twilio.com/v1/Exports/
|
100
|
+
"first_page_url": "https://bulkexports.twilio.com/v1/Exports/Messages/Days?PageSize=50&Page=0",
|
101
101
|
"previous_page_url": null,
|
102
|
-
"url": "https://bulkexports.twilio.com/v1/Exports/
|
102
|
+
"url": "https://bulkexports.twilio.com/v1/Exports/Messages/Days?PageSize=50&Page=0",
|
103
103
|
"next_page_url": null,
|
104
104
|
"key": "days"
|
105
105
|
}
|
@@ -28,11 +28,11 @@ describe 'ExportConfiguration' do
|
|
28
28
|
200,
|
29
29
|
%q[
|
30
30
|
{
|
31
|
-
"url": "https://bulkexports.twilio.com/v1/Exports/
|
31
|
+
"url": "https://bulkexports.twilio.com/v1/Exports/Messages/Configuration",
|
32
32
|
"enabled": true,
|
33
33
|
"webhook_url": "",
|
34
34
|
"webhook_method": "",
|
35
|
-
"resource_type": "
|
35
|
+
"resource_type": "Messages"
|
36
36
|
}
|
37
37
|
]
|
38
38
|
))
|
@@ -61,10 +61,10 @@ describe 'ExportConfiguration' do
|
|
61
61
|
200,
|
62
62
|
%q[
|
63
63
|
{
|
64
|
-
"url": "https://bulkexports.twilio.com/v1/Exports/
|
64
|
+
"url": "https://bulkexports.twilio.com/v1/Exports/Messages/Configuration",
|
65
65
|
"enabled": true,
|
66
66
|
"webhook_url": "",
|
67
|
-
"resource_type": "
|
67
|
+
"resource_type": "Messages",
|
68
68
|
"webhook_method": ""
|
69
69
|
}
|
70
70
|
]
|
@@ -28,10 +28,10 @@ describe 'Export' do
|
|
28
28
|
200,
|
29
29
|
%q[
|
30
30
|
{
|
31
|
-
"resource_type": "
|
32
|
-
"url": "https://bulkexports.twilio.com/v1/Exports/
|
31
|
+
"resource_type": "Messages",
|
32
|
+
"url": "https://bulkexports.twilio.com/v1/Exports/Messages",
|
33
33
|
"links": {
|
34
|
-
"days": "https://bulkexports.twilio.com/v1/Exports/
|
34
|
+
"days": "https://bulkexports.twilio.com/v1/Exports/Messages/Days"
|
35
35
|
}
|
36
36
|
}
|
37
37
|
]
|
@@ -109,6 +109,44 @@ describe 'Message' do
|
|
109
109
|
expect(actual).to_not eq(nil)
|
110
110
|
end
|
111
111
|
|
112
|
+
it "receives create_no_attributes responses" do
|
113
|
+
@holodeck.mock(Twilio::Response.new(
|
114
|
+
201,
|
115
|
+
%q[
|
116
|
+
{
|
117
|
+
"sid": "IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
118
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
119
|
+
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
120
|
+
"body": "Hello",
|
121
|
+
"media": null,
|
122
|
+
"author": "message author",
|
123
|
+
"participant_sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
124
|
+
"attributes": "{}",
|
125
|
+
"date_created": "2020-07-01T22:18:37Z",
|
126
|
+
"date_updated": "2020-07-01T22:18:37Z",
|
127
|
+
"index": 0,
|
128
|
+
"delivery": {
|
129
|
+
"total": 2,
|
130
|
+
"sent": "all",
|
131
|
+
"delivered": "some",
|
132
|
+
"read": "some",
|
133
|
+
"failed": "none",
|
134
|
+
"undelivered": "none"
|
135
|
+
},
|
136
|
+
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
137
|
+
"links": {
|
138
|
+
"delivery_receipts": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Receipts"
|
139
|
+
}
|
140
|
+
}
|
141
|
+
]
|
142
|
+
))
|
143
|
+
|
144
|
+
actual = @client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
145
|
+
.messages.create()
|
146
|
+
|
147
|
+
expect(actual).to_not eq(nil)
|
148
|
+
end
|
149
|
+
|
112
150
|
it "can update" do
|
113
151
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
114
152
|
|
@@ -108,6 +108,62 @@ describe 'Participant' do
|
|
108
108
|
expect(actual).to_not eq(nil)
|
109
109
|
end
|
110
110
|
|
111
|
+
it "receives create_gmms_chat_no_attributes responses" do
|
112
|
+
@holodeck.mock(Twilio::Response.new(
|
113
|
+
201,
|
114
|
+
%q[
|
115
|
+
{
|
116
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
117
|
+
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
118
|
+
"sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
119
|
+
"identity": "IDENTITY",
|
120
|
+
"attributes": "{}",
|
121
|
+
"messaging_binding": {
|
122
|
+
"type": "sms",
|
123
|
+
"projected_address": "+15017122661"
|
124
|
+
},
|
125
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
126
|
+
"date_created": "2020-07-01T22:18:37Z",
|
127
|
+
"date_updated": "2020-07-01T22:18:37Z",
|
128
|
+
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
129
|
+
}
|
130
|
+
]
|
131
|
+
))
|
132
|
+
|
133
|
+
actual = @client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
134
|
+
.participants.create()
|
135
|
+
|
136
|
+
expect(actual).to_not eq(nil)
|
137
|
+
end
|
138
|
+
|
139
|
+
it "receives create_gmms_sms_no_attributes responses" do
|
140
|
+
@holodeck.mock(Twilio::Response.new(
|
141
|
+
201,
|
142
|
+
%q[
|
143
|
+
{
|
144
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
145
|
+
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
146
|
+
"sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
147
|
+
"identity": "null",
|
148
|
+
"attributes": "{}",
|
149
|
+
"messaging_binding": {
|
150
|
+
"type": "sms",
|
151
|
+
"address": "+15017122661"
|
152
|
+
},
|
153
|
+
"role_sid": "null",
|
154
|
+
"date_created": "2020-07-01T22:18:37Z",
|
155
|
+
"date_updated": "2020-07-01T22:18:37Z",
|
156
|
+
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
157
|
+
}
|
158
|
+
]
|
159
|
+
))
|
160
|
+
|
161
|
+
actual = @client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
162
|
+
.participants.create()
|
163
|
+
|
164
|
+
expect(actual).to_not eq(nil)
|
165
|
+
end
|
166
|
+
|
111
167
|
it "can update" do
|
112
168
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
113
169
|
|
@@ -58,6 +58,36 @@ describe 'Conversation' do
|
|
58
58
|
expect(actual).to_not eq(nil)
|
59
59
|
end
|
60
60
|
|
61
|
+
it "receives create_no_timers_no_attributes responses" do
|
62
|
+
@holodeck.mock(Twilio::Response.new(
|
63
|
+
201,
|
64
|
+
%q[
|
65
|
+
{
|
66
|
+
"sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
67
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
68
|
+
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
69
|
+
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
70
|
+
"friendly_name": "friendly_name",
|
71
|
+
"attributes": "{}",
|
72
|
+
"date_created": "2020-07-01T22:18:37Z",
|
73
|
+
"date_updated": "2020-07-01T22:18:37Z",
|
74
|
+
"state": "active",
|
75
|
+
"timers": {},
|
76
|
+
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
77
|
+
"links": {
|
78
|
+
"participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
|
79
|
+
"messages": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages",
|
80
|
+
"webhooks": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks"
|
81
|
+
}
|
82
|
+
}
|
83
|
+
]
|
84
|
+
))
|
85
|
+
|
86
|
+
actual = @client.conversations.v1.conversations.create()
|
87
|
+
|
88
|
+
expect(actual).to_not eq(nil)
|
89
|
+
end
|
90
|
+
|
61
91
|
it "can update" do
|
62
92
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
63
93
|
|
@@ -0,0 +1,42 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'SinkTest' do
|
12
|
+
it "can create" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.events.v1.sinks('DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
+
.sink_test.create()
|
18
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
19
|
+
|
20
|
+
expect(
|
21
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
22
|
+
method: 'post',
|
23
|
+
url: 'https://events.twilio.com/v1/Sinks/DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Test',
|
24
|
+
))).to eq(true)
|
25
|
+
end
|
26
|
+
|
27
|
+
it "receives create responses" do
|
28
|
+
@holodeck.mock(Twilio::Response.new(
|
29
|
+
201,
|
30
|
+
%q[
|
31
|
+
{
|
32
|
+
"result": "valid"
|
33
|
+
}
|
34
|
+
]
|
35
|
+
))
|
36
|
+
|
37
|
+
actual = @client.events.v1.sinks('DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
38
|
+
.sink_test.create()
|
39
|
+
|
40
|
+
expect(actual).to_not eq(nil)
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'SinkValidate' do
|
12
|
+
it "can create" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.events.v1.sinks('DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
+
.sink_validate.create(test_id: 'test_id')
|
18
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
19
|
+
|
20
|
+
values = {'TestId' => 'test_id', }
|
21
|
+
expect(
|
22
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
23
|
+
method: 'post',
|
24
|
+
url: 'https://events.twilio.com/v1/Sinks/DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Validate',
|
25
|
+
data: values,
|
26
|
+
))).to eq(true)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "receives create responses" do
|
30
|
+
@holodeck.mock(Twilio::Response.new(
|
31
|
+
201,
|
32
|
+
%q[
|
33
|
+
{
|
34
|
+
"result": "valid"
|
35
|
+
}
|
36
|
+
]
|
37
|
+
))
|
38
|
+
|
39
|
+
actual = @client.events.v1.sinks('DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
40
|
+
.sink_validate.create(test_id: 'test_id')
|
41
|
+
|
42
|
+
expect(actual).to_not eq(nil)
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,217 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'Sink' do
|
12
|
+
it "can fetch" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.events.v1.sinks('DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
17
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
+
|
19
|
+
expect(
|
20
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
21
|
+
method: 'get',
|
22
|
+
url: 'https://events.twilio.com/v1/Sinks/DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
23
|
+
))).to eq(true)
|
24
|
+
end
|
25
|
+
|
26
|
+
it "receives fetch responses" do
|
27
|
+
@holodeck.mock(Twilio::Response.new(
|
28
|
+
200,
|
29
|
+
%q[
|
30
|
+
{
|
31
|
+
"status": "initialized",
|
32
|
+
"sink_configuration": {},
|
33
|
+
"description": "description",
|
34
|
+
"sid": "DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"date_created": "2015-07-30T20:00:00Z",
|
36
|
+
"sink_type": "kinesis",
|
37
|
+
"date_updated": "2015-07-30T20:00:00Z",
|
38
|
+
"url": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
39
|
+
"links": {
|
40
|
+
"sink_test": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Test",
|
41
|
+
"sink_validate": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Validate"
|
42
|
+
}
|
43
|
+
}
|
44
|
+
]
|
45
|
+
))
|
46
|
+
|
47
|
+
actual = @client.events.v1.sinks('DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
48
|
+
|
49
|
+
expect(actual).to_not eq(nil)
|
50
|
+
end
|
51
|
+
|
52
|
+
it "can create" do
|
53
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
54
|
+
|
55
|
+
expect {
|
56
|
+
@client.events.v1.sinks.create(description: 'description', sink_configuration: {}, sink_type: 'kinesis')
|
57
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
58
|
+
|
59
|
+
values = {
|
60
|
+
'Description' => 'description',
|
61
|
+
'SinkConfiguration' => Twilio.serialize_object({}),
|
62
|
+
'SinkType' => 'kinesis',
|
63
|
+
}
|
64
|
+
expect(
|
65
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
66
|
+
method: 'post',
|
67
|
+
url: 'https://events.twilio.com/v1/Sinks',
|
68
|
+
data: values,
|
69
|
+
))).to eq(true)
|
70
|
+
end
|
71
|
+
|
72
|
+
it "receives create responses" do
|
73
|
+
@holodeck.mock(Twilio::Response.new(
|
74
|
+
201,
|
75
|
+
%q[
|
76
|
+
{
|
77
|
+
"status": "initialized",
|
78
|
+
"sink_configuration": {
|
79
|
+
"arn": "4242",
|
80
|
+
"role_arn": "abc123",
|
81
|
+
"external_id": "010101"
|
82
|
+
},
|
83
|
+
"description": "description",
|
84
|
+
"sid": "DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
85
|
+
"date_created": "2015-07-30T20:00:00Z",
|
86
|
+
"sink_type": "kinesis",
|
87
|
+
"date_updated": "2015-07-30T20:00:00Z",
|
88
|
+
"url": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
89
|
+
"links": {
|
90
|
+
"sink_test": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Test",
|
91
|
+
"sink_validate": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Validate"
|
92
|
+
}
|
93
|
+
}
|
94
|
+
]
|
95
|
+
))
|
96
|
+
|
97
|
+
actual = @client.events.v1.sinks.create(description: 'description', sink_configuration: {}, sink_type: 'kinesis')
|
98
|
+
|
99
|
+
expect(actual).to_not eq(nil)
|
100
|
+
end
|
101
|
+
|
102
|
+
it "can delete" do
|
103
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
104
|
+
|
105
|
+
expect {
|
106
|
+
@client.events.v1.sinks('DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
107
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
108
|
+
|
109
|
+
expect(
|
110
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
111
|
+
method: 'delete',
|
112
|
+
url: 'https://events.twilio.com/v1/Sinks/DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
113
|
+
))).to eq(true)
|
114
|
+
end
|
115
|
+
|
116
|
+
it "receives delete responses" do
|
117
|
+
@holodeck.mock(Twilio::Response.new(
|
118
|
+
204,
|
119
|
+
nil,
|
120
|
+
))
|
121
|
+
|
122
|
+
actual = @client.events.v1.sinks('DGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
123
|
+
|
124
|
+
expect(actual).to eq(true)
|
125
|
+
end
|
126
|
+
|
127
|
+
it "can read" do
|
128
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
129
|
+
|
130
|
+
expect {
|
131
|
+
@client.events.v1.sinks.list()
|
132
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
133
|
+
|
134
|
+
expect(
|
135
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
136
|
+
method: 'get',
|
137
|
+
url: 'https://events.twilio.com/v1/Sinks',
|
138
|
+
))).to eq(true)
|
139
|
+
end
|
140
|
+
|
141
|
+
it "receives read_empty responses" do
|
142
|
+
@holodeck.mock(Twilio::Response.new(
|
143
|
+
200,
|
144
|
+
%q[
|
145
|
+
{
|
146
|
+
"sinks": [],
|
147
|
+
"meta": {
|
148
|
+
"page": 0,
|
149
|
+
"page_size": 10,
|
150
|
+
"first_page_url": "https://events.twilio.com/v1/Sinks?PageSize=10&Page=0",
|
151
|
+
"previous_page_url": null,
|
152
|
+
"url": "https://events.twilio.com/v1/Sinks?PageSize=10&Page=0",
|
153
|
+
"next_page_url": null,
|
154
|
+
"key": "sinks"
|
155
|
+
}
|
156
|
+
}
|
157
|
+
]
|
158
|
+
))
|
159
|
+
|
160
|
+
actual = @client.events.v1.sinks.list()
|
161
|
+
|
162
|
+
expect(actual).to_not eq(nil)
|
163
|
+
end
|
164
|
+
|
165
|
+
it "receives read_results responses" do
|
166
|
+
@holodeck.mock(Twilio::Response.new(
|
167
|
+
200,
|
168
|
+
%q[
|
169
|
+
{
|
170
|
+
"sinks": [
|
171
|
+
{
|
172
|
+
"status": "initialized",
|
173
|
+
"sink_configuration": {},
|
174
|
+
"description": "A Sink",
|
175
|
+
"sid": "DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
176
|
+
"date_created": "2015-07-30T20:00:00Z",
|
177
|
+
"sink_type": "kinesis",
|
178
|
+
"date_updated": "2015-07-30T20:00:00Z",
|
179
|
+
"url": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
180
|
+
"links": {
|
181
|
+
"sink_test": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Test",
|
182
|
+
"sink_validate": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Validate"
|
183
|
+
}
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"status": "initialized",
|
187
|
+
"sink_configuration": {},
|
188
|
+
"description": "ANOTHER Sink",
|
189
|
+
"sid": "DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
|
190
|
+
"date_created": "2015-07-30T20:00:00Z",
|
191
|
+
"sink_type": "kinesis",
|
192
|
+
"date_updated": "2015-07-30T20:00:00Z",
|
193
|
+
"url": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
|
194
|
+
"links": {
|
195
|
+
"sink_test": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab/Test",
|
196
|
+
"sink_validate": "https://events.twilio.com/v1/Sinks/DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab/Validate"
|
197
|
+
}
|
198
|
+
}
|
199
|
+
],
|
200
|
+
"meta": {
|
201
|
+
"page": 0,
|
202
|
+
"page_size": 20,
|
203
|
+
"first_page_url": "https://events.twilio.com/v1/Sinks?PageSize=20&Page=0",
|
204
|
+
"previous_page_url": null,
|
205
|
+
"url": "https://events.twilio.com/v1/Sinks?PageSize=20&Page=0",
|
206
|
+
"next_page_url": null,
|
207
|
+
"key": "sinks"
|
208
|
+
}
|
209
|
+
}
|
210
|
+
]
|
211
|
+
))
|
212
|
+
|
213
|
+
actual = @client.events.v1.sinks.list()
|
214
|
+
|
215
|
+
expect(actual).to_not eq(nil)
|
216
|
+
end
|
217
|
+
end
|