twilio-ruby 5.19.0 → 5.20.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 (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +13 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api.rb +16 -13
  5. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +85 -88
  6. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +4 -4
  7. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +135 -146
  8. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +21 -17
  9. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +14 -8
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +150 -166
  11. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +174 -79
  12. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +147 -160
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +174 -79
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +174 -79
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +147 -160
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +174 -79
  17. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +51 -51
  18. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +246 -251
  19. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +31 -26
  20. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +34 -26
  21. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +109 -112
  22. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +108 -112
  23. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +108 -112
  24. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +21 -11
  25. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +7 -6
  26. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +7 -6
  27. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +32 -25
  28. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +36 -36
  29. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -1
  30. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +70 -66
  31. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +10 -10
  32. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +14 -14
  33. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +26 -23
  34. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +26 -23
  35. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +12 -12
  36. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +26 -23
  37. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +4 -4
  38. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +4 -4
  39. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +11 -9
  40. data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +2 -1
  41. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +56 -47
  42. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +59 -44
  43. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +59 -44
  44. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +59 -47
  45. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +59 -44
  46. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +59 -44
  47. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +59 -44
  48. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +59 -44
  49. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +59 -44
  50. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +76 -74
  51. data/lib/twilio-ruby/rest/authy.rb +8 -8
  52. data/lib/twilio-ruby/rest/authy/v1.rb +15 -15
  53. data/lib/twilio-ruby/rest/client.rb +16 -13
  54. data/lib/twilio-ruby/rest/messaging.rb +15 -0
  55. data/lib/twilio-ruby/rest/messaging/v1.rb +23 -0
  56. data/lib/twilio-ruby/rest/messaging/v1/session.rb +482 -0
  57. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +434 -0
  58. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +458 -0
  59. data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +285 -0
  60. data/lib/twilio-ruby/rest/preview.rb +8 -8
  61. data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
  62. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +3 -2
  63. data/lib/twilio-ruby/rest/video.rb +9 -9
  64. data/lib/twilio-ruby/rest/video/v1.rb +16 -16
  65. data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -6
  66. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +37 -21
  67. data/lib/twilio-ruby/rest/video/v1/recording.rb +12 -3
  68. data/lib/twilio-ruby/security/request_validator.rb +2 -2
  69. data/lib/twilio-ruby/version.rb +1 -1
  70. data/spec/integration/messaging/v1/session/message_spec.rb +238 -0
  71. data/spec/integration/messaging/v1/session/participant_spec.rb +256 -0
  72. data/spec/integration/messaging/v1/session_spec.rb +223 -0
  73. data/spec/integration/messaging/v1/webhook_spec.rb +92 -0
  74. data/spec/integration/video/v1/composition_hook_spec.rb +1 -1
  75. data/spec/security/request_validator_spec.rb +5 -7
  76. metadata +14 -2
@@ -33,7 +33,8 @@ module Twilio
33
33
 
34
34
  ##
35
35
  # Access the domains
36
- # @param [String] sid The domain sid that uniquely identifies the resource
36
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
37
+ # SipDomain resource to fetch.
37
38
  # @return [DomainList]
38
39
  # @return [DomainContext] if sid was passed.
39
40
  def domains(sid=:unset)
@@ -114,22 +114,22 @@ module Twilio
114
114
  # Request is executed immediately.
115
115
  # @param [String] domain_name The unique address you reserve on Twilio to which
116
116
  # you route your SIP traffic. Domain names can contain letters, digits, and "-".
117
- # @param [String] friendly_name A human readable descriptive text, up to 64
118
- # characters long.
119
- # @param [String] voice_url The URL Twilio will request when this domain receives
120
- # a call.
121
- # @param [String] voice_method The HTTP method Twilio will use when requesting the
122
- # above Url. Either `GET` or `POST`.
123
- # @param [String] voice_fallback_url The URL that Twilio will request if an error
124
- # occurs retrieving or executing the TwiML requested by VoiceUrl.
125
- # @param [String] voice_fallback_method The HTTP method Twilio will use when
126
- # requesting the VoiceFallbackUrl. Either `GET` or `POST`.
127
- # @param [String] voice_status_callback_url The URL that Twilio will request to
128
- # pass status parameters (such as call ended) to your application.
129
- # @param [String] voice_status_callback_method The HTTP method Twilio will use to
130
- # make requests to the StatusCallback URL. Either `GET` or `POST`.
131
- # @param [Boolean] sip_registration This boolean can be enabled to allow SIP
132
- # Endpoints to register with this domain to receive calls.
117
+ # @param [String] friendly_name A descriptive string that you created to describe
118
+ # the resource. It can be up to 64 characters long.
119
+ # @param [String] voice_url The URL we should when the domain receives a call.
120
+ # @param [String] voice_method The HTTP method we should use to call `voice_url`.
121
+ # Can be: `GET` or `POST`.
122
+ # @param [String] voice_fallback_url The URL that we should call when an error
123
+ # occurs while retrieving or executing the TwiML from `voice_url`.
124
+ # @param [String] voice_fallback_method The HTTP method we should use to call
125
+ # `voice_fallback_url`. Can be: `GET` or `POST`.
126
+ # @param [String] voice_status_callback_url The URL that we should call to pass
127
+ # status parameters (such as call ended) to your application.
128
+ # @param [String] voice_status_callback_method The HTTP method we should use to
129
+ # call `voice_status_callback_url`. Can be: `GET` or `POST`.
130
+ # @param [Boolean] sip_registration Whether to allow SIP Endpoints to register
131
+ # with the domain to receive calls. Can be `true` or `false`. `true` allows SIP
132
+ # Endpoints to register with the domain to receive calls, `false` does not.
133
133
  # @return [DomainInstance] Newly created DomainInstance
134
134
  def create(domain_name: nil, friendly_name: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, voice_status_callback_url: :unset, voice_status_callback_method: :unset, sip_registration: :unset)
135
135
  data = Twilio::Values.of({
@@ -193,10 +193,11 @@ module Twilio
193
193
  ##
194
194
  # Initialize the DomainContext
195
195
  # @param [Version] version Version that contains the resource
196
- # @param [String] account_sid The unique id of the
197
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
198
- # resource.
199
- # @param [String] sid The domain sid that uniquely identifies the resource
196
+ # @param [String] account_sid The SID of the
197
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the
198
+ # SipDomain resource to fetch.
199
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
200
+ # SipDomain resource to fetch.
200
201
  # @return [DomainContext] DomainContext
201
202
  def initialize(version, account_sid, sid)
202
203
  super(version)
@@ -228,21 +229,22 @@ module Twilio
228
229
 
229
230
  ##
230
231
  # Update the DomainInstance
231
- # @param [String] friendly_name A human readable descriptive text, up to 64
232
- # characters long.
233
- # @param [String] voice_fallback_method The HTTP method Twilio will use when
234
- # requesting the VoiceFallbackUrl. Either `GET` or `POST`.
235
- # @param [String] voice_fallback_url The URL that Twilio will request if an error
236
- # occurs retrieving or executing the TwiML requested by VoiceUrl.
237
- # @param [String] voice_method The HTTP method to use with the voice_url
238
- # @param [String] voice_status_callback_method The HTTP method Twilio will use to
239
- # make requests to the StatusCallback URL. Either `GET` or `POST`.
240
- # @param [String] voice_status_callback_url The URL that Twilio will request to
241
- # pass status parameters (such as call ended) to your application.
242
- # @param [String] voice_url The URL Twilio will request when this domain receives
243
- # a call.
244
- # @param [Boolean] sip_registration This boolean can be enabled to allow SIP
245
- # Endpoints to register with this domain to receive calls.
232
+ # @param [String] friendly_name A descriptive string that you created to describe
233
+ # the resource. It can be up to 64 characters long.
234
+ # @param [String] voice_fallback_method The HTTP method we should use to call
235
+ # `voice_fallback_url`. Can be: `GET` or `POST`.
236
+ # @param [String] voice_fallback_url The URL that we should call when an error
237
+ # occurs while retrieving or executing the TwiML requested by `voice_url`.
238
+ # @param [String] voice_method The HTTP method we should use to call `voice_url`
239
+ # @param [String] voice_status_callback_method The HTTP method we should use to
240
+ # call `voice_status_callback_url`. Can be: `GET` or `POST`.
241
+ # @param [String] voice_status_callback_url The URL that we should call to pass
242
+ # status parameters (such as call ended) to your application.
243
+ # @param [String] voice_url The URL we should call when the domain receives a
244
+ # call.
245
+ # @param [Boolean] sip_registration Whether to allow SIP Endpoints to register
246
+ # with the domain to receive calls. Can be `true` or `false`. `true` allows SIP
247
+ # Endpoints to register with the domain to receive calls, `false` does not.
246
248
  # @param [String] domain_name The unique address you reserve on Twilio to which
247
249
  # you route your SIP traffic. Domain names can contain letters, digits, and "-".
248
250
  # @return [DomainInstance] Updated DomainInstance
@@ -355,7 +357,8 @@ module Twilio
355
357
  # @param [Hash] payload payload that contains response from Twilio
356
358
  # @param [String] account_sid A 34 character string that uniquely identifies this
357
359
  # resource.
358
- # @param [String] sid The domain sid that uniquely identifies the resource
360
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
361
+ # SipDomain resource to fetch.
359
362
  # @return [DomainInstance] DomainInstance
360
363
  def initialize(version, payload, account_sid: nil, sid: nil)
361
364
  super(version)
@@ -398,13 +401,13 @@ module Twilio
398
401
  end
399
402
 
400
403
  ##
401
- # @return [String] The unique id of the account responsible for this domain
404
+ # @return [String] The SID of the Account that created the resource
402
405
  def account_sid
403
406
  @properties['account_sid']
404
407
  end
405
408
 
406
409
  ##
407
- # @return [String] The Twilio API version used to process the call
410
+ # @return [String] The API version used to process the call
408
411
  def api_version
409
412
  @properties['api_version']
410
413
  end
@@ -416,13 +419,13 @@ module Twilio
416
419
  end
417
420
 
418
421
  ##
419
- # @return [Time] The date this resource was created
422
+ # @return [Time] The RFC 2822 date and time in GMT that the resource was created
420
423
  def date_created
421
424
  @properties['date_created']
422
425
  end
423
426
 
424
427
  ##
425
- # @return [Time] The date this resource was last updated
428
+ # @return [Time] The RFC 2822 date and time in GMT that the resource was last updated
426
429
  def date_updated
427
430
  @properties['date_updated']
428
431
  end
@@ -434,67 +437,67 @@ module Twilio
434
437
  end
435
438
 
436
439
  ##
437
- # @return [String] A user-specified, human-readable name for the domain.
440
+ # @return [String] The string that you assigned to describe the resource
438
441
  def friendly_name
439
442
  @properties['friendly_name']
440
443
  end
441
444
 
442
445
  ##
443
- # @return [String] A string that uniquely identifies the SIP Domain
446
+ # @return [String] The unique string that identifies the resource
444
447
  def sid
445
448
  @properties['sid']
446
449
  end
447
450
 
448
451
  ##
449
- # @return [String] The URI for this resource
452
+ # @return [String] The URI of the resource, relative to `https://api.twilio.com`
450
453
  def uri
451
454
  @properties['uri']
452
455
  end
453
456
 
454
457
  ##
455
- # @return [String] HTTP method used with voice_fallback_url
458
+ # @return [String] The HTTP method used with voice_fallback_url
456
459
  def voice_fallback_method
457
460
  @properties['voice_fallback_method']
458
461
  end
459
462
 
460
463
  ##
461
- # @return [String] URL Twilio will request if an error occurs in executing TwiML
464
+ # @return [String] The URL we call when an error occurs while executing TwiML
462
465
  def voice_fallback_url
463
466
  @properties['voice_fallback_url']
464
467
  end
465
468
 
466
469
  ##
467
- # @return [String] HTTP method to use with voice_url
470
+ # @return [String] The HTTP method to use with voice_url
468
471
  def voice_method
469
472
  @properties['voice_method']
470
473
  end
471
474
 
472
475
  ##
473
- # @return [String] The HTTP method Twilio will use to make requests to the StatusCallback URL.
476
+ # @return [String] The HTTP method we use to call voice_status_callback_url
474
477
  def voice_status_callback_method
475
478
  @properties['voice_status_callback_method']
476
479
  end
477
480
 
478
481
  ##
479
- # @return [String] URL that Twilio will request with status updates
482
+ # @return [String] The URL that we call with status updates
480
483
  def voice_status_callback_url
481
484
  @properties['voice_status_callback_url']
482
485
  end
483
486
 
484
487
  ##
485
- # @return [String] URL Twilio will request when receiving a call
488
+ # @return [String] The URL we call when receiving a call
486
489
  def voice_url
487
490
  @properties['voice_url']
488
491
  end
489
492
 
490
493
  ##
491
- # @return [String] The list mapping resources associated with this resource.
494
+ # @return [String] A list mapping resources associated with the SIP Domain resource
492
495
  def subresource_uris
493
496
  @properties['subresource_uris']
494
497
  end
495
498
 
496
499
  ##
497
- # @return [Boolean] If SIP registration is allowed
500
+ # @return [Boolean] Whether SIP registration is allowed
498
501
  def sip_registration
499
502
  @properties['sip_registration']
500
503
  end
@@ -508,21 +511,22 @@ module Twilio
508
511
 
509
512
  ##
510
513
  # Update the DomainInstance
511
- # @param [String] friendly_name A human readable descriptive text, up to 64
512
- # characters long.
513
- # @param [String] voice_fallback_method The HTTP method Twilio will use when
514
- # requesting the VoiceFallbackUrl. Either `GET` or `POST`.
515
- # @param [String] voice_fallback_url The URL that Twilio will request if an error
516
- # occurs retrieving or executing the TwiML requested by VoiceUrl.
517
- # @param [String] voice_method The HTTP method to use with the voice_url
518
- # @param [String] voice_status_callback_method The HTTP method Twilio will use to
519
- # make requests to the StatusCallback URL. Either `GET` or `POST`.
520
- # @param [String] voice_status_callback_url The URL that Twilio will request to
521
- # pass status parameters (such as call ended) to your application.
522
- # @param [String] voice_url The URL Twilio will request when this domain receives
523
- # a call.
524
- # @param [Boolean] sip_registration This boolean can be enabled to allow SIP
525
- # Endpoints to register with this domain to receive calls.
514
+ # @param [String] friendly_name A descriptive string that you created to describe
515
+ # the resource. It can be up to 64 characters long.
516
+ # @param [String] voice_fallback_method The HTTP method we should use to call
517
+ # `voice_fallback_url`. Can be: `GET` or `POST`.
518
+ # @param [String] voice_fallback_url The URL that we should call when an error
519
+ # occurs while retrieving or executing the TwiML requested by `voice_url`.
520
+ # @param [String] voice_method The HTTP method we should use to call `voice_url`
521
+ # @param [String] voice_status_callback_method The HTTP method we should use to
522
+ # call `voice_status_callback_url`. Can be: `GET` or `POST`.
523
+ # @param [String] voice_status_callback_url The URL that we should call to pass
524
+ # status parameters (such as call ended) to your application.
525
+ # @param [String] voice_url The URL we should call when the domain receives a
526
+ # call.
527
+ # @param [Boolean] sip_registration Whether to allow SIP Endpoints to register
528
+ # with the domain to receive calls. Can be `true` or `false`. `true` allows SIP
529
+ # Endpoints to register with the domain to receive calls, `false` does not.
526
530
  # @param [String] domain_name The unique address you reserve on Twilio to which
527
531
  # you route your SIP traffic. Domain names can contain letters, digits, and "-".
528
532
  # @return [DomainInstance] Updated DomainInstance
@@ -17,11 +17,11 @@ module Twilio
17
17
  ##
18
18
  # Initialize the AuthTypesList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] account_sid The unique id of the
21
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
22
- # domain.
23
- # @param [String] domain_sid A 34 character string that uniquely identifies the
24
- # SIP domain in Twilio.
20
+ # @param [String] account_sid The SID of the
21
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the
22
+ # SipDomain resource.
23
+ # @param [String] domain_sid The unique string that that we created to identify
24
+ # the SipDomain resource.
25
25
  # @return [AuthTypesList] AuthTypesList
26
26
  def initialize(version, account_sid: nil, domain_sid: nil)
27
27
  super(version)
@@ -104,11 +104,11 @@ module Twilio
104
104
  # Initialize the AuthTypesInstance
105
105
  # @param [Version] version Version that contains the resource
106
106
  # @param [Hash] payload payload that contains response from Twilio
107
- # @param [String] account_sid The unique id of the
108
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
109
- # domain.
110
- # @param [String] domain_sid A 34 character string that uniquely identifies the
111
- # SIP domain in Twilio.
107
+ # @param [String] account_sid The SID of the
108
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the
109
+ # SipDomain resource.
110
+ # @param [String] domain_sid The unique string that that we created to identify
111
+ # the SipDomain resource.
112
112
  # @return [AuthTypesInstance] AuthTypesInstance
113
113
  def initialize(version, payload, account_sid: nil, domain_sid: nil)
114
114
  super(version)
@@ -18,11 +18,11 @@ module Twilio
18
18
  ##
19
19
  # Initialize the AuthTypeCallsList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] account_sid The unique id of the
22
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
23
- # domain.
24
- # @param [String] domain_sid A 34 character string that uniquely identifies the
25
- # SIP domain in Twilio.
21
+ # @param [String] account_sid The SID of the
22
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the
23
+ # SipDomain resource.
24
+ # @param [String] domain_sid The unique string that that we created to identify
25
+ # the SipDomain resource.
26
26
  # @return [AuthTypeCallsList] AuthTypeCallsList
27
27
  def initialize(version, account_sid: nil, domain_sid: nil)
28
28
  super(version)
@@ -37,8 +37,8 @@ module Twilio
37
37
 
38
38
  ##
39
39
  # Access the credential_list_mappings
40
- # @param [String] sid The credential list Sid that uniquely identifies this
41
- # resource
40
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
41
+ # CredentialListMapping resource to fetch.
42
42
  # @return [AuthCallsCredentialListMappingList]
43
43
  # @return [AuthCallsCredentialListMappingContext] if sid was passed.
44
44
  def credential_list_mappings(sid=:unset)
@@ -62,8 +62,8 @@ module Twilio
62
62
 
63
63
  ##
64
64
  # Access the ip_access_control_list_mappings
65
- # @param [String] sid The IP Access Control List Sid that uniquely identifies this
66
- # resource
65
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
66
+ # IpAccessControlListMapping resource to fetch.
67
67
  # @return [AuthCallsIpAccessControlListMappingList]
68
68
  # @return [AuthCallsIpAccessControlListMappingContext] if sid was passed.
69
69
  def ip_access_control_list_mappings(sid=:unset)
@@ -131,11 +131,11 @@ module Twilio
131
131
  # Initialize the AuthTypeCallsInstance
132
132
  # @param [Version] version Version that contains the resource
133
133
  # @param [Hash] payload payload that contains response from Twilio
134
- # @param [String] account_sid The unique id of the
135
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
136
- # domain.
137
- # @param [String] domain_sid A 34 character string that uniquely identifies the
138
- # SIP domain in Twilio.
134
+ # @param [String] account_sid The SID of the
135
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the
136
+ # SipDomain resource.
137
+ # @param [String] domain_sid The unique string that that we created to identify
138
+ # the SipDomain resource.
139
139
  # @return [AuthTypeCallsInstance] AuthTypeCallsInstance
140
140
  def initialize(version, payload, account_sid: nil, domain_sid: nil)
141
141
  super(version)
@@ -19,11 +19,11 @@ module Twilio
19
19
  ##
20
20
  # Initialize the AuthCallsCredentialListMappingList
21
21
  # @param [Version] version Version that contains the resource
22
- # @param [String] account_sid The unique id of the
23
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
24
- # domain.
25
- # @param [String] domain_sid A 34 character string that uniquely identifies the
26
- # SIP domain in Twilio.
22
+ # @param [String] account_sid The SID of the
23
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the
24
+ # SipDomain resource.
25
+ # @param [String] domain_sid The unique string that that we created to identify
26
+ # the SipDomain resource.
27
27
  # @return [AuthCallsCredentialListMappingList] AuthCallsCredentialListMappingList
28
28
  def initialize(version, account_sid: nil, domain_sid: nil)
29
29
  super(version)
@@ -36,8 +36,8 @@ module Twilio
36
36
  ##
37
37
  # Retrieve a single page of AuthCallsCredentialListMappingInstance records from the API.
38
38
  # Request is executed immediately.
39
- # @param [String] credential_list_sid A 34 character string that uniquely
40
- # identifies this credential list resource
39
+ # @param [String] credential_list_sid The SID of the CredentialList resource to
40
+ # map to the SIP domain.
41
41
  # @return [AuthCallsCredentialListMappingInstance] Newly created AuthCallsCredentialListMappingInstance
42
42
  def create(credential_list_sid: nil)
43
43
  data = Twilio::Values.of({'CredentialListSid' => credential_list_sid, })
@@ -183,10 +183,13 @@ module Twilio
183
183
  ##
184
184
  # Initialize the AuthCallsCredentialListMappingContext
185
185
  # @param [Version] version Version that contains the resource
186
- # @param [String] account_sid The account_sid
187
- # @param [String] domain_sid The domain_sid
188
- # @param [String] sid The credential list Sid that uniquely identifies this
189
- # resource
186
+ # @param [String] account_sid The SID of the
187
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the
188
+ # CredentialListMapping resource to fetch.
189
+ # @param [String] domain_sid The SID of the SIP domain that contains the resource
190
+ # to fetch.
191
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
192
+ # CredentialListMapping resource to fetch.
190
193
  # @return [AuthCallsCredentialListMappingContext] AuthCallsCredentialListMappingContext
191
194
  def initialize(version, account_sid, domain_sid, sid)
192
195
  super(version)
@@ -237,13 +240,13 @@ module Twilio
237
240
  # Initialize the AuthCallsCredentialListMappingInstance
238
241
  # @param [Version] version Version that contains the resource
239
242
  # @param [Hash] payload payload that contains response from Twilio
240
- # @param [String] account_sid The unique id of the
241
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
242
- # domain.
243
- # @param [String] domain_sid A 34 character string that uniquely identifies the
244
- # SIP domain in Twilio.
245
- # @param [String] sid The credential list Sid that uniquely identifies this
246
- # resource
243
+ # @param [String] account_sid The SID of the
244
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the
245
+ # SipDomain resource.
246
+ # @param [String] domain_sid The unique string that that we created to identify
247
+ # the SipDomain resource.
248
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
249
+ # CredentialListMapping resource to fetch.
247
250
  # @return [AuthCallsCredentialListMappingInstance] AuthCallsCredentialListMappingInstance
248
251
  def initialize(version, payload, account_sid: nil, domain_sid: nil, sid: nil)
249
252
  super(version)
@@ -283,31 +286,31 @@ module Twilio
283
286
  end
284
287
 
285
288
  ##
286
- # @return [String] The unique sid that identifies this account
289
+ # @return [String] The SID of the Account that created the resource
287
290
  def account_sid
288
291
  @properties['account_sid']
289
292
  end
290
293
 
291
294
  ##
292
- # @return [Time] The date this resource was created
295
+ # @return [Time] The RFC 2822 date and time in GMT that the resource was created
293
296
  def date_created
294
297
  @properties['date_created']
295
298
  end
296
299
 
297
300
  ##
298
- # @return [Time] The date this resource was last updated
301
+ # @return [Time] The RFC 2822 date and time in GMT that the resource was last updated
299
302
  def date_updated
300
303
  @properties['date_updated']
301
304
  end
302
305
 
303
306
  ##
304
- # @return [String] A human readable description of this resource
307
+ # @return [String] The string that you assigned to describe the resource
305
308
  def friendly_name
306
309
  @properties['friendly_name']
307
310
  end
308
311
 
309
312
  ##
310
- # @return [String] A string that uniquely identifies this resource
313
+ # @return [String] The unique string that identifies the resource
311
314
  def sid
312
315
  @properties['sid']
313
316
  end