twilio-ruby 5.10.0 → 5.10.1

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +11 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +4 -2
  5. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +9 -3
  6. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +9 -3
  7. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +9 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +9 -3
  9. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +9 -3
  10. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +9 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +9 -3
  12. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +9 -3
  13. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +69 -29
  14. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +21 -17
  15. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +13 -9
  16. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +69 -29
  17. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +21 -17
  18. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +13 -9
  19. data/lib/twilio-ruby/rest/notify/v1/service/user.rb +21 -9
  20. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +4 -1
  21. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +13 -9
  22. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +28 -12
  23. data/lib/twilio-ruby/rest/video/v1/composition.rb +36 -28
  24. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +22 -17
  25. data/lib/twilio-ruby/rest/video/v1.rb +2 -1
  26. data/lib/twilio-ruby/rest/video.rb +2 -1
  27. data/lib/twilio-ruby/version.rb +1 -1
  28. data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +9 -9
  29. data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +15 -15
  30. data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +15 -15
  31. data/spec/integration/trunking/v1/trunk_spec.rb +32 -28
  32. metadata +2 -2
@@ -16,8 +16,9 @@ module Twilio
16
16
  ##
17
17
  # Initialize the PublishedTrackList
18
18
  # @param [Version] version Version that contains the resource
19
- # @param [String] room_sid The room_sid
20
- # @param [String] participant_sid The participant_sid
19
+ # @param [String] room_sid Unique Room identifier where this Track is published.
20
+ # @param [String] participant_sid Unique Participant identifier that publishes
21
+ # this Track.
21
22
  # @return [PublishedTrackList] PublishedTrackList
22
23
  def initialize(version, room_sid: nil, participant_sid: nil)
23
24
  super(version)
@@ -154,9 +155,11 @@ module Twilio
154
155
  ##
155
156
  # Initialize the PublishedTrackContext
156
157
  # @param [Version] version Version that contains the resource
157
- # @param [String] room_sid The room_sid
158
- # @param [String] participant_sid The participant_sid
159
- # @param [String] sid The sid
158
+ # @param [String] room_sid Unique Room identifier where this Track is published.
159
+ # @param [String] participant_sid Unique Participant identifier that publishes
160
+ # this Track.
161
+ # @param [String] sid A 34 character string that uniquely identifies this
162
+ # resource.
160
163
  # @return [PublishedTrackContext] PublishedTrackContext
161
164
  def initialize(version, room_sid, participant_sid, sid)
162
165
  super(version)
@@ -200,9 +203,11 @@ module Twilio
200
203
  # Initialize the PublishedTrackInstance
201
204
  # @param [Version] version Version that contains the resource
202
205
  # @param [Hash] payload payload that contains response from Twilio
203
- # @param [String] room_sid The room_sid
204
- # @param [String] participant_sid The participant_sid
205
- # @param [String] sid The sid
206
+ # @param [String] room_sid Unique Room identifier where this Track is published.
207
+ # @param [String] participant_sid Unique Participant identifier that publishes
208
+ # this Track.
209
+ # @param [String] sid A 34 character string that uniquely identifies this
210
+ # resource.
206
211
  # @return [PublishedTrackInstance] PublishedTrackInstance
207
212
  def initialize(version, payload, room_sid: nil, participant_sid: nil, sid: nil)
208
213
  super(version)
@@ -246,55 +251,55 @@ module Twilio
246
251
  end
247
252
 
248
253
  ##
249
- # @return [String] The sid
254
+ # @return [String] A 34 character string that uniquely identifies this resource.
250
255
  def sid
251
256
  @properties['sid']
252
257
  end
253
258
 
254
259
  ##
255
- # @return [String] The participant_sid
260
+ # @return [String] Unique Participant identifier that publishes this Track.
256
261
  def participant_sid
257
262
  @properties['participant_sid']
258
263
  end
259
264
 
260
265
  ##
261
- # @return [String] The room_sid
266
+ # @return [String] Unique Room identifier where this Track is published.
262
267
  def room_sid
263
268
  @properties['room_sid']
264
269
  end
265
270
 
266
271
  ##
267
- # @return [String] The name
272
+ # @return [String] Track name. Limited to 128 characters.
268
273
  def name
269
274
  @properties['name']
270
275
  end
