twilio-ruby 5.34.0 → 5.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +126 -0
- data/README.md +24 -3
- data/lib/twilio-ruby.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +87 -87
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +14 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +47 -9
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +71 -71
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +38 -3
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +12 -12
- data/lib/twilio-ruby/rest/autopilot.rb +6 -0
- data/lib/twilio-ruby/rest/autopilot/v1.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -16
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +12 -3
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +198 -0
- data/lib/twilio-ruby/rest/client.rb +35 -15
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +28 -3
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -4
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +6 -3
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +8 -8
- data/lib/twilio-ruby/rest/notify/v1/service.rb +20 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +26 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +324 -0
- data/lib/twilio-ruby/rest/preview.rb +6 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +7 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +193 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +26 -0
- data/lib/twilio-ruby/rest/{autopilot/v1/assistant/export_assistant.rb → preview/trusted_comms/business/brand.rb} +88 -71
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +266 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +194 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +7 -0
- data/lib/twilio-ruby/rest/supersim.rb +18 -0
- data/lib/twilio-ruby/rest/supersim/v1.rb +30 -0
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +63 -16
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +315 -0
- data/lib/twilio-ruby/rest/{authy/v1/service.rb → supersim/v1/network_access_profile.rb} +95 -121
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +352 -0
- data/lib/twilio-ruby/rest/verify.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/form.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service.rb +74 -3
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity.rb +32 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/access_token.rb +141 -0
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity/factor.rb +8 -8
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity/factor/challenge.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +425 -0
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -4
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -4
- data/lib/twilio-ruby/rest/voice.rb +36 -0
- data/lib/twilio-ruby/rest/voice/v1.rb +64 -0
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +513 -0
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +379 -0
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +458 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +366 -0
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +346 -0
- data/lib/twilio-ruby/util/configuration.rb +9 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call_spec.rb +5 -5
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +177 -0
- data/spec/integration/api/v2010/account/conference_spec.rb +42 -14
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +8 -14
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +12 -4
- data/spec/integration/api/v2010/account/token_spec.rb +23 -11
- data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -1
- data/spec/integration/autopilot/v1/assistant/query_spec.rb +4 -4
- data/spec/integration/autopilot/v1/assistant_spec.rb +4 -8
- data/spec/integration/autopilot/v1/restore_assistant_spec.rb +53 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +7 -0
- data/spec/integration/conversations/v1/conversation_spec.rb +16 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +3 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb +623 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +4 -0
- data/spec/integration/preview/trusted_comms/brands_information_spec.rb +44 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +52 -0
- data/spec/integration/preview/trusted_comms/business/brand_spec.rb +49 -0
- data/spec/integration/preview/trusted_comms/business_spec.rb +1 -0
- data/spec/integration/serverless/v1/service/environment/log_spec.rb +1 -0
- data/spec/integration/supersim/v1/fleet_spec.rb +16 -7
- data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +179 -0
- data/spec/integration/supersim/v1/network_access_profile_spec.rb +223 -0
- data/spec/integration/supersim/v1/network_spec.rb +139 -0
- data/spec/integration/supersim/v1/sim_spec.rb +78 -6
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +13 -13
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -23
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -28
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -17
- data/spec/integration/trunking/v1/trunk_spec.rb +33 -33
- data/spec/integration/{authy/v1 → verify/v2}/form_spec.rb +4 -4
- data/spec/integration/verify/v2/service/entity/access_token_spec.rb +46 -0
- data/spec/integration/{authy/v1 → verify/v2}/service/entity/factor/challenge_spec.rb +73 -73
- data/spec/integration/{authy/v1 → verify/v2}/service/entity/factor_spec.rb +54 -54
- data/spec/integration/verify/v2/service/entity_spec.rb +204 -0
- data/spec/integration/verify/v2/service/webhook_spec.rb +262 -0
- data/spec/integration/verify/v2/service_spec.rb +32 -4
- data/spec/integration/voice/v1/byoc_trunk_spec.rb +250 -0
- data/spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb +246 -0
- data/spec/integration/voice/v1/connection_policy_spec.rb +226 -0
- data/spec/integration/voice/v1/ip_record_spec.rb +223 -0
- data/spec/integration/voice/v1/source_ip_mapping_spec.rb +219 -0
- data/spec/rest/client_spec.rb +168 -58
- data/spec/util/configuration_spec.rb +12 -0
- data/twilio-ruby.gemspec +1 -1
- metadata +63 -23
- data/lib/twilio-ruby/rest/authy.rb +0 -55
- data/lib/twilio-ruby/rest/authy/v1.rb +0 -59
- data/spec/integration/authy/v1/service/entity_spec.rb +0 -201
- data/spec/integration/authy/v1/service_spec.rb +0 -231
- data/spec/integration/autopilot/v1/assistant/export_assistant_spec.rb +0 -49
@@ -18,4 +18,16 @@ describe Twilio::Util::Configuration do
|
|
18
18
|
config.http_client = 'someClient'
|
19
19
|
expect(config.http_client).to eq('someClient')
|
20
20
|
end
|
21
|
+
|
22
|
+
it 'should have a region attribute' do
|
23
|
+
config = Twilio::Util::Configuration.new
|
24
|
+
config.region = 'someRegion'
|
25
|
+
expect(config.region).to eq('someRegion')
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'should have an edge attribute' do
|
29
|
+
config = Twilio::Util::Configuration.new
|
30
|
+
config.edge = 'someEdge'
|
31
|
+
expect(config.edge).to eq('someEdge')
|
32
|
+
end
|
21
33
|
end
|
data/twilio-ruby.gemspec
CHANGED
@@ -7,7 +7,7 @@ require 'twilio-ruby/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'twilio-ruby'
|
9
9
|
spec.version = Twilio::VERSION
|
10
|
-
spec.authors
|
10
|
+
spec.authors = ['Twilio API Team']
|
11
11
|
spec.summary = 'The official library for communicating with the Twilio REST API, '\
|
12
12
|
'building TwiML, and generating Twilio JWT Capability Tokens'
|
13
13
|
spec.description = 'The official library for communicating with the Twilio REST API, '\
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.38.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -320,19 +320,11 @@ files:
|
|
320
320
|
- lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb
|
321
321
|
- lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb
|
322
322
|
- lib/twilio-ruby/rest/api/v2010/account/validation_request.rb
|
323
|
-
- lib/twilio-ruby/rest/authy.rb
|
324
|
-
- lib/twilio-ruby/rest/authy/v1.rb
|
325
|
-
- lib/twilio-ruby/rest/authy/v1/form.rb
|
326
|
-
- lib/twilio-ruby/rest/authy/v1/service.rb
|
327
|
-
- lib/twilio-ruby/rest/authy/v1/service/entity.rb
|
328
|
-
- lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb
|
329
|
-
- lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb
|
330
323
|
- lib/twilio-ruby/rest/autopilot.rb
|
331
324
|
- lib/twilio-ruby/rest/autopilot/v1.rb
|
332
325
|
- lib/twilio-ruby/rest/autopilot/v1/assistant.rb
|
333
326
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb
|
334
327
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb
|
335
|
-
- lib/twilio-ruby/rest/autopilot/v1/assistant/export_assistant.rb
|
336
328
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb
|
337
329
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb
|
338
330
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb
|
@@ -344,6 +336,7 @@ files:
|
|
344
336
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb
|
345
337
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb
|
346
338
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb
|
339
|
+
- lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb
|
347
340
|
- lib/twilio-ruby/rest/bulkexports.rb
|
348
341
|
- lib/twilio-ruby/rest/bulkexports/v1.rb
|
349
342
|
- lib/twilio-ruby/rest/bulkexports/v1/export.rb
|
@@ -446,6 +439,7 @@ files:
|
|
446
439
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
447
440
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
|
448
441
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb
|
442
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb
|
449
443
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
|
450
444
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb
|
451
445
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb
|
@@ -486,7 +480,11 @@ files:
|
|
486
480
|
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb
|
487
481
|
- lib/twilio-ruby/rest/preview/trusted_comms.rb
|
488
482
|
- lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb
|
483
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
|
489
484
|
- lib/twilio-ruby/rest/preview/trusted_comms/business.rb
|
485
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb
|
486
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb
|
487
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb
|
490
488
|
- lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb
|
491
489
|
- lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb
|
492
490
|
- lib/twilio-ruby/rest/preview/trusted_comms/cps.rb
|
@@ -571,6 +569,9 @@ files:
|
|
571
569
|
- lib/twilio-ruby/rest/supersim/v1.rb
|
572
570
|
- lib/twilio-ruby/rest/supersim/v1/command.rb
|
573
571
|
- lib/twilio-ruby/rest/supersim/v1/fleet.rb
|
572
|
+
- lib/twilio-ruby/rest/supersim/v1/network.rb
|
573
|
+
- lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb
|
574
|
+
- lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
|
574
575
|
- lib/twilio-ruby/rest/supersim/v1/sim.rb
|
575
576
|
- lib/twilio-ruby/rest/supersim/v1/usage_record.rb
|
576
577
|
- lib/twilio-ruby/rest/sync.rb
|
@@ -622,12 +623,18 @@ files:
|
|
622
623
|
- lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb
|
623
624
|
- lib/twilio-ruby/rest/verify.rb
|
624
625
|
- lib/twilio-ruby/rest/verify/v2.rb
|
626
|
+
- lib/twilio-ruby/rest/verify/v2/form.rb
|
625
627
|
- lib/twilio-ruby/rest/verify/v2/service.rb
|
628
|
+
- lib/twilio-ruby/rest/verify/v2/service/entity.rb
|
629
|
+
- lib/twilio-ruby/rest/verify/v2/service/entity/access_token.rb
|
630
|
+
- lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb
|
631
|
+
- lib/twilio-ruby/rest/verify/v2/service/entity/factor/challenge.rb
|
626
632
|
- lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb
|
627
633
|
- lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb
|
628
634
|
- lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb
|
629
635
|
- lib/twilio-ruby/rest/verify/v2/service/verification.rb
|
630
636
|
- lib/twilio-ruby/rest/verify/v2/service/verification_check.rb
|
637
|
+
- lib/twilio-ruby/rest/verify/v2/service/webhook.rb
|
631
638
|
- lib/twilio-ruby/rest/video.rb
|
632
639
|
- lib/twilio-ruby/rest/video/v1.rb
|
633
640
|
- lib/twilio-ruby/rest/video/v1/composition.rb
|
@@ -643,11 +650,16 @@ files:
|
|
643
650
|
- lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb
|
644
651
|
- lib/twilio-ruby/rest/voice.rb
|
645
652
|
- lib/twilio-ruby/rest/voice/v1.rb
|
653
|
+
- lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb
|
654
|
+
- lib/twilio-ruby/rest/voice/v1/connection_policy.rb
|
655
|
+
- lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb
|
646
656
|
- lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb
|
647
657
|
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb
|
648
658
|
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb
|
649
659
|
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb
|
650
660
|
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb
|
661
|
+
- lib/twilio-ruby/rest/voice/v1/ip_record.rb
|
662
|
+
- lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb
|
651
663
|
- lib/twilio-ruby/rest/wireless.rb
|
652
664
|
- lib/twilio-ruby/rest/wireless/v1.rb
|
653
665
|
- lib/twilio-ruby/rest/wireless/v1/command.rb
|
@@ -746,14 +758,8 @@ files:
|
|
746
758
|
- spec/integration/api/v2010/account/usage_spec.rb
|
747
759
|
- spec/integration/api/v2010/account/validation_request_spec.rb
|
748
760
|
- spec/integration/api/v2010/account_spec.rb
|
749
|
-
- spec/integration/authy/v1/form_spec.rb
|
750
|
-
- spec/integration/authy/v1/service/entity/factor/challenge_spec.rb
|
751
|
-
- spec/integration/authy/v1/service/entity/factor_spec.rb
|
752
|
-
- spec/integration/authy/v1/service/entity_spec.rb
|
753
|
-
- spec/integration/authy/v1/service_spec.rb
|
754
761
|
- spec/integration/autopilot/v1/assistant/defaults_spec.rb
|
755
762
|
- spec/integration/autopilot/v1/assistant/dialogue_spec.rb
|
756
|
-
- spec/integration/autopilot/v1/assistant/export_assistant_spec.rb
|
757
763
|
- spec/integration/autopilot/v1/assistant/field_type/field_value_spec.rb
|
758
764
|
- spec/integration/autopilot/v1/assistant/field_type_spec.rb
|
759
765
|
- spec/integration/autopilot/v1/assistant/model_build_spec.rb
|
@@ -766,6 +772,7 @@ files:
|
|
766
772
|
- spec/integration/autopilot/v1/assistant/task_spec.rb
|
767
773
|
- spec/integration/autopilot/v1/assistant/webhook_spec.rb
|
768
774
|
- spec/integration/autopilot/v1/assistant_spec.rb
|
775
|
+
- spec/integration/autopilot/v1/restore_assistant_spec.rb
|
769
776
|
- spec/integration/bulkexports/v1/export/day_spec.rb
|
770
777
|
- spec/integration/bulkexports/v1/export/export_custom_job_spec.rb
|
771
778
|
- spec/integration/bulkexports/v1/export/job_spec.rb
|
@@ -839,6 +846,7 @@ files:
|
|
839
846
|
- spec/integration/notify/v1/service/binding_spec.rb
|
840
847
|
- spec/integration/notify/v1/service/notification_spec.rb
|
841
848
|
- spec/integration/notify/v1/service_spec.rb
|
849
|
+
- spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb
|
842
850
|
- spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb
|
843
851
|
- spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb
|
844
852
|
- spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb
|
@@ -874,6 +882,10 @@ files:
|
|
874
882
|
- spec/integration/preview/sync/service/sync_map_spec.rb
|
875
883
|
- spec/integration/preview/sync/service_spec.rb
|
876
884
|
- spec/integration/preview/trusted_comms/branded_call_spec.rb
|
885
|
+
- spec/integration/preview/trusted_comms/brands_information_spec.rb
|
886
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb
|
887
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb
|
888
|
+
- spec/integration/preview/trusted_comms/business/brand_spec.rb
|
877
889
|
- spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb
|
878
890
|
- spec/integration/preview/trusted_comms/business/insights_spec.rb
|
879
891
|
- spec/integration/preview/trusted_comms/business_spec.rb
|
@@ -945,6 +957,9 @@ files:
|
|
945
957
|
- spec/integration/studio/v2/flow_validate_spec.rb
|
946
958
|
- spec/integration/supersim/v1/command_spec.rb
|
947
959
|
- spec/integration/supersim/v1/fleet_spec.rb
|
960
|
+
- spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb
|
961
|
+
- spec/integration/supersim/v1/network_access_profile_spec.rb
|
962
|
+
- spec/integration/supersim/v1/network_spec.rb
|
948
963
|
- spec/integration/supersim/v1/sim_spec.rb
|
949
964
|
- spec/integration/supersim/v1/usage_record_spec.rb
|
950
965
|
- spec/integration/sync/v1/service/document/document_permission_spec.rb
|
@@ -988,11 +1003,17 @@ files:
|
|
988
1003
|
- spec/integration/trunking/v1/trunk/origination_url_spec.rb
|
989
1004
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
990
1005
|
- spec/integration/trunking/v1/trunk_spec.rb
|
1006
|
+
- spec/integration/verify/v2/form_spec.rb
|
1007
|
+
- spec/integration/verify/v2/service/entity/access_token_spec.rb
|
1008
|
+
- spec/integration/verify/v2/service/entity/factor/challenge_spec.rb
|
1009
|
+
- spec/integration/verify/v2/service/entity/factor_spec.rb
|
1010
|
+
- spec/integration/verify/v2/service/entity_spec.rb
|
991
1011
|
- spec/integration/verify/v2/service/messaging_configuration_spec.rb
|
992
1012
|
- spec/integration/verify/v2/service/rate_limit/bucket_spec.rb
|
993
1013
|
- spec/integration/verify/v2/service/rate_limit_spec.rb
|
994
1014
|
- spec/integration/verify/v2/service/verification_check_spec.rb
|
995
1015
|
- spec/integration/verify/v2/service/verification_spec.rb
|
1016
|
+
- spec/integration/verify/v2/service/webhook_spec.rb
|
996
1017
|
- spec/integration/verify/v2/service_spec.rb
|
997
1018
|
- spec/integration/video/v1/composition_hook_spec.rb
|
998
1019
|
- spec/integration/video/v1/composition_settings_spec.rb
|
@@ -1005,11 +1026,16 @@ files:
|
|
1005
1026
|
- spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb
|
1006
1027
|
- spec/integration/video/v1/room/room_participant_spec.rb
|
1007
1028
|
- spec/integration/video/v1/room_spec.rb
|
1029
|
+
- spec/integration/voice/v1/byoc_trunk_spec.rb
|
1030
|
+
- spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb
|
1031
|
+
- spec/integration/voice/v1/connection_policy_spec.rb
|
1008
1032
|
- spec/integration/voice/v1/dialing_permissions/bulk_country_update_spec.rb
|
1009
1033
|
- spec/integration/voice/v1/dialing_permissions/country/highrisk_special_prefix_spec.rb
|
1010
1034
|
- spec/integration/voice/v1/dialing_permissions/country_spec.rb
|
1011
1035
|
- spec/integration/voice/v1/dialing_permissions/settings_spec.rb
|
1012
1036
|
- spec/integration/voice/v1/dialing_permissions_spec.rb
|
1037
|
+
- spec/integration/voice/v1/ip_record_spec.rb
|
1038
|
+
- spec/integration/voice/v1/source_ip_mapping_spec.rb
|
1013
1039
|
- spec/integration/wireless/v1/command_spec.rb
|
1014
1040
|
- spec/integration/wireless/v1/rate_plan_spec.rb
|
1015
1041
|
- spec/integration/wireless/v1/sim/data_session_spec.rb
|
@@ -1056,7 +1082,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1056
1082
|
- !ruby/object:Gem::Version
|
1057
1083
|
version: '0'
|
1058
1084
|
requirements: []
|
1059
|
-
rubygems_version: 3.0.
|
1085
|
+
rubygems_version: 3.0.8
|
1060
1086
|
signing_key:
|
1061
1087
|
specification_version: 4
|
1062
1088
|
summary: The official library for communicating with the Twilio REST API, building
|
@@ -1144,14 +1170,8 @@ test_files:
|
|
1144
1170
|
- spec/integration/api/v2010/account/usage_spec.rb
|
1145
1171
|
- spec/integration/api/v2010/account/validation_request_spec.rb
|
1146
1172
|
- spec/integration/api/v2010/account_spec.rb
|
1147
|
-
- spec/integration/authy/v1/form_spec.rb
|
1148
|
-
- spec/integration/authy/v1/service/entity/factor/challenge_spec.rb
|
1149
|
-
- spec/integration/authy/v1/service/entity/factor_spec.rb
|
1150
|
-
- spec/integration/authy/v1/service/entity_spec.rb
|
1151
|
-
- spec/integration/authy/v1/service_spec.rb
|
1152
1173
|
- spec/integration/autopilot/v1/assistant/defaults_spec.rb
|
1153
1174
|
- spec/integration/autopilot/v1/assistant/dialogue_spec.rb
|
1154
|
-
- spec/integration/autopilot/v1/assistant/export_assistant_spec.rb
|
1155
1175
|
- spec/integration/autopilot/v1/assistant/field_type/field_value_spec.rb
|
1156
1176
|
- spec/integration/autopilot/v1/assistant/field_type_spec.rb
|
1157
1177
|
- spec/integration/autopilot/v1/assistant/model_build_spec.rb
|
@@ -1164,6 +1184,7 @@ test_files:
|
|
1164
1184
|
- spec/integration/autopilot/v1/assistant/task_spec.rb
|
1165
1185
|
- spec/integration/autopilot/v1/assistant/webhook_spec.rb
|
1166
1186
|
- spec/integration/autopilot/v1/assistant_spec.rb
|
1187
|
+
- spec/integration/autopilot/v1/restore_assistant_spec.rb
|
1167
1188
|
- spec/integration/bulkexports/v1/export/day_spec.rb
|
1168
1189
|
- spec/integration/bulkexports/v1/export/export_custom_job_spec.rb
|
1169
1190
|
- spec/integration/bulkexports/v1/export/job_spec.rb
|
@@ -1237,6 +1258,7 @@ test_files:
|
|
1237
1258
|
- spec/integration/notify/v1/service/binding_spec.rb
|
1238
1259
|
- spec/integration/notify/v1/service/notification_spec.rb
|
1239
1260
|
- spec/integration/notify/v1/service_spec.rb
|
1261
|
+
- spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb
|
1240
1262
|
- spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb
|
1241
1263
|
- spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb
|
1242
1264
|
- spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb
|
@@ -1272,6 +1294,10 @@ test_files:
|
|
1272
1294
|
- spec/integration/preview/sync/service/sync_map_spec.rb
|
1273
1295
|
- spec/integration/preview/sync/service_spec.rb
|
1274
1296
|
- spec/integration/preview/trusted_comms/branded_call_spec.rb
|
1297
|
+
- spec/integration/preview/trusted_comms/brands_information_spec.rb
|
1298
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb
|
1299
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb
|
1300
|
+
- spec/integration/preview/trusted_comms/business/brand_spec.rb
|
1275
1301
|
- spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb
|
1276
1302
|
- spec/integration/preview/trusted_comms/business/insights_spec.rb
|
1277
1303
|
- spec/integration/preview/trusted_comms/business_spec.rb
|
@@ -1343,6 +1369,9 @@ test_files:
|
|
1343
1369
|
- spec/integration/studio/v2/flow_validate_spec.rb
|
1344
1370
|
- spec/integration/supersim/v1/command_spec.rb
|
1345
1371
|
- spec/integration/supersim/v1/fleet_spec.rb
|
1372
|
+
- spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb
|
1373
|
+
- spec/integration/supersim/v1/network_access_profile_spec.rb
|
1374
|
+
- spec/integration/supersim/v1/network_spec.rb
|
1346
1375
|
- spec/integration/supersim/v1/sim_spec.rb
|
1347
1376
|
- spec/integration/supersim/v1/usage_record_spec.rb
|
1348
1377
|
- spec/integration/sync/v1/service/document/document_permission_spec.rb
|
@@ -1386,11 +1415,17 @@ test_files:
|
|
1386
1415
|
- spec/integration/trunking/v1/trunk/origination_url_spec.rb
|
1387
1416
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
1388
1417
|
- spec/integration/trunking/v1/trunk_spec.rb
|
1418
|
+
- spec/integration/verify/v2/form_spec.rb
|
1419
|
+
- spec/integration/verify/v2/service/entity/access_token_spec.rb
|
1420
|
+
- spec/integration/verify/v2/service/entity/factor/challenge_spec.rb
|
1421
|
+
- spec/integration/verify/v2/service/entity/factor_spec.rb
|
1422
|
+
- spec/integration/verify/v2/service/entity_spec.rb
|
1389
1423
|
- spec/integration/verify/v2/service/messaging_configuration_spec.rb
|
1390
1424
|
- spec/integration/verify/v2/service/rate_limit/bucket_spec.rb
|
1391
1425
|
- spec/integration/verify/v2/service/rate_limit_spec.rb
|
1392
1426
|
- spec/integration/verify/v2/service/verification_check_spec.rb
|
1393
1427
|
- spec/integration/verify/v2/service/verification_spec.rb
|
1428
|
+
- spec/integration/verify/v2/service/webhook_spec.rb
|
1394
1429
|
- spec/integration/verify/v2/service_spec.rb
|
1395
1430
|
- spec/integration/video/v1/composition_hook_spec.rb
|
1396
1431
|
- spec/integration/video/v1/composition_settings_spec.rb
|
@@ -1403,11 +1438,16 @@ test_files:
|
|
1403
1438
|
- spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb
|
1404
1439
|
- spec/integration/video/v1/room/room_participant_spec.rb
|
1405
1440
|
- spec/integration/video/v1/room_spec.rb
|
1441
|
+
- spec/integration/voice/v1/byoc_trunk_spec.rb
|
1442
|
+
- spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb
|
1443
|
+
- spec/integration/voice/v1/connection_policy_spec.rb
|
1406
1444
|
- spec/integration/voice/v1/dialing_permissions/bulk_country_update_spec.rb
|
1407
1445
|
- spec/integration/voice/v1/dialing_permissions/country/highrisk_special_prefix_spec.rb
|
1408
1446
|
- spec/integration/voice/v1/dialing_permissions/country_spec.rb
|
1409
1447
|
- spec/integration/voice/v1/dialing_permissions/settings_spec.rb
|
1410
1448
|
- spec/integration/voice/v1/dialing_permissions_spec.rb
|
1449
|
+
- spec/integration/voice/v1/ip_record_spec.rb
|
1450
|
+
- spec/integration/voice/v1/source_ip_mapping_spec.rb
|
1411
1451
|
- spec/integration/wireless/v1/command_spec.rb
|
1412
1452
|
- spec/integration/wireless/v1/rate_plan_spec.rb
|
1413
1453
|
- spec/integration/wireless/v1/sim/data_session_spec.rb
|
@@ -1,55 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# \ / _ _ _| _ _
|
4
|
-
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
6
|
-
#
|
7
|
-
# frozen_string_literal: true
|
8
|
-
|
9
|
-
module Twilio
|
10
|
-
module REST
|
11
|
-
class Authy < Domain
|
12
|
-
##
|
13
|
-
# Initialize the Authy Domain
|
14
|
-
def initialize(twilio)
|
15
|
-
super
|
16
|
-
|
17
|
-
@base_url = 'https://authy.twilio.com'
|
18
|
-
@host = 'authy.twilio.com'
|
19
|
-
@port = 443
|
20
|
-
|
21
|
-
# Versions
|
22
|
-
@v1 = nil
|
23
|
-
end
|
24
|
-
|
25
|
-
##
|
26
|
-
# Version v1 of authy
|
27
|
-
def v1
|
28
|
-
@v1 ||= V1.new self
|
29
|
-
end
|
30
|
-
|
31
|
-
##
|
32
|
-
# @param [form.FormTypes] form_type The Type of this Form. One of `form-app-push`,
|
33
|
-
# `form-sms` or `form-totp`.
|
34
|
-
# @return [Twilio::REST::Authy::V1::FormInstance] if form_type was passed.
|
35
|
-
# @return [Twilio::REST::Authy::V1::FormList]
|
36
|
-
def forms(form_type=:unset)
|
37
|
-
self.v1.forms(form_type)
|
38
|
-
end
|
39
|
-
|
40
|
-
##
|
41
|
-
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
42
|
-
# @return [Twilio::REST::Authy::V1::ServiceInstance] if sid was passed.
|
43
|
-
# @return [Twilio::REST::Authy::V1::ServiceList]
|
44
|
-
def services(sid=:unset)
|
45
|
-
self.v1.services(sid)
|
46
|
-
end
|
47
|
-
|
48
|
-
##
|
49
|
-
# Provide a user friendly representation
|
50
|
-
def to_s
|
51
|
-
'#<Twilio::REST::Authy>'
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# \ / _ _ _| _ _
|
4
|
-
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
6
|
-
#
|
7
|
-
# frozen_string_literal: true
|
8
|
-
|
9
|
-
module Twilio
|
10
|
-
module REST
|
11
|
-
class Authy
|
12
|
-
class V1 < Version
|
13
|
-
##
|
14
|
-
# Initialize the V1 version of Authy
|
15
|
-
def initialize(domain)
|
16
|
-
super
|
17
|
-
@version = 'v1'
|
18
|
-
@forms = nil
|
19
|
-
@services = nil
|
20
|
-
end
|
21
|
-
|
22
|
-
##
|
23
|
-
# @param [form.FormTypes] form_type The Type of this Form. One of `form-app-push`,
|
24
|
-
# `form-sms` or `form-totp`.
|
25
|
-
# @return [Twilio::REST::Authy::V1::FormContext] if form_type was passed.
|
26
|
-
# @return [Twilio::REST::Authy::V1::FormList]
|
27
|
-
def forms(form_type=:unset)
|
28
|
-
if form_type.nil?
|
29
|
-
raise ArgumentError, 'form_type cannot be nil'
|
30
|
-
elsif form_type == :unset
|
31
|
-
@forms ||= FormList.new self
|
32
|
-
else
|
33
|
-
FormContext.new(self, form_type)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
##
|
38
|
-
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
39
|
-
# @return [Twilio::REST::Authy::V1::ServiceContext] if sid was passed.
|
40
|
-
# @return [Twilio::REST::Authy::V1::ServiceList]
|
41
|
-
def services(sid=:unset)
|
42
|
-
if sid.nil?
|
43
|
-
raise ArgumentError, 'sid cannot be nil'
|
44
|
-
elsif sid == :unset
|
45
|
-
@services ||= ServiceList.new self
|
46
|
-
else
|
47
|
-
ServiceContext.new(self, sid)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
##
|
52
|
-
# Provide a user friendly representation
|
53
|
-
def to_s
|
54
|
-
'<Twilio::REST::Authy::V1>'
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
@@ -1,201 +0,0 @@
|
|
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 'Entity' do
|
12
|
-
it "can create" do
|
13
|
-
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
-
|
15
|
-
expect {
|
16
|
-
@client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
-
.entities.create(identity: 'identity')
|
18
|
-
}.to raise_exception(Twilio::REST::TwilioError)
|
19
|
-
|
20
|
-
values = {'Identity' => 'identity', }
|
21
|
-
expect(
|
22
|
-
@holodeck.has_request?(Holodeck::Request.new(
|
23
|
-
method: 'post',
|
24
|
-
url: 'https://authy.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities',
|
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
|
-
"sid": "YEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
-
"identity": "ff483d1ff591898a9942916050d2ca3f",
|
36
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
37
|
-
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
38
|
-
"date_created": "2015-07-30T20:00:00Z",
|
39
|
-
"date_updated": "2015-07-30T20:00:00Z",
|
40
|
-
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f",
|
41
|
-
"links": {
|
42
|
-
"factors": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors"
|
43
|
-
}
|
44
|
-
}
|
45
|
-
]
|
46
|
-
))
|
47
|
-
|
48
|
-
actual = @client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
49
|
-
.entities.create(identity: 'identity')
|
50
|
-
|
51
|
-
expect(actual).to_not eq(nil)
|
52
|
-
end
|
53
|
-
|
54
|
-
it "can delete" do
|
55
|
-
@holodeck.mock(Twilio::Response.new(500, ''))
|
56
|
-
|
57
|
-
expect {
|
58
|
-
@client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
59
|
-
.entities('identity').delete()
|
60
|
-
}.to raise_exception(Twilio::REST::TwilioError)
|
61
|
-
|
62
|
-
values = {}
|
63
|
-
expect(
|
64
|
-
@holodeck.has_request?(Holodeck::Request.new(
|
65
|
-
method: 'delete',
|
66
|
-
url: 'https://authy.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/identity',
|
67
|
-
))).to eq(true)
|
68
|
-
end
|
69
|
-
|
70
|
-
it "receives delete responses" do
|
71
|
-
@holodeck.mock(Twilio::Response.new(
|
72
|
-
204,
|
73
|
-
nil,
|
74
|
-
))
|
75
|
-
|
76
|
-
actual = @client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
77
|
-
.entities('identity').delete()
|
78
|
-
|
79
|
-
expect(actual).to eq(true)
|
80
|
-
end
|
81
|
-
|
82
|
-
it "can fetch" do
|
83
|
-
@holodeck.mock(Twilio::Response.new(500, ''))
|
84
|
-
|
85
|
-
expect {
|
86
|
-
@client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
87
|
-
.entities('identity').fetch()
|
88
|
-
}.to raise_exception(Twilio::REST::TwilioError)
|
89
|
-
|
90
|
-
values = {}
|
91
|
-
expect(
|
92
|
-
@holodeck.has_request?(Holodeck::Request.new(
|
93
|
-
method: 'get',
|
94
|
-
url: 'https://authy.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/identity',
|
95
|
-
))).to eq(true)
|
96
|
-
end
|
97
|
-
|
98
|
-
it "receives fetch responses" do
|
99
|
-
@holodeck.mock(Twilio::Response.new(
|
100
|
-
200,
|
101
|
-
%q[
|
102
|
-
{
|
103
|
-
"sid": "YEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
104
|
-
"identity": "ff483d1ff591898a9942916050d2ca3f",
|
105
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
106
|
-
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
107
|
-
"date_created": "2015-07-30T20:00:00Z",
|
108
|
-
"date_updated": "2015-07-30T20:00:00Z",
|
109
|
-
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f",
|
110
|
-
"links": {
|
111
|
-
"factors": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors"
|
112
|
-
}
|
113
|
-
}
|
114
|
-
]
|
115
|
-
))
|
116
|
-
|
117
|
-
actual = @client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
118
|
-
.entities('identity').fetch()
|
119
|
-
|
120
|
-
expect(actual).to_not eq(nil)
|
121
|
-
end
|
122
|
-
|
123
|
-
it "can read" do
|
124
|
-
@holodeck.mock(Twilio::Response.new(500, ''))
|
125
|
-
|
126
|
-
expect {
|
127
|
-
@client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
128
|
-
.entities.list()
|
129
|
-
}.to raise_exception(Twilio::REST::TwilioError)
|
130
|
-
|
131
|
-
values = {}
|
132
|
-
expect(
|
133
|
-
@holodeck.has_request?(Holodeck::Request.new(
|
134
|
-
method: 'get',
|
135
|
-
url: 'https://authy.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities',
|
136
|
-
))).to eq(true)
|
137
|
-
end
|
138
|
-
|
139
|
-
it "receives read_empty responses" do
|
140
|
-
@holodeck.mock(Twilio::Response.new(
|
141
|
-
200,
|
142
|
-
%q[
|
143
|
-
{
|
144
|
-
"entities": [],
|
145
|
-
"meta": {
|
146
|
-
"page": 0,
|
147
|
-
"page_size": 50,
|
148
|
-
"first_page_url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities?PageSize=50&Page=0",
|
149
|
-
"previous_page_url": null,
|
150
|
-
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities?PageSize=50&Page=0",
|
151
|
-
"next_page_url": null,
|
152
|
-
"key": "entities"
|
153
|
-
}
|
154
|
-
}
|
155
|
-
]
|
156
|
-
))
|
157
|
-
|
158
|
-
actual = @client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
159
|
-
.entities.list()
|
160
|
-
|
161
|
-
expect(actual).to_not eq(nil)
|
162
|
-
end
|
163
|
-
|
164
|
-
it "receives read_full responses" do
|
165
|
-
@holodeck.mock(Twilio::Response.new(
|
166
|
-
200,
|
167
|
-
%q[
|
168
|
-
{
|
169
|
-
"entities": [
|
170
|
-
{
|
171
|
-
"sid": "YEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
172
|
-
"identity": "ff483d1ff591898a9942916050d2ca3f",
|
173
|
-
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
174
|
-
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
175
|
-
"date_created": "2015-07-30T20:00:00Z",
|
176
|
-
"date_updated": "2015-07-30T20:00:00Z",
|
177
|
-
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f",
|
178
|
-
"links": {
|
179
|
-
"factors": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors"
|
180
|
-
}
|
181
|
-
}
|
182
|
-
],
|
183
|
-
"meta": {
|
184
|
-
"page": 0,
|
185
|
-
"page_size": 50,
|
186
|
-
"first_page_url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities?PageSize=50&Page=0",
|
187
|
-
"previous_page_url": null,
|
188
|
-
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities?PageSize=50&Page=0",
|
189
|
-
"next_page_url": null,
|
190
|
-
"key": "entities"
|
191
|
-
}
|
192
|
-
}
|
193
|
-
]
|
194
|
-
))
|
195
|
-
|
196
|
-
actual = @client.authy.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
197
|
-
.entities.list()
|
198
|
-
|
199
|
-
expect(actual).to_not eq(nil)
|
200
|
-
end
|
201
|
-
end
|