twilio-ruby 5.6.3 → 5.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +18 -0
- data/README.md +2 -2
- data/examples/print_call_log.rb +1 -1
- data/lib/twilio-ruby/jwt/client_capability.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +5 -1
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +5 -1
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +6 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +6 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +6 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +6 -1
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +6 -1
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/preview/understand/service/intent.rb +5 -1
- data/lib/twilio-ruby/rest/preview/understand/service/model_build.rb +12 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +6 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +10 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +6 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +12 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +5 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/credential/aws_spec.rb +9 -9
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +9 -9
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +6 -6
- data/spec/integration/api/v2010/account/address_spec.rb +25 -25
- data/spec/integration/api/v2010/account/application_spec.rb +20 -20
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +7 -7
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +12 -12
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +10 -10
- data/spec/integration/api/v2010/account/call/notification_spec.rb +18 -18
- data/spec/integration/api/v2010/account/call/recording_spec.rb +18 -18
- data/spec/integration/api/v2010/account/call_spec.rb +20 -20
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +34 -34
- data/spec/integration/api/v2010/account/conference_spec.rb +11 -11
- data/spec/integration/api/v2010/account/connect_app_spec.rb +11 -11
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +17 -17
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +25 -25
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +17 -17
- data/spec/integration/api/v2010/account/key_spec.rb +15 -15
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +4 -4
- data/spec/integration/api/v2010/account/message/media_spec.rb +18 -18
- data/spec/integration/api/v2010/account/message_spec.rb +21 -21
- data/spec/integration/api/v2010/account/new_key_spec.rb +2 -2
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +2 -2
- data/spec/integration/api/v2010/account/notification_spec.rb +11 -11
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +15 -15
- data/spec/integration/api/v2010/account/queue/member_spec.rb +19 -19
- data/spec/integration/api/v2010/account/queue_spec.rb +20 -20
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +25 -25
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +18 -18
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +18 -18
- data/spec/integration/api/v2010/account/recording_spec.rb +11 -11
- data/spec/integration/api/v2010/account/short_code_spec.rb +11 -11
- data/spec/integration/api/v2010/account/signing_key_spec.rb +15 -15
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +31 -31
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +21 -21
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +25 -25
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +25 -25
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +20 -20
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +31 -31
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +21 -21
- data/spec/integration/api/v2010/account/token_spec.rb +2 -2
- data/spec/integration/api/v2010/account/transcription_spec.rb +11 -11
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +22 -22
- data/spec/integration/api/v2010/account/validation_request_spec.rb +5 -5
- data/spec/integration/api/v2010/account_spec.rb +4 -4
- data/spec/integration/chat/v1/credential_spec.rb +9 -9
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +25 -25
- data/spec/integration/chat/v1/service/channel/member_spec.rb +34 -34
- data/spec/integration/chat/v1/service/channel/message_spec.rb +34 -34
- data/spec/integration/chat/v1/service/channel_spec.rb +17 -17
- data/spec/integration/chat/v1/service/role_spec.rb +21 -21
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/chat/v1/service/user_spec.rb +20 -20
- data/spec/integration/chat/v1/service_spec.rb +9 -9
- data/spec/integration/chat/v2/credential_spec.rb +9 -9
- data/spec/integration/chat/v2/service/binding_spec.rb +11 -11
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +25 -25
- data/spec/integration/chat/v2/service/channel/member_spec.rb +31 -31
- data/spec/integration/chat/v2/service/channel/message_spec.rb +35 -35
- data/spec/integration/chat/v2/service/channel_spec.rb +17 -17
- data/spec/integration/chat/v2/service/role_spec.rb +21 -21
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +18 -18
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/chat/v2/service/user_spec.rb +20 -20
- data/spec/integration/chat/v2/service_spec.rb +9 -9
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +10 -10
- data/spec/integration/fax/v1/fax_spec.rb +9 -9
- data/spec/integration/ip_messaging/v1/credential_spec.rb +9 -9
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +25 -25
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +34 -34
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +34 -34
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +17 -17
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +21 -21
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +20 -20
- data/spec/integration/ip_messaging/v1/service_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/credential_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +11 -11
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +25 -25
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +31 -31
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +35 -35
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +17 -17
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +21 -21
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +18 -18
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +20 -20
- data/spec/integration/ip_messaging/v2/service_spec.rb +9 -9
- data/spec/integration/lookups/v1/phone_number_spec.rb +12 -2
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +15 -15
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +17 -17
- data/spec/integration/messaging/v1/service/short_code_spec.rb +15 -15
- data/spec/integration/messaging/v1/service_spec.rb +9 -9
- data/spec/integration/monitor/v1/alert_spec.rb +4 -4
- data/spec/integration/monitor/v1/event_spec.rb +2 -2
- data/spec/integration/notify/v1/credential_spec.rb +9 -9
- data/spec/integration/notify/v1/service/binding_spec.rb +16 -16
- data/spec/integration/notify/v1/service/notification_spec.rb +3 -3
- data/spec/integration/notify/v1/service/segment_spec.rb +3 -3
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +19 -19
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +28 -28
- data/spec/integration/notify/v1/service/user_spec.rb +16 -16
- data/spec/integration/notify/v1/service_spec.rb +6 -6
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +5 -5
- data/spec/integration/preview/acc_security/service/verification_spec.rb +5 -5
- data/spec/integration/preview/acc_security/service_spec.rb +7 -7
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +2 -2
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +4 -4
- data/spec/integration/preview/bulk_exports/export_spec.rb +2 -2
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +20 -20
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +6 -6
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +3 -3
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +8 -8
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +11 -11
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +7 -7
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +2 -2
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +11 -11
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +9 -9
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +15 -15
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +10 -10
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +20 -20
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +29 -29
- data/spec/integration/preview/proxy/service/session_spec.rb +16 -16
- data/spec/integration/preview/proxy/service/short_code_spec.rb +15 -15
- data/spec/integration/preview/proxy/service_spec.rb +6 -6
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +10 -10
- data/spec/integration/preview/studio/flow/engagement_spec.rb +11 -11
- data/spec/integration/preview/studio/flow_spec.rb +4 -4
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/document_spec.rb +18 -18
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +28 -28
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/sync_list_spec.rb +13 -13
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +32 -32
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/sync_map_spec.rb +13 -13
- data/spec/integration/preview/sync/service_spec.rb +6 -6
- data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +25 -25
- data/spec/integration/preview/understand/service/field_type_spec.rb +20 -20
- data/spec/integration/preview/understand/service/intent/field_spec.rb +25 -25
- data/spec/integration/preview/understand/service/intent/sample_spec.rb +31 -31
- data/spec/integration/preview/understand/service/intent_spec.rb +20 -20
- data/spec/integration/preview/understand/service/model_build_spec.rb +17 -17
- data/spec/integration/preview/understand/service/query_spec.rb +20 -20
- data/spec/integration/preview/understand/service_spec.rb +6 -6
- data/spec/integration/preview/wireless/command_spec.rb +5 -5
- data/spec/integration/preview/wireless/rate_plan_spec.rb +6 -6
- data/spec/integration/preview/wireless/sim/usage_spec.rb +2 -2
- data/spec/integration/preview/wireless/sim_spec.rb +4 -4
- data/spec/integration/pricing/v1/messaging/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/voice/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/voice/number_spec.rb +2 -2
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +12 -12
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +20 -20
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +29 -29
- data/spec/integration/proxy/v1/service/session_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/short_code_spec.rb +15 -15
- data/spec/integration/proxy/v1/service_spec.rb +9 -9
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +10 -10
- data/spec/integration/studio/v1/flow/engagement_spec.rb +11 -11
- data/spec/integration/studio/v1/flow_spec.rb +4 -4
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/document_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +25 -25
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/sync_list_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +31 -31
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/sync_map_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +7 -7
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +17 -17
- data/spec/integration/sync/v1/service_spec.rb +6 -6
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +7 -7
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +7 -7
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace_spec.rb +9 -9
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +21 -21
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk_spec.rb +6 -6
- data/spec/integration/video/v1/composition_spec.rb +4 -4
- data/spec/integration/video/v1/recording_spec.rb +4 -4
- data/spec/integration/video/v1/room/recording_spec.rb +7 -7
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +10 -10
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +10 -10
- data/spec/integration/video/v1/room/room_participant_spec.rb +11 -11
- data/spec/integration/video/v1/room_spec.rb +5 -5
- data/spec/integration/wireless/v1/command_spec.rb +5 -5
- data/spec/integration/wireless/v1/rate_plan_spec.rb +6 -6
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +2 -2
- data/spec/integration/wireless/v1/sim_spec.rb +4 -4
- metadata +2 -2
@@ -11,7 +11,7 @@ describe 'WorkspaceCumulativeStatistics' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.taskrouter.v1.workspaces(
|
14
|
+
@client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
15
|
.cumulative_statistics().fetch()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
@@ -84,7 +84,7 @@ describe 'WorkspaceCumulativeStatistics' do
|
|
84
84
|
]
|
85
85
|
))
|
86
86
|
|
87
|
-
actual = @client.taskrouter.v1.workspaces(
|
87
|
+
actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
88
88
|
.cumulative_statistics().fetch()
|
89
89
|
|
90
90
|
expect(actual).to_not eq(nil)
|
@@ -11,7 +11,7 @@ describe 'WorkspaceRealTimeStatistics' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.taskrouter.v1.workspaces(
|
14
|
+
@client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
15
|
.real_time_statistics().fetch()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
@@ -62,7 +62,7 @@ describe 'WorkspaceRealTimeStatistics' do
|
|
62
62
|
]
|
63
63
|
))
|
64
64
|
|
65
|
-
actual = @client.taskrouter.v1.workspaces(
|
65
|
+
actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
66
66
|
.real_time_statistics().fetch()
|
67
67
|
|
68
68
|
expect(actual).to_not eq(nil)
|
@@ -11,7 +11,7 @@ describe 'WorkspaceStatistics' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.taskrouter.v1.workspaces(
|
14
|
+
@client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
15
|
.statistics().fetch()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
@@ -95,7 +95,7 @@ describe 'WorkspaceStatistics' do
|
|
95
95
|
]
|
96
96
|
))
|
97
97
|
|
98
|
-
actual = @client.taskrouter.v1.workspaces(
|
98
|
+
actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
99
99
|
.statistics().fetch()
|
100
100
|
|
101
101
|
expect(actual).to_not eq(nil)
|
@@ -11,7 +11,7 @@ describe 'Workspace' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.taskrouter.v1.workspaces(
|
14
|
+
@client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
15
15
|
}.to raise_exception(Twilio::REST::TwilioError)
|
16
16
|
|
17
17
|
values = {}
|
@@ -57,7 +57,7 @@ describe 'Workspace' do
|
|
57
57
|
]
|
58
58
|
))
|
59
59
|
|
60
|
-
actual = @client.taskrouter.v1.workspaces(
|
60
|
+
actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
61
61
|
|
62
62
|
expect(actual).to_not eq(nil)
|
63
63
|
end
|
@@ -66,7 +66,7 @@ describe 'Workspace' do
|
|
66
66
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
67
67
|
|
68
68
|
expect {
|
69
|
-
@client.taskrouter.v1.workspaces(
|
69
|
+
@client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
70
70
|
}.to raise_exception(Twilio::REST::TwilioError)
|
71
71
|
|
72
72
|
values = {}
|
@@ -112,7 +112,7 @@ describe 'Workspace' do
|
|
112
112
|
]
|
113
113
|
))
|
114
114
|
|
115
|
-
actual = @client.taskrouter.v1.workspaces(
|
115
|
+
actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
116
116
|
|
117
117
|
expect(actual).to_not eq(nil)
|
118
118
|
end
|
@@ -213,10 +213,10 @@ describe 'Workspace' do
|
|
213
213
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
214
214
|
|
215
215
|
expect {
|
216
|
-
@client.taskrouter.v1.workspaces.create(friendly_name:
|
216
|
+
@client.taskrouter.v1.workspaces.create(friendly_name: 'friendly_name')
|
217
217
|
}.to raise_exception(Twilio::REST::TwilioError)
|
218
218
|
|
219
|
-
values = {'FriendlyName' =>
|
219
|
+
values = {'FriendlyName' => 'friendly_name', }
|
220
220
|
expect(
|
221
221
|
@holodeck.has_request?(Holodeck::Request.new(
|
222
222
|
method: 'post',
|
@@ -260,7 +260,7 @@ describe 'Workspace' do
|
|
260
260
|
]
|
261
261
|
))
|
262
262
|
|
263
|
-
actual = @client.taskrouter.v1.workspaces.create(friendly_name:
|
263
|
+
actual = @client.taskrouter.v1.workspaces.create(friendly_name: 'friendly_name')
|
264
264
|
|
265
265
|
expect(actual).to_not eq(nil)
|
266
266
|
end
|
@@ -269,7 +269,7 @@ describe 'Workspace' do
|
|
269
269
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
270
270
|
|
271
271
|
expect {
|
272
|
-
@client.taskrouter.v1.workspaces(
|
272
|
+
@client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
273
273
|
}.to raise_exception(Twilio::REST::TwilioError)
|
274
274
|
|
275
275
|
values = {}
|
@@ -286,7 +286,7 @@ describe 'Workspace' do
|
|
286
286
|
nil,
|
287
287
|
))
|
288
288
|
|
289
|
-
actual = @client.taskrouter.v1.workspaces(
|
289
|
+
actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
290
290
|
|
291
291
|
expect(actual).to eq(true)
|
292
292
|
end
|
@@ -11,8 +11,8 @@ describe 'CredentialList' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.trunking.v1.trunks(
|
15
|
-
.credentials_lists(
|
14
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
|
+
.credentials_lists('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
18
18
|
values = {}
|
@@ -39,8 +39,8 @@ describe 'CredentialList' do
|
|
39
39
|
]
|
40
40
|
))
|
41
41
|
|
42
|
-
actual = @client.trunking.v1.trunks(
|
43
|
-
.credentials_lists(
|
42
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
43
|
+
.credentials_lists('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
44
44
|
|
45
45
|
expect(actual).to_not eq(nil)
|
46
46
|
end
|
@@ -49,8 +49,8 @@ describe 'CredentialList' do
|
|
49
49
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
50
50
|
|
51
51
|
expect {
|
52
|
-
@client.trunking.v1.trunks(
|
53
|
-
.credentials_lists(
|
52
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
53
|
+
.credentials_lists('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
54
54
|
}.to raise_exception(Twilio::REST::TwilioError)
|
55
55
|
|
56
56
|
values = {}
|
@@ -67,8 +67,8 @@ describe 'CredentialList' do
|
|
67
67
|
nil,
|
68
68
|
))
|
69
69
|
|
70
|
-
actual = @client.trunking.v1.trunks(
|
71
|
-
.credentials_lists(
|
70
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
71
|
+
.credentials_lists('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
72
72
|
|
73
73
|
expect(actual).to eq(true)
|
74
74
|
end
|
@@ -77,11 +77,11 @@ describe 'CredentialList' do
|
|
77
77
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
78
78
|
|
79
79
|
expect {
|
80
|
-
@client.trunking.v1.trunks(
|
81
|
-
.credentials_lists.create(credential_list_sid:
|
80
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
81
|
+
.credentials_lists.create(credential_list_sid: 'CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
82
82
|
}.to raise_exception(Twilio::REST::TwilioError)
|
83
83
|
|
84
|
-
values = {'CredentialListSid' =>
|
84
|
+
values = {'CredentialListSid' => 'CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', }
|
85
85
|
expect(
|
86
86
|
@holodeck.has_request?(Holodeck::Request.new(
|
87
87
|
method: 'post',
|
@@ -106,8 +106,8 @@ describe 'CredentialList' do
|
|
106
106
|
]
|
107
107
|
))
|
108
108
|
|
109
|
-
actual = @client.trunking.v1.trunks(
|
110
|
-
.credentials_lists.create(credential_list_sid:
|
109
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
110
|
+
.credentials_lists.create(credential_list_sid: 'CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
111
111
|
|
112
112
|
expect(actual).to_not eq(nil)
|
113
113
|
end
|
@@ -116,7 +116,7 @@ describe 'CredentialList' do
|
|
116
116
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
117
117
|
|
118
118
|
expect {
|
119
|
-
@client.trunking.v1.trunks(
|
119
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
120
120
|
.credentials_lists.list()
|
121
121
|
}.to raise_exception(Twilio::REST::TwilioError)
|
122
122
|
|
@@ -157,7 +157,7 @@ describe 'CredentialList' do
|
|
157
157
|
]
|
158
158
|
))
|
159
159
|
|
160
|
-
actual = @client.trunking.v1.trunks(
|
160
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
161
161
|
.credentials_lists.list()
|
162
162
|
|
163
163
|
expect(actual).to_not eq(nil)
|
@@ -182,7 +182,7 @@ describe 'CredentialList' do
|
|
182
182
|
]
|
183
183
|
))
|
184
184
|
|
185
|
-
actual = @client.trunking.v1.trunks(
|
185
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
186
186
|
.credentials_lists.list()
|
187
187
|
|
188
188
|
expect(actual).to_not eq(nil)
|
@@ -11,8 +11,8 @@ describe 'IpAccessControlList' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.trunking.v1.trunks(
|
15
|
-
.ip_access_control_lists(
|
14
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
|
+
.ip_access_control_lists('ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
18
18
|
values = {}
|
@@ -39,8 +39,8 @@ describe 'IpAccessControlList' do
|
|
39
39
|
]
|
40
40
|
))
|
41
41
|
|
42
|
-
actual = @client.trunking.v1.trunks(
|
43
|
-
.ip_access_control_lists(
|
42
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
43
|
+
.ip_access_control_lists('ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
44
44
|
|
45
45
|
expect(actual).to_not eq(nil)
|
46
46
|
end
|
@@ -49,8 +49,8 @@ describe 'IpAccessControlList' do
|
|
49
49
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
50
50
|
|
51
51
|
expect {
|
52
|
-
@client.trunking.v1.trunks(
|
53
|
-
.ip_access_control_lists(
|
52
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
53
|
+
.ip_access_control_lists('ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
54
54
|
}.to raise_exception(Twilio::REST::TwilioError)
|
55
55
|
|
56
56
|
values = {}
|
@@ -67,8 +67,8 @@ describe 'IpAccessControlList' do
|
|
67
67
|
nil,
|
68
68
|
))
|
69
69
|
|
70
|
-
actual = @client.trunking.v1.trunks(
|
71
|
-
.ip_access_control_lists(
|
70
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
71
|
+
.ip_access_control_lists('ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
72
72
|
|
73
73
|
expect(actual).to eq(true)
|
74
74
|
end
|
@@ -77,11 +77,11 @@ describe 'IpAccessControlList' do
|
|
77
77
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
78
78
|
|
79
79
|
expect {
|
80
|
-
@client.trunking.v1.trunks(
|
81
|
-
.ip_access_control_lists.create(ip_access_control_list_sid:
|
80
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
81
|
+
.ip_access_control_lists.create(ip_access_control_list_sid: 'ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
82
82
|
}.to raise_exception(Twilio::REST::TwilioError)
|
83
83
|
|
84
|
-
values = {'IpAccessControlListSid' =>
|
84
|
+
values = {'IpAccessControlListSid' => 'ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', }
|
85
85
|
expect(
|
86
86
|
@holodeck.has_request?(Holodeck::Request.new(
|
87
87
|
method: 'post',
|
@@ -106,8 +106,8 @@ describe 'IpAccessControlList' do
|
|
106
106
|
]
|
107
107
|
))
|
108
108
|
|
109
|
-
actual = @client.trunking.v1.trunks(
|
110
|
-
.ip_access_control_lists.create(ip_access_control_list_sid:
|
109
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
110
|
+
.ip_access_control_lists.create(ip_access_control_list_sid: 'ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
111
111
|
|
112
112
|
expect(actual).to_not eq(nil)
|
113
113
|
end
|
@@ -116,7 +116,7 @@ describe 'IpAccessControlList' do
|
|
116
116
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
117
117
|
|
118
118
|
expect {
|
119
|
-
@client.trunking.v1.trunks(
|
119
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
120
120
|
.ip_access_control_lists.list()
|
121
121
|
}.to raise_exception(Twilio::REST::TwilioError)
|
122
122
|
|
@@ -147,7 +147,7 @@ describe 'IpAccessControlList' do
|
|
147
147
|
]
|
148
148
|
))
|
149
149
|
|
150
|
-
actual = @client.trunking.v1.trunks(
|
150
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
151
151
|
.ip_access_control_lists.list()
|
152
152
|
|
153
153
|
expect(actual).to_not eq(nil)
|
@@ -182,7 +182,7 @@ describe 'IpAccessControlList' do
|
|
182
182
|
]
|
183
183
|
))
|
184
184
|
|
185
|
-
actual = @client.trunking.v1.trunks(
|
185
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
186
186
|
.ip_access_control_lists.list()
|
187
187
|
|
188
188
|
expect(actual).to_not eq(nil)
|
@@ -11,8 +11,8 @@ describe 'OriginationUrl' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.trunking.v1.trunks(
|
15
|
-
.origination_urls(
|
14
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
|
+
.origination_urls('OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
18
18
|
values = {}
|
@@ -43,8 +43,8 @@ describe 'OriginationUrl' do
|
|
43
43
|
]
|
44
44
|
))
|
45
45
|
|
46
|
-
actual = @client.trunking.v1.trunks(
|
47
|
-
.origination_urls(
|
46
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
47
|
+
.origination_urls('OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
48
48
|
|
49
49
|
expect(actual).to_not eq(nil)
|
50
50
|
end
|
@@ -53,8 +53,8 @@ describe 'OriginationUrl' do
|
|
53
53
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
54
54
|
|
55
55
|
expect {
|
56
|
-
@client.trunking.v1.trunks(
|
57
|
-
.origination_urls(
|
56
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
57
|
+
.origination_urls('OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
58
58
|
}.to raise_exception(Twilio::REST::TwilioError)
|
59
59
|
|
60
60
|
values = {}
|
@@ -71,8 +71,8 @@ describe 'OriginationUrl' do
|
|
71
71
|
nil,
|
72
72
|
))
|
73
73
|
|
74
|
-
actual = @client.trunking.v1.trunks(
|
75
|
-
.origination_urls(
|
74
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
75
|
+
.origination_urls('OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
76
76
|
|
77
77
|
expect(actual).to eq(true)
|
78
78
|
end
|
@@ -81,16 +81,16 @@ describe 'OriginationUrl' do
|
|
81
81
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
82
82
|
|
83
83
|
expect {
|
84
|
-
@client.trunking.v1.trunks(
|
85
|
-
.origination_urls.create(weight: 1, priority: 1, enabled: true, friendly_name:
|
84
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
85
|
+
.origination_urls.create(weight: 1, priority: 1, enabled: true, friendly_name: 'friendly_name', sip_url: 'https://example.com')
|
86
86
|
}.to raise_exception(Twilio::REST::TwilioError)
|
87
87
|
|
88
88
|
values = {
|
89
89
|
'Weight' => 1,
|
90
90
|
'Priority' => 1,
|
91
91
|
'Enabled' => true,
|
92
|
-
'FriendlyName' =>
|
93
|
-
'SipUrl' =>
|
92
|
+
'FriendlyName' => 'friendly_name',
|
93
|
+
'SipUrl' => 'https://example.com',
|
94
94
|
}
|
95
95
|
expect(
|
96
96
|
@holodeck.has_request?(Holodeck::Request.new(
|
@@ -120,8 +120,8 @@ describe 'OriginationUrl' do
|
|
120
120
|
]
|
121
121
|
))
|
122
122
|
|
123
|
-
actual = @client.trunking.v1.trunks(
|
124
|
-
.origination_urls.create(weight: 1, priority: 1, enabled: true, friendly_name:
|
123
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
124
|
+
.origination_urls.create(weight: 1, priority: 1, enabled: true, friendly_name: 'friendly_name', sip_url: 'https://example.com')
|
125
125
|
|
126
126
|
expect(actual).to_not eq(nil)
|
127
127
|
end
|
@@ -130,7 +130,7 @@ describe 'OriginationUrl' do
|
|
130
130
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
131
131
|
|
132
132
|
expect {
|
133
|
-
@client.trunking.v1.trunks(
|
133
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
134
134
|
.origination_urls.list()
|
135
135
|
}.to raise_exception(Twilio::REST::TwilioError)
|
136
136
|
|
@@ -175,7 +175,7 @@ describe 'OriginationUrl' do
|
|
175
175
|
]
|
176
176
|
))
|
177
177
|
|
178
|
-
actual = @client.trunking.v1.trunks(
|
178
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
179
179
|
.origination_urls.list()
|
180
180
|
|
181
181
|
expect(actual).to_not eq(nil)
|
@@ -200,7 +200,7 @@ describe 'OriginationUrl' do
|
|
200
200
|
]
|
201
201
|
))
|
202
202
|
|
203
|
-
actual = @client.trunking.v1.trunks(
|
203
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
204
204
|
.origination_urls.list()
|
205
205
|
|
206
206
|
expect(actual).to_not eq(nil)
|
@@ -210,8 +210,8 @@ describe 'OriginationUrl' do
|
|
210
210
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
211
211
|
|
212
212
|
expect {
|
213
|
-
@client.trunking.v1.trunks(
|
214
|
-
.origination_urls(
|
213
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
214
|
+
.origination_urls('OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
215
215
|
}.to raise_exception(Twilio::REST::TwilioError)
|
216
216
|
|
217
217
|
values = {}
|
@@ -242,8 +242,8 @@ describe 'OriginationUrl' do
|
|
242
242
|
]
|
243
243
|
))
|
244
244
|
|
245
|
-
actual = @client.trunking.v1.trunks(
|
246
|
-
.origination_urls(
|
245
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
246
|
+
.origination_urls('OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
247
247
|
|
248
248
|
expect(actual).to_not eq(nil)
|
249
249
|
end
|
@@ -11,8 +11,8 @@ describe 'PhoneNumber' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.trunking.v1.trunks(
|
15
|
-
.phone_numbers(
|
14
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
|
+
.phone_numbers('PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
18
18
|
values = {}
|
@@ -64,8 +64,8 @@ describe 'PhoneNumber' do
|
|
64
64
|
]
|
65
65
|
))
|
66
66
|
|
67
|
-
actual = @client.trunking.v1.trunks(
|
68
|
-
.phone_numbers(
|
67
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
68
|
+
.phone_numbers('PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
69
69
|
|
70
70
|
expect(actual).to_not eq(nil)
|
71
71
|
end
|
@@ -74,8 +74,8 @@ describe 'PhoneNumber' do
|
|
74
74
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
75
75
|
|
76
76
|
expect {
|
77
|
-
@client.trunking.v1.trunks(
|
78
|
-
.phone_numbers(
|
77
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
78
|
+
.phone_numbers('PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
79
79
|
}.to raise_exception(Twilio::REST::TwilioError)
|
80
80
|
|
81
81
|
values = {}
|
@@ -92,8 +92,8 @@ describe 'PhoneNumber' do
|
|
92
92
|
nil,
|
93
93
|
))
|
94
94
|
|
95
|
-
actual = @client.trunking.v1.trunks(
|
96
|
-
.phone_numbers(
|
95
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
96
|
+
.phone_numbers('PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
97
97
|
|
98
98
|
expect(actual).to eq(true)
|
99
99
|
end
|
@@ -102,11 +102,11 @@ describe 'PhoneNumber' do
|
|
102
102
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
103
103
|
|
104
104
|
expect {
|
105
|
-
@client.trunking.v1.trunks(
|
106
|
-
.phone_numbers.create(phone_number_sid:
|
105
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
106
|
+
.phone_numbers.create(phone_number_sid: 'PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
107
107
|
}.to raise_exception(Twilio::REST::TwilioError)
|
108
108
|
|
109
|
-
values = {'PhoneNumberSid' =>
|
109
|
+
values = {'PhoneNumberSid' => 'PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', }
|
110
110
|
expect(
|
111
111
|
@holodeck.has_request?(Holodeck::Request.new(
|
112
112
|
method: 'post',
|
@@ -156,8 +156,8 @@ describe 'PhoneNumber' do
|
|
156
156
|
]
|
157
157
|
))
|
158
158
|
|
159
|
-
actual = @client.trunking.v1.trunks(
|
160
|
-
.phone_numbers.create(phone_number_sid:
|
159
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
160
|
+
.phone_numbers.create(phone_number_sid: 'PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
161
161
|
|
162
162
|
expect(actual).to_not eq(nil)
|
163
163
|
end
|
@@ -166,7 +166,7 @@ describe 'PhoneNumber' do
|
|
166
166
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
167
167
|
|
168
168
|
expect {
|
169
|
-
@client.trunking.v1.trunks(
|
169
|
+
@client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
170
170
|
.phone_numbers.list()
|
171
171
|
}.to raise_exception(Twilio::REST::TwilioError)
|
172
172
|
|
@@ -232,7 +232,7 @@ describe 'PhoneNumber' do
|
|
232
232
|
]
|
233
233
|
))
|
234
234
|
|
235
|
-
actual = @client.trunking.v1.trunks(
|
235
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
236
236
|
.phone_numbers.list()
|
237
237
|
|
238
238
|
expect(actual).to_not eq(nil)
|
@@ -257,7 +257,7 @@ describe 'PhoneNumber' do
|
|
257
257
|
]
|
258
258
|
))
|
259
259
|
|
260
|
-
actual = @client.trunking.v1.trunks(
|
260
|
+
actual = @client.trunking.v1.trunks('TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
261
261
|
.phone_numbers.list()
|
262
262
|
|
263
263
|
expect(actual).to_not eq(nil)
|