twilio-ruby 5.35.0 → 5.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +28 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +87 -87
  5. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +14 -0
  6. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +71 -71
  7. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +29 -29
  8. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -4
  9. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -1
  10. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
  11. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +6 -3
  12. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +26 -0
  13. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +239 -0
  14. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +266 -0
  15. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +197 -0
  16. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +7 -0
  17. data/lib/twilio-ruby/rest/supersim.rb +11 -1
  18. data/lib/twilio-ruby/rest/supersim/v1.rb +16 -1
  19. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +10 -1
  20. data/lib/twilio-ruby/rest/supersim/v1/network.rb +315 -0
  21. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +53 -12
  22. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +352 -0
  23. data/lib/twilio-ruby/rest/verify.rb +9 -0
  24. data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
  25. data/lib/twilio-ruby/rest/verify/v2/form.rb +197 -0
  26. data/lib/twilio-ruby/rest/verify/v2/service.rb +26 -0
  27. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +379 -0
  28. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +500 -0
  29. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor/challenge.rb +494 -0
  30. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -4
  31. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -4
  32. data/lib/twilio-ruby/version.rb +1 -1
  33. data/spec/integration/api/v2010/account/call_spec.rb +5 -5
  34. data/spec/integration/api/v2010/account/conference_spec.rb +42 -14
  35. data/spec/integration/conversations/v1/conversation/participant_spec.rb +7 -0
  36. data/spec/integration/flex_api/v1/configuration_spec.rb +3 -0
  37. data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
  38. data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +52 -0
  39. data/spec/integration/preview/trusted_comms/business/brand_spec.rb +49 -0
  40. data/spec/integration/preview/trusted_comms/business_spec.rb +1 -0
  41. data/spec/integration/serverless/v1/service/environment/log_spec.rb +1 -0
  42. data/spec/integration/supersim/v1/fleet_spec.rb +4 -0
  43. data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +179 -0
  44. data/spec/integration/supersim/v1/network_access_profile_spec.rb +20 -5
  45. data/spec/integration/supersim/v1/network_spec.rb +139 -0
  46. data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +13 -13
  47. data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -23
  48. data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -28
  49. data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -17
  50. data/spec/integration/trunking/v1/trunk_spec.rb +33 -33
  51. data/spec/integration/verify/v2/form_spec.rb +48 -0
  52. data/spec/integration/verify/v2/service/entity/factor/challenge_spec.rb +353 -0
  53. data/spec/integration/verify/v2/service/entity/factor_spec.rb +298 -0
  54. data/spec/integration/verify/v2/service/entity_spec.rb +201 -0
  55. data/spec/integration/verify/v2/service_spec.rb +24 -4
  56. metadata +29 -2
@@ -33,6 +33,7 @@ describe 'Business' do
33
33
  "sid": "BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
34
34
  "url": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
35
35
  "links": {
36
+ "brands": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Brands",
36
37
  "insights": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Insights"
37
38
  }
38
39
  }
@@ -78,6 +78,7 @@ describe 'Log' do
78
78
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
79
79
  "service_sid": "ZS00000000000000000000000000000000",
80
80
  "environment_sid": "ZE00000000000000000000000000000000",
81
+ "build_sid": "ZB00000000000000000000000000000000",
81
82
  "deployment_sid": "ZD00000000000000000000000000000000",
82
83
  "function_sid": "ZH00000000000000000000000000000000",
83
84
  "request_sid": "RQ00000000000000000000000000000000",
@@ -32,6 +32,7 @@ describe 'Fleet' do
32
32
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
33
33
  "unique_name": "unique_name",
34
34
  "data_enabled": true,
35
+ "data_limit": 1000,
35
36
  "data_metering": "payg",
36
37
  "date_created": "2019-07-30T20:00:00Z",
37
38
  "date_updated": "2019-07-30T20:00:00Z",
@@ -73,6 +74,7 @@ describe 'Fleet' do
73
74
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
74
75
  "unique_name": "unique_name",
75
76
  "data_enabled": true,
77
+ "data_limit": 1000,
76
78
  "data_metering": "payg",
77
79
  "date_created": "2019-07-30T20:00:00Z",
78
80
  "date_updated": "2019-07-30T20:00:00Z",