271
276
 
272
277
  ##
273
- # @return [Time] The date_created
278
+ # @return [Time] The date that this resource was created.
274
279
  def date_created
275
280
  @properties['date_created']
276
281
  end
277
282
 
278
283
  ##
279
- # @return [Time] The date_updated
284
+ # @return [Time] The date that this resource was last updated.
280
285
  def date_updated
281
286
  @properties['date_updated']
282
287
  end
283
288
 
284
289
  ##
285
- # @return [Boolean] The enabled
290
+ # @return [Boolean] Specifies whether the Track is enabled or not.
286
291
  def enabled
287
292
  @properties['enabled']
288
293
  end
289
294
 
290
295
  ##
291
- # @return [published_track.Kind] The kind
296
+ # @return [published_track.Kind] Specifies whether Track represents `audio`, `video` or `data`
292
297
  def kind
293
298
  @properties['kind']
294
299
  end
295
300
 
296
301
  ##
297
- # @return [String] The url
302
+ # @return [String] The absolute URL for this resource.
298
303
  def url
299
304
  @properties['url']
300
305
  end
@@ -36,7 +36,8 @@ module Twilio
36
36
  end
37
37
 
38
38
  ##
39
- # @param [String] sid The sid
39
+ # @param [String] sid The Composition Sid that uniquely identifies the Composition
40
+ # to fetch.
40
41
  # @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
41
42
  # @return [Twilio::REST::Video::V1::CompositionList]
42
43
  def compositions(sid=:unset)
@@ -38,7 +38,8 @@ module Twilio
38
38
  end
39
39
 
40
40
  ##
41
- # @param [String] sid The sid
41
+ # @param [String] sid `CJxx…xx` A system-generated 34-character string that
42
+ # uniquely identifies this Composition.
42
43
  # @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
43
44
  # @return [Twilio::REST::Video::V1::CompositionList]
44
45
  def compositions(sid=:unset)
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.10.0'
2
+ VERSION = '5.10.1'
3
3
  end
@@ -32,9 +32,9 @@ describe 'CredentialList' do
32
32
  {
33
33
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
34
34
  "trunk_sid": "TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
35
- "date_created": "Wed, 11 Sep 2013 17:51:38 -0000",
36
- "date_updated": "Wed, 11 Sep 2013 17:51:38 -0000",
37
- "friendly_name": "Low Rises",
35
+ "date_created": "2018-04-28T00:10:23Z",
36
+ "date_updated": "2018-04-28T00:10:23Z",
37
+ "friendly_name": "friendly_name",
38
38
  "sid": "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
39
39
  "url": "https://trunking.twilio.com/v1/Trunks/TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
40
40
  }
@@ -99,9 +99,9 @@ describe 'CredentialList' do
99
99
  {
100
100
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
101
101
  "trunk_sid": "TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
102
- "date_created": "Wed, 11 Sep 2013 17:51:38 -0000",
103
- "date_updated": "Wed, 11 Sep 2013 17:51:38 -0000",
104
- "friendly_name": "Low Rises",
102
+ "date_created": "2018-05-02T17:29:30Z",
103
+ "date_updated": "2018-05-02T17:29:30Z",
104
+ "friendly_name": "friendly_name",
105
105
  "sid": "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
106
106
  "url": "https://trunking.twilio.com/v1/Trunks/TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
107
107
  }
@@ -139,9 +139,9 @@ describe 'CredentialList' do
139
139
  {
140
140
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
141
141
  "trunk_sid": "TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
142
- "date_created": "Wed, 11 Sep 2013 17:51:38 -0000",
143
- "date_updated": "Wed, 11 Sep 2013 17:51:38 -0000",
144
- "friendly_name": "Low Rises",
142
+ "date_created": "2018-04-27T22:02:11Z",
143
+ "date_updated": "2018-04-27T22:02:11Z",
144
+ "friendly_name": "friendly_name",
145
145
  "sid": "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
146
146
  "url": "https://trunking.twilio.com/v1/Trunks/TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
147
147
  }
