twilio-ruby 5.0.0.rc26 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +21 -0
  3. data/.rubocop_todo.yml +187 -0
  4. data/.travis.yml +13 -0
  5. data/CHANGES.md +4 -0
  6. data/Gemfile +2 -2
  7. data/Makefile +8 -1
  8. data/Rakefile +3 -7
  9. data/examples/examples.rb +12 -10
  10. data/examples/{print-call-log.rb → print_call_log.rb} +4 -4
  11. data/lib/rack/twilio_webhook_authentication.rb +2 -3
  12. data/lib/twilio-ruby/framework/domain.rb +2 -6
  13. data/lib/twilio-ruby/framework/error.rb +0 -1
  14. data/lib/twilio-ruby/framework/helper.rb +1 -1
  15. data/lib/twilio-ruby/framework/page.rb +23 -25
  16. data/lib/twilio-ruby/framework/resource.rb +2 -2
  17. data/lib/twilio-ruby/framework/serialize.rb +5 -12
  18. data/lib/twilio-ruby/framework/twilio_response.rb +1 -1
  19. data/lib/twilio-ruby/framework/values.rb +2 -2
  20. data/lib/twilio-ruby/framework/version.rb +19 -37
  21. data/lib/twilio-ruby/http/http_client.rb +5 -6
  22. data/lib/twilio-ruby/jwt/access_token.rb +27 -41
  23. data/lib/twilio-ruby/jwt/client_capability.rb +11 -16
  24. data/lib/twilio-ruby/jwt/jwt.rb +7 -13
  25. data/lib/twilio-ruby/jwt/task_router.rb +40 -38
  26. data/lib/twilio-ruby/rest/accounts.rb +2 -0
  27. data/lib/twilio-ruby/rest/accounts/v1.rb +2 -0
  28. data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -2
  29. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +12 -7
  30. data/lib/twilio-ruby/rest/api.rb +96 -0
  31. data/lib/twilio-ruby/rest/api/v2010.rb +5 -0
  32. data/lib/twilio-ruby/rest/api/v2010/account.rb +66 -56
  33. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +30 -13
  34. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +22 -8
  35. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +40 -11
  36. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +20 -9
  37. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +16 -15
  38. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +26 -28
  39. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +26 -28
  40. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +26 -28
  41. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +64 -34
  42. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +12 -4
  43. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +28 -3
  44. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +37 -16
  45. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +25 -15
  46. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +28 -27
  47. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +28 -19
  48. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +22 -9
  49. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +62 -58
  50. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +52 -12
  51. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +52 -12
  52. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +52 -12
  53. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +8 -9
  54. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +47 -20
  55. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +12 -2
  56. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +17 -17
  57. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +10 -2
  58. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +10 -2
  59. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +37 -16
  60. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +14 -13
  61. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +20 -10
  62. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +10 -10
  63. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +37 -21
  64. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +22 -13
  65. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +22 -13
  66. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +26 -9
  67. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +24 -13
  68. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +8 -9
  69. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +8 -10
  70. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +16 -11
  71. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +14 -9
  72. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +36 -13
  73. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +14 -10
  74. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -10
  75. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +16 -11
  76. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +16 -9
  77. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +14 -2
  78. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +26 -9
  79. data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +4 -6
  80. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +44 -33
  81. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +28 -11
  82. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +28 -11
  83. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +28 -11
  84. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +28 -11
  85. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +28 -11
  86. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +28 -11
  87. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +28 -11
  88. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +28 -11
  89. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +32 -15
  90. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +10 -1
  91. data/lib/twilio-ruby/rest/chat.rb +8 -0
  92. data/lib/twilio-ruby/rest/chat/v1.rb +8 -0
  93. data/lib/twilio-ruby/rest/chat/v1/credential.rb +16 -7
  94. data/lib/twilio-ruby/rest/chat/v1/service.rb +48 -13
  95. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +34 -15
  96. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +20 -10
  97. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +22 -10
  98. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +26 -10
  99. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +18 -8
  100. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +30 -10
  101. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +16 -8
  102. data/lib/twilio-ruby/rest/chat/v2.rb +8 -0
  103. data/lib/twilio-ruby/rest/chat/v2/credential.rb +16 -7
  104. data/lib/twilio-ruby/rest/chat/v2/service.rb +46 -13
  105. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +34 -15
  106. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +20 -10
  107. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +22 -10
  108. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +26 -10
  109. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +18 -8
  110. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +30 -10
  111. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +16 -8
  112. data/lib/twilio-ruby/rest/client.rb +94 -45
  113. data/lib/twilio-ruby/rest/ip_messaging.rb +8 -0
  114. data/lib/twilio-ruby/rest/ip_messaging/v1.rb +8 -0
  115. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +16 -7
  116. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +48 -13
  117. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +34 -15
  118. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +20 -10
  119. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +22 -10
  120. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +26 -10
  121. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +18 -8
  122. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +30 -10
  123. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +16 -8
  124. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +8 -0
  125. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +16 -7
  126. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +46 -13
  127. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +34 -15
  128. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +20 -10
  129. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +22 -10
  130. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +26 -10
  131. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +18 -8
  132. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +30 -10
  133. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +16 -8
  134. data/lib/twilio-ruby/rest/lookups.rb +4 -0
  135. data/lib/twilio-ruby/rest/lookups/v1.rb +9 -5
  136. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +14 -1
  137. data/lib/twilio-ruby/rest/monitor.rb +8 -0
  138. data/lib/twilio-ruby/rest/monitor/v1.rb +8 -0
  139. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +34 -10
  140. data/lib/twilio-ruby/rest/monitor/v1/event.rb +28 -13
  141. data/lib/twilio-ruby/rest/pricing.rb +6 -0
  142. data/lib/twilio-ruby/rest/pricing/v1.rb +6 -0
  143. data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +8 -2
  144. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +12 -7
  145. data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +8 -2
  146. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +10 -7
  147. data/lib/twilio-ruby/rest/pricing/v1/voice.rb +10 -4
  148. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +12 -7
  149. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +14 -1
  150. data/lib/twilio-ruby/rest/taskrouter.rb +4 -0
  151. data/lib/twilio-ruby/rest/taskrouter/v1.rb +4 -0
  152. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +46 -24
  153. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +16 -10
  154. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +30 -17
  155. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +42 -19
  156. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +22 -10
  157. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +16 -8
  158. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +34 -15
  159. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +12 -3
  160. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +10 -11
  161. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +34 -23
  162. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +22 -10
  163. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +28 -9
  164. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +10 -3
  165. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +10 -2
  166. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +28 -11
  167. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +12 -3
  168. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +10 -2
  169. data/lib/twilio-ruby/rest/trunking.rb +4 -0
  170. data/lib/twilio-ruby/rest/trunking/v1.rb +4 -0
  171. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +36 -15
  172. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +14 -8
  173. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +14 -8
  174. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +22 -8
  175. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +52 -8
  176. data/lib/twilio-ruby/rest/video.rb +8 -0
  177. data/lib/twilio-ruby/rest/video/v1.rb +8 -0
  178. data/lib/twilio-ruby/rest/video/v1/recording.rb +26 -12
  179. data/lib/twilio-ruby/rest/video/v1/room.rb +34 -13
  180. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +28 -12
  181. data/lib/twilio-ruby/security/request_validator.rb +1 -2
  182. data/lib/twilio-ruby/twiml/messaging_response.rb +7 -19
  183. data/lib/twilio-ruby/twiml/twiml.rb +8 -14
  184. data/lib/twilio-ruby/twiml/voice_response.rb +157 -169
  185. data/lib/twilio-ruby/util.rb +1 -1
  186. data/lib/twilio-ruby/version.rb +1 -1
  187. data/spec/framework/serialize_spec.rb +17 -30
  188. data/spec/holodeck/holodeck.rb +6 -6
  189. data/spec/jwt/access_token_spec.rb +0 -6
  190. data/spec/jwt/client_capability_spec.rb +3 -3
  191. data/spec/jwt/task_router_spec.rb +16 -21
  192. data/spec/rack/twilio_webhook_authentication_spec.rb +12 -16
  193. data/spec/spec_helper.rb +2 -2
  194. data/spec/support/fakeweb.rb +1 -1
  195. data/spec/twiml/voice_response_spec.rb +33 -20
  196. data/twilio-ruby.gemspec +7 -3
  197. metadata +21 -193
  198. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -420
  199. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -345
  200. data/lib/twilio-ruby/rest/fax.rb +0 -40
  201. data/lib/twilio-ruby/rest/fax/v1.rb +0 -37
  202. data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -520
  203. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +0 -321
  204. data/lib/twilio-ruby/rest/messaging.rb +0 -40
  205. data/lib/twilio-ruby/rest/messaging/v1.rb +0 -37
  206. data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -604
  207. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -344
  208. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -349
  209. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -349
  210. data/lib/twilio-ruby/rest/notify.rb +0 -44
  211. data/lib/twilio-ruby/rest/notify/v1.rb +0 -48
  212. data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -394
  213. data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -611
  214. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -414
  215. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -249
  216. data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +0 -219
  217. data/lib/twilio-ruby/rest/notify/v1/service/user.rb +0 -437
  218. data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +0 -247
  219. data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +0 -418
  220. data/lib/twilio-ruby/rest/preview.rb +0 -107
  221. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -48
  222. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -198
  223. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +0 -209
  224. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -232
  225. data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +0 -37
  226. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -539
  227. data/lib/twilio-ruby/rest/preview/marketplace.rb +0 -48
  228. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -326
  229. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -297
  230. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -427
  231. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -335
  232. data/lib/twilio-ruby/rest/preview/proxy.rb +0 -37
  233. data/lib/twilio-ruby/rest/preview/proxy/service.rb +0 -489
  234. data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +0 -349
  235. data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +0 -525
  236. data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +0 -406
  237. data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +0 -495
  238. data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +0 -422
  239. data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +0 -349
  240. data/lib/twilio-ruby/rest/preview/sync.rb +0 -37
  241. data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -491
  242. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -431
  243. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -390
  244. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -426
  245. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -422
  246. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -390
  247. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -426
  248. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -424
  249. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -390
  250. data/lib/twilio-ruby/rest/preview/wireless.rb +0 -59
  251. data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -371
  252. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -414
  253. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -512
  254. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -220
  255. data/lib/twilio-ruby/rest/sync.rb +0 -40
  256. data/lib/twilio-ruby/rest/sync/v1.rb +0 -37
  257. data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -491
  258. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +0 -431
  259. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -390
  260. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +0 -426
  261. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +0 -422
  262. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -390
  263. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +0 -426
  264. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +0 -424
  265. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -390
  266. data/lib/twilio-ruby/rest/wireless.rb +0 -48
  267. data/lib/twilio-ruby/rest/wireless/v1.rb +0 -59
  268. data/lib/twilio-ruby/rest/wireless/v1/command.rb +0 -357
  269. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +0 -427
  270. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +0 -516
  271. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +0 -235
  272. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +0 -135
  273. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +0 -223
  274. data/spec/integration/fax/v1/fax/fax_media_spec.rb +0 -126
  275. data/spec/integration/fax/v1/fax_spec.rb +0 -272
  276. data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +0 -170
  277. data/spec/integration/messaging/v1/service/phone_number_spec.rb +0 -201
  278. data/spec/integration/messaging/v1/service/short_code_spec.rb +0 -173
  279. data/spec/integration/messaging/v1/service_spec.rb +0 -263
  280. data/spec/integration/notify/v1/credential_spec.rb +0 -223
  281. data/spec/integration/notify/v1/service/binding_spec.rb +0 -227
  282. data/spec/integration/notify/v1/service/notification_spec.rb +0 -97
  283. data/spec/integration/notify/v1/service/segment_spec.rb +0 -84
  284. data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +0 -118
  285. data/spec/integration/notify/v1/service/user/user_binding_spec.rb +0 -269
  286. data/spec/integration/notify/v1/service/user_spec.rb +0 -213
  287. data/spec/integration/notify/v1/service_spec.rb +0 -280
  288. data/spec/integration/preview/bulk_exports/export/day_spec.rb +0 -56
  289. data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +0 -79
  290. data/spec/integration/preview/bulk_exports/export_spec.rb +0 -43
  291. data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +0 -276
  292. data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +0 -121
  293. data/spec/integration/preview/marketplace/available_add_on_spec.rb +0 -142
  294. data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +0 -164
  295. data/spec/integration/preview/marketplace/installed_add_on_spec.rb +0 -252
  296. data/spec/integration/preview/proxy/service/phone_number_spec.rb +0 -173
  297. data/spec/integration/preview/proxy/service/session/interaction_spec.rb +0 -104
  298. data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +0 -164
  299. data/spec/integration/preview/proxy/service/session/participant_spec.rb +0 -226
  300. data/spec/integration/preview/proxy/service/session_spec.rb +0 -216
  301. data/spec/integration/preview/proxy/service/short_code_spec.rb +0 -173
  302. data/spec/integration/preview/proxy/service_spec.rb +0 -200
  303. data/spec/integration/preview/sync/service/document/document_permission_spec.rb +0 -206
  304. data/spec/integration/preview/sync/service/document_spec.rb +0 -254
  305. data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +0 -256
  306. data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +0 -206
  307. data/spec/integration/preview/sync/service/sync_list_spec.rb +0 -207
  308. data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +0 -257
  309. data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +0 -206
  310. data/spec/integration/preview/sync/service/sync_map_spec.rb +0 -207
  311. data/spec/integration/preview/sync/service_spec.rb +0 -244
  312. data/spec/integration/preview/wireless/command_spec.rb +0 -169
  313. data/spec/integration/preview/wireless/rate_plan_spec.rb +0 -260
  314. data/spec/integration/preview/wireless/sim/usage_spec.rb +0 -49
  315. data/spec/integration/preview/wireless/sim_spec.rb +0 -208
  316. data/spec/integration/sync/v1/service/document/document_permission_spec.rb +0 -206
  317. data/spec/integration/sync/v1/service/document_spec.rb +0 -254
  318. data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +0 -256
  319. data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +0 -206
  320. data/spec/integration/sync/v1/service/sync_list_spec.rb +0 -207
  321. data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +0 -257
  322. data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +0 -206
  323. data/spec/integration/sync/v1/service/sync_map_spec.rb +0 -207
  324. data/spec/integration/sync/v1/service_spec.rb +0 -244
  325. data/spec/integration/wireless/v1/command_spec.rb +0 -166
  326. data/spec/integration/wireless/v1/rate_plan_spec.rb +0 -268
  327. data/spec/integration/wireless/v1/sim/usage_record_spec.rb +0 -65
  328. data/spec/integration/wireless/v1/sim_spec.rb +0 -208
