twilio-ruby 5.0.0.rc18 → 5.0.0.rc19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (369) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +9 -0
  3. data/lib/twilio-ruby/jwt/access_token.rb +25 -0
  4. data/lib/twilio-ruby/rest/accounts.rb +40 -0
  5. data/lib/twilio-ruby/rest/accounts/v1.rb +35 -0
  6. data/lib/twilio-ruby/rest/accounts/v1/credential.rb +102 -0
  7. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +352 -0
  8. data/lib/twilio-ruby/rest/api.rb +30 -34
  9. data/lib/twilio-ruby/rest/api/v2010.rb +28 -32
  10. data/lib/twilio-ruby/rest/api/v2010/account.rb +132 -150
  11. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +71 -55
  12. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +29 -29
  13. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +58 -58
  14. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +37 -37
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +45 -45
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +39 -39
  17. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +39 -39
  18. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +39 -39
  19. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +102 -123
  20. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +33 -33
  21. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +38 -38
  22. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +52 -52
  23. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +42 -37
  24. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +83 -40
  25. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +131 -43
  26. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +42 -42
  27. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +172 -96
  28. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +404 -0
  29. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +332 -0
  30. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +62 -57
  31. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +62 -57
  32. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +62 -57
  33. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +37 -37
  34. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +78 -85
  35. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +19 -19
  36. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +47 -57
  37. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +18 -18
  38. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +18 -18
  39. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +46 -46
  40. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +40 -40
  41. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +50 -50
  42. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +36 -36
  43. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +101 -68
  44. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +372 -0
  45. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +356 -0
  46. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +42 -42
  47. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +43 -43
  48. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +37 -37
  49. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +27 -16
  50. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +48 -48
  51. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +43 -43
  52. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +65 -60
  53. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +43 -38
  54. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +43 -38
  55. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +48 -48
  56. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +44 -44
  57. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +20 -20
  58. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +42 -42
  59. data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +13 -13
  60. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +78 -82
  61. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +45 -73
  62. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +45 -73
  63. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +45 -73
  64. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +45 -73
  65. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +45 -73
  66. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +45 -73
  67. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +45 -73
  68. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +45 -73
  69. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +52 -52
  70. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +18 -18
  71. data/lib/twilio-ruby/rest/chat.rb +16 -9
  72. data/lib/twilio-ruby/rest/chat/v1.rb +4 -4
  73. data/lib/twilio-ruby/rest/chat/v1/credential.rb +53 -47
  74. data/lib/twilio-ruby/rest/chat/v1/service.rb +446 -69
  75. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +114 -69
  76. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +363 -0
  77. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +99 -44
  78. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +76 -54
  79. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +45 -45
  80. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +101 -46
  81. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +223 -0
  82. data/lib/twilio-ruby/rest/chat/v2.rb +44 -0
  83. data/lib/twilio-ruby/rest/chat/v2/credential.rb +381 -0
  84. data/lib/twilio-ruby/rest/chat/v2/service.rb +633 -0
  85. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +513 -0
  86. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +363 -0
  87. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +406 -0
  88. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +418 -0
  89. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +373 -0
  90. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +433 -0
  91. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +223 -0
  92. data/lib/twilio-ruby/rest/client.rb +91 -75
  93. data/lib/twilio-ruby/rest/fax.rb +40 -0
  94. data/lib/twilio-ruby/rest/fax/v1.rb +35 -0
  95. data/lib/twilio-ruby/rest/fax/v1/fax.rb +397 -0
  96. data/lib/twilio-ruby/rest/ip_messaging.rb +16 -9
  97. data/lib/twilio-ruby/rest/ip_messaging/v1.rb +4 -4
  98. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +53 -47
  99. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +446 -69
  100. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +114 -69
  101. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +363 -0
  102. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +99 -44
  103. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +76 -54
  104. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +45 -45
  105. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +101 -46
  106. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +223 -0
  107. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +44 -0
  108. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +381 -0
  109. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +633 -0
  110. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +513 -0
  111. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +363 -0
  112. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +406 -0
  113. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +418 -0
  114. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +373 -0
  115. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +433 -0
  116. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +223 -0
  117. data/lib/twilio-ruby/rest/lookups.rb +6 -6
  118. data/lib/twilio-ruby/rest/lookups/v1.rb +3 -3
  119. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +30 -25
  120. data/lib/twilio-ruby/rest/messaging.rb +40 -0
  121. data/lib/twilio-ruby/rest/messaging/v1.rb +35 -0
  122. data/lib/twilio-ruby/rest/messaging/v1/service.rb +524 -0
  123. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +331 -0
  124. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +336 -0
  125. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +336 -0
  126. data/lib/twilio-ruby/rest/monitor.rb +7 -7
  127. data/lib/twilio-ruby/rest/monitor/v1.rb +4 -4
  128. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +57 -85
  129. data/lib/twilio-ruby/rest/monitor/v1/event.rb +63 -81
  130. data/lib/twilio-ruby/rest/notify.rb +7 -7
  131. data/lib/twilio-ruby/rest/notify/v1.rb +4 -4
  132. data/lib/twilio-ruby/rest/notify/v1/credential.rb +53 -47
  133. data/lib/twilio-ruby/rest/notify/v1/service.rb +148 -60
  134. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +70 -86
  135. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +47 -33
  136. data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +206 -0
  137. data/lib/twilio-ruby/rest/notify/v1/service/user.rb +418 -0
  138. data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +247 -0
  139. data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +405 -0
  140. data/lib/twilio-ruby/rest/preview.rb +34 -19
  141. data/lib/twilio-ruby/rest/preview/marketplace.rb +44 -0
  142. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +310 -0
  143. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +284 -0
  144. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +411 -0
  145. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +322 -0
  146. data/lib/twilio-ruby/rest/preview/sync.rb +3 -3
  147. data/lib/twilio-ruby/rest/preview/sync/service.rb +72 -61
  148. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +85 -46
  149. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +377 -0
  150. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +79 -47
  151. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +46 -46
  152. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +377 -0
  153. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +79 -47
  154. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +46 -46
  155. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +377 -0
  156. data/lib/twilio-ruby/rest/preview/wireless.rb +12 -12
  157. data/lib/twilio-ruby/rest/preview/wireless/command.rb +68 -45
  158. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +137 -73
  159. data/lib/twilio-ruby/rest/preview/wireless/{device.rb → sim.rb} +127 -150
  160. data/lib/twilio-ruby/rest/preview/wireless/{device → sim}/usage.rb +49 -49
  161. data/lib/twilio-ruby/rest/pricing.rb +8 -8
  162. data/lib/twilio-ruby/rest/pricing/v1.rb +5 -5
  163. data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +16 -16
  164. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +33 -33
  165. data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +16 -16
  166. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +33 -38
  167. data/lib/twilio-ruby/rest/pricing/v1/voice.rb +18 -18
  168. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +33 -33
  169. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +26 -26
  170. data/lib/twilio-ruby/rest/taskrouter.rb +6 -6
  171. data/lib/twilio-ruby/rest/taskrouter/v1.rb +3 -3
  172. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +103 -82
  173. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +48 -43
  174. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +42 -42
  175. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +114 -75
  176. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +50 -40
  177. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -35
  178. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +110 -78
  179. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +31 -30
  180. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +24 -24
  181. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +71 -61
  182. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +50 -40
  183. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +45 -45
  184. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +28 -23
  185. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +28 -23
  186. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +60 -50
  187. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +29 -24
  188. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +34 -29
  189. data/lib/twilio-ruby/rest/trunking.rb +6 -6
  190. data/lib/twilio-ruby/rest/trunking/v1.rb +3 -3
  191. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +67 -67
  192. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +39 -39
  193. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +39 -39
  194. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +47 -47
  195. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +58 -58
  196. data/lib/twilio-ruby/rest/video.rb +44 -0
  197. data/lib/twilio-ruby/rest/video/v1.rb +44 -0
  198. data/lib/twilio-ruby/rest/video/v1/recording.rb +341 -0
  199. data/lib/twilio-ruby/rest/video/v1/room.rb +411 -0
  200. data/lib/twilio-ruby/version.rb +1 -1
  201. data/spec/integration/accounts/v1/credential/public_key_spec.rb +226 -0
  202. data/spec/integration/accounts/v1/credential_spec.rb +10 -0
  203. data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +7 -7
  204. data/spec/integration/api/v2010/account/address_spec.rb +32 -24
  205. data/spec/integration/api/v2010/account/application_spec.rb +24 -24
  206. data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +11 -11
  207. data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +7 -7
  208. data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +7 -7
  209. data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +7 -7
  210. data/spec/integration/api/v2010/account/available_phone_number_spec.rb +11 -11
  211. data/spec/integration/api/v2010/account/call/feedback_spec.rb +14 -14
  212. data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +14 -14
  213. data/spec/integration/api/v2010/account/call/notification_spec.rb +15 -15
  214. data/spec/integration/api/v2010/account/call/recording_spec.rb +15 -15
  215. data/spec/integration/api/v2010/account/call_spec.rb +24 -24
  216. data/spec/integration/api/v2010/account/conference/participant_spec.rb +97 -25
  217. data/spec/integration/api/v2010/account/conference_spec.rb +56 -17
  218. data/spec/integration/api/v2010/account/connect_app_spec.rb +15 -15
  219. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +135 -0
  220. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +223 -0
  221. data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +12 -12
  222. data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +12 -12
  223. data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +12 -12
  224. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +32 -24
  225. data/spec/integration/api/v2010/account/key_spec.rb +19 -19
  226. data/spec/integration/api/v2010/account/message/feedback_spec.rb +25 -3
  227. data/spec/integration/api/v2010/account/message/media_spec.rb +15 -15
  228. data/spec/integration/api/v2010/account/message_spec.rb +34 -27
  229. data/spec/integration/api/v2010/account/new_key_spec.rb +5 -5
  230. data/spec/integration/api/v2010/account/new_signing_key_spec.rb +5 -5
  231. data/spec/integration/api/v2010/account/notification_spec.rb +15 -15
  232. data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +19 -19
  233. data/spec/integration/api/v2010/account/queue/member_spec.rb +15 -15
  234. data/spec/integration/api/v2010/account/queue_spec.rb +30 -27
  235. data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +175 -0
  236. data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +166 -0
  237. data/spec/integration/api/v2010/account/recording/transcription_spec.rb +15 -15
  238. data/spec/integration/api/v2010/account/recording_spec.rb +16 -16
  239. data/spec/integration/api/v2010/account/short_code_spec.rb +15 -15
  240. data/spec/integration/api/v2010/account/signing_key_spec.rb +19 -19
  241. data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +24 -24
  242. data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +24 -24
  243. data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +20 -20
  244. data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +20 -20
  245. data/spec/integration/api/v2010/account/sip/domain_spec.rb +24 -24
  246. data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +24 -24
  247. data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +24 -24
  248. data/spec/integration/api/v2010/account/sip_spec.rb +1 -1
  249. data/spec/integration/api/v2010/account/token_spec.rb +6 -6
  250. data/spec/integration/api/v2010/account/transcription_spec.rb +15 -15
  251. data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +7 -7
  252. data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +7 -7
  253. data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +7 -7
  254. data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +7 -7
  255. data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +7 -7
  256. data/spec/integration/api/v2010/account/usage/record/today_spec.rb +7 -7
  257. data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +7 -7
  258. data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +7 -7
  259. data/spec/integration/api/v2010/account/usage/record_spec.rb +7 -7
  260. data/spec/integration/api/v2010/account/usage/trigger_spec.rb +27 -27
  261. data/spec/integration/api/v2010/account/usage_spec.rb +1 -1
  262. data/spec/integration/api/v2010/account/validation_request_spec.rb +23 -3
  263. data/spec/integration/api/v2010/account_spec.rb +20 -24
  264. data/spec/integration/chat/v1/credential_spec.rb +31 -31
  265. data/spec/integration/chat/v1/service/channel/invite_spec.rb +210 -0
  266. data/spec/integration/chat/v1/service/channel/member_spec.rb +102 -31
  267. data/spec/integration/chat/v1/service/channel/message_spec.rb +210 -16
  268. data/spec/integration/chat/v1/service/channel_spec.rb +71 -55
  269. data/spec/integration/chat/v1/service/role_spec.rb +33 -33
  270. data/spec/integration/chat/v1/service/user/user_channel_spec.rb +92 -0
  271. data/spec/integration/chat/v1/service/user_spec.rb +57 -33
  272. data/spec/integration/chat/v1/service_spec.rb +142 -106
  273. data/spec/integration/chat/v2/credential_spec.rb +223 -0
  274. data/spec/integration/chat/v2/service/channel/invite_spec.rb +210 -0
  275. data/spec/integration/chat/v2/service/channel/member_spec.rb +284 -0
  276. data/spec/integration/chat/v2/service/channel/message_spec.rb +294 -0
  277. data/spec/integration/chat/v2/service/channel_spec.rb +275 -0
  278. data/spec/integration/chat/v2/service/role_spec.rb +263 -0
  279. data/spec/integration/chat/v2/service/user/user_channel_spec.rb +92 -0
  280. data/spec/integration/chat/v2/service/user_spec.rb +266 -0
  281. data/spec/integration/chat/v2/service_spec.rb +325 -0
  282. data/spec/integration/fax/v1/fax_spec.rb +231 -0
  283. data/spec/integration/ip_messaging/v1/credential_spec.rb +31 -31
  284. data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +210 -0
  285. data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +102 -31
  286. data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +210 -16
  287. data/spec/integration/ip_messaging/v1/service/channel_spec.rb +71 -55
  288. data/spec/integration/ip_messaging/v1/service/role_spec.rb +33 -33
  289. data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +92 -0
  290. data/spec/integration/ip_messaging/v1/service/user_spec.rb +57 -33
  291. data/spec/integration/ip_messaging/v1/service_spec.rb +142 -106
  292. data/spec/integration/ip_messaging/v2/credential_spec.rb +223 -0
  293. data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +210 -0
  294. data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +284 -0
  295. data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +294 -0
  296. data/spec/integration/ip_messaging/v2/service/channel_spec.rb +275 -0
  297. data/spec/integration/ip_messaging/v2/service/role_spec.rb +263 -0
  298. data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +92 -0
  299. data/spec/integration/ip_messaging/v2/service/user_spec.rb +266 -0
  300. data/spec/integration/ip_messaging/v2/service_spec.rb +325 -0
  301. data/spec/integration/lookups/v1/phone_number_spec.rb +5 -5
  302. data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +170 -0
  303. data/spec/integration/messaging/v1/service/phone_number_spec.rb +173 -0
  304. data/spec/integration/messaging/v1/service/short_code_spec.rb +173 -0
  305. data/spec/integration/messaging/v1/service_spec.rb +243 -0
  306. data/spec/integration/monitor/v1/alert_spec.rb +57 -57
  307. data/spec/integration/monitor/v1/event_spec.rb +11 -11
  308. data/spec/integration/notify/v1/credential_spec.rb +23 -23
  309. data/spec/integration/notify/v1/service/binding_spec.rb +88 -71
  310. data/spec/integration/notify/v1/service/notification_spec.rb +7 -5
  311. data/spec/integration/notify/v1/service/segment_spec.rb +84 -0
  312. data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +118 -0
  313. data/spec/integration/notify/v1/service/user/user_binding_spec.rb +235 -0
  314. data/spec/integration/notify/v1/service/user_spec.rb +213 -0
  315. data/spec/integration/notify/v1/service_spec.rb +50 -30
  316. data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +121 -0
  317. data/spec/integration/preview/marketplace/available_add_on_spec.rb +142 -0
  318. data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +164 -0
  319. data/spec/integration/preview/marketplace/installed_add_on_spec.rb +252 -0
  320. data/spec/integration/preview/sync/service/document/document_permission_spec.rb +206 -0
  321. data/spec/integration/preview/sync/service/document_spec.rb +179 -17
  322. data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +167 -11
  323. data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +206 -0
  324. data/spec/integration/preview/sync/service/sync_list_spec.rb +143 -9
  325. data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +167 -11
  326. data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +206 -0
  327. data/spec/integration/preview/sync/service/sync_map_spec.rb +143 -9
  328. data/spec/integration/preview/sync/service_spec.rb +171 -11
  329. data/spec/integration/preview/wireless/command_spec.rb +120 -9
  330. data/spec/integration/preview/wireless/rate_plan_spec.rb +228 -7
  331. data/spec/integration/preview/wireless/sim/usage_spec.rb +49 -0
  332. data/spec/integration/preview/wireless/sim_spec.rb +184 -0
  333. data/spec/integration/pricing/v1/messaging/country_spec.rb +101 -5
  334. data/spec/integration/pricing/v1/messaging_spec.rb +1 -1
  335. data/spec/integration/pricing/v1/phone_number/country_spec.rb +11 -11
  336. data/spec/integration/pricing/v1/phone_number_spec.rb +1 -1
  337. data/spec/integration/pricing/v1/voice/country_spec.rb +11 -11
  338. data/spec/integration/pricing/v1/voice/number_spec.rb +5 -5
  339. data/spec/integration/pricing/v1/voice_spec.rb +1 -1
  340. data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +29 -33
  341. data/spec/integration/taskrouter/v1/workspace/event_spec.rb +11 -11
  342. data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +15 -15
  343. data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +11 -11
  344. data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +12 -10
  345. data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +17 -16
  346. data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +52 -36
  347. data/spec/integration/taskrouter/v1/workspace/task_spec.rb +101 -46
  348. data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +15 -15
  349. data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +15 -15
  350. data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +6 -5
  351. data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +6 -5
  352. data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +39 -27
  353. data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +13 -11
  354. data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +47 -35
  355. data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +10 -8
  356. data/spec/integration/taskrouter/v1/workspace_spec.rb +28 -24
  357. data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +20 -20
  358. data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +62 -62
  359. data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +23 -23
  360. data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +19 -19
  361. data/spec/integration/trunking/v1/trunk_spec.rb +23 -23
  362. data/spec/integration/video/v1/recording_spec.rb +120 -0
  363. data/spec/integration/video/v1/room_spec.rb +225 -0
  364. data/spec/jwt/access_token_spec.rb +22 -0
  365. metadata +158 -12
  366. data/lib/twilio-ruby/rest/api/v2010/account/sandbox.rb +0 -287
  367. data/spec/integration/api/v2010/account/sandbox_spec.rb +0 -99
  368. data/spec/integration/preview/wireless/device/usage_spec.rb +0 -25
  369. data/spec/integration/preview/wireless/device_spec.rb +0 -72
