twilio-ruby 5.18.0 → 5.19.0

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 (57) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +0 -4
  3. data/CHANGES.md +20 -0
  4. data/LICENSE.md +1 -1
  5. data/README.md +2 -2
  6. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +21 -13
  7. data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +4 -4
  9. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +6 -6
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +80 -70
  11. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +204 -196
  12. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +59 -53
  13. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +69 -61
  14. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +30 -25
  15. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +28 -16
  16. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +31 -20
  17. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +54 -50
  18. data/lib/twilio-ruby/rest/api.rb +7 -6
  19. data/lib/twilio-ruby/rest/authy/v1.rb +15 -15
  20. data/lib/twilio-ruby/rest/authy.rb +8 -8
  21. data/lib/twilio-ruby/rest/client.rb +14 -6
  22. data/lib/twilio-ruby/rest/insights/v1/summary.rb +286 -0
  23. data/lib/twilio-ruby/rest/insights/v1.rb +43 -0
  24. data/lib/twilio-ruby/rest/insights.rb +46 -0
  25. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +22 -14
  26. data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
  27. data/lib/twilio-ruby/rest/preview.rb +8 -8
  28. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +5 -28
  29. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +5 -9
  30. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +5 -13
  31. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +1 -1
  32. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
  33. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +4 -2
  34. data/lib/twilio-ruby/rest/trunking/v1.rb +2 -1
  35. data/lib/twilio-ruby/rest/verify/v1/service/verification.rb +7 -0
  36. data/lib/twilio-ruby/rest/verify/v1/service/verification_check.rb +7 -4
  37. data/lib/twilio-ruby/rest/video/v1/composition.rb +25 -13
  38. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +69 -74
  39. data/lib/twilio-ruby/rest/video/v1/recording.rb +13 -7
  40. data/lib/twilio-ruby/rest/video/v1.rb +16 -16
  41. data/lib/twilio-ruby/rest/video.rb +9 -9
  42. data/lib/twilio-ruby/rest/voice/v1/voice_permission/bulk_country_update.rb +3 -3
  43. data/lib/twilio-ruby/rest/voice/v1/voice_permission/country/highrisk_special_prefix.rb +2 -2
  44. data/lib/twilio-ruby/rest/voice/v1/voice_permission/country.rb +20 -20
  45. data/lib/twilio-ruby/version.rb +1 -1
  46. data/spec/integration/api/v2010/account/sip/domain_spec.rb +8 -4
  47. data/spec/integration/insights/v1/summary_spec.rb +60 -0
  48. data/spec/integration/proxy/v1/service/phone_number_spec.rb +2 -2
  49. data/spec/integration/proxy/v1/service/session/interaction_spec.rb +1 -1
  50. data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +2 -2
  51. data/spec/integration/proxy/v1/service/session/participant_spec.rb +66 -4
  52. data/spec/integration/proxy/v1/service/session_spec.rb +8 -8
  53. data/spec/integration/proxy/v1/service_spec.rb +3 -3
  54. data/spec/integration/trunking/v1/trunk_spec.rb +80 -0
  55. data/spec/integration/verify/v1/service/verification_spec.rb +10 -1
  56. data/twilio-ruby.gemspec +1 -2
  57. metadata +16 -6
@@ -16,9 +16,9 @@ module Twilio
16
16
  ##
17
17
  # Initialize the MediaList
18
18
  # @param [Version] version Version that contains the resource
19
- # @param [String] account_sid The unique id of the
20
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
21
- # media.
19
+ # @param [String] account_sid The SID of the
20
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created this Media
21
+ # resource.
22
22
  # @param [String] message_sid A 34 character string that uniquely identifies this
23
23
  # resource.
24
24
  # @return [MediaList] MediaList
@@ -34,9 +34,9 @@ module Twilio
34
34
  # Lists MediaInstance records from the API as a list.
35
35
  # Unlike stream(), this operation is eager and will load `limit` records into
36
36
  # memory before returning.
37
- # @param [Time] date_created_before Filter by date created
38
- # @param [Time] date_created Filter by date created
39
- # @param [Time] date_created_after Filter by date created
37
+ # @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
38
+ # @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
39
+ # @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
40
40
  # @param [Integer] limit Upper limit for the number of records to return. stream()