@@ -32,10 +32,10 @@ module Twilio
32
32
  # memory before returning.
33
33
  # @param [Time] date_created_before Filter by date created
34
34
  # @param [Time] date_created Filter by date created
35
- # @param [Time] date_created_after: Filter by date created
35
+ # @param [Time] date_created_after Filter by date created
36
36
  # @param [Time] date_updated_before Filter by date updated
37
37
  # @param [Time] date_updated Filter by date updated
38
- # @param [Time] date_updated_after: Filter by date updated
38
+ # @param [Time] date_updated_after Filter by date updated
39
39
  # @param [String] friendly_name Only show results who's friendly name exactly
40
40
  # matches the string
41
41
  # @param [conference.Status] status A string representing the status of the
@@ -68,10 +68,10 @@ module Twilio
68
68
  # is reached.
69
69
  # @param [Time] date_created_before Filter by date created
70
70
  # @param [Time] date_created Filter by date created
71
- # @param [Time] date_created_after: Filter by date created
71
+ # @param [Time] date_created_after Filter by date created
72
72
  # @param [Time] date_updated_before Filter by date updated
73
73
  # @param [Time] date_updated Filter by date updated
74
- # @param [Time] date_updated_after: Filter by date updated
74
+ # @param [Time] date_updated_after Filter by date updated
75
75
  # @param [String] friendly_name Only show results who's friendly name exactly