@@ -2,7 +2,7 @@
2
2
  # This code was generated by
3
3
  # \ / _ _ _| _ _
4
4
  # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
- # / /
5
+ # / /
6
6
 
7
7
  module Twilio
8
8
  module REST
@@ -11,127 +11,123 @@ module Twilio
11
11
  # Initialize the Api Domain
12
12
  def initialize(twilio)
13
13
  super
14
-
14
+
15
15
  @base_url = 'https://api.twilio.com'
16
16
  @host = 'api.twilio.com'
17
17
  @port = 443
18
-
18
+
19
19
  # Versions
20
20
  @v2010 = nil
21
21
  end
22
-
22
+
23
23
  ##
24
24
  # Version v2010 of api
25
25
  def v2010
26
26
  @v2010 ||= V2010.new self
27
27
  end
28
-
28
+
29
29
  ##
30
30
  # Account provided as the authenticating account
31
31
  def account
32
32
  self.v2010.account
33
33
  end
34
-
34
+
35
35
  def accounts
36
36
  self.v2010.accounts
37
37
  end
38
-
38
+
39
39
  def addresses(sid=:unset)
40
40
  self.account.addresses(sid)
41
41
  end
42
-
42
+
43
43
  def applications(sid=:unset)
44
44
  self.account.applications(sid)