41
41
  # guarantees to never return more than limit. Default is no limit
42
42
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -58,9 +58,9 @@ module Twilio
58
58
  # Streams MediaInstance records from the API as an Enumerable.
59
59
  # This operation lazily loads records as efficiently as possible until the limit
60
60
  # is reached.
61
- # @param [Time] date_created_before Filter by date created
62
- # @param [Time] date_created Filter by date created
63
- # @param [Time] date_created_after Filter by date created
61
+ # @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
62
+ # @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
63
+ # @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
64
64
  # @param [Integer] limit Upper limit for the number of records to return. stream()
65
65
  # guarantees to never return more than limit. Default is no limit.
66
66
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -98,9 +98,9 @@ module Twilio
98
98
  ##
99
99
  # Retrieve a single page of MediaInstance records from the API.
100
100
  # Request is executed immediately.
101
- # @param [Time] date_created_before Filter by date created
102
- # @param [Time] date_created Filter by date created
103
- # @param [Time] date_created_after Filter by date created
101
+ # @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
102
+ # @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
103
+ # @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
104
104
  # @param [String] page_token PageToken provided by the API
105
105
  # @param [Integer] page_number Page Number, this value is simply for client state
106
106
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -180,9 +180,13 @@ module Twilio
180
180
  ##
181
181
  # Initialize the MediaContext
182
182
  # @param [Version] version Version that contains the resource
183
- # @param [String] account_sid The account_sid
184
- # @param [String] message_sid The message_sid
185
- # @param [String] sid The media Sid that uniquely identifies this resource
183
+ # @param [String] account_sid The SID of the
184
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the Media
185
+ # resource(s) to fetch.
186
+ # @param [String] message_sid The SID of the Message resource that this Media
187
+ # resource belongs to.
188
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
189
+ # Media resource to fetch
186
190
  # @return [MediaContext] MediaContext
187
191
  def initialize(version, account_sid, message_sid, sid)
188
192
  super(version)
@@ -233,12 +237,13 @@ module Twilio
233
237
  # Initialize the MediaInstance
234
238
  # @param [Version] version Version that contains the resource
235
239
  # @param [Hash] payload payload that contains response from Twilio
236
- # @param [String] account_sid The unique id of the
237
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
238
- # media.
240
+ # @param [String] account_sid The SID of the
241
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created this Media
242
+ # resource.
239
243
  # @param [String] message_sid A 34 character string that uniquely identifies this
240
244
  # resource.
241
- # @param [String] sid The media Sid that uniquely identifies this resource
245
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
246
+ # Media resource to fetch
242
247
  # @return [MediaInstance] MediaInstance
243
248
  def initialize(version, payload, account_sid: nil, message_sid: nil, sid: nil)
244
249
  super(version)
@@ -280,7 +285,7 @@ module Twilio
280
285
  end
281
286
 
282
287
  ##
283
- # @return [String] The unique sid that identifies this account
288
+ # @return [String] The SID of the Account that created this resource
284
289
  def account_sid
285
290
  @properties['account_sid']
286
291
  end
@@ -292,31 +297,31 @@ module Twilio
292
297
  end
293
298
 
294
299
  ##
295
- # @return [Time] The date this resource was created
300
+ # @return [Time] The RFC 2822 date and time in GMT that this resource was created
296
301
  def date_created
297
302
  @properties['date_created']
298
303
  end
299
304
 
300
305
  ##
301
- # @return [Time] The date this resource was last updated
306
+ # @return [Time] The RFC 2822 date and time in GMT that this resource was last updated
302
307
  def date_updated
303
308
  @properties['date_updated']
304
309
  end
305
310
 
306
311
  ##
307
- # @return [String] The unique id of the resource that created the media.
312
+ # @return [String] The SID of the resource that created the media
308
313
  def parent_sid
309
314
  @properties['parent_sid']
310
315
  end
311
316
 
312
317
  ##
313
- # @return [String] A string that uniquely identifies this media
318
+ # @return [String] The unique string that identifies this resource
314
319
  def sid
