twilio-ruby 5.6.3 → 5.6.4
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 +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,9 +11,9 @@ describe 'Field' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.preview.understand.services(
|
|
15
|
-
.intents(
|
|
16
|
-
.fields(
|
|
14
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
16
|
+
.fields('UEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
19
19
|
values = {}
|
|
@@ -42,9 +42,9 @@ describe 'Field' do
|
|
|
42
42
|
]
|
|
43
43
|
))
|
|
44
44
|
|
|
45
|
-
actual = @client.preview.understand.services(
|
|
46
|
-
.intents(
|
|
47
|
-
.fields(
|
|
45
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
46
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
47
|
+
.fields('UEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
48
48
|
|
|
49
49
|
expect(actual).to_not eq(nil)
|
|
50
50
|
end
|
|
@@ -53,8 +53,8 @@ describe 'Field' do
|
|
|
53
53
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
54
54
|
|
|
55
55
|
expect {
|
|
56
|
-
@client.preview.understand.services(
|
|
57
|
-
.intents(
|
|
56
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
57
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
58
58
|
.fields.list()
|
|
59
59
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
60
60
|
|
|
@@ -85,8 +85,8 @@ describe 'Field' do
|
|
|
85
85
|
]
|
|
86
86
|
))
|
|
87
87
|
|
|
88
|
-
actual = @client.preview.understand.services(
|
|
89
|
-
.intents(
|
|
88
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
89
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
90
90
|
.fields.list()
|
|
91
91
|
|
|
92
92
|
expect(actual).to_not eq(nil)
|
|
@@ -123,8 +123,8 @@ describe 'Field' do
|
|
|
123
123
|
]
|
|
124
124
|
))
|
|
125
125
|
|
|
126
|
-
actual = @client.preview.understand.services(
|
|
127
|
-
.intents(
|
|
126
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
127
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
128
128
|
.fields.list()
|
|
129
129
|
|
|
130
130
|
expect(actual).to_not eq(nil)
|
|
@@ -134,12 +134,12 @@ describe 'Field' do
|
|
|
134
134
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
135
135
|
|
|
136
136
|
expect {
|
|
137
|
-
@client.preview.understand.services(
|
|
138
|
-
.intents(
|
|
139
|
-
.fields.create(field_type:
|
|
137
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
138
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
139
|
+
.fields.create(field_type: 'field_type', unique_name: 'unique_name')
|
|
140
140
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
141
141
|
|
|
142
|
-
values = {'FieldType' =>
|
|
142
|
+
values = {'FieldType' => 'field_type', 'UniqueName' => 'unique_name', }
|
|
143
143
|
expect(
|
|
144
144
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
145
145
|
method: 'post',
|
|
@@ -166,9 +166,9 @@ describe 'Field' do
|
|
|
166
166
|
]
|
|
167
167
|
))
|
|
168
168
|
|
|
169
|
-
actual = @client.preview.understand.services(
|
|
170
|
-
.intents(
|
|
171
|
-
.fields.create(field_type:
|
|
169
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
170
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
171
|
+
.fields.create(field_type: 'field_type', unique_name: 'unique_name')
|
|
172
172
|
|
|
173
173
|
expect(actual).to_not eq(nil)
|
|
174
174
|
end
|
|
@@ -177,9 +177,9 @@ describe 'Field' do
|
|
|
177
177
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
178
178
|
|
|
179
179
|
expect {
|
|
180
|
-
@client.preview.understand.services(
|
|
181
|
-
.intents(
|
|
182
|
-
.fields(
|
|
180
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
181
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
182
|
+
.fields('UEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
183
183
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
184
184
|
|
|
185
185
|
values = {}
|
|
@@ -196,9 +196,9 @@ describe 'Field' do
|
|
|
196
196
|
nil,
|
|
197
197
|
))
|
|
198
198
|
|
|
199
|
-
actual = @client.preview.understand.services(
|
|
200
|
-
.intents(
|
|
201
|
-
.fields(
|
|
199
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
200
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
201
|
+
.fields('UEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
202
202
|
|
|
203
203
|
expect(actual).to eq(true)
|
|
204
204
|
end
|
|
@@ -11,9 +11,9 @@ describe 'Sample' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.preview.understand.services(
|
|
15
|
-
.intents(
|
|
16
|
-
.samples(
|
|
14
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
16
|
+
.samples('UFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
19
19
|
values = {}
|
|
@@ -42,9 +42,9 @@ describe 'Sample' do
|
|
|
42
42
|
]
|
|
43
43
|
))
|
|
44
44
|
|
|
45
|
-
actual = @client.preview.understand.services(
|
|
46
|
-
.intents(
|
|
47
|
-
.samples(
|
|
45
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
46
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
47
|
+
.samples('UFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
48
48
|
|
|
49
49
|
expect(actual).to_not eq(nil)
|
|
50
50
|
end
|
|
@@ -53,8 +53,8 @@ describe 'Sample' do
|
|
|
53
53
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
54
54
|
|
|
55
55
|
expect {
|
|
56
|
-
@client.preview.understand.services(
|
|
57
|
-
.intents(
|
|
56
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
57
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
58
58
|
.samples.list()
|
|
59
59
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
60
60
|
|
|
@@ -85,8 +85,8 @@ describe 'Sample' do
|
|
|
85
85
|
]
|
|
86
86
|
))
|
|
87
87
|
|
|
88
|
-
actual = @client.preview.understand.services(
|
|
89
|
-
.intents(
|
|
88
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
89
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
90
90
|
.samples.list()
|
|
91
91
|
|
|
92
92
|
expect(actual).to_not eq(nil)
|
|
@@ -123,8 +123,8 @@ describe 'Sample' do
|
|
|
123
123
|
]
|
|
124
124
|
))
|
|
125
125
|
|
|
126
|
-
actual = @client.preview.understand.services(
|
|
127
|
-
.intents(
|
|
126
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
127
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
128
128
|
.samples.list()
|
|
129
129
|
|
|
130
130
|
expect(actual).to_not eq(nil)
|
|
@@ -134,12 +134,12 @@ describe 'Sample' do
|
|
|
134
134
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
135
135
|
|
|
136
136
|
expect {
|
|
137
|
-
@client.preview.understand.services(
|
|
138
|
-
.intents(
|
|
139
|
-
.samples.create(language:
|
|
137
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
138
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
139
|
+
.samples.create(language: 'language', tagged_text: 'tagged_text')
|
|
140
140
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
141
141
|
|
|
142
|
-
values = {'Language' =>
|
|
142
|
+
values = {'Language' => 'language', 'TaggedText' => 'tagged_text', }
|
|
143
143
|
expect(
|
|
144
144
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
145
145
|
method: 'post',
|
|
@@ -166,9 +166,9 @@ describe 'Sample' do
|
|
|
166
166
|
]
|
|
167
167
|
))
|
|
168
168
|
|
|
169
|
-
actual = @client.preview.understand.services(
|
|
170
|
-
.intents(
|
|
171
|
-
.samples.create(language:
|
|
169
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
170
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
171
|
+
.samples.create(language: 'language', tagged_text: 'tagged_text')
|
|
172
172
|
|
|
173
173
|
expect(actual).to_not eq(nil)
|
|
174
174
|
end
|
|
@@ -177,9 +177,9 @@ describe 'Sample' do
|
|
|
177
177
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
178
178
|
|
|
179
179
|
expect {
|
|
180
|
-
@client.preview.understand.services(
|
|
181
|
-
.intents(
|
|
182
|
-
.samples(
|
|
180
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
181
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
182
|
+
.samples('UFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
183
183
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
184
184
|
|
|
185
185
|
values = {}
|
|
@@ -208,9 +208,9 @@ describe 'Sample' do
|
|
|
208
208
|
]
|
|
209
209
|
))
|
|
210
210
|
|
|
211
|
-
actual = @client.preview.understand.services(
|
|
212
|
-
.intents(
|
|
213
|
-
.samples(
|
|
211
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
212
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
213
|
+
.samples('UFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
214
214
|
|
|
215
215
|
expect(actual).to_not eq(nil)
|
|
216
216
|
end
|
|
@@ -219,9 +219,9 @@ describe 'Sample' do
|
|
|
219
219
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
220
220
|
|
|
221
221
|
expect {
|
|
222
|
-
@client.preview.understand.services(
|
|
223
|
-
.intents(
|
|
224
|
-
.samples(
|
|
222
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
223
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
224
|
+
.samples('UFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
225
225
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
226
226
|
|
|
227
227
|
values = {}
|
|
@@ -238,9 +238,9 @@ describe 'Sample' do
|
|
|
238
238
|
nil,
|
|
239
239
|
))
|
|
240
240
|
|
|
241
|
-
actual = @client.preview.understand.services(
|
|
242
|
-
.intents(
|
|
243
|
-
.samples(
|
|
241
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
242
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
243
|
+
.samples('UFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
244
244
|
|
|
245
245
|
expect(actual).to eq(true)
|
|
246
246
|
end
|
|
@@ -11,8 +11,8 @@ describe 'Intent' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.preview.understand.services(
|
|
15
|
-
.intents(
|
|
14
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
18
18
|
values = {}
|
|
@@ -45,8 +45,8 @@ describe 'Intent' do
|
|
|
45
45
|
]
|
|
46
46
|
))
|
|
47
47
|
|
|
48
|
-
actual = @client.preview.understand.services(
|
|
49
|
-
.intents(
|
|
48
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
49
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
50
50
|
|
|
51
51
|
expect(actual).to_not eq(nil)
|
|
52
52
|
end
|
|
@@ -55,7 +55,7 @@ describe 'Intent' do
|
|
|
55
55
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
56
56
|
|
|
57
57
|
expect {
|
|
58
|
-
@client.preview.understand.services(
|
|
58
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
59
59
|
.intents.list()
|
|
60
60
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
61
61
|
|
|
@@ -86,7 +86,7 @@ describe 'Intent' do
|
|
|
86
86
|
]
|
|
87
87
|
))
|
|
88
88
|
|
|
89
|
-
actual = @client.preview.understand.services(
|
|
89
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
90
90
|
.intents.list()
|
|
91
91
|
|
|
92
92
|
expect(actual).to_not eq(nil)
|
|
@@ -127,7 +127,7 @@ describe 'Intent' do
|
|
|
127
127
|
]
|
|
128
128
|
))
|
|
129
129
|
|
|
130
|
-
actual = @client.preview.understand.services(
|
|
130
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
131
131
|
.intents.list()
|
|
132
132
|
|
|
133
133
|
expect(actual).to_not eq(nil)
|
|
@@ -137,11 +137,11 @@ describe 'Intent' do
|
|
|
137
137
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
138
138
|
|
|
139
139
|
expect {
|
|
140
|
-
@client.preview.understand.services(
|
|
141
|
-
.intents.create(unique_name:
|
|
140
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
141
|
+
.intents.create(unique_name: 'unique_name')
|
|
142
142
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
143
143
|
|
|
144
|
-
values = {'UniqueName' =>
|
|
144
|
+
values = {'UniqueName' => 'unique_name', }
|
|
145
145
|
expect(
|
|
146
146
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
147
147
|
method: 'post',
|
|
@@ -172,8 +172,8 @@ describe 'Intent' do
|
|
|
172
172
|
]
|
|
173
173
|
))
|
|
174
174
|
|
|
175
|
-
actual = @client.preview.understand.services(
|
|
176
|
-
.intents.create(unique_name:
|
|
175
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
176
|
+
.intents.create(unique_name: 'unique_name')
|
|
177
177
|
|
|
178
178
|
expect(actual).to_not eq(nil)
|
|
179
179
|
end
|
|
@@ -182,8 +182,8 @@ describe 'Intent' do
|
|
|
182
182
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
183
183
|
|
|
184
184
|
expect {
|
|
185
|
-
@client.preview.understand.services(
|
|
186
|
-
.intents(
|
|
185
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
186
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
187
187
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
188
188
|
|
|
189
189
|
values = {}
|
|
@@ -216,8 +216,8 @@ describe 'Intent' do
|
|
|
216
216
|
]
|
|
217
217
|
))
|
|
218
218
|
|
|
219
|
-
actual = @client.preview.understand.services(
|
|
220
|
-
.intents(
|
|
219
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
220
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
221
221
|
|
|
222
222
|
expect(actual).to_not eq(nil)
|
|
223
223
|
end
|
|
@@ -226,8 +226,8 @@ describe 'Intent' do
|
|
|
226
226
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
227
227
|
|
|
228
228
|
expect {
|
|
229
|
-
@client.preview.understand.services(
|
|
230
|
-
.intents(
|
|
229
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
230
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
231
231
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
232
232
|
|
|
233
233
|
values = {}
|
|
@@ -244,8 +244,8 @@ describe 'Intent' do
|
|
|
244
244
|
nil,
|
|
245
245
|
))
|
|
246
246
|
|
|
247
|
-
actual = @client.preview.understand.services(
|
|
248
|
-
.intents(
|
|
247
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
248
|
+
.intents('UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
249
249
|
|
|
250
250
|
expect(actual).to eq(true)
|
|
251
251
|
end
|
|
@@ -11,8 +11,8 @@ describe 'ModelBuild' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.preview.understand.services(
|
|
15
|
-
.model_builds(
|
|
14
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.model_builds('UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
18
18
|
values = {}
|
|
@@ -40,8 +40,8 @@ describe 'ModelBuild' do
|
|
|
40
40
|
]
|
|
41
41
|
))
|
|
42
42
|
|
|
43
|
-
actual = @client.preview.understand.services(
|
|
44
|
-
.model_builds(
|
|
43
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
44
|
+
.model_builds('UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
45
45
|
|
|
46
46
|
expect(actual).to_not eq(nil)
|
|
47
47
|
end
|
|
@@ -50,7 +50,7 @@ describe 'ModelBuild' do
|
|
|
50
50
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
51
51
|
|
|
52
52
|
expect {
|
|
53
|
-
@client.preview.understand.services(
|
|
53
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
54
54
|
.model_builds.list()
|
|
55
55
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
56
56
|
|
|
@@ -81,7 +81,7 @@ describe 'ModelBuild' do
|
|
|
81
81
|
]
|
|
82
82
|
))
|
|
83
83
|
|
|
84
|
-
actual = @client.preview.understand.services(
|
|
84
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
85
85
|
.model_builds.list()
|
|
86
86
|
|
|
87
87
|
expect(actual).to_not eq(nil)
|
|
@@ -117,7 +117,7 @@ describe 'ModelBuild' do
|
|
|
117
117
|
]
|
|
118
118
|
))
|
|
119
119
|
|
|
120
|
-
actual = @client.preview.understand.services(
|
|
120
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
121
121
|
.model_builds.list()
|
|
122
122
|
|
|
123
123
|
expect(actual).to_not eq(nil)
|
|
@@ -127,7 +127,7 @@ describe 'ModelBuild' do
|
|
|
127
127
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
128
128
|
|
|
129
129
|
expect {
|
|
130
|
-
@client.preview.understand.services(
|
|
130
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
131
131
|
.model_builds.create()
|
|
132
132
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
133
133
|
|
|
@@ -156,7 +156,7 @@ describe 'ModelBuild' do
|
|
|
156
156
|
]
|
|
157
157
|
))
|
|
158
158
|
|
|
159
|
-
actual = @client.preview.understand.services(
|
|
159
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
160
160
|
.model_builds.create()
|
|
161
161
|
|
|
162
162
|
expect(actual).to_not eq(nil)
|
|
@@ -166,8 +166,8 @@ describe 'ModelBuild' do
|
|
|
166
166
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
167
167
|
|
|
168
168
|
expect {
|
|
169
|
-
@client.preview.understand.services(
|
|
170
|
-
.model_builds(
|
|
169
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
170
|
+
.model_builds('UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
171
171
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
172
172
|
|
|
173
173
|
values = {}
|
|
@@ -195,8 +195,8 @@ describe 'ModelBuild' do
|
|
|
195
195
|
]
|
|
196
196
|
))
|
|
197
197
|
|
|
198
|
-
actual = @client.preview.understand.services(
|
|
199
|
-
.model_builds(
|
|
198
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
199
|
+
.model_builds('UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
200
200
|
|
|
201
201
|
expect(actual).to_not eq(nil)
|
|
202
202
|
end
|
|
@@ -205,8 +205,8 @@ describe 'ModelBuild' do
|
|
|
205
205
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
206
206
|
|
|
207
207
|
expect {
|
|
208
|
-
@client.preview.understand.services(
|
|
209
|
-
.model_builds(
|
|
208
|
+
@client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
209
|
+
.model_builds('UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
210
210
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
211
211
|
|
|
212
212
|
values = {}
|
|
@@ -223,8 +223,8 @@ describe 'ModelBuild' do
|
|
|
223
223
|
nil,
|
|
224
224
|
))
|
|
225
225
|
|
|
226
|
-
actual = @client.preview.understand.services(
|
|
227
|
-
.model_builds(
|
|
226
|
+
actual = @client.preview.understand.services('UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
227
|
+
.model_builds('UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
228
228
|
|
|
229
229
|
expect(actual).to eq(true)
|
|
230
230
|
end
|