45
45
  end
46
-
46
+
47
47
  def authorized_connect_apps(connect_app_sid=:unset)
48
48
  self.account.authorized_connect_apps(connect_app_sid)
49
49
  end
50
-
50
+
51
51
  def available_phone_numbers(country_code=:unset)
52
52
  self.account.available_phone_numbers(country_code)
53
53
  end
54
-
54
+
55
55
  def calls(sid=:unset)
56
56
  self.account.calls(sid)
57
57
  end
58
-
58
+
59
59
  def conferences(sid=:unset)
60
60
  self.account.conferences(sid)
61
61
  end
62
-
62
+
63
63
  def connect_apps(sid=:unset)
64
64
  self.account.connect_apps(sid)
65
65
  end
66
-
66
+
67
67
  def incoming_phone_numbers(sid=:unset)
68
68
  self.account.incoming_phone_numbers(sid)
69
69
  end
70
-
70
+
71
71
  def keys(sid=:unset)
72
72
  self.account.keys(sid)
73
73
  end
74
-
74
+
75
75
  def messages(sid=:unset)
76
76
  self.account.messages(sid)
77
77
  end
78
-
78
+
79
79
  def new_keys
80
80
  self.account.new_keys()
81
81
  end
82
-
82
+
83
83
  def new_signing_keys