@@ -149,6 +151,7 @@ describe 'Fleet' do
149
151
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
150
152
  "unique_name": "Pilot Fleet",
151
153
  "data_enabled": true,
154
+ "data_limit": 1000,
152
155
  "data_metering": "payg",
153
156
  "date_created": "2019-10-15T20:00:00Z",
154
157
  "date_updated": "2019-10-15T20:00:00Z",
@@ -192,6 +195,7 @@ describe 'Fleet' do
192
195
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
193
196
  "unique_name": "unique_name",
194
197
  "data_enabled": true,
198
+ "data_limit": 1000,
195
199
  "data_metering": "payg",
196
200
  "date_created": "2019-10-15T20:00:00Z",
197
201
  "date_updated": "2019-10-15T20:00:00Z",
@@ -0,0 +1,179 @@
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 'NetworkAccessProfileNetwork' do
12
+ it "can read" do
13
+ @holodeck.mock(Twilio::Response.new(500, ''))
14
+
15
+ expect {
16
+ @client.supersim.v1.network_access_profiles('HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
17
+ .networks.list()
18
+ }.to raise_exception(Twilio::REST::TwilioError)
19
+
20
+ values = {}
21
+ expect(
22
+ @holodeck.has_request?(Holodeck::Request.new(
23
+ method: 'get',
24
+ url: 'https://supersim.twilio.com/v1/NetworkAccessProfiles/HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Networks',
25
+ ))).to eq(true)
26
+ end
27
+
28
+ it "receives read_full responses" do
29
+ @holodeck.mock(Twilio::Response.new(
30
+ 200,
31
+ %q[
32
+ {
33
+ "meta": {
34
+ "first_page_url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks?PageSize=50&Page=0",
35
+ "key": "networks",
36
+ "next_page_url": null,
37
+ "page": 0,
38
+ "page_size": 50,
39
+ "previous_page_url": null,
40
+ "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks?PageSize=50&Page=0"
41
+ },
42
+ "networks": [
43
+ {
44
+ "sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
45
+ "network_access_profile_sid": "HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
46
+ "friendly_name": "AT&T",
47
+ "iso_country": "us",
48
+ "identifiers": [
49
+ {
50
+ "mcc": "310",
51
+ "mnc": "410"
52
+ }
53
+ ],
54
+ "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
55
+ }
56
+ ]
57
+ }
58
+ ]
59
+ ))
60
+
61
+ actual = @client.supersim.v1.network_access_profiles('HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
62
+ .networks.list()
63
+
64
+ expect(actual).to_not eq(nil)
65
+ end
66
+
67
+ it "can create" do
68
+ @holodeck.mock(Twilio::Response.new(500, ''))
69
+
70
+ expect {
71
+ @client.supersim.v1.network_access_profiles('HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
72
+ .networks.create(network: 'HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
73
+ }.to raise_exception(Twilio::REST::TwilioError)
74
+
75
+ values = {'Network' => 'HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', }
76
+ expect(
77
+ @holodeck.has_request?(Holodeck::Request.new(
78
+ method: 'post',
79
+ url: 'https://supersim.twilio.com/v1/NetworkAccessProfiles/HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Networks',
80
+ data: values,
81
+ ))).to eq(true)
82
+ end
83
+
84
+ it "receives create responses" do
85
+ @holodeck.mock(Twilio::Response.new(
86
+ 201,
87
+ %q[
88
+ {
89
+ "sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
90
+ "network_access_profile_sid": "HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
91
+ "friendly_name": "AT&T",
92
+ "iso_country": "us",
93
+ "identifiers": [
94
+ {
95
+ "mcc": "310",
96
+ "mnc": "410"
97
+ }
98
+ ],
99
+ "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
100
+ }
101
+ ]
102
+ ))
103
+
104
+ actual = @client.supersim.v1.network_access_profiles('HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
105
+ .networks.create(network: 'HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
106
+
107
+ expect(actual).to_not eq(nil)
108
+ end
109
+
110
+ it "can delete" do
111
+ @holodeck.mock(Twilio::Response.new(500, ''))
112
+
113
+ expect {
114
+ @client.supersim.v1.network_access_profiles('HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
115
+ .networks('HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
116
+ }.to raise_exception(Twilio::REST::TwilioError)
117
+
118
+ values = {}
119
+ expect(
120
+ @holodeck.has_request?(Holodeck::Request.new(
121
+ method: 'delete',
122
+ url: 'https://supersim.twilio.com/v1/NetworkAccessProfiles/HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Networks/HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
123
+ ))).to eq(true)
124
+ end
125
+
126
+ it "receives delete responses" do
127
+ @holodeck.mock(Twilio::Response.new(
128
+ 204,
129
+ nil,
130
+ ))
131
+
132
+ actual = @client.supersim.v1.network_access_profiles('HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
133
+ .networks('HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
134
+
135
+ expect(actual).to eq(true)
136
+ end
137
+
138
+ it "can fetch" do
139
+ @holodeck.mock(Twilio::Response.new(500, ''))
140
+
141
+ expect {
142
+ @client.supersim.v1.network_access_profiles('HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
143
+ .networks('HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
144
+ }.to raise_exception(Twilio::REST::TwilioError)
145
+
146
+ values = {}
147
+ expect(
148
+ @holodeck.has_request?(Holodeck::Request.new(
149
+ method: 'get',
150
+ url: 'https://supersim.twilio.com/v1/NetworkAccessProfiles/HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Networks/HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
151
+ ))).to eq(true)
152
+ end
153
+
154
+ it "receives fetch responses" do
155
+ @holodeck.mock(Twilio::Response.new(
156
+ 200,
157
+ %q[
158
+ {
159
+ "sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
160
+ "network_access_profile_sid": "HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
161
+ "friendly_name": "AT&T",
162
+ "iso_country": "us",
163
+ "identifiers": [
164
+ {
165
+ "mcc": "310",
166
+ "mnc": "410"
167
+ }
168
+ ],
169
+ "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
170
+ }
171
+ ]
172
+ ))
173
+
174
+ actual = @client.supersim.v1.network_access_profiles('HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
175
+ .networks('HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
176
+
177
+ expect(actual).to_not eq(nil)
178
+ end
179
+ end
@@ -34,7 +34,10 @@ describe 'NetworkAccessProfile' do
34
34
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
35
35
  "date_created": "2020-05-01T20:00:00Z",
36
36
  "date_updated": "2020-05-01T20:00:00Z",
37
- "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
37
+ "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
38
+ "links": {
39
+ "networks": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks"
40
+ }
38
41
  }
39
42
  ]
40
43
  ))
@@ -54,7 +57,10 @@ describe 'NetworkAccessProfile' do
54
57
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
55
58
  "date_created": "2020-05-01T20:00:00Z",
56
59
  "date_updated": "2020-05-01T20:00:00Z",
57
- "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
60
+ "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
61
+ "links": {
62
+ "networks": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks"
63
+ }
58
64
  }
59
65
  ]
60
66
  ))
@@ -89,7 +95,10 @@ describe 'NetworkAccessProfile' do
89
95
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
90
96
  "date_created": "2020-05-01T20:00:00Z",
91
97
  "date_updated": "2020-05-01T20:00:00Z",
92
- "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
98
+ "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
99
+ "links": {
100
+ "networks": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks"
101
+ }
93
102
  }
94
103
  ]
95
104
  ))
@@ -124,7 +133,10 @@ describe 'NetworkAccessProfile' do
124
133
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
125
134
  "date_created": "2020-05-01T20:00:00Z",
126
135
  "date_updated": "2020-05-01T20:00:00Z",
127
- "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
136
+ "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
137
+ "links": {
138
+ "networks": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks"
139
+ }
128
140
  }
129
141
  ]