315
320
  @properties['sid']
316
321
  end
317
322
 
318
323
  ##
319
- # @return [String] The URI for this resource
324
+ # @return [String] The URI of this resource, relative to `https://api.twilio.com`
320
325
  def uri
321
326
  @properties['uri']
322
327
  end
@@ -16,9 +16,11 @@ module Twilio
16
16
  ##
17
17
  # Initialize the MemberList
18
18
  # @param [Version] version Version that contains the resource
19
- # @param [String] account_sid The account_sid
20
- # @param [String] queue_sid A 34 character string that uniquely identifies this
21
- # queue.
19
+ # @param [String] account_sid The SID of the
20
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created this Queue
21
+ # resource.
22
+ # @param [String] queue_sid The unique string that that we created to identify
23
+ # this Queue resource.
22
24
  # @return [MemberList] MemberList
23
25
  def initialize(version, account_sid: nil, queue_sid: nil)
24
26
  super(version)
@@ -155,9 +157,12 @@ module Twilio
155
157
  ##
156
158
  # Initialize the MemberContext
157
159
  # @param [Version] version Version that contains the resource
158
- # @param [String] account_sid The account_sid
159
- # @param [String] queue_sid The Queue in which to find the members
160
- # @param [String] call_sid The call_sid
160
+ # @param [String] account_sid The SID of the
161
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the Member
162
+ # resource(s) to fetch.
163
+ # @param [String] queue_sid The Queue in which to find the members to fetch.
164
+ # @param [String] call_sid The [Call](https://www.twilio.com/docs/api/voice/call)
165
+ # SID of the resource(s) to fetch.
161
166
  # @return [MemberContext] MemberContext
162
167
  def initialize(version, account_sid, queue_sid, call_sid)
163
168
  super(version)
@@ -190,8 +195,10 @@ module Twilio
190
195
 
191
196
  ##
192
197
  # Update the MemberInstance
193
- # @param [String] url The url
194
- # @param [String] method The method
198
+ # @param [String] url The absolute URL of this Queue resource.
199
+ # @param [String] method How to pass the update request data. Can be `GET` or
200
+ # `POST` and the default is `POST`. `POST` sends the data as encoded form data and
201
+ # `GET` sends the data as query parameters.
195
202
  # @return [MemberInstance] Updated MemberInstance
196
203
  def update(url: nil, method: nil)
197
204
  data = Twilio::Values.of({'Url' => url, 'Method' => method, })
@@ -224,10 +231,13 @@ module Twilio
224
231
  # Initialize the MemberInstance
225
232
  # @param [Version] version Version that contains the resource
226
233
  # @param [Hash] payload payload that contains response from Twilio
227
- # @param [String] account_sid The account_sid
228
- # @param [String] queue_sid A 34 character string that uniquely identifies this
229
- # queue.
230
- # @param [String] call_sid The call_sid
234
+ # @param [String] account_sid The SID of the
235
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created this Queue
236
+ # resource.
237
+ # @param [String] queue_sid The unique string that that we created to identify
238
+ # this Queue resource.
239
+ # @param [String] call_sid The [Call](https://www.twilio.com/docs/api/voice/call)
240
+ # SID of the resource(s) to fetch.
231
241
  # @return [MemberInstance] MemberInstance
232
242
  def initialize(version, payload, account_sid: nil, queue_sid: nil, call_sid: nil)
233
243
  super(version)
@@ -267,7 +277,7 @@ module Twilio
267
277
  end
268
278
 
269
279
  ##
270
- # @return [String] Unique string that identifies this resource
280
+ # @return [String] The SID of the Call this resource is associated with
271
281
  def call_sid
272
282
  @properties['call_sid']
273
283
  end
@@ -285,7 +295,7 @@ module Twilio
285
295
  end
286
296
 
287
297
  ##
288
- # @return [String] The uri
298
+ # @return [String] The URI of this resource, relative to `https://api.twilio.com`
289
299
  def uri
290
300
  @properties['uri']
291
301
  end
@@ -305,8 +315,10 @@ module Twilio
305
315
 
306
316
  ##
307
317
  # Update the MemberInstance
