Skip to content

Commit 2d182bb

Browse files
committed
[Librarian] Regenerated @ 4b299c041980aa815254cd2ba767e17f2bf4465e
1 parent 9cf88af commit 2d182bb

File tree

383 files changed

+3031
-1589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

383 files changed

+3031
-1589
lines changed

CHANGES.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
twilio-ruby changelog
22
=====================
33

4+
[2017-08-25] Version 5.2.0
5+
---------------------------
6+
**Api**
7+
- Update `status` enum for Recordings to include 'failed'
8+
- Add `error_code` property on Recordings
9+
10+
**Chat**
11+
- Add mutable parameters for channel, members and messages
12+
13+
**Video**
14+
- New `media_region` parameter when creating a room, which controls which region media will be served out of.
15+
- Add `video_codec` enum and `video_codecs` parameter, which can be set to either `VP8` or `H264` during room creation.
16+
17+
418
[2017-08-18] Version 5.1.2
519
---------------------------
620
**Api**

lib/twilio-ruby/rest/accounts/v1/credential.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ def initialize(version, payload)
9898
def to_s
9999
"<Twilio.Accounts.V1.CredentialInstance>"
100100
end
101+
102+
##
103+
# Provide a detailed, user friendly representation
104+
def inspect
105+
"<Twilio.Accounts.V1.CredentialInstance>"
106+
end
101107
end
102108
end
103109
end

lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,13 @@ def to_s
362362
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
363363
"<Twilio.Accounts.V1.PublicKeyInstance #{values}>"
364364
end
365+
366+
##
367+
# Provide a detailed, user friendly representation
368+
def inspect
369+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
370+
"<Twilio.Accounts.V1.PublicKeyInstance #{values}>"
371+
end
365372
end
366373
end
367374
end

lib/twilio-ruby/rest/api/v2010/account.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,13 @@ def to_s
10911091
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
10921092
"<Twilio.Api.V2010.AccountInstance #{values}>"
10931093
end
1094+
1095+
##
1096+
# Provide a detailed, user friendly representation
1097+
def inspect
1098+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
1099+
"<Twilio.Api.V2010.AccountInstance #{values}>"
1100+
end
10941101
end
10951102
end
10961103
end

lib/twilio-ruby/rest/api/v2010/account/address.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,13 @@ def to_s
507507
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
508508
"<Twilio.Api.V2010.AddressInstance #{values}>"
509509
end
510+
511+
##
512+
# Provide a detailed, user friendly representation
513+
def inspect
514+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
515+
"<Twilio.Api.V2010.AddressInstance #{values}>"
516+
end
510517
end
511518
end
512519
end

lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,12 @@ def capabilities
256256
def to_s
257257
"<Twilio.Api.V2010.DependentPhoneNumberInstance>"
258258
end
259+
260+
##
261+
# Provide a detailed, user friendly representation
262+
def inspect
263+
"<Twilio.Api.V2010.DependentPhoneNumberInstance>"
264+
end
259265
end
260266
end
261267
end

lib/twilio-ruby/rest/api/v2010/account/application.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,13 @@ def to_s
612612
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
613613
"<Twilio.Api.V2010.ApplicationInstance #{values}>"
614614
end
615+
616+
##
617+
# Provide a detailed, user friendly representation
618+
def inspect
619+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
620+
"<Twilio.Api.V2010.ApplicationInstance #{values}>"
621+
end
615622
end
616623
end
617624
end

lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,13 @@ def to_s
323323
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
324324
"<Twilio.Api.V2010.AuthorizedConnectAppInstance #{values}>"
325325
end
326+
327+
##
328+
# Provide a detailed, user friendly representation
329+
def inspect
330+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
331+
"<Twilio.Api.V2010.AuthorizedConnectAppInstance #{values}>"
332+
end
326333
end
327334
end
328335
end

lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,13 @@ def to_s
362362
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
363363
"<Twilio.Api.V2010.AvailablePhoneNumberCountryInstance #{values}>"
364364
end
365+
366+
##
367+
# Provide a detailed, user friendly representation
368+
def inspect
369+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
370+
"<Twilio.Api.V2010.AvailablePhoneNumberCountryInstance #{values}>"
371+
end
365372
end
366373
end
367374
end

lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,12 @@ def capabilities
380380
def to_s
381381
"<Twilio.Api.V2010.LocalInstance>"
382382
end
383+
384+
##
385+
# Provide a detailed, user friendly representation
386+
def inspect
387+
"<Twilio.Api.V2010.LocalInstance>"
388+
end
383389
end
384390
end
385391
end

lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,12 @@ def capabilities
380380
def to_s
381381
"<Twilio.Api.V2010.MobileInstance>"
382382
end
383+
384+
##
385+
# Provide a detailed, user friendly representation
386+
def inspect
387+
"<Twilio.Api.V2010.MobileInstance>"
388+
end
383389
end
384390
end
385391
end

lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,12 @@ def capabilities
380380
def to_s
381381
"<Twilio.Api.V2010.TollFreeInstance>"
382382
end
383+
384+
##
385+
# Provide a detailed, user friendly representation
386+
def inspect
387+
"<Twilio.Api.V2010.TollFreeInstance>"
388+
end
383389
end
384390
end
385391
end

lib/twilio-ruby/rest/api/v2010/account/call.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,13 @@ def to_s
791791
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
792792
"<Twilio.Api.V2010.CallInstance #{values}>"
793793
end
794+
795+
##
796+
# Provide a detailed, user friendly representation
797+
def inspect
798+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
799+
"<Twilio.Api.V2010.CallInstance #{values}>"
800+
end
794801
end
795802
end
796803
end

lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,13 @@ def to_s
287287
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
288288
"<Twilio.Api.V2010.FeedbackInstance #{values}>"
289289
end
290+
291+
##
292+
# Provide a detailed, user friendly representation
293+
def inspect
294+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
295+
"<Twilio.Api.V2010.FeedbackInstance #{values}>"
296+
end
290297
end
291298
end
292299
end

lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,13 @@ def to_s
308308
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
309309
"<Twilio.Api.V2010.FeedbackSummaryInstance #{values}>"
310310
end
311+
312+
##
313+
# Provide a detailed, user friendly representation
314+
def inspect
315+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
316+
"<Twilio.Api.V2010.FeedbackSummaryInstance #{values}>"
317+
end
311318
end
312319
end
313320
end

lib/twilio-ruby/rest/api/v2010/account/call/notification.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,13 @@ def to_s
418418
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
419419
"<Twilio.Api.V2010.NotificationInstance #{values}>"
420420
end
421+
422+
##
423+
# Provide a detailed, user friendly representation
424+
def inspect
425+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
426+
"<Twilio.Api.V2010.NotificationInstance #{values}>"
427+
end
421428
end
422429
end
423430
end

lib/twilio-ruby/rest/api/v2010/account/call/recording.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ def initialize(version, payload, account_sid: nil, call_sid: nil, sid: nil)
256256
'price' => payload['price'].to_f,
257257
'uri' => payload['uri'],
258258
'encryption_details' => payload['encryption_details'],
259+
'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
259260
}
260261

261262
# Context
@@ -343,6 +344,12 @@ def encryption_details
343344
@properties['encryption_details']
344345
end
345346

347+
##
348+
# @return [String] The error_code
349+
def error_code
350+
@properties['error_code']
351+
end
352+
346353
##
347354
# Fetch a RecordingInstance
348355
# @return [RecordingInstance] Fetched RecordingInstance
@@ -363,6 +370,13 @@ def to_s
363370
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
364371
"<Twilio.Api.V2010.RecordingInstance #{values}>"
365372
end
373+
374+
##
375+
# Provide a detailed, user friendly representation
376+
def inspect
377+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
378+
"<Twilio.Api.V2010.RecordingInstance #{values}>"
379+
end
366380
end
367381
end
368382
end