130
142
  ))
@@ -194,7 +206,10 @@ describe 'NetworkAccessProfile' do
194
206
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
195
207
  "date_created": "2020-05-01T20:00:00Z",
196
208
  "date_updated": "2020-05-01T20:00:00Z",
197
- "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
209
+ "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
210
+ "links": {
211
+ "networks": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks"
212
+ }
198
213
  }
199
214
  ]
200
215
  }
@@ -0,0 +1,139 @@
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 'Network' do
12
+ it "can fetch" do
13
+ @holodeck.mock(Twilio::Response.new(500, ''))
14
+
15
+ expect {
16
+ @client.supersim.v1.networks('HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
17
+ }.to raise_exception(Twilio::REST::TwilioError)
18
+
19
+ values = {}
20
+ expect(
21
+ @holodeck.has_request?(Holodeck::Request.new(
22
+ method: 'get',
23
+ url: 'https://supersim.twilio.com/v1/Networks/HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
24
+ ))).to eq(true)
25
+ end
26
+
27
+ it "receives fetch responses" do
28
+ @holodeck.mock(Twilio::Response.new(
29
+ 200,
30
+ %q[
31
+ {
32
+ "friendly_name": "AT&T",
33
+ "iso_country": "US",
34
+ "identifiers": [
35
+ {
36
+ "mcc": "310",
37
+ "mnc": "410"
38
+ }
39
+ ],
40
+ "sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
41
+ "url": "https://supersim.twilio.com/v1/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
42
+ }
43
+ ]
44
+ ))
45
+
46
+ actual = @client.supersim.v1.networks('HWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
47
+
48
+ expect(actual).to_not eq(nil)
49
+ end
50
+
51
+ it "can read" do
52
+ @holodeck.mock(Twilio::Response.new(500, ''))
53
+
54
+ expect {
55
+ @client.supersim.v1.networks.list()
56
+ }.to raise_exception(Twilio::REST::TwilioError)
57
+
58
+ values = {}
59
+ expect(
60
+ @holodeck.has_request?(Holodeck::Request.new(
61
+ method: 'get',
62
+ url: 'https://supersim.twilio.com/v1/Networks',
63
+ ))).to eq(true)
64
+ end
65
+
66
+ it "receives read responses" do
67
+ @holodeck.mock(Twilio::Response.new(
68
+ 200,
69
+ %q[
70
+ {
71
+ "meta": {
72
+ "first_page_url": "https://supersim.twilio.com/v1/Networks?PageSize=50&Page=0",
73
+ "key": "networks",
74
+ "next_page_url": null,
75
+ "page": 0,
76
+ "page_size": 50,
77
+ "previous_page_url": null,
78
+ "url": "https://supersim.twilio.com/v1/Networks?PageSize=50&Page=0"
79
+ },
80
+ "networks": [
81
+ {
82
+ "friendly_name": "AT&T",
83
+ "iso_country": "US",
84
+ "identifiers": [
85
+ {
86
+ "mcc": "310",
87
+ "mnc": "410"
88
+ }
89
+ ],
90
+ "sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
91
+ "url": "https://supersim.twilio.com/v1/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
92
+ }
93
+ ]
94
+ }
95
+ ]
96
+ ))
97
+
98
+ actual = @client.supersim.v1.networks.list()
99
+
100
+ expect(actual).to_not eq(nil)
101
+ end
102
+
103
+ it "receives read_with_filters responses" do
104
+ @holodeck.mock(Twilio::Response.new(
105
+ 200,
106
+ %q[
107
+ {
108
+ "meta": {
109
+ "first_page_url": "https://supersim.twilio.com/v1/Networks?IsoCountry=US&Mnc=410&Mcc=310&PageSize=50&Page=0",
110
+ "key": "networks",
111
+ "next_page_url": null,
112
+ "page": 0,
113
+ "page_size": 50,
114
+ "previous_page_url": null,
115
+ "url": "https://supersim.twilio.com/v1/Networks?IsoCountry=US&Mnc=410&Mcc=310&PageSize=50&Page=0"
116
+ },
117
+ "networks": [
118
+ {
119
+ "friendly_name": "AT&T",
120
+ "iso_country": "US",
121
+ "identifiers": [
122
+ {
123
+ "mcc": "310",
124
+ "mnc": "410"
125
+ }
126
+ ],
127
+ "sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
128
+ "url": "https://supersim.twilio.com/v1/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
129
+ }
130
+ ]
131
+ }
132
+ ]
133
+ ))
134
+
135
+ actual = @client.supersim.v1.networks.list()
136
+
137
+ expect(actual).to_not eq(nil)
138
+ end
139
+ end
@@ -13,7 +13,7 @@ describe 'CredentialList' do
13
13
  @holodeck.mock(Twilio::Response.new(500, ''))
14
14
 
15
15
  expect {
16
- @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
16
+ @client.trunking.v1.trunks('TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
17
17
  .credentials_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
18
18
  }.to raise_exception(Twilio::REST::TwilioError)
19
19
 
@@ -21,7 +21,7 @@ describe 'CredentialList' do
21
21
  expect(
22
22
  @holodeck.has_request?(Holodeck::Request.new(
23
23
  method: 'get',
24
- url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
24
+ url: 'https://trunking.twilio.com/v1/Trunks/TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
25
25
  ))).to eq(true)
26
26
  end
27
27
 
@@ -41,7 +41,7 @@ describe 'CredentialList' do
41
41
  ]
42
42
  ))