308
- # @param [String] url The url
309
- # @param [String] method The method
318
+ # @param [String] url The absolute URL of this Queue resource.
319
+ # @param [String] method How to pass the update request data. Can be `GET` or
320
+ # `POST` and the default is `POST`. `POST` sends the data as encoded form data and
321
+ # `GET` sends the data as query parameters.
310
322
  # @return [MemberInstance] Updated MemberInstance
311
323
  def update(url: nil, method: nil)
312
324
  context.update(url: url, method: method, )
@@ -15,7 +15,9 @@ module Twilio
15
15
  ##
16
16
  # Initialize the QueueList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] account_sid The account_sid
18
+ # @param [String] account_sid The SID of the
19
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created this Queue
20
+ # resource.
19
21
  # @return [QueueList] QueueList
20
22
  def initialize(version, account_sid: nil)
21
23
  super(version)
@@ -110,8 +112,9 @@ module Twilio
110
112
  ##
111
113
  # Retrieve a single page of QueueInstance records from the API.
112
114
  # Request is executed immediately.
113
- # @param [String] friendly_name A user-provided string that identifies this queue.
114
- # @param [String] max_size The upper limit of calls allowed to be in the queue.
115
+ # @param [String] friendly_name A descriptive string that you created to describe
116
+ # this resource. It can be up to 64 characters long.
117
+ # @param [String] max_size The maximum number of calls allowed to be in the queue.
115
118
  # The default is 100. The maximum is 5000.
116
119
  # @return [QueueInstance] Newly created QueueInstance
117
120
  def create(friendly_name: nil, max_size: :unset)
@@ -166,8 +169,11 @@ module Twilio
166
169
  ##
167
170
  # Initialize the QueueContext
168
171
  # @param [Version] version Version that contains the resource
169
- # @param [String] account_sid The account_sid
170
- # @param [String] sid The queue Sid that uniquely identifies this resource
172
+ # @param [String] account_sid The SID of the
173
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the Queue
174
+ # resource(s) to fetch.
175
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
176
+ # Queue resource to fetch
171
177
  # @return [QueueContext] QueueContext
172
178
  def initialize(version, account_sid, sid)
173
179
  super(version)
@@ -197,9 +203,10 @@ module Twilio
197
203
 
198
204
  ##
199
205
  # Update the QueueInstance
200
- # @param [String] friendly_name A human readable description of the queue
201
- # @param [String] max_size The maximum number of members that can be in the queue
202
- # at a time
206
+ # @param [String] friendly_name A descriptive string that you created to describe
207
+ # this resource. It can be up to 64 characters long.
208
+ # @param [String] max_size The maximum number of calls allowed to be in the queue.
209
+ # The default is 100. The maximum is 5000.
203
210
  # @return [QueueInstance] Updated QueueInstance
204
211
  def update(friendly_name: :unset, max_size: :unset)
205
212
  data = Twilio::Values.of({'FriendlyName' => friendly_name, 'MaxSize' => max_size, })
@@ -255,8 +262,11 @@ module Twilio
255
262
  # Initialize the QueueInstance
256
263
  # @param [Version] version Version that contains the resource
257
264
  # @param [Hash] payload payload that contains response from Twilio
258
- # @param [String] account_sid The account_sid
259
- # @param [String] sid The queue Sid that uniquely identifies this resource
265
+ # @param [String] account_sid The SID of the
266
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created this Queue
267
+ # resource.
268
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
269
+ # Queue resource to fetch
260
270
  # @return [QueueInstance] QueueInstance
261
271
  def initialize(version, payload, account_sid: nil, sid: nil)
262
272
  super(version)
@@ -291,7 +301,7 @@ module Twilio
291
301
  end
292
302
 
293
303
  ##
294
- # @return [String] The account_sid
304
+ # @return [String] The SID of the Account that created this resource
295
305
  def account_sid
296
306
  @properties['account_sid']
297
307
  end
@@ -303,25 +313,25 @@ module Twilio
303
313
  end
304
314
 
305
315
  ##
306
- # @return [String] The count of calls currently in the queue.
316
+ # @return [String] The number of calls currently in the queue.
307
317
  def current_size