76
76
  # matches the string
77
77
  # @param [conference.Status] status A string representing the status of the
@@ -105,22 +105,6 @@ module Twilio
105
105
  # When passed a block, yields ConferenceInstance records from the API.
106
106
  # This operation lazily loads records as efficiently as possible until the limit
107
107
  # is reached.
108
- # @param [Time] date_created_before Filter by date created
109
- # @param [Time] date_created Filter by date created
110
- # @param [Time] date_created_after: Filter by date created
111
- # @param [Time] date_updated_before Filter by date updated
112
- # @param [Time] date_updated Filter by date updated
113
- # @param [Time] date_updated_after: Filter by date updated
114
- # @param [String] friendly_name Only show results who's friendly name exactly
115
- # matches the string
116
- # @param [conference.Status] status A string representing the status of the
117
- # conference. May be `init`, `in-progress`, or `completed`.
118
- # @param [Integer] limit Upper limit for the number of records to return. stream()
119
- # guarantees to never return more than limit. Default is no limit
120
- # @param [Integer] page_size Number of records to fetch per request, when not set will use
121
- # the default value of 50 records. If no page_size is defined
122
- # but a limit is defined, stream() will attempt to read the
123
- # limit with the most efficient page size, i.e. min(limit, 1000)
124
108
  def each