43
43
 
44
- actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
44
+ actual = @client.trunking.v1.trunks('TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
45
45
  .credentials_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
46
46
 
47
47
  expect(actual).to_not eq(nil)
@@ -51,7 +51,7 @@ describe 'CredentialList' do
51
51
  @holodeck.mock(Twilio::Response.new(500, ''))
52
52
 
53
53
  expect {
54
- @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
54
+ @client.trunking.v1.trunks('TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
55
55
  .credentials_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
56
56
  }.to raise_exception(Twilio::REST::TwilioError)
57
57
 
@@ -59,7 +59,7 @@ describe 'CredentialList' do
59
59
  expect(
60
60
  @holodeck.has_request?(Holodeck::Request.new(
61
61
  method: 'delete',
62
- url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
62
+ url: 'https://trunking.twilio.com/v1/Trunks/TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
63
63
  ))).to eq(true)
64
64
  end
65
65
 
@@ -69,7 +69,7 @@ describe 'CredentialList' do
69
69
  nil,
70
70
  ))
71
71
 
72
- actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
72
+ actual = @client.trunking.v1.trunks('TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
73
73
  .credentials_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
74
74
 
75
75
  expect(actual).to eq(true)
@@ -79,7 +79,7 @@ describe 'CredentialList' do
79
79
  @holodeck.mock(Twilio::Response.new(500, ''))
80
80
 
81
81
  expect {
82
- @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
82
+ @client.trunking.v1.trunks('TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
83
83
  .credentials_lists.create(credential_list_sid: 'CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
84
84
  }.to raise_exception(Twilio::REST::TwilioError)
85
85
 
@@ -87,7 +87,7 @@ describe 'CredentialList' do
87
87
  expect(
88
88
  @holodeck.has_request?(Holodeck::Request.new(
89
89
  method: 'post',
90
- url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/CredentialLists',
90
+ url: 'https://trunking.twilio.com/v1/Trunks/TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/CredentialLists',
91
91
  data: values,
92
92
  ))).to eq(true)
93
93
  end
@@ -108,7 +108,7 @@ describe 'CredentialList' do
108
108
  ]
109
109
  ))