308
318
  @properties['current_size']
309
319
  end
310
320
 
311
321
  ##
312
- # @return [Time] The date_created
322
+ # @return [Time] The RFC 2822 date and time in GMT that this resource was created
313
323
  def date_created
314
324
  @properties['date_created']
315
325
  end
316
326
 
317
327
  ##
318
- # @return [Time] The date_updated
328
+ # @return [Time] The RFC 2822 date and time in GMT that this resource was last updated
319
329
  def date_updated
320
330
  @properties['date_updated']
321
331
  end
322
332
 
323
333
  ##
324
- # @return [String] A user-provided string that identifies this queue.
334
+ # @return [String] A string that you assigned to describe this resource
325
335
  def friendly_name
326
336
  @properties['friendly_name']
327
337
  end
@@ -333,13 +343,13 @@ module Twilio
333
343
  end
334
344
 
335
345
  ##
336
- # @return [String] A string that uniquely identifies this queue
346
+ # @return [String] The unique string that identifies this resource
337
347
  def sid
338
348
  @properties['sid']
339
349
  end
340
350
 
341
351
  ##
342
- # @return [String] The uri
352
+ # @return [String] The URI of this resource, relative to `https://api.twilio.com`
343
353
  def uri
344
354
  @properties['uri']
345
355
  end
@@ -353,9 +363,10 @@ module Twilio
353
363
 
354
364
  ##
355
365
  # Update the QueueInstance
356
- # @param [String] friendly_name A human readable description of the queue
357
- # @param [String] max_size The maximum number of members that can be in the queue
358
- # at a time
366
+ # @param [String] friendly_name A descriptive string that you created to describe
367
+ # this resource. It can be up to 64 characters long.
368
+ # @param [String] max_size The maximum number of calls allowed to be in the queue.
369
+ # The default is 100. The maximum is 5000.
359
370
  # @return [QueueInstance] Updated QueueInstance
360
371
  def update(friendly_name: :unset, max_size: :unset)
361
372
  context.update(friendly_name: friendly_name, max_size: max_size, )
@@ -15,9 +15,9 @@ module Twilio
15
15
  ##
16
16
  # Initialize the ShortCodeList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] account_sid The unique id of the
19
- # [Account](https://www.twilio.com/docs/api/rest/account) that owns this short
20
- # code.
18
+ # @param [String] account_sid The SID of the
19
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created this
20
+ # ShortCode resource.
21
21
  # @return [ShortCodeList] ShortCodeList
22
22
  def initialize(version, account_sid: nil)
23
23
  super(version)
@@ -31,8 +31,8 @@ module Twilio
31
31
  # Lists ShortCodeInstance records from the API as a list.
32
32
  # Unlike stream(), this operation is eager and will load `limit` records into
33
33
  # memory before returning.
34
- # @param [String] friendly_name Only show the ShortCode resources with friendly
35
- # names that exactly match this name.
34
+ # @param [String] friendly_name The string that identifies the ShortCode resources
35
+ # to read.
36
36
  # @param [String] short_code Only show the ShortCode resources that match this
37
37
  # pattern. You can specify partial numbers and use '*' as a wildcard for any
38
38
  # digit.
@@ -56,8 +56,8 @@ module Twilio
56
56
  # Streams ShortCodeInstance records from the API as an Enumerable.
57
57
  # This operation lazily loads records as efficiently as possible until the limit
58
58
  # is reached.
59
- # @param [String] friendly_name Only show the ShortCode resources with friendly
60
- # names that exactly match this name.
59
+ # @param [String] friendly_name The string that identifies the ShortCode resources
60
+ # to read.
61
61
  # @param [String] short_code Only show the ShortCode resources that match this
62
62
  # pattern. You can specify partial numbers and use '*' as a wildcard for any
63
63
  # digit.
@@ -97,8 +97,8 @@ module Twilio
97
97
  ##
98
98
  # Retrieve a single page of ShortCodeInstance records from the API.
99
99
  # Request is executed immediately.