125
109
  limits = @version.read_limits
126
110
 
@@ -138,10 +122,10 @@ module Twilio
138
122
  # Request is executed immediately.
139
123
  # @param [Time] date_created_before Filter by date created
140
124
  # @param [Time] date_created Filter by date created
141
- # @param [Time] date_created_after: Filter by date created
125
+ # @param [Time] date_created_after Filter by date created
142
126
  # @param [Time] date_updated_before Filter by date updated
143
127
  # @param [Time] date_updated Filter by date updated
144
- # @param [Time] date_updated_after: Filter by date updated
128
+ # @param [Time] date_updated_after Filter by date updated
145
129
  # @param [String] friendly_name Only show results who's friendly name exactly
146
130
  # matches the string
147
131
  # @param [conference.Status] status A string representing the status of the
@@ -198,8 +182,6 @@ module Twilio
198
182
  # @param [Version] version Version that contains the resource
199
183
  # @param [Response] response Response from the API
200
184
  # @param [Hash] solution Path solution for the resource
201
- # @param [String] account_sid The unique id of the Account] responsible for
202
- # creating this conference.
203
185
  # @return [ConferencePage] ConferencePage
204
186
  def initialize(version, response, solution)
205
187
  super(version, response)
@@ -293,8 +275,8 @@ module Twilio
293
275
 
294
276
  ##
295
277
  # Access the participants
296
- # @return [ParticipantList] if a(n) ParticipantList object was created.
297
- # @return [ParticipantContext] if a(n) ParticipantContext object was created.
278
+ # @return [ParticipantList]
279
+ # @return [ParticipantContext] if call_sid was passed.
298
280
  def participants(call_sid=:unset)
299
281
  raise ArgumentError, 'call_sid cannot be nil' if call_sid.nil?
300
282
 
@@ -363,7 +345,6 @@ module Twilio
363
345
  ##
364
346
  # Generate an instance context for the instance, the context is capable of
365
347
  # performing various actions. All instance actions are proxied to the context
366
- # @param [Version] version Version that contains the resource
367
348
  # @return [ConferenceContext] ConferenceContext for this ConferenceInstance
368
349
  def context
369
350
  unless @instance_context
@@ -376,42 +357,62 @@ module Twilio
376
357
  @instance_context
377
358
  end
378
359
 
360
+ ##
361
+ # @return [String] The unique sid that identifies this account
379
362
  def account_sid
380
363
  @properties['account_sid']
381
364
  end
382
365
 
366
+ ##
367
+ # @return [Time] The date this resource was created
383
368
  def date_created
384
369
  @properties['date_created']
385
370
  end
386
371
 
372
+ ##
373
+ # @return [Time] The date this resource was last updated
387
374
  def date_updated
388
375
  @properties['date_updated']
389
376
  end
390
377
 
378
+ ##
379
+ # @return [String] The api_version
391
380
  def api_version
392
381
  @properties['api_version']
393
382
  end
394
383
 
384
+ ##
385
+ # @return [String] A human readable description of this resource
395
386
  def friendly_name