110
110
 
111
- actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
111
+ actual = @client.trunking.v1.trunks('TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
112
112
  .credentials_lists.create(credential_list_sid: 'CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
113
113
 
114
114
  expect(actual).to_not eq(nil)
@@ -118,7 +118,7 @@ describe 'CredentialList' do
118
118
  @holodeck.mock(Twilio::Response.new(500, ''))
119
119
 
120
120
  expect {
121
- @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
121
+ @client.trunking.v1.trunks('TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
122
122
  .credentials_lists.list()
123
123
  }.to raise_exception(Twilio::REST::TwilioError)
124
124
 
@@ -126,7 +126,7 @@ describe 'CredentialList' do
126
126
  expect(
127
127
  @holodeck.has_request?(Holodeck::Request.new(
128
128
  method: 'get',
129
- url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/CredentialLists',
129
+ url: 'https://trunking.twilio.com/v1/Trunks/TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/CredentialLists',
130
130
  ))).to eq(true)
131
131
  end
132
132
 
@@ -159,7 +159,7 @@ describe 'CredentialList' do
159
159
  ]
160
160
  ))
161
161
 
162
- actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
162
+ actual = @client.trunking.v1.trunks('TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
163
163
  .credentials_lists.list()
164
164
 
165
165
  expect(actual).to_not eq(nil)
@@ -184,7 +184,7 @@ describe 'CredentialList' do
184
184
  ]
185
185
  ))
186
186
 
187
- actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
187
+ actual = @client.trunking.v1.trunks('TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
188
188
  .credentials_lists.list()
189
189
 
190
190
  expect(actual).to_not eq(nil)