100
- # @param [String] friendly_name Only show the ShortCode resources with friendly
101
- # names that exactly match this name.
100
+ # @param [String] friendly_name The string that identifies the ShortCode resources
101
+ # to read.
102
102
  # @param [String] short_code Only show the ShortCode resources that match this
103
103
  # pattern. You can specify partial numbers and use '*' as a wildcard for any
104
104
  # digit.
@@ -175,8 +175,11 @@ module Twilio
175
175
  ##
176
176
  # Initialize the ShortCodeContext
177
177
  # @param [Version] version Version that contains the resource
178
- # @param [String] account_sid The account_sid
179
- # @param [String] sid The short-code Sid that uniquely identifies this resource
178
+ # @param [String] account_sid The SID of the
179
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the
180
+ # ShortCode resource(s) to fetch.
181
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
182
+ # ShortCode resource to fetch
180
183
  # @return [ShortCodeContext] ShortCodeContext
181
184
  def initialize(version, account_sid, sid)
182
185
  super(version)
@@ -203,19 +206,19 @@ module Twilio
203
206
 
204
207
  ##
205
208
  # Update the ShortCodeInstance
206
- # @param [String] friendly_name A human readable descriptive text for this
207
- # resource, up to 64 characters long. By default, the `FriendlyName` is just the
208
- # short code.
209
- # @param [String] api_version SMSs to this short code will start a new TwiML
210
- # session with this API version. Either `2010-04-01` or `2008-08-01`.
211
- # @param [String] sms_url The URL Twilio will request when receiving an incoming
212
- # SMS message to this short code.
213
- # @param [String] sms_method The HTTP method Twilio will use when making requests
214
- # to the `SmsUrl`. Either `GET` or `POST`.
215
- # @param [String] sms_fallback_url The URL that Twilio will request if an error
216
- # occurs retrieving or executing the TwiML from `SmsUrl`.
217
- # @param [String] sms_fallback_method The HTTP method that should be used to
218
- # request the `SmsFallbackUrl`. Either `GET` or `POST`.
209
+ # @param [String] friendly_name A descriptive string that you created to describe
210
+ # this resource. It can be up to 64 characters long. By default, the
211
+ # `FriendlyName` is the short code.
212
+ # @param [String] api_version The API version to use to start a new TwiML session.
213
+ # Can be: `2010-04-01` or `2008-08-01`.
214
+ # @param [String] sms_url The URL we should call when receiving an incoming SMS
215
+ # message to this short code.
216
+ # @param [String] sms_method The HTTP method we should use when calling the
217
+ # `sms_url`. Can be: `GET` or `POST`.
218
+ # @param [String] sms_fallback_url The URL that we should call if an error occurs
219
+ # while retrieving or executing the TwiML from `sms_url`.
220
+ # @param [String] sms_fallback_method The HTTP method that we should use to call
221
+ # the `sms_fallback_url`. Can be: `GET` or `POST`.
219
222
  # @return [ShortCodeInstance] Updated ShortCodeInstance
220
223
  def update(friendly_name: :unset, api_version: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset)