lib/twilio-ruby/rest/api/v2010/account/conference.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,13 @@ def to_s
447447
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
448448
"<Twilio.Api.V2010.ConferenceInstance #{values}>"
449449
end
450+
451+
##
452+
# Provide a detailed, user friendly representation
453+
def inspect
454+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
455+
"<Twilio.Api.V2010.ConferenceInstance #{values}>"
456+
end
450457
end
451458
end
452459
end

lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,13 @@ def to_s
506506
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
507507
"<Twilio.Api.V2010.ParticipantInstance #{values}>"
508508
end
509+
510+
##
511+
# Provide a detailed, user friendly representation
512+
def inspect
513+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
514+
"<Twilio.Api.V2010.ParticipantInstance #{values}>"
515+
end
509516
end
510517
end
511518
end

lib/twilio-ruby/rest/api/v2010/account/connect_app.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,13 @@ def to_s
405405
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
406406
"<Twilio.Api.V2010.ConnectAppInstance #{values}>"
407407
end
408+
409+
##
410+
# Provide a detailed, user friendly representation
411+
def inspect
412+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
413+
"<Twilio.Api.V2010.ConnectAppInstance #{values}>"
414+
end
408415
end
409416
end
410417
end

lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,13 @@ def to_s
821821
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
822822
"<Twilio.Api.V2010.IncomingPhoneNumberInstance #{values}>"
823823
end
824+
825+
##
826+
# Provide a detailed, user friendly representation
827+
def inspect
828+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
829+
"<Twilio.Api.V2010.IncomingPhoneNumberInstance #{values}>"
830+
end
824831
end
825832
end
826833
end

lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,13 @@ def to_s
430430
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
431431
"<Twilio.Api.V2010.AssignedAddOnInstance #{values}>"
432432
end
433+
434+
##
435+
# Provide a detailed, user friendly representation
436+
def inspect
437+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
438+
"<Twilio.Api.V2010.AssignedAddOnInstance #{values}>"
439+
end
433440
end
434441
end
435442
end

lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,13 @@ def to_s
348348
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
349349
"<Twilio.Api.V2010.AssignedAddOnExtensionInstance #{values}>"
350350
end
351+
352+
##
353+
# Provide a detailed, user friendly representation
354+
def inspect
355+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
356+
"<Twilio.Api.V2010.AssignedAddOnExtensionInstance #{values}>"
357+
end
351358
end
352359
end
353360
end

lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,12 @@ def voice_url
436436
def to_s
437437
"<Twilio.Api.V2010.LocalInstance>"
438438
end
439+
440+
##
441+
# Provide a detailed, user friendly representation
442+
def inspect
443+
"<Twilio.Api.V2010.LocalInstance>"
444+
end
439445
end
440446
end
441447
end

lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,12 @@ def voice_url
436436
def to_s
437437
"<Twilio.Api.V2010.MobileInstance>"
438438
end
439+
440+
##
441+
# Provide a detailed, user friendly representation
442+
def inspect
443+
"<Twilio.Api.V2010.MobileInstance>"
444+
end
439445
end
440446
end
441447
end

lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,12 @@ def voice_url
436436
def to_s
437437
"<Twilio.Api.V2010.TollFreeInstance>"
438438
end
439+
440+
##
441+
# Provide a detailed, user friendly representation
442+
def inspect
443+
"<Twilio.Api.V2010.TollFreeInstance>"
444+
end
439445
end
440446
end
441447
end

lib/twilio-ruby/rest/api/v2010/account/key.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,13 @@ def to_s
328328
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
329329
"<Twilio.Api.V2010.KeyInstance #{values}>"
330330
end
331+
332+
##
333+
# Provide a detailed, user friendly representation
334+
def inspect
335+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
336+
"<Twilio.Api.V2010.KeyInstance #{values}>"
337+
end
331338
end
332339
end
333340
end

0 commit comments

Comments
 (0)