396
387
  @properties['friendly_name']
397
388
  end
398
389
 
390
+ ##
391
+ # @return [String] The region
399
392
  def region
400
393
  @properties['region']
401
394
  end
402
395
 
396
+ ##
397
+ # @return [String] A string that uniquely identifies this conference
403
398
  def sid
404
399
  @properties['sid']
405
400
  end
406
401
 
402
+ ##
403
+ # @return [participant.Status] The status of the conference
407
404
  def status
408
405
  @properties['status']
409
406
  end
410
407
 
408
+ ##
409
+ # @return [String] The URI for this resource
411
410
  def uri
412
411
  @properties['uri']
413
412
  end
414
413
 
414
+ ##
415
+ # @return [String] The subresource_uris
415
416
  def subresource_uris
416
417
  @properties['subresource_uris']
417
418
  end
@@ -164,14 +164,6 @@ module Twilio
164
164
  # When passed a block, yields ParticipantInstance records from the API.
165
165
  # This operation lazily loads records as efficiently as possible until the limit
166
166
  # is reached.
167
- # @param [Boolean] muted Only show participants that are muted or unmuted
168
- # @param [Boolean] hold The hold
169
- # @param [Integer] limit Upper limit for the number of records to return. stream()
170
- # guarantees to never return more than limit. Default is no limit
171
- # @param [Integer] page_size Number of records to fetch per request, when not set will use
172
- # the default value of 50 records. If no page_size is defined
173
- # but a limit is defined, stream() will attempt to read the
174
- # limit with the most efficient page size, i.e. min(limit, 1000)
175
167
  def each
176
168
  limits = @version.read_limits
177
169
 
@@ -235,10 +227,6 @@ module Twilio
235
227
  # @param [Version] version Version that contains the resource
236
228
  # @param [Response] response Response from the API
237
229
  # @param [Hash] solution Path solution for the resource
238
- # @param [String] account_sid The unique id of the Account that created this
239
- # conference
240
- # @param [String] conference_sid A 34 character string that identifies the
241
- # conference this participant is in
242
230
  # @return [ParticipantPage] ParticipantPage
243
231
  def initialize(version, response, solution)
244
232
  super(version, response)
@@ -316,16 +304,16 @@ module Twilio
316
304
  # @param [String] hold_url The hold_url
317
305
  # @param [String] hold_method The hold_method
318
306
  # @param [String] announce_url The announce_url
319
- # @param [String] announce_url_method The announce_url_method
307
+ # @param [String] announce_method The announce_method
320
308
  # @return [ParticipantInstance] Updated ParticipantInstance
321
- def update(muted: :unset, hold: :unset, hold_url: :unset, hold_method: :unset, announce_url: :unset, announce_url_method: :unset)
309
+ def update(muted: :unset, hold: :unset, hold_url: :unset, hold_method: :unset, announce_url: :unset, announce_method: :unset)
322
310
  data = Twilio::Values.of({
323
311
  'Muted' => muted,
324
312
  'Hold' => hold,
325
313
  'HoldUrl' => hold_url,
326
314
  'HoldMethod' => hold_method,
327
315
  'AnnounceUrl' => announce_url,
328
- 'AnnounceUrlMethod' => announce_url_method,
316
+ 'AnnounceMethod' => announce_method,
329
317
  })
330
318
 