84
84
  self.account.new_signing_keys()
85
85
  end
86
-
86
+
87
87
  def notifications(sid=:unset)
88
88
  self.account.notifications(sid)
89
89
  end
90
-
90
+
91
91
  def outgoing_caller_ids(sid=:unset)
92
92
  self.account.outgoing_caller_ids(sid)
93
93
  end
94
-
94
+
95
95
  def queues(sid=:unset)
96
96
  self.account.queues(sid)
97
97
  end
98
-
98
+
99
99
  def recordings(sid=:unset)
100
100
  self.account.recordings(sid)
101
101
  end
102
-
103
- def sandbox
104
- self.account.sandbox()
105
- end
106
-
102
+
107
103
  def signing_keys(sid=:unset)
108
104
  self.account.signing_keys(sid)
109
105
  end
110
-
106
+
111
107
  def sip
112
108
  self.account.sip()
113
109
  end
114
-
110
+
115
111
  def short_codes(sid=:unset)
116
112
  self.account.short_codes(sid)
117
113
  end
118
-
114
+
119
115
  def tokens
120
116
  self.account.tokens()
121
117
  end
122
-
118
+
123
119
  def transcriptions(sid=:unset)
124
120
  self.account.transcriptions(sid)
125
121
  end
126
-
122
+
127
123
  def usage
128
124
  self.account.usage()
129
125
  end
130
-
126
+
131
127
  def validation_requests
132
128
  self.account.validation_requests()
133
129
  end
134
-
130
+
135
131
  ##
136
132
  # Provide a user friendly representation
137
133
  def to_s
@@ -2,7 +2,7 @@
2
2
  # This code was generated by
3
3
  # \ / _ _ _| _ _
4
4
  # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
- # / /
5
+ # / /
6
6
 
7
7
  module Twilio
8
8
  module REST
@@ -16,7 +16,7 @@ module Twilio
16
16
  @accounts = nil
17
17
  @account = nil
18
18
  end
19
-
19
+
20
20
  def accounts(sid=:unset)
21
21
  if sid == :unset
22
22
  @accounts ||= AccountList.new self
@@ -24,115 +24,111 @@ module Twilio
24
24
  AccountContext.new(self, sid)
25
25
  end
26
26
  end
27
-
27
+
28
28
  ##
29
29
  # Account provided as the authenticating account
30
30
  def account
31
31
  @account ||= AccountContext.new(self, @domain.client.account_sid)
32
32
  end
33
-
33
+
34
34
  ##
35
35
  # Setter to override the primary account
36
36
  def account=(value)
37
37
  @account = value
38
38
  end
39
-
39
+
40
40
  def addresses(sid=:unset)
41
41
  self.account.addresses(sid)
42
42
  end
43
-
43
+
44
44
  def applications(sid=:unset)
45
45
  self.account.applications(sid)
46
46
  end
47
-
47
+
48
48
  def authorized_connect_apps(connect_app_sid=:unset)
49
49
  self.account.authorized_connect_apps(connect_app_sid)
50
50
  end
51
-
51
+
52
52
  def available_phone_numbers(country_code=:unset)
53
53
  self.account.available_phone_numbers(country_code)
54
54
  end
55
-
55
+
56
56
  def calls(sid=:unset)
57
57
  self.account.calls(sid)
58
58
  end
59
-
59
+
60
60
  def conferences(sid=:unset)
61
61
  self.account.conferences(sid)
62
62
  end
63
-
63
+
64
64
  def connect_apps(sid=:unset)
65
65
  self.account.connect_apps(sid)
66
66
  end
67
-
67
+
68
68
  def incoming_phone_numbers(sid=:unset)
69
69
  self.account.incoming_phone_numbers(sid)
70
70
  end
71
-
71
+
72
72
  def keys(sid=:unset)
73
73
  self.account.keys(sid)
74
74
  end
75
-
75
+
76
76
  def messages(sid=:unset)
77
77
  self.account.messages(sid)
78
78
  end
79
-
79
+
80
80
  def new_keys
81
81
  self.account.new_keys()
82
82
  end
83
-
83
+
84
84
  def new_signing_keys
85
85
  self.account.new_signing_keys()
86
86
  end
87
-
87
+
88
88
  def notifications(sid=:unset)
89
89
  self.account.notifications(sid)
90
90
  end
91
-
91
+
92
92
  def outgoing_caller_ids(sid=:unset)
93
93
  self.account.outgoing_caller_ids(sid)
94
94
  end
95
-
95
+
96
96
  def queues(sid=:unset)
97
97
  self.account.queues(sid)
98
98
  end
99
-
99
+
100
100
  def recordings(sid=:unset)
101
101
  self.account.recordings(sid)
102
102
  end
103
-
104
- def sandbox
105
- self.account.sandbox()
106
- end
107
-
103
+
108
104
  def signing_keys(sid=:unset)
109
105
  self.account.signing_keys(sid)
110
106
  end