221
224
  data = Twilio::Values.of({
@@ -249,10 +252,11 @@ module Twilio
249
252
  # Initialize the ShortCodeInstance
250
253
  # @param [Version] version Version that contains the resource
251
254
  # @param [Hash] payload payload that contains response from Twilio
252
- # @param [String] account_sid The unique id of the
253
- # [Account](https://www.twilio.com/docs/api/rest/account) that owns this short
254
- # code.
255
- # @param [String] sid The short-code Sid that uniquely identifies this resource
255
+ # @param [String] account_sid The SID of the
256
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created this
257
+ # ShortCode resource.
258
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
259
+ # ShortCode resource to fetch
256
260
  # @return [ShortCodeInstance] ShortCodeInstance
257
261
  def initialize(version, payload, account_sid: nil, sid: nil)
258
262
  super(version)
@@ -290,31 +294,31 @@ module Twilio
290
294
  end
291
295
 
292
296
  ##
293
- # @return [String] The unique sid that identifies this account
297
+ # @return [String] The SID of the Account that created this resource
294
298
  def account_sid
295
299
  @properties['account_sid']
296
300
  end
297
301
 
298
302
  ##
299
- # @return [String] The API version to use
303
+ # @return [String] The API version used to start a new TwiML session
300
304
  def api_version
301
305
  @properties['api_version']
302
306
  end
303
307
 
304
308
  ##
305
- # @return [Time] The date this resource was created
309
+ # @return [Time] The RFC 2822 date and time in GMT that this resource was created
306
310
  def date_created
307
311
  @properties['date_created']
308
312
  end
309
313
 
310
314
  ##
311
- # @return [Time] The date this resource was last updated
315
+ # @return [Time] The RFC 2822 date and time in GMT that this resource was last updated
312
316
  def date_updated
313
317
  @properties['date_updated']
314
318
  end
315
319
 
316
320
  ##
317
- # @return [String] A human readable description of this resource
321
+ # @return [String] A string that you assigned to describe this resource
318
322
  def friendly_name
319
323
  @properties['friendly_name']
320
324
  end
@@ -326,13 +330,13 @@ module Twilio
326
330
  end
327
331
 
328
332
  ##
329
- # @return [String] A string that uniquely identifies this short-codes
333
+ # @return [String] The unique string that identifies this resource
330
334
  def sid
331
335
  @properties['sid']
332
336
  end
333
337
 
334
338
  ##
335
- # @return [String] HTTP method Twilio will use with sms fallback url
339
+ # @return [String] HTTP method we use to call the sms_fallback_url
336
340
  def sms_fallback_method
337
341
  @properties['sms_fallback_method']
338
342
  end
@@ -350,13 +354,13 @@ module Twilio
350
354
  end
351
355
 
352
356
  ##
353
- # @return [String] URL Twilio will request when receiving an SMS
357
+ # @return [String] URL we call when receiving an incoming SMS message to this short code
354
358
  def sms_url
355
359
  @properties['sms_url']
356
360
  end
357
361
 
358
362
  ##
359
- # @return [String] The URI for this resource
363
+ # @return [String] The URI of this resource, relative to `https://api.twilio.com`
360
364
  def uri
361
365
  @properties['uri']
362
366
  end
@@ -370,19 +374,19 @@ module Twilio
370
374
 
371
375
  ##
372
376
  # Update the ShortCodeInstance
373
- # @param [String] friendly_name A human readable descriptive text for this
374
- # resource, up to 64 characters long. By default, the `FriendlyName` is just the
375
- # short code.
376
- # @param [String] api_version SMSs to this short code will start a new TwiML
377
- # session with this API version. Either `2010-04-01` or `2008-08-01`.
378
- # @param [String] sms_url The URL Twilio will request when receiving an incoming
379
- # SMS message to this short code.
380
- # @param [String] sms_method The HTTP method Twilio will use when making requests
381
- # to the `SmsUrl`. Either `GET` or `POST`.
382
- # @param [String] sms_fallback_url The URL that Twilio will request if an error
383
- # occurs retrieving or executing the TwiML from `SmsUrl`.
384
- # @param [String] sms_fallback_method The HTTP method that should be used to
385
- # request the `SmsFallbackUrl`. Either `GET` or `POST`.
377
+ # @param [String] friendly_name A descriptive string that you created to describe
378
+ # this resource. It can be up to 64 characters long. By default, the
379
+ # `FriendlyName` is the short code.
380
+ # @param [String] api_version The API version to use to start a new TwiML session.
381
+ # Can be: `2010-04-01` or `2008-08-01`.
382
+ # @param [String] sms_url The URL we should call when receiving an incoming SMS
383
+ # message to this short code.
384
+ # @param [String] sms_method The HTTP method we should use when calling the
385
+ # `sms_url`. Can be: `GET` or `POST`.
386
+ # @param [String] sms_fallback_url The URL that we should call if an error occurs
387
+ # while retrieving or executing the TwiML from `sms_url`.
388
+ # @param [String] sms_fallback_method The HTTP method that we should use to call
389
+ # the `sms_fallback_url`. Can be: `GET` or `POST`.
386
390
  # @return [ShortCodeInstance] Updated ShortCodeInstance
387
391
  def update(friendly_name: :unset, api_version: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset)
388
392
  context.update(