@@ -31,12 +31,12 @@ describe 'IpAccessControlList' do
31
31
  %q[
32
32
  {
33
33
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
34
- "date_created": "2015-07-30T20:00:00Z",
35
- "date_updated": "2015-07-30T20:00:00Z",
34
+ "date_created": "2018-05-02T17:29:34Z",
35
+ "date_updated": "2018-05-02T17:29:34Z",
36
36
  "friendly_name": "friendly_name",
37
37
  "sid": "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
38
38
  "trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
39
- "url": "http://www.example.com"
39
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
40
40
  }
41
41
  ]
42
42
  ))
@@ -98,12 +98,12 @@ describe 'IpAccessControlList' do
98
98
  %q[
99
99
  {
100
100
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
101
- "date_created": "2015-07-30T20:00:00Z",
102
- "date_updated": "2015-07-30T20:00:00Z",
101
+ "date_created": "2018-04-30T20:59:06Z",
102
+ "date_updated": "2018-04-30T20:59:06Z",
103
103
  "friendly_name": "friendly_name",
104
104
  "sid": "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
105
105
  "trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
106
- "url": "http://www.example.com"
106
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
107
107
  }
108
108
  ]
109
109
  ))
@@ -137,13 +137,13 @@ describe 'IpAccessControlList' do
137
137
  {
138
138
  "ip_access_control_lists": [],
139
139
  "meta": {
140
- "first_page_url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists?Page=0&PageSize=50",
140
+ "first_page_url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists?PageSize=50&Page=0",
141
141
  "key": "ip_access_control_lists",
142
142
  "next_page_url": null,
143
143
  "page": 0,
144
- "page_size": 0,
144
+ "page_size": 50,
145
145
  "previous_page_url": null,
146
- "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists"
146
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists?PageSize=50&Page=0"
147
147
  }
148
148
  }
149
149
  ]
@@ -163,22 +163,22 @@ describe 'IpAccessControlList' do
163
163
  "ip_access_control_lists": [
164
164
  {
165
165
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
166
- "date_created": "2015-07-30T20:00:00Z",
167
- "date_updated": "2015-07-30T20:00:00Z",
166
+ "date_created": "2018-05-02T17:29:34Z",
167
+ "date_updated": "2018-05-02T17:29:34Z",
168
168
  "friendly_name": "friendly_name",
169
169
  "sid": "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
170
170
  "trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
171
- "url": "http://www.example.com"
171
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
172
172
  }
173
173
  ],
174
174
  "meta": {
175
- "first_page_url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists?Page=0&PageSize=50",
175
+ "first_page_url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists?PageSize=50&Page=0",
176
176
  "key": "ip_access_control_lists",
177
177
  "next_page_url": null,
178
178
  "page": 0,
179
- "page_size": 1,
179
+ "page_size": 50,
180
180
  "previous_page_url": null,
181
- "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists"
181
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists?PageSize=50&Page=0"
182
182
  }
183
183
  }
184
184
  ]