111
-
107
+
112
108
  def sip
113
109
  self.account.sip()
114
110
  end
115
-
111
+
116
112
  def short_codes(sid=:unset)
117
113
  self.account.short_codes(sid)
118
114
  end
119
-
115
+
120
116
  def tokens
121
117
  self.account.tokens()
122
118
  end
123
-
119
+
124
120
  def transcriptions(sid=:unset)
125
121
  self.account.transcriptions(sid)
126
122
  end
127
-
123
+
128
124
  def usage
129
125
  self.account.usage()
130
126
  end
131
-
127
+
132
128
  def validation_requests
133
129
  self.account.validation_requests()
134
130
  end
135
-
131
+
136
132
  ##
137
133
  # Provide a user friendly representation
138
134
  def to_s
@@ -2,7 +2,7 @@
2
2
  # This code was generated by
3
3
  # \ / _ _ _| _ _
4
4
  # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
- # / /
5
+ # / /
6
6
 
7
7
  module Twilio
8
8
  module REST
@@ -15,12 +15,12 @@ module Twilio
15
15
  # @return [AccountList] AccountList
16
16
  def initialize(version)
17
17
  super(version)
18
-
18
+
19
19
  # Path Solution
20
20
  @solution = {}
21
21
  @uri = "/Accounts.json"
22
22
  end
23
-
23
+
24
24
  ##
25
25
  # Retrieve a single page of AccountInstance records from the API.
26
26
  # Request is executed immediately.
@@ -31,19 +31,19 @@ module Twilio
31
31
  data = {
32
32
  'FriendlyName' => friendly_name,
33
33
  }
34
-
34
+
35
35
  payload = @version.create(
36
36
  'POST',
37
37
  @uri,
38
38
  data: data
39
39
  )
40
-
40
+
41
41
  return AccountInstance.new(
42
42
  @version,
43
43
  payload,
44
44
  )
45
45
  end
46
-
46
+
47
47
  ##
48
48
  # Lists AccountInstance records from the API as a list.
49
49
  # Unlike stream(), this operation is eager and will load `limit` records into
@@ -66,7 +66,7 @@ module Twilio
66
66
  page_size: page_size
67
67
  ).entries
68
68
  end
69
-
69
+
70
70
  ##
71
71
  # Streams AccountInstance records from the API as an Enumerable.
72
72
  # This operation lazily loads records as efficiently as possible until the limit
@@ -83,16 +83,16 @@ module Twilio
83
83
  # @return [Enumerable] Enumerable that will yield up to limit results
84
84
  def stream(friendly_name: nil, status: nil, limit: nil, page_size: nil)
85
85
  limits = @version.read_limits(limit, page_size)
86
-
86
+
87
87
  page = self.page(
88
88
  friendly_name: friendly_name,
89
89
  status: status,
90
90
  page_size: limits[:page_size],
91
91
  )
92
-
92
+
93
93
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
94
94
  end
95
-
95
+
96
96
  ##
97
97
  # When passed a block, yields AccountInstance records from the API.
98
98
  # This operation lazily loads records as efficiently as possible until the limit
@@ -108,16 +108,16 @@ module Twilio
108
108
  # limit with the most efficient page size, i.e. min(limit, 1000)
109
109
  def each
110
110
  limits = @version.read_limits
111
-
111
+
112
112
  page = self.page(
113
113
  page_size: limits[:page_size],
114
114
  )
115
-
115
+
116
116
  @version.stream(page,
117
117
  limit: limits[:limit],
118
118
  page_limit: limits[:page_limit]).each {|x| yield x}
119
119
  end
120
-
120
+
121
121
  ##
122
122
  # Retrieve a single page of AccountInstance records from the API.
123
123
  # Request is executed immediately.
@@ -143,14 +143,14 @@ module Twilio
143
143
  )
144
144
  return AccountPage.new(@version, response, @solution)
145
145
  end
146
-
146
+
147
147
  ##
148
148
  # Provide a user friendly representation
149
149
  def to_s
150
150
  '#<Twilio.Api.V2010.AccountList>'
151
151
  end
152
152
  end
153
-
153
+
154
154
  class AccountPage < Page
155
155
  ##
156
156
  # Initialize the AccountPage
@@ -160,11 +160,11 @@ module Twilio
160
160
  # @return [AccountPage] AccountPage
161
161
  def initialize(version, response, solution)
162
162
  super(version, response)
163
-
163
+
164
164
  # Path Solution
165
165
  @solution = solution
166
166
  end
167
-
167
+
168
168
  ##
169
169
  # Build an instance of AccountInstance
170
170
  # @param [Hash] payload Payload response from the API
@@ -175,14 +175,14 @@ module Twilio
175
175
  payload,
176
176
  )
177
177
  end
178
-
178
+
179
179
  ##
180
180
  # Provide a user friendly representation
181
181
  def to_s
182
182
  '<Twilio.Api.V2010.AccountPage>'
183
183
  end
184
184
  end
185
-
185
+
186
186
  class AccountContext < InstanceContext
187
187
  ##
188
188
  # Initialize the AccountContext
@@ -192,13 +192,13 @@ module Twilio
192
192
  # @return [AccountContext] AccountContext
193
193
  def initialize(version, sid)
194
194
  super(version)
195
-
195
+
196
196
  # Path Solution
197
197
  @solution = {
198
198
  sid: sid,
199
199
  }
200
200
  @uri = "/Accounts/#{@solution[:sid]}.json"
201
-
201
+
202
202
  # Dependents
203
203
  @addresses = nil
204
204
  @applications = nil
@@ -216,7 +216,6 @@ module Twilio
216
216
  @outgoing_caller_ids = nil
217
217
  @queues = nil
218
218
  @recordings = nil
219
- @sandbox = nil
220
219
  @signing_keys = nil
221
220
  @sip = nil
222
221
  @short_codes = nil
@@ -225,26 +224,26 @@ module Twilio
225
224
  @usage = nil
226
225
  @validation_requests = nil
227
226
  end
228
-
227
+
229
228
  ##
230
229
  # Fetch a AccountInstance
231
230
  # @return [AccountInstance] Fetched AccountInstance
232
231
  def fetch
233
232
  params = {}
234
-
233
+
235
234
  payload = @version.fetch(
236
235
  'GET',
237
236
  @uri,
238
237
  params,
239
238
  )
240
-
239
+
241
240
  return AccountInstance.new(
242
241
  @version,
243
242
  payload,
244
243
  sid: @solution[:sid],
245
244
  )
246
245
  end
247
-
246
+
248
247
  ##
249
248
  # Update the AccountInstance