331
319
  payload = @version.update(
@@ -399,7 +387,6 @@ module Twilio
399
387
  ##
400
388
  # Generate an instance context for the instance, the context is capable of
401
389
  # performing various actions. All instance actions are proxied to the context
402
- # @param [Version] version Version that contains the resource
403
390
  # @return [ParticipantContext] ParticipantContext for this ParticipantInstance
404
391
  def context
405
392
  unless @instance_context
@@ -413,46 +400,68 @@ module Twilio
413
400
  @instance_context
414
401
  end
415
402
 
403
+ ##
404
+ # @return [String] The unique sid that identifies this account
416
405
  def account_sid
417
406
  @properties['account_sid']
418
407
  end
419
408
 
409
+ ##
410
+ # @return [String] A string that uniquely identifies this call
420
411
  def call_sid
421
412
  @properties['call_sid']
422
413
  end
423
414
 
415
+ ##
416
+ # @return [String] A string that uniquely identifies this conference
424
417
  def conference_sid
425
418
  @properties['conference_sid']
426
419
  end
427
420
 
421
+ ##
422
+ # @return [Time] The date this resource was created
428
423
  def date_created
429
424
  @properties['date_created']
430
425
  end
431
426
 
427
+ ##
428
+ # @return [Time] The date this resource was last updated
432
429
  def date_updated
433
430
  @properties['date_updated']
434
431
  end
435
432
 
433
+ ##
434
+ # @return [Boolean] Indicates if the endConferenceOnExit was set
436
435
  def end_conference_on_exit
437
436
  @properties['end_conference_on_exit']
438
437
  end
439
438
 
439
+ ##
440
+ # @return [Boolean] Indicates if the participant is muted
440
441
  def muted
441
442
  @properties['muted']
442
443
  end
443
444
 
445
+ ##
446
+ # @return [Boolean] The hold
444
447
  def hold
445
448
  @properties['hold']
446
449
  end
447
450
 
451
+ ##
452
+ # @return [Boolean] Indicates if the startConferenceOnEnter attribute was set
448
453
  def start_conference_on_enter
449
454
  @properties['start_conference_on_enter']
450
455
  end
451
456
 
457
+ ##
458
+ # @return [participant.Status] The status
452
459
  def status
453
460
  @properties['status']
454
461
  end
455
462
 
463
+ ##
464
+ # @return [String] The URI for this resource
456
465
  def uri
457
466
  @properties['uri']
458
467
  end
@@ -471,16 +480,16 @@ module Twilio
471
480
  # @param [String] hold_url The hold_url
472
481
  # @param [String] hold_method The hold_method
473
482
  # @param [String] announce_url The announce_url
474
- # @param [String] announce_url_method The announce_url_method
483
+ # @param [String] announce_method The announce_method
475
484
  # @return [ParticipantInstance] Updated ParticipantInstance
476
- def update(muted: :unset, hold: :unset, hold_url: :unset, hold_method: :unset, announce_url: :unset, announce_url_method: :unset)
485
+ def update(muted: :unset, hold: :unset, hold_url: :unset, hold_method: :unset, announce_url: :unset, announce_method: :unset)
477
486
  context.update(
478
487
  muted: muted,
479
488
  hold: hold,
480
489
  hold_url: hold_url,
481
490
  hold_method: hold_method,
482
491
  announce_url: announce_url,
483
- announce_url_method: announce_url_method,
492
+ announce_method: announce_method,
484
493
  )
485
494
  end
486
495
 
@@ -69,12 +69,6 @@ module Twilio
69
69
  # When passed a block, yields ConnectAppInstance records from the API.
70
70
  # This operation lazily loads records as efficiently as possible until the limit
71
71
  # is reached.
72
- # @param [Integer] limit Upper limit for the number of records to return. stream()
73
- # guarantees to never return more than limit. Default is no limit
74
- # @param [Integer] page_size Number of records to fetch per request, when not set will use
75
- # the default value of 50 records. If no page_size is defined
76
- # but a limit is defined, stream() will attempt to read the
77
- # limit with the most efficient page size, i.e. min(limit, 1000)
78
72
  def each
79
73
  limits = @version.read_limits
80
74
 
@@ -134,8 +128,6 @@ module Twilio
134
128
  # @param [Version] version Version that contains the resource
135
129
  # @param [Response] response Response from the API
136
130
  # @param [Hash] solution Path solution for the resource
137
- # @param [String] account_sid The unique id of the Account that created this
138
- # ConnectApp.
139
131
  # @return [ConnectAppPage] ConnectAppPage
140
132
  def initialize(version, response, solution)
141
133
  super(version, response)
@@ -291,7 +283,6 @@ module Twilio
291
283
  ##
292
284
  # Generate an instance context for the instance, the context is capable of
293
285
  # performing various actions. All instance actions are proxied to the context
294
- # @param [Version] version Version that contains the resource
295
286
  # @return [ConnectAppContext] ConnectAppContext for this ConnectAppInstance
296
287
  def context
297
288
  unless @instance_context
@@ -304,46 +295,68 @@ module Twilio
304
295
  @instance_context
305
296
  end
306
297
 
298
+ ##
299
+ # @return [String] The unique sid that identifies this account
307
300
  def account_sid
308
301
  @properties['account_sid']
309
302
  end
310
303
 
304
+ ##
305
+ # @return [String] URIL Twilio sends requests when users authorize
311
306
  def authorize_redirect_url
312
307
  @properties['authorize_redirect_url']
313
308
  end
314
309
 
310
+ ##
311
+ # @return [String] The company name set for this Connect App.
315
312
  def company_name
316
313
  @properties['company_name']
317
314
  end
318
315
 
316
+ ##
317
+ # @return [String] HTTP method Twilio WIll use making requests to the url
319
318
  def deauthorize_callback_method
320
319
  @properties['deauthorize_callback_method']
321
320
  end
322
321
 
322
+ ##
323
+ # @return [String] URL Twilio will send a request when a user de-authorizes this app
323
324
  def deauthorize_callback_url
324
325
  @properties['deauthorize_callback_url']
325
326
  end
326
327
 
328
+ ##
329
+ # @return [String] A more detailed human readable description
327
330
  def description
328
331
  @properties['description']
329
332
  end
330
333
 
334
+ ##
335
+ # @return [String] A human readable name for the Connect App.
331
336
  def friendly_name
332
337
  @properties['friendly_name']
333
338
  end
334
339
 
340
+ ##
341
+ # @return [String] The URL users can obtain more information
335
342
  def homepage_url
336
343
  @properties['homepage_url']
337
344
  end
338
345
 
346
+ ##
347
+ # @return [connect_app.Permission] The set of permissions that your ConnectApp requests.
339
348
  def permissions
340
349
  @properties['permissions']
341
350
  end
342
351
 
352
+ ##
353
+ # @return [String] A string that uniquely identifies this connect-apps
343
354
  def sid
344
355
  @properties['sid']
345
356
  end
346
357
 
358
+ ##
359
+ # @return [String] The URI for this resource
347
360
  def uri
348
361
  @properties['uri']
349
362
  end
@@ -94,18 +94,6 @@ module Twilio
94
94
  # When passed a block, yields IncomingPhoneNumberInstance records from the API.
95
95
  # This operation lazily loads records as efficiently as possible until the limit
96
96
  # is reached.
97
- # @param [Boolean] beta Include phone numbers new to the Twilio platform
98
- # @param [String] friendly_name Only show the incoming phone number resources with
99
- # friendly names that exactly match this name
100
- # @param [String] phone_number Only show the incoming phone number resources that
101
- # match this pattern
102
- # @param [String] origin The origin
103
- # @param [Integer] limit Upper limit for the number of records to return. stream()
104
- # guarantees to never return more than limit. Default is no limit
105
- # @param [Integer] page_size Number of records to fetch per request, when not set will use
106
- # the default value of 50 records. If no page_size is defined
107
- # but a limit is defined, stream() will attempt to read the
108
- # limit with the most efficient page size, i.e. min(limit, 1000)
109
97
  def each
110
98
  limits = @version.read_limits
111
99
 
@@ -254,8 +242,8 @@ module Twilio
254
242
 
255
243
  ##
256
244
  # Access the local
257
- # @return [LocalList] if a(n) LocalList object was created.
258
- # @return [LocalContext] if a(n) LocalContext object was created.
245
+ # @return [LocalList]
246
+ # @return [LocalContext]
259
247
  def local
260
248
  @local ||= LocalList.new(
261
249
  @version,
@@ -265,8 +253,8 @@ module Twilio
265
253
 
266
254
  ##
267
255
  # Access the mobile
268
- # @return [MobileList] if a(n) MobileList object was created.
269
- # @return [MobileContext] if a(n) MobileContext object was created.
256
+ # @return [MobileList]
257
+ # @return [MobileContext]
270
258
  def mobile
271
259
  @mobile ||= MobileList.new(
272
260
  @version,
@@ -276,8 +264,8 @@ module Twilio
276
264
 
277
265
  ##
278
266
  # Access the toll_free
279
- # @return [TollFreeList] if a(n) TollFreeList object was created.
280
- # @return [TollFreeContext] if a(n) TollFreeContext object was created.
267
+ # @return [TollFreeList]
268
+ # @return [TollFreeContext]
281
269
  def toll_free
282
270
  @toll_free ||= TollFreeList.new(
283
271
  @version,
@@ -298,8 +286,6 @@ module Twilio
298
286
  # @param [Version] version Version that contains the resource
299
287
  # @param [Response] response Response from the API
300
288
  # @param [Hash] solution Path solution for the resource
301
- # @param [String] account_sid The unique id of the Account responsible for this
302
- # phone number.
303
289
  # @return [IncomingPhoneNumberPage] IncomingPhoneNumberPage
304
290
  def initialize(version, response, solution)
305
291
  super(version, response)
@@ -344,9 +330,6 @@ module Twilio
344
330
  sid: sid,
345
331
  }
346
332
  @uri = "/Accounts/#{@solution[:account_sid]}/IncomingPhoneNumbers/#{@solution[:sid]}.json"
347
-
348
- # Dependents
349
- @assigned_add_ons = nil
350
333
  end
351
334
 
352
335
  ##
@@ -460,33 +443,6 @@ module Twilio
460
443
  @version.delete('delete', @uri)
461
444
  end
462
445
 
463
- ##
464
- # Access the assigned_add_ons
465
- # @return [AssignedAddOnList] if a(n) AssignedAddOnList object was created.
466
- # @return [AssignedAddOnContext] if a(n) AssignedAddOnContext object was created.
467
- def assigned_add_ons(sid=:unset)
468
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
469
-
470
- if sid != :unset
471
- return AssignedAddOnContext.new(
472
- @version,
473
- @solution[:account_sid],
474
- @solution[:sid],
475
- sid,
476
- )
477
- end
478
-
479
- unless @assigned_add_ons
480
- @assigned_add_ons = AssignedAddOnList.new(
481
- @version,
482
- account_sid: @solution[:account_sid],
483
- resource_sid: @solution[:sid],
484
- )
485
- end
486
-
487
- @assigned_add_ons
488
- end
489
-
490
446
  ##
491
447
  # Provide a user friendly representation
492
448
  def to_s
@@ -551,7 +507,6 @@ module Twilio
551
507
  ##
552
508
  # Generate an instance context for the instance, the context is capable of
553
509
  # performing various actions. All instance actions are proxied to the context
554
- # @param [Version] version Version that contains the resource
555
510
  # @return [IncomingPhoneNumberContext] IncomingPhoneNumberContext for this IncomingPhoneNumberInstance
556
511
  def context
557
512
  unless @instance_context
@@ -564,114 +519,170 @@ module Twilio
564
519
  @instance_context
565
520
  end
566
521
 
522
+ ##
523
+ # @return [String] The unique sid that identifies this account
567
524
  def account_sid
568
525
  @properties['account_sid']
569
526
  end
570
527
 
528
+ ##
529
+ # @return [toll_free.AddressRequirement] Indicates if the customer requires an address
571
530
  def address_requirements
572
531
  @properties['address_requirements']
573
532
  end
574
533
 
534
+ ##
535
+ # @return [String] The Twilio REST API version to use
575
536
  def api_version
576
537
  @properties['api_version']
577
538
  end
578
539
 
540
+ ##
541
+ # @return [Boolean] Indicates if the phone number is a beta number
579
542
  def beta
580
543
  @properties['beta']
581
544
  end
582
545
 
546
+ ##
547
+ # @return [String] Indicate if a phone can receive calls or messages
583
548
  def capabilities
584
549
  @properties['capabilities']
585
550
  end
586
551
 
552
+ ##
553
+ # @return [Time] The date this resource was created
587
554
  def date_created
588
555
  @properties['date_created']
589
556
  end
590
557
 
558
+ ##
559
+ # @return [Time] The date this resource was last updated
591
560
  def date_updated
592
561
  @properties['date_updated']
593
562
  end
594
563
 
564
+ ##
565
+ # @return [String] A human readable description of this resouce
595
566
  def friendly_name
596
567
  @properties['friendly_name']
597
568
  end
598
569
 
570
+ ##
571
+ # @return [String] The incoming phone number
599
572
  def phone_number
600
573
  @properties['phone_number']
601
574
  end
602
575
 
576
+ ##
577
+ # @return [String] The origin
603
578
  def origin
604
579
  @properties['origin']
605
580
  end
606
581
 
582
+ ##
583
+ # @return [String] A string that uniquely identifies this resource
607
584
  def sid
608
585
  @properties['sid']
609
586
  end
610
587
 
588
+ ##
589
+ # @return [String] Unique string that identifies the application
611
590
  def sms_application_sid
612
591
  @properties['sms_application_sid']
613
592
  end
614
593
 
594
+ ##
595
+ # @return [String] HTTP method used with sms fallback url
615
596
  def sms_fallback_method
616
597
  @properties['sms_fallback_method']
617
598
  end
618
599
 
600
+ ##
601
+ # @return [String] URL Twilio will request if an error occurs in executing TwiML
619
602
  def sms_fallback_url
620
603
  @properties['sms_fallback_url']
621
604
  end
622
605
 
606
+ ##
607
+ # @return [String] HTTP method to use with sms url
623
608
  def sms_method
624
609
  @properties['sms_method']
625
610
  end
626
611
 
612
+ ##
613
+ # @return [String] URL Twilio will request when receiving an SMS
627
614
  def sms_url
628
615
  @properties['sms_url']
629
616
  end
630
617
 
618
+ ##
619
+ # @return [String] URL Twilio will use to pass status parameters
631
620
  def status_callback
632
621
  @properties['status_callback']
633
622
  end
634
623
 
624
+ ##
625
+ # @return [String] HTTP method twilio will use with status callback
635
626
  def status_callback_method
636
627
  @properties['status_callback_method']
637
628
  end
638
629
 
630
+ ##
631
+ # @return [String] Unique string to identify the trunk
639
632
  def trunk_sid
640
633
  @properties['trunk_sid']
641
634
  end
642
635
 
636
+ ##
637
+ # @return [String] The URI for this resource
643
638
  def uri
644
639
  @properties['uri']
645
640
  end
646
641
 
642
+ ##
643
+ # @return [String] The unique sid of the application to handle this number
647
644
  def voice_application_sid
648
645
  @properties['voice_application_sid']
649
646
  end
650
647
 
648
+ ##
649
+ # @return [Boolean] Look up the caller's caller-ID
651
650
  def voice_caller_id_lookup
652
651
  @properties['voice_caller_id_lookup']
653
652
  end
654
653
 
654
+ ##
655
+ # @return [String] HTTP method used with fallback_url
655
656
  def voice_fallback_method
656
657
  @properties['voice_fallback_method']
657
658
  end
658
659
 
660
+ ##
661
+ # @return [String] URL Twilio will request when an error occurs in TwiML
659
662
  def voice_fallback_url
660
663
  @properties['voice_fallback_url']
661
664
  end
662
665
 
666
+ ##
667
+ # @return [String] HTTP method used with the voice url
663
668
  def voice_method
664
669
  @properties['voice_method']
665
670
  end
666
671
 
672
+ ##
673
+ # @return [String] URL Twilio will request when receiving a call
667
674
  def voice_url
668
675
  @properties['voice_url']
669
676
  end
670
677
 
678
+ ##
679
+ # @return [incoming_phone_number.EmergencyStatus] The emergency_status
671
680
  def emergency_status
672
681
  @properties['emergency_status']
673
682
  end
674
683
 
684
+ ##
685
+ # @return [String] The emergency_address_sid
675
686
  def emergency_address_sid
676
687
  @properties['emergency_address_sid']
677
688
  end
@@ -761,13 +772,6 @@ module Twilio
761
772
  context.delete
762
773
  end
763
774
 
764
- ##
765
- # Access the assigned_add_ons
766
- # @return [assigned_add_ons] assigned_add_ons
767
- def assigned_add_ons
768
- context.assigned_add_ons
769
- end
770
-
771
775
  ##
772
776
  # Provide a user friendly representation
773
777
  def to_s