@@ -31,14 +31,14 @@ describe 'OriginationUrl' do
31
31
  %q[
32
32
  {
33
33
  "weight": 1,
34
- "date_updated": "2015-01-02T11:23:45Z",
35
- "enabled": true,
34
+ "date_updated": "2018-05-07T20:20:46Z",
35
+ "enabled": false,
36
36
  "friendly_name": "friendly_name",
37
37
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
38
38
  "priority": 1,
39
39
  "sip_url": "sip://sip-box.com:1234",
40
40
  "sid": "OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
41
- "date_created": "2015-01-02T11:23:45Z",
41
+ "date_created": "2018-05-07T20:20:46Z",
42
42
  "trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
43
43
  "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
44
44
  }
@@ -108,14 +108,14 @@ describe 'OriginationUrl' do
108
108
  %q[
109
109
  {
110
110
  "weight": 1,
111
- "date_updated": "2015-01-02T11:23:45Z",
111
+ "date_updated": "2018-05-07T20:50:58Z",
112
112
  "enabled": true,
113
113
  "friendly_name": "friendly_name",
114
114
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
115
115
  "priority": 1,
116
116
  "sip_url": "sip://sip-box.com:1234",
117
117
  "sid": "OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
118
- "date_created": "2015-01-02T11:23:45Z",
118
+ "date_created": "2018-05-07T20:50:58Z",
119
119
  "trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
120
120
  "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
121
121
  }
@@ -150,25 +150,25 @@ describe 'OriginationUrl' do
150
150
  %q[
151
151
  {
152
152
  "meta": {
153
- "first_page_url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls?PageSize=1&Page=0",
153
+ "first_page_url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls?PageSize=50&Page=0",
154
154
  "key": "origination_urls",
155
155
  "next_page_url": null,
156
156
  "page": 0,
157
- "page_size": 1,
157
+ "page_size": 50,
158
158
  "previous_page_url": null,
159
- "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls?PageSize=1&Page=0"
159
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls?PageSize=50&Page=0"
160
160
  },
161
161
  "origination_urls": [
162
162
  {
163
163
  "weight": 1,
164
- "date_updated": "2015-01-02T11:23:45Z",
164
+ "date_updated": "2018-05-09T20:47:35Z",
165
165
  "enabled": true,
166
166
  "friendly_name": "friendly_name",
167
167
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
168
168
  "priority": 1,
169
169
  "sip_url": "sip://sip-box.com:1234",
170
170
  "sid": "OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
171
- "date_created": "2015-01-02T11:23:45Z",
171
+ "date_created": "2018-05-09T20:47:35Z",
172
172
  "trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
173
173
  "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
174
174
  }
@@ -189,13 +189,13 @@ describe 'OriginationUrl' do
189
189
  %q[
190
190
  {
191
191
  "meta": {
192
- "first_page_url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls?PageSize=1&Page=0",
192
+ "first_page_url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls?PageSize=50&Page=0",
193
193
  "key": "origination_urls",
194
194
  "next_page_url": null,
195
195
  "page": 0,
196
- "page_size": 1,
196
+ "page_size": 50,
197
197
  "previous_page_url": null,
198
- "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls?PageSize=1&Page=0"
198
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls?PageSize=50&Page=0"
199
199
  },
200
200
  "origination_urls": []
201
201
  }
@@ -230,14 +230,14 @@ describe 'OriginationUrl' do
230
230
  %q[
231
231
  {
232
232
  "weight": 2,
233
- "date_updated": "2015-01-02T11:23:45Z",
233
+ "date_updated": "2018-05-07T20:50:58Z",
234
234
  "enabled": false,
235
235
  "friendly_name": "updated_name",
236
236
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
237
237
  "priority": 2,
238
238
  "sip_url": "sip://sip-updated.com:4321",
239
239
  "sid": "OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
240
- "date_created": "2015-01-02T11:23:45Z",
240
+ "date_created": "2018-05-07T20:50:58Z",
241
241
  "trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
242
242
  "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
243
243
  }
@@ -36,6 +36,7 @@ describe 'Trunk' do
36
36
  "disaster_recovery_url": "http://disaster-recovery.com",
37
37
  "friendly_name": "friendly_name",
38
38
  "secure": false,
39
+ "cnam_lookup_enabled": false,
39
40
  "recording": {
40
41
  "mode": "do-not-record",
41
42
  "trim": "do-not-trim"
@@ -44,12 +45,12 @@ describe 'Trunk' do
44
45
  "auth_type_set": [],
45
46
  "date_created": "2015-01-02T11:23:45Z",
46
47
  "date_updated": "2015-01-02T11:23:45Z",
47
- "url": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
48
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
48
49
  "links": {
49
- "origination_urls": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls",
50
- "credential_lists": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists",
51
- "ip_access_control_lists": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists",
52
- "phone_numbers": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers"
50
+ "origination_urls": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls",
51
+ "credential_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists",
52
+ "ip_access_control_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists",
53
+ "phone_numbers": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers"
53
54
  }
54
55
  }
55
56
  ]
@@ -113,6 +114,7 @@ describe 'Trunk' do
113
114
  "disaster_recovery_url": "http://disaster-recovery.com",
114
115
  "friendly_name": "friendly_name",
115
116
  "secure": false,
117
+ "cnam_lookup_enabled": false,
116
118
  "recording": {
117
119
  "mode": "do-not-record",
118
120
  "trim": "do-not-trim"
@@ -121,12 +123,12 @@ describe 'Trunk' do
121
123
  "auth_type_set": [],
122
124
  "date_created": "2015-01-02T11:23:45Z",
123
125
  "date_updated": "2015-01-02T11:23:45Z",
124
- "url": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
126
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
125
127
  "links": {
126
- "origination_urls": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls",
127
- "credential_lists": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists",
128
- "ip_access_control_lists": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists",
129
- "phone_numbers": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers"
128
+ "origination_urls": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls",
129
+ "credential_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists",
130
+ "ip_access_control_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists",
131
+ "phone_numbers": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers"
130
132
  }
131
133
  }
132
134
  ]
@@ -158,13 +160,13 @@ describe 'Trunk' do
158
160
  %q[
159
161
  {
160
162
  "meta": {
161
- "first_page_url": "https://trunking.twilio.com/v1/Trunks?PageSize=1&Page=0",
163
+ "first_page_url": "https://trunking.twilio.com/v1/Trunks?PageSize=50&Page=0",
164
+ "url": "https://trunking.twilio.com/v1/Trunks?PageSize=50&Page=0",
165
+ "page_size": 50,
162
166
  "key": "trunks",
163
167
  "next_page_url": null,
164
168
  "page": 0,
165
- "page_size": 1,
166
- "previous_page_url": null,
167
- "url": "https://trunking.twilio.com/v1/Trunks?PageSize=1&Page=0"
169
+ "previous_page_url": null
168
170
  },
169
171
  "trunks": [
170
172
  {
@@ -175,6 +177,7 @@ describe 'Trunk' do
175
177
  "disaster_recovery_url": "http://disaster-recovery.com",
176
178
  "friendly_name": "friendly_name",
177
179
  "secure": false,
180
+ "cnam_lookup_enabled": false,
178
181
  "recording": {
179
182
  "mode": "do-not-record",
180
183
  "trim": "do-not-trim"
@@ -183,12 +186,12 @@ describe 'Trunk' do
183
186
  "auth_type_set": [],
184
187
  "date_created": "2015-01-02T11:23:45Z",
185
188
  "date_updated": "2015-01-02T11:23:45Z",
186
- "url": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
189
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
187
190
  "links": {
188
- "origination_urls": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls",
189
- "credential_lists": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists",
190
- "ip_access_control_lists": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists",
191
- "phone_numbers": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers"
191
+ "origination_urls": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls",
192
+ "credential_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists",
193
+ "ip_access_control_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists",
194
+ "phone_numbers": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers"
192
195
  }
193
196
  }
194
197
  ]
@@ -207,13 +210,13 @@ describe 'Trunk' do
207
210
  %q[
208
211
  {
209
212
  "meta": {
210
- "first_page_url": "https://trunking.twilio.com/v1/Trunks?PageSize=1&Page=0",
213
+ "first_page_url": "https://trunking.twilio.com/v1/Trunks?PageSize=50&Page=0",
214
+ "url": "https://trunking.twilio.com/v1/Trunks?PageSize=50&Page=0",
215
+ "page_size": 50,
211
216
  "key": "trunks",
212
217
  "next_page_url": null,
213
218
  "page": 0,
214
- "page_size": 1,
215
- "previous_page_url": null,
216
- "url": "https://trunking.twilio.com/v1/Trunks?PageSize=1&Page=0"
219
+ "previous_page_url": null
217
220
  },
218
221
  "trunks": []
219
222
  }
@@ -252,6 +255,7 @@ describe 'Trunk' do
252
255
  "disaster_recovery_url": "http://updated-recovery.com",
253
256
  "friendly_name": "updated_name",
254
257
  "secure": true,
258
+ "cnam_lookup_enabled": true,
255
259
  "recording": {
256
260
  "mode": "do-not-record",
257
261
  "trim": "do-not-trim"
@@ -260,12 +264,12 @@ describe 'Trunk' do
260
264
  "auth_type_set": [],
261
265
  "date_created": "2015-01-02T11:23:45Z",
262
266
  "date_updated": "2015-01-02T11:23:45Z",
263
- "url": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
267
+ "url": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
264
268
  "links": {
265
- "origination_urls": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls",
266
- "credential_lists": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists",
267
- "ip_access_control_lists": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists",
268
- "phone_numbers": "http://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers"
269
+ "origination_urls": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls",
270
+ "credential_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists",
271
+ "ip_access_control_lists": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists",
272
+ "phone_numbers": "https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers"
269
273
  }
270
274
  }
271
275
  ]