250
249
  # @param [String] friendly_name Update the human-readable description of this
@@ -257,20 +256,20 @@ module Twilio
257
256
  'FriendlyName' => friendly_name,
258
257
  'Status' => status,
259
258
  }
260
-
259
+
261
260
  payload = @version.update(
262
261
  'POST',
263
262
  @uri,
264
263
  data: data,
265
264
  )
266
-
265
+
267
266
  return AccountInstance.new(
268
267
  @version,
269
268
  payload,
270
269
  sid: @solution[:sid],
271
270
  )
272
271
  end
273
-
272
+
274
273
  ##
275
274
  # Access the addresses
276
275
  # @return [AddressList] AddressList
@@ -282,17 +281,17 @@ module Twilio
282
281
  sid,
283
282
  )
284
283
  end
285
-
284
+
286
285
  unless @addresses
287
286
  @addresses = AddressList.new(
288
287
  @version,
289
288
  account_sid: @solution[:sid],
290
289
  )
291
290
  end
292
-
291
+
293
292
  @addresses
294
293
  end
295
-
294
+
296
295
  ##
297
296
  # Access the applications
298
297
  # @return [ApplicationList] ApplicationList
@@ -304,17 +303,17 @@ module Twilio
304
303
  sid,
305
304
  )
306
305
  end
307
-
306
+
308
307
  unless @applications
309
308
  @applications = ApplicationList.new(
310
309
  @version,
311
310
  account_sid: @solution[:sid],
312
311
  )
313
312
  end
314
-
313
+
315
314
  @applications
316
315
  end
317
-
316
+
318
317
  ##
319
318
  # Access the authorized_connect_apps
320
319
  # @return [AuthorizedConnectAppList] AuthorizedConnectAppList
@@ -326,17 +325,17 @@ module Twilio
326
325
  connect_app_sid,
327
326
  )
328
327
  end
329
-
328
+
330
329
  unless @authorized_connect_apps
331
330
  @authorized_connect_apps = AuthorizedConnectAppList.new(
332
331
  @version,
333
332
  account_sid: @solution[:sid],
334
333
  )
335
334
  end
336
-
335
+
337
336
  @authorized_connect_apps
338
337
  end
339
-
338
+
340
339
  ##
341
340
  # Access the available_phone_numbers
342
341
  # @return [AvailablePhoneNumberCountryList] AvailablePhoneNumberCountryList
@@ -348,17 +347,17 @@ module Twilio
348
347
  country_code,
349
348
  )
350
349
  end
351
-
350
+
352
351
  unless @available_phone_numbers
353
352
  @available_phone_numbers = AvailablePhoneNumberCountryList.new(
354
353
  @version,
355
354
  account_sid: @solution[:sid],
356
355
  )
357
356
  end
358
-
357
+
359
358
  @available_phone_numbers
360
359
  end
361
-
360
+
362
361
  ##
363
362
  # Access the calls
364
363
  # @return [CallList] CallList
@@ -370,17 +369,17 @@ module Twilio
370
369
  sid,
371
370
  )
372
371
  end
373
-
372
+
374
373
  unless @calls
375
374
  @calls = CallList.new(
376
375
  @version,
377
376
  account_sid: @solution[:sid],
378
377
  )
379
378
  end
380
-
379
+
381
380
  @calls
382
381
  end
383
-
382
+
384
383
  ##
385
384
  # Access the conferences
386
385
  # @return [ConferenceList] ConferenceList
@@ -392,17 +391,17 @@ module Twilio
392
391
  sid,
393
392
  )
394
393
  end
395
-
394
+
396
395
  unless @conferences
397
396
  @conferences = ConferenceList.new(
398
397
  @version,
399
398
  account_sid: @solution[:sid],
400
399
  )
401
400
  end
402
-
401
+
403
402
  @conferences
404
403
  end
405
-
404
+
406
405
  ##
407
406
  # Access the connect_apps
408
407
  # @return [ConnectAppList] ConnectAppList
@@ -414,17 +413,17 @@ module Twilio
414
413
  sid,
415
414
  )
416
415
  end
417
-
416
+
418
417
  unless @connect_apps
419
418
  @connect_apps = ConnectAppList.new(
420
419
  @version,
421
420
  account_sid: @solution[:sid],
422
421
  )
423
422
  end
424
-
423
+
425
424
  @connect_apps
426
425
  end
427
-
426
+
428
427
  ##
429
428
  # Access the incoming_phone_numbers
430
429
  # @return [IncomingPhoneNumberList] IncomingPhoneNumberList
@@ -436,17 +435,17 @@ module Twilio
436
435
  sid,
437
436
  )
438
437
  end
439
-
438
+
440
439
  unless @incoming_phone_numbers
441
440
  @incoming_phone_numbers = IncomingPhoneNumberList.new(
442
441
  @version,
443
- owner_account_sid: @solution[:sid],
442
+ account_sid: @solution[:sid],
444
443
  )
445
444
  end
446
-
445
+
447
446
  @incoming_phone_numbers
448
447
  end
449
-
448
+
450
449
  ##
451
450
  # Access the keys
452
451
  # @return [KeyList] KeyList
@@ -458,17 +457,17 @@ module Twilio
458
457
  sid,
459
458
  )
460
459
  end
461
-
460
+
462
461
  unless @keys
463
462
  @keys = KeyList.new(
464
463
  @version,
465
464
  account_sid: @solution[:sid],
466
465
  )
467
466
  end
468
-
467
+
469
468
  @keys
470
469
  end
471
-
470
+
472
471
  ##
473
472
  # Access the messages
474
473
  # @return [MessageList] MessageList
@@ -480,17 +479,17 @@ module Twilio
480
479
  sid,
481
480
  )
482
481
  end
483
-
482
+
484
483
  unless @messages
485
484
  @messages = MessageList.new(
486
485
  @version,
487
486
  account_sid: @solution[:sid],
488
487
  )
489
488
  end
490
-
489
+
491
490
  @messages
492
491
  end
493
-
492
+
494
493
  ##
495
494
  # Access the new_keys
496
495
  # @return [NewKeyList] NewKeyList
@@ -501,10 +500,10 @@ module Twilio
501
500
  account_sid: @solution[:sid],
502
501
  )
503
502
  end
504
-
503
+
505
504
  @new_keys
506
505
  end
507
-
506
+
508
507
  ##
509
508
  # Access the new_signing_keys
510
509
  # @return [NewSigningKeyList] NewSigningKeyList
@@ -515,10 +514,10 @@ module Twilio
515
514
  account_sid: @solution[:sid],
516
515
  )
517
516
  end
518
-
517
+
519
518
  @new_signing_keys
520
519
  end
521
-
520
+
522
521
  ##
523
522
  # Access the notifications
524
523
  # @return [NotificationList] NotificationList
@@ -530,17 +529,17 @@ module Twilio
530
529
  sid,
531
530
  )
532
531
  end
533
-
532
+
534
533
  unless @notifications
535
534
  @notifications = NotificationList.new(
536
535
  @version,
537
536
  account_sid: @solution[:sid],
538
537
  )
539
538
  end
540
-
539
+
541
540
  @notifications
542
541
  end
543
-
542
+
544
543
  ##
545
544
  # Access the outgoing_caller_ids
546
545
  # @return [OutgoingCallerIdList] OutgoingCallerIdList
@@ -552,17 +551,17 @@ module Twilio
552
551
  sid,
553
552
  )
554
553
  end
555
-
554
+
556
555
  unless @outgoing_caller_ids
557
556
  @outgoing_caller_ids = OutgoingCallerIdList.new(
558
557
  @version,
559
558
  account_sid: @solution[:sid],
560
559
  )
561
560
  end
562
-
561
+
563
562
  @outgoing_caller_ids
564
563
  end
565
-
564
+
566
565
  ##
567
566
  # Access the queues
568
567
  # @return [QueueList] QueueList
@@ -574,17 +573,17 @@ module Twilio
574
573
  sid,
575
574
  )
576
575
  end
577
-
576
+
578
577
  unless @queues
579
578
  @queues = QueueList.new(
580
579
  @version,
581
580
  account_sid: @solution[:sid],
582
581
  )
583
582
  end
584
-
583
+
585
584
  @queues
586
585
  end
587
-
586
+
588
587
  ##
589
588
  # Access the recordings
590
589
  # @return [RecordingList] RecordingList
@@ -596,27 +595,17 @@ module Twilio
596
595
  sid,
597
596
  )
598
597
  end
599
-
598
+
600
599
  unless @recordings
601
600
  @recordings = RecordingList.new(
602
601
  @version,
603
602
  account_sid: @solution[:sid],
604
603
  )
605
604
  end
606
-
605
+
607
606
  @recordings
608
607
  end
609
-
610
- ##
611
- # Access the sandbox
612
- # @return [SandboxList] SandboxList
613
- def sandbox
614
- return SandboxContext.new(
615
- @version,
616
- @solution[:sid],
617
- )
618
- end
619
-
608
+
620
609
  ##
621
610
  # Access the signing_keys
622
611
  # @return [SigningKeyList] SigningKeyList
@@ -628,17 +617,17 @@ module Twilio
628
617
  sid,
629
618
  )
630
619
  end
631
-
620
+
632
621
  unless @signing_keys
633
622
  @signing_keys = SigningKeyList.new(
634
623
  @version,
635
624
  account_sid: @solution[:sid],
636
625
  )
637
626
  end
638
-
627
+
639
628
  @signing_keys
640
629
  end
641
-
630
+
642
631
  ##
643
632
  # Access the sip
644
633
  # @return [SipList] SipList
@@ -649,10 +638,10 @@ module Twilio
649
638
  account_sid: @solution[:sid],
650
639
  )
651
640
  end
652
-
641
+
653
642
  @sip
654
643
  end
655
-
644
+
656
645
  ##
657
646
  # Access the short_codes
658
647
  # @return [ShortCodeList] ShortCodeList
@@ -664,17 +653,17 @@ module Twilio
664
653
  sid,
665
654
  )
666
655
  end
667
-
656
+
668
657
  unless @short_codes
669
658
  @short_codes = ShortCodeList.new(
670
659
  @version,
671
660
  account_sid: @solution[:sid],
672
661
  )
673
662
  end
674
-
663
+
675
664
  @short_codes
676
665
  end
677
-
666
+
678
667
  ##
679
668
  # Access the tokens
680
669
  # @return [TokenList] TokenList
@@ -685,10 +674,10 @@ module Twilio
685
674
  account_sid: @solution[:sid],
686
675
  )
687
676
  end
688
-
677
+
689
678
  @tokens
690
679
  end
691
-
680
+
692
681
  ##
693
682
  # Access the transcriptions
694
683
  # @return [TranscriptionList] TranscriptionList
@@ -700,17 +689,17 @@ module Twilio
700
689
  sid,
701
690
  )
702
691
  end
703
-
692
+
704
693
  unless @transcriptions
705
694
  @transcriptions = TranscriptionList.new(
706
695
  @version,
707
696
  account_sid: @solution[:sid],
708
697
  )
709
698
  end
710
-
699
+
711
700
  @transcriptions
712
701
  end
713
-
702
+
714
703
  ##
715
704
  # Access the usage
716
705
  # @return [UsageList] UsageList
@@ -721,10 +710,10 @@ module Twilio
721
710
  account_sid: @solution[:sid],
722
711
  )
723
712
  end
724
-
713
+
725
714
  @usage
726
715
  end
727
-
716
+
728
717
  ##
729
718
  # Access the validation_requests
730
719
  # @return [ValidationRequestList] ValidationRequestList
@@ -735,10 +724,10 @@ module Twilio
735
724
  account_sid: @solution[:sid],
736
725
  )
737
726
  end
738
-
727
+
739
728
  @validation_requests
740
729
  end
741
-
730
+
742
731
  ##
743
732
  # Provide a user friendly representation
744
733
  def to_s
@@ -746,7 +735,7 @@ module Twilio
746
735
  "#<Twilio.Api.V2010.AccountContext #{context}>"
747
736
  end
748
737
  end
749
-
738
+
750
739
  class AccountInstance < InstanceResource
751
740
  ##
752
741
  # Initialize the AccountInstance
@@ -757,7 +746,7 @@ module Twilio
757
746
  # @return [AccountInstance] AccountInstance
758
747
  def initialize(version, payload, sid: nil)
759
748
  super(version)
760
-
749
+
761
750
  # Marshaled Properties
762
751
  @properties = {
763
752
  'auth_token' => payload['auth_token'],
@@ -771,14 +760,14 @@ module Twilio
771
760
  'type' => payload['type'],
772
761
  'uri' => payload['uri'],
773
762
  }
774
-
763
+
775
764
  # Context
776
765
  @instance_context = nil
777
766
  @params = {
778
767
  'sid' => sid || @properties['sid'],
779
768
  }
780
769
  end
781
-
770
+
782
771
  ##
783
772
  # Generate an instance context for the instance, the context is capable of
784
773
  # performing various actions. All instance actions are proxied to the context
@@ -793,54 +782,54 @@ module Twilio
793
782
  end
794
783
  @instance_context
795
784
  end
796
-
785
+
797
786
  def auth_token
798
787
  @properties['auth_token']
799
788
  end
800
-
789
+
801
790
  def date_created
802
791
  @properties['date_created']
803
792
  end
804
-
793
+
805
794
  def date_updated
806
795
  @properties['date_updated']
807
796
  end
808
-
797
+
809
798
  def friendly_name
810
799
  @properties['friendly_name']
811
800
  end
812
-
801
+
813
802
  def owner_account_sid
814
803
  @properties['owner_account_sid']
815
804
  end
816
-
805
+
817
806
  def sid
818
807
  @properties['sid']
819
808
  end
820
-
809
+
821
810
  def status
822
811
  @properties['status']
823
812
  end
824
-
813
+
825
814
  def subresource_uris
826
815
  @properties['subresource_uris']
827
816
  end
828
-
817
+
829
818
  def type
830
819
  @properties['type']
831
820
  end
832
-
821
+
833
822
  def uri
834
823
  @properties['uri']
835
824
  end
836
-
825
+
837
826
  ##
838
827
  # Fetch a AccountInstance
839
828
  # @return [AccountInstance] Fetched AccountInstance
840
829
  def fetch
841
830
  context.fetch
842
831
  end
843
-
832
+
844
833
  ##
845
834
  # Update the AccountInstance
846
835
  # @param [String] friendly_name Update the human-readable description of this
@@ -854,175 +843,168 @@ module Twilio
854
843
  status: status,
855
844
  )
856
845
  end
857
-
846
+
858
847
  ##
859
848
  # Access the addresses
860
849
  # @return [addresses] addresses
861
850
  def addresses
862
851
  context.addresses
863
852
  end
864
-
853
+
865
854
  ##
866
855
  # Access the applications
867
856
  # @return [applications] applications
868
857
  def applications
869
858
  context.applications
870
859
  end
871
-
860
+
872
861
  ##
873
862
  # Access the authorized_connect_apps
874
863
  # @return [authorized_connect_apps] authorized_connect_apps
875
864
  def authorized_connect_apps
876
865
  context.authorized_connect_apps
877
866
  end
878
-
867
+
879
868
  ##
880
869
  # Access the available_phone_numbers
881
870
  # @return [available_phone_numbers] available_phone_numbers
882
871
  def available_phone_numbers
883
872
  context.available_phone_numbers
884
873
  end
885
-
874
+
886
875
  ##
887
876
  # Access the calls
888
877
  # @return [calls] calls
889
878
  def calls
890
879
  context.calls
891
880
  end
892
-
881
+
893
882
  ##
894
883
  # Access the conferences
895
884
  # @return [conferences] conferences
896
885
  def conferences
897
886
  context.conferences
898
887
  end
899
-
888
+
900
889
  ##
901
890
  # Access the connect_apps
902
891
  # @return [connect_apps] connect_apps
903
892
  def connect_apps
904
893
  context.connect_apps
905
894
  end
906
-
895
+
907
896
  ##
908
897
  # Access the incoming_phone_numbers
909
898
  # @return [incoming_phone_numbers] incoming_phone_numbers
910
899
  def incoming_phone_numbers
911
900
  context.incoming_phone_numbers
912
901
  end
913
-
902
+
914
903
  ##
915
904
  # Access the keys
916
905
  # @return [keys] keys
917
906
  def keys
918
907
  context.keys
919
908
  end
920
-
909
+
921
910
  ##
922
911
  # Access the messages
923
912
  # @return [messages] messages
924
913
  def messages
925
914
  context.messages
926
915
  end
927
-
916
+
928
917
  ##
929
918
  # Access the new_keys
930
919
  # @return [new_keys] new_keys
931
920
  def new_keys
932
921
  context.new_keys
933
922
  end
934
-
923
+
935
924
  ##
936
925
  # Access the new_signing_keys
937
926
  # @return [new_signing_keys] new_signing_keys
938
927
  def new_signing_keys
939
928
  context.new_signing_keys
940
929
  end
941
-
930
+
942
931
  ##
943
932
  # Access the notifications
944
933
  # @return [notifications] notifications
945
934
  def notifications
946
935
  context.notifications
947
936
  end
948
-
937
+
949
938
  ##
950
939
  # Access the outgoing_caller_ids
951
940
  # @return [outgoing_caller_ids] outgoing_caller_ids
952
941
  def outgoing_caller_ids
953
942
  context.outgoing_caller_ids
954
943
  end
955
-
944
+
956
945
  ##
957
946
  # Access the queues
958
947
  # @return [queues] queues
959
948
  def queues
960
949
  context.queues
961
950
  end
962
-
951
+
963
952
  ##
964
953
  # Access the recordings
965
954
  # @return [recordings] recordings
966
955
  def recordings
967
956
  context.recordings
968
957
  end
969
-
970
- ##
971
- # Access the sandbox
972
- # @return [sandbox] sandbox
973
- def sandbox
974
- context.sandbox
975
- end
976
-
958
+
977
959
  ##
978
960
  # Access the signing_keys
979
961
  # @return [signing_keys] signing_keys
980
962
  def signing_keys
981
963
  context.signing_keys
982
964
  end
983
-
965
+
984
966
  ##
985
967
  # Access the sip
986
968
  # @return [sip] sip
987
969
  def sip
988
970
  context.sip
989
971
  end
990
-
972
+
991
973
  ##
992
974
  # Access the short_codes
993
975
  # @return [short_codes] short_codes
994
976
  def short_codes
995
977
  context.short_codes
996
978
  end
997
-
979
+
998
980
  ##
999
981
  # Access the tokens
1000
982
  # @return [tokens] tokens
1001
983
  def tokens
1002
984
  context.tokens
1003
985
  end
1004
-
986
+
1005
987
  ##
1006
988
  # Access the transcriptions
1007
989
  # @return [transcriptions] transcriptions
1008
990
  def transcriptions
1009
991
  context.transcriptions
1010
992
  end
1011
-
993
+
1012
994
  ##
1013
995
  # Access the usage
1014
996
  # @return [usage] usage
1015
997
  def usage
1016
998
  context.usage
1017
999
  end
1018
-
1000
+
1019
1001
  ##
1020
1002
  # Access the validation_requests
1021
1003
  # @return [validation_requests] validation_requests
1022
1004
  def validation_requests
1023
1005
  context.validation_requests
1024
1006
  end
1025
-
1007
+
1026
1008
  ##
1027
1009
  # Provide a user friendly representation
1028
1010
  def to_s