twilio-ruby 5.4.2 → 5.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +7 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/accounts/v1/credential.rb +3 -11
  5. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +12 -44
  6. data/lib/twilio-ruby/rest/api/v2010/account.rb +52 -226
  7. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +9 -41
  8. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +4 -14
  9. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +11 -50
  10. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +6 -22
  11. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +6 -22
  12. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -7
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -7
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -7
  15. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +14 -67
  16. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +8 -33
  17. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +6 -26
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +4 -17
  19. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +4 -17
  20. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +11 -48
  21. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -23
  22. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +10 -43
  23. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +11 -47
  24. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +6 -22
  25. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +3 -10
  26. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +4 -16
  27. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +4 -16
  28. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +4 -16
  29. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +12 -49
  30. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +13 -58
  31. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -7
  32. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +3 -12
  33. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +4 -16
  34. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +4 -16
  35. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +7 -30
  36. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +8 -30
  37. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +16 -71
  38. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +7 -27
  39. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -42
  40. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +5 -19
  41. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +3 -10
  42. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +5 -19
  43. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +9 -41
  44. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +12 -49
  45. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +8 -35
  46. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +13 -51
  47. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +8 -29
  48. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +13 -60
  49. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +6 -22
  50. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +6 -22
  51. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +13 -51
  52. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +7 -26
  53. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +4 -16
  54. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +8 -31
  55. data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +5 -21
  56. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +11 -43
  57. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +3 -11
  58. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +3 -11
  59. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +3 -11
  60. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +3 -11
  61. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +3 -11
  62. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +3 -11
  63. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +3 -11
  64. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +3 -11
  65. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +9 -41
  66. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +3 -13
  67. data/lib/twilio-ruby/rest/chat/v1/credential.rb +10 -38
  68. data/lib/twilio-ruby/rest/chat/v1/service.rb +17 -68
  69. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +15 -73
  70. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +6 -25
  71. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +7 -29
  72. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +8 -34
  73. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +13 -54
  74. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +12 -53
  75. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +4 -14
  76. data/lib/twilio-ruby/rest/chat/v2/credential.rb +10 -38
  77. data/lib/twilio-ruby/rest/chat/v2/service.rb +43 -68
  78. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +344 -0
  79. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +14 -68
  80. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +6 -25
  81. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +5 -21
  82. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +5 -21
  83. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +13 -54
  84. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +42 -53
  85. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +361 -0
  86. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +4 -14
  87. data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -46
  88. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +9 -37
  89. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +10 -38
  90. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +17 -68
  91. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +15 -73
  92. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +6 -25
  93. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +7 -29
  94. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +8 -34
  95. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +13 -54
  96. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +12 -53
  97. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +4 -14
  98. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +10 -38
  99. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +43 -68
  100. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +344 -0
  101. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +14 -68
  102. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +6 -25
  103. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +5 -21
  104. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +5 -21
  105. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +13 -54
  106. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +42 -53
  107. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +361 -0
  108. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +4 -14
  109. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +7 -30
  110. data/lib/twilio-ruby/rest/messaging/v1/service.rb +16 -65
  111. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +11 -45
  112. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +11 -45
  113. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +11 -45
  114. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +6 -22
  115. data/lib/twilio-ruby/rest/monitor/v1/event.rb +6 -22
  116. data/lib/twilio-ruby/rest/notify/v1/credential.rb +10 -38
  117. data/lib/twilio-ruby/rest/notify/v1/service.rb +16 -66
  118. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -35
  119. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -13
  120. data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +5 -18
  121. data/lib/twilio-ruby/rest/notify/v1/service/user.rb +12 -56
  122. data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +3 -12
  123. data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +5 -23
  124. data/lib/twilio-ruby/rest/preview/acc_security/service.rb +15 -58
  125. data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +4 -18
  126. data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +4 -17
  127. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +6 -23
  128. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +5 -18
  129. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +7 -29
  130. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +20 -81
  131. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +13 -58
  132. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +14 -60
  133. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +11 -50
  134. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +14 -62
  135. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -38
  136. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -31
  137. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +10 -38
  138. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +6 -21
  139. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +13 -51
  140. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +8 -27
  141. data/lib/twilio-ruby/rest/preview/proxy/service.rb +17 -70
  142. data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +11 -45
  143. data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +14 -70
  144. data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +3 -12
  145. data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +3 -12
  146. data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +5 -19
  147. data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +11 -45
  148. data/lib/twilio-ruby/rest/preview/sync/service.rb +16 -65
  149. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +15 -64
  150. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +7 -29
  151. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +13 -57
  152. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +8 -34
  153. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +7 -29
  154. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +13 -57
  155. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +9 -40
  156. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +7 -29
  157. data/lib/twilio-ruby/rest/preview/wireless/command.rb +7 -26
  158. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +12 -46
  159. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +8 -31
  160. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +8 -31
  161. data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +4 -16
  162. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +8 -29
  163. data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +4 -16
  164. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +8 -29
  165. data/lib/twilio-ruby/rest/pricing/v1/voice.rb +6 -23
  166. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +8 -29
  167. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +5 -19
  168. data/lib/twilio-ruby/rest/proxy/v1/service.rb +17 -70
  169. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +11 -45
  170. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +13 -64
  171. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +3 -12
  172. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +3 -12
  173. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +5 -19
  174. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +11 -45
  175. data/lib/twilio-ruby/rest/sync/v1/service.rb +18 -74
  176. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +15 -64
  177. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +7 -29
  178. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +13 -57
  179. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +8 -34
  180. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +7 -29
  181. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +13 -57
  182. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +9 -40
  183. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +7 -29
  184. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +11 -45
  185. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +3 -11
  186. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +27 -115
  187. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +13 -56
  188. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +7 -30
  189. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +10 -47
  190. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +5 -21
  191. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +8 -31
  192. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +11 -48
  193. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +3 -12
  194. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -18
  195. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +3 -12
  196. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +3 -11
  197. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +17 -79
  198. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +5 -21
  199. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +7 -27
  200. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +4 -18
  201. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +7 -29
  202. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +8 -29
  203. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +6 -23
  204. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +14 -65
  205. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +3 -12
  206. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +5 -18
  207. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +3 -12
  208. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +6 -23
  209. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +8 -29
  210. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +6 -23
  211. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +18 -74
  212. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +11 -45
  213. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +10 -39
  214. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +11 -48
  215. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +11 -45
  216. data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -22
  217. data/lib/twilio-ruby/rest/video/v1/room.rb +12 -46
  218. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +7 -30
  219. data/lib/twilio-ruby/rest/wireless/v1/command.rb +9 -39
  220. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +12 -46
  221. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +9 -35
  222. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +5 -22
  223. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +4 -17
  224. data/lib/twilio-ruby/version.rb +1 -1
  225. data/spec/integration/accounts/v1/credential/public_key_spec.rb +1 -3
  226. data/spec/integration/api/v2010/account/application_spec.rb +1 -3
  227. data/spec/integration/api/v2010/account/call/feedback_spec.rb +2 -6
  228. data/spec/integration/api/v2010/account/call_spec.rb +4 -11
  229. data/spec/integration/api/v2010/account/conference/participant_spec.rb +1 -4
  230. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +1 -3
  231. data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +1 -3
  232. data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +1 -3
  233. data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +1 -3
  234. data/spec/integration/api/v2010/account/message_spec.rb +2 -6
  235. data/spec/integration/api/v2010/account/queue/member_spec.rb +1 -4
  236. data/spec/integration/api/v2010/account/queue_spec.rb +1 -3
  237. data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +1 -4
  238. data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +2 -6
  239. data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +1 -3
  240. data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +1 -3
  241. data/spec/integration/api/v2010/account/sip/domain_spec.rb +1 -3
  242. data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +1 -4
  243. data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +2 -6
  244. data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -3
  245. data/spec/integration/chat/v1/credential_spec.rb +1 -3
  246. data/spec/integration/chat/v1/service/channel/invite_spec.rb +1 -3
  247. data/spec/integration/chat/v1/service/channel/member_spec.rb +1 -3
  248. data/spec/integration/chat/v1/service/channel/message_spec.rb +1 -3
  249. data/spec/integration/chat/v1/service/role_spec.rb +2 -8
  250. data/spec/integration/chat/v1/service/user_spec.rb +1 -3
  251. data/spec/integration/chat/v1/service_spec.rb +1 -3
  252. data/spec/integration/chat/v2/credential_spec.rb +1 -3
  253. data/spec/integration/chat/v2/service/binding_spec.rb +175 -0
  254. data/spec/integration/chat/v2/service/channel/invite_spec.rb +1 -3
  255. data/spec/integration/chat/v2/service/channel/member_spec.rb +1 -3
  256. data/spec/integration/chat/v2/service/role_spec.rb +2 -8
  257. data/spec/integration/chat/v2/service/user/user_binding_spec.rb +178 -0
  258. data/spec/integration/chat/v2/service/user_spec.rb +9 -7
  259. data/spec/integration/chat/v2/service_spec.rb +9 -7
  260. data/spec/integration/fax/v1/fax_spec.rb +1 -4
  261. data/spec/integration/ip_messaging/v1/credential_spec.rb +1 -3
  262. data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +1 -3
  263. data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +1 -3
  264. data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +1 -3
  265. data/spec/integration/ip_messaging/v1/service/role_spec.rb +2 -8
  266. data/spec/integration/ip_messaging/v1/service/user_spec.rb +1 -3
  267. data/spec/integration/ip_messaging/v1/service_spec.rb +1 -3
  268. data/spec/integration/ip_messaging/v2/credential_spec.rb +1 -3
  269. data/spec/integration/ip_messaging/v2/service/binding_spec.rb +175 -0
  270. data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +1 -3
  271. data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +1 -3
  272. data/spec/integration/ip_messaging/v2/service/role_spec.rb +2 -8
  273. data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +178 -0
  274. data/spec/integration/ip_messaging/v2/service/user_spec.rb +9 -7
  275. data/spec/integration/ip_messaging/v2/service_spec.rb +9 -7
  276. data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +1 -3
  277. data/spec/integration/messaging/v1/service/phone_number_spec.rb +1 -3
  278. data/spec/integration/messaging/v1/service/short_code_spec.rb +1 -3
  279. data/spec/integration/messaging/v1/service_spec.rb +1 -3
  280. data/spec/integration/notify/v1/credential_spec.rb +1 -3
  281. data/spec/integration/notify/v1/service/binding_spec.rb +1 -5
  282. data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +1 -3
  283. data/spec/integration/notify/v1/service/user/user_binding_spec.rb +1 -4
  284. data/spec/integration/notify/v1/service/user_spec.rb +1 -3
  285. data/spec/integration/preview/acc_security/service/verification_check_spec.rb +1 -3
  286. data/spec/integration/preview/acc_security/service/verification_spec.rb +1 -4
  287. data/spec/integration/preview/acc_security/service_spec.rb +1 -3
  288. data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +1 -3
  289. data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +1 -5
  290. data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +1 -3
  291. data/spec/integration/preview/proxy/service/phone_number_spec.rb +1 -3
  292. data/spec/integration/preview/proxy/service/session/participant_spec.rb +1 -3
  293. data/spec/integration/preview/proxy/service/short_code_spec.rb +1 -3
  294. data/spec/integration/preview/sync/service/document/document_permission_spec.rb +1 -5
  295. data/spec/integration/preview/sync/service/document_spec.rb +1 -3
  296. data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +2 -6
  297. data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +1 -5
  298. data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +2 -7
  299. data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +1 -5
  300. data/spec/integration/preview/wireless/command_spec.rb +1 -3
  301. data/spec/integration/proxy/v1/service/phone_number_spec.rb +1 -3
  302. data/spec/integration/proxy/v1/service/session/participant_spec.rb +1 -3
  303. data/spec/integration/proxy/v1/service/short_code_spec.rb +1 -3
  304. data/spec/integration/sync/v1/service/document/document_permission_spec.rb +1 -5
  305. data/spec/integration/sync/v1/service/document_spec.rb +1 -3
  306. data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +2 -6
  307. data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +1 -5
  308. data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +2 -7
  309. data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +1 -5
  310. data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +1 -3
  311. data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +1 -3
  312. data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +1 -3
  313. data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +1 -4
  314. data/spec/integration/taskrouter/v1/workspace_spec.rb +1 -3
  315. data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +1 -3
  316. data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +1 -3
  317. data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +1 -3
  318. data/spec/integration/video/v1/room_spec.rb +1 -3
  319. data/spec/integration/wireless/v1/command_spec.rb +1 -3
  320. metadata +14 -2
@@ -20,9 +20,7 @@ module Twilio
20
20
  super(version)
21
21
 
22
22
  # Path Solution
23
- @solution = {
24
- account_sid: account_sid
25
- }
23
+ @solution = {account_sid: account_sid}
26
24
  @uri = "/Accounts/#{@solution[:account_sid]}/SigningKeys.json"
27
25
  end
28
26
 
@@ -38,10 +36,7 @@ module Twilio
38
36
  # efficient page size, i.e. min(limit, 1000)
39
37
  # @return [Array] Array of up to limit results
40
38
  def list(limit: nil, page_size: nil)
41
- self.stream(
42
- limit: limit,
43
- page_size: page_size
44
- ).entries
39
+ self.stream(limit: limit, page_size: page_size).entries
45
40
  end
46
41
 
47
42
  ##
@@ -58,9 +53,7 @@ module Twilio
58
53
  def stream(limit: nil, page_size: nil)
59
54
  limits = @version.read_limits(limit, page_size)
60
55
 
61
- page = self.page(
62
- page_size: limits[:page_size],
63
- )
56
+ page = self.page(page_size: limits[:page_size],)
64
57
 
65
58
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
66
59
  end
@@ -72,9 +65,7 @@ module Twilio
72
65
  def each
73
66
  limits = @version.read_limits
74
67
 
75
- page = self.page(
76
- page_size: limits[:page_size],
77
- )
68
+ page = self.page(page_size: limits[:page_size],)
78
69
 
79
70
  @version.stream(page,
80
71
  limit: limits[:limit],
@@ -141,11 +132,7 @@ module Twilio
141
132
  # @param [Hash] payload Payload response from the API
142
133
  # @return [SigningKeyInstance] SigningKeyInstance
143
134
  def get_instance(payload)
144
- SigningKeyInstance.new(
145
- @version,
146
- payload,
147
- account_sid: @solution[:account_sid],
148
- )
135
+ SigningKeyInstance.new(@version, payload, account_sid: @solution[:account_sid],)
149
136
  end
150
137
 
151
138
  ##
@@ -166,10 +153,7 @@ module Twilio
166
153
  super(version)
167
154
 
168
155
  # Path Solution
169
- @solution = {
170
- account_sid: account_sid,
171
- sid: sid,
172
- }
156
+ @solution = {account_sid: account_sid, sid: sid,}
173
157
  @uri = "/Accounts/#{@solution[:account_sid]}/SigningKeys/#{@solution[:sid]}.json"
174
158
  end
175
159
 
@@ -185,12 +169,7 @@ module Twilio
185
169
  params,
186
170
  )
187
171
 
188
- SigningKeyInstance.new(
189
- @version,
190
- payload,
191
- account_sid: @solution[:account_sid],
192
- sid: @solution[:sid],
193
- )
172
+ SigningKeyInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],)
194
173
  end
195
174
 
196
175
  ##
@@ -198,9 +177,7 @@ module Twilio
198
177
  # @param [String] friendly_name The friendly_name
199
178
  # @return [SigningKeyInstance] Updated SigningKeyInstance
200
179
  def update(friendly_name: :unset)
201
- data = Twilio::Values.of({
202
- 'FriendlyName' => friendly_name,
203
- })
180
+ data = Twilio::Values.of({'FriendlyName' => friendly_name,})
204
181
 
205
182
  payload = @version.update(
206
183
  'POST',
@@ -208,12 +185,7 @@ module Twilio
208
185
  data: data,
209
186
  )
210
187
 
211
- SigningKeyInstance.new(
212
- @version,
213
- payload,
214
- account_sid: @solution[:account_sid],
215
- sid: @solution[:sid],
216
- )
188
+ SigningKeyInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],)
217
189
  end
218
190
 
219
191
  ##
@@ -253,10 +225,7 @@ module Twilio
253
225
 
254
226
  # Context
255
227
  @instance_context = nil
256
- @params = {
257
- 'account_sid' => account_sid,
258
- 'sid' => sid || @properties['sid'],
259
- }
228
+ @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'],}
260
229
  end
261
230
 
262
231
  ##
@@ -265,11 +234,7 @@ module Twilio
265
234
  # @return [SigningKeyContext] SigningKeyContext for this SigningKeyInstance
266
235
  def context
267
236
  unless @instance_context
268
- @instance_context = SigningKeyContext.new(
269
- @version,
270
- @params['account_sid'],
271
- @params['sid'],
272
- )
237
+ @instance_context = SigningKeyContext.new(@version, @params['account_sid'], @params['sid'],)
273
238
  end
274
239
  @instance_context
275
240
  end
@@ -310,9 +275,7 @@ module Twilio
310
275
  # @param [String] friendly_name The friendly_name
311
276
  # @return [SigningKeyInstance] Updated SigningKeyInstance
312
277
  def update(friendly_name: :unset)
313
- context.update(
314
- friendly_name: friendly_name,
315
- )
278
+ context.update(friendly_name: friendly_name,)
316
279
  end
317
280
 
318
281
  ##
@@ -20,9 +20,7 @@ module Twilio
20
20
  super(version)
21
21
 
22
22
  # Path Solution
23
- @solution = {
24
- account_sid: account_sid
25
- }
23
+ @solution = {account_sid: account_sid}
26
24
 
27
25
  # Components
28
26
  @domains = nil
@@ -40,17 +38,10 @@ module Twilio
40
38
  raise ArgumentError, 'sid cannot be nil' if sid.nil?
41
39
 
42
40
  if sid != :unset
43
- return DomainContext.new(
44
- @version,
45
- @solution[:account_sid],
46
- sid,
47
- )
41
+ return DomainContext.new(@version, @solution[:account_sid], sid,)
48
42
  end
49
43
 
50
- @domains ||= DomainList.new(
51
- @version,
52
- account_sid: @solution[:account_sid],
53
- )
44
+ @domains ||= DomainList.new(@version, account_sid: @solution[:account_sid],)
54
45
  end
55
46
 
56
47
  ##
@@ -58,10 +49,7 @@ module Twilio
58
49
  # @return [RegionList]
59
50
  # @return [RegionContext]
60
51
  def regions
61
- @regions ||= RegionList.new(
62
- @version,
63
- account_sid: @solution[:account_sid],
64
- )
52
+ @regions ||= RegionList.new(@version, account_sid: @solution[:account_sid],)
65
53
  end
66
54
 
67
55
  ##
@@ -74,11 +62,7 @@ module Twilio
74
62
  raise ArgumentError, 'sid cannot be nil' if sid.nil?
75
63
 
76
64
  if sid != :unset
77
- return IpAccessControlListContext.new(
78
- @version,
79
- @solution[:account_sid],
80
- sid,
81
- )
65
+ return IpAccessControlListContext.new(@version, @solution[:account_sid], sid,)
82
66
  end
83
67
 
84
68
  @ip_access_control_lists ||= IpAccessControlListList.new(
@@ -96,17 +80,10 @@ module Twilio
96
80
  raise ArgumentError, 'sid cannot be nil' if sid.nil?
97
81
 
98
82
  if sid != :unset
99
- return CredentialListContext.new(
100
- @version,
101
- @solution[:account_sid],
102
- sid,
103
- )
83
+ return CredentialListContext.new(@version, @solution[:account_sid], sid,)
104
84
  end
105
85
 
106
- @credential_lists ||= CredentialListList.new(
107
- @version,
108
- account_sid: @solution[:account_sid],
109
- )
86
+ @credential_lists ||= CredentialListList.new(@version, account_sid: @solution[:account_sid],)
110
87
  end
111
88
 
112
89
  ##
@@ -135,11 +112,7 @@ module Twilio
135
112
  # @param [Hash] payload Payload response from the API
136
113
  # @return [SipInstance] SipInstance
137
114
  def get_instance(payload)
138
- SipInstance.new(
139
- @version,
140
- payload,
141
- account_sid: @solution[:account_sid],
142
- )
115
+ SipInstance.new(@version, payload, account_sid: @solution[:account_sid],)
143
116
  end
144
117
 
145
118
  ##
@@ -21,9 +21,7 @@ module Twilio
21
21
  super(version)
22
22
 
23
23
  # Path Solution
24
- @solution = {
25
- account_sid: account_sid
26
- }
24
+ @solution = {account_sid: account_sid}
27
25
  @uri = "/Accounts/#{@solution[:account_sid]}/SIP/CredentialLists.json"
28
26
  end
29
27
 
@@ -39,10 +37,7 @@ module Twilio
39
37
  # efficient page size, i.e. min(limit, 1000)
40
38
  # @return [Array] Array of up to limit results
41
39
  def list(limit: nil, page_size: nil)
42
- self.stream(
43
- limit: limit,
44
- page_size: page_size
45
- ).entries
40
+ self.stream(limit: limit, page_size: page_size).entries
46
41
  end
47
42
 
48
43
  ##
@@ -59,9 +54,7 @@ module Twilio
59
54
  def stream(limit: nil, page_size: nil)
60
55
  limits = @version.read_limits(limit, page_size)
61
56
 
62
- page = self.page(
63
- page_size: limits[:page_size],
64
- )
57
+ page = self.page(page_size: limits[:page_size],)
65
58
 
66
59
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
67
60
  end
@@ -73,9 +66,7 @@ module Twilio
73
66
  def each
74
67
  limits = @version.read_limits
75
68
 
76
- page = self.page(
77
- page_size: limits[:page_size],
78
- )
69
+ page = self.page(page_size: limits[:page_size],)
79
70
 
80
71
  @version.stream(page,
81
72
  limit: limits[:limit],
@@ -122,9 +113,7 @@ module Twilio
122
113
  # @param [String] friendly_name The friendly_name
123
114
  # @return [CredentialListInstance] Newly created CredentialListInstance
124
115
  def create(friendly_name: nil)
125
- data = Twilio::Values.of({
126
- 'FriendlyName' => friendly_name,
127
- })
116
+ data = Twilio::Values.of({'FriendlyName' => friendly_name,})
128
117
 
129
118
  payload = @version.create(
130
119
  'POST',
@@ -132,11 +121,7 @@ module Twilio
132
121
  data: data
133
122
  )
134
123
 
135
- CredentialListInstance.new(
136
- @version,
137
- payload,
138
- account_sid: @solution[:account_sid],
139
- )
124
+ CredentialListInstance.new(@version, payload, account_sid: @solution[:account_sid],)
140
125
  end
141
126
 
142
127
  ##
@@ -165,11 +150,7 @@ module Twilio
165
150
  # @param [Hash] payload Payload response from the API
166
151
  # @return [CredentialListInstance] CredentialListInstance
167
152
  def get_instance(payload)
168
- CredentialListInstance.new(
169
- @version,
170
- payload,
171
- account_sid: @solution[:account_sid],
172
- )
153
+ CredentialListInstance.new(@version, payload, account_sid: @solution[:account_sid],)
173
154
  end
174
155
 
175
156
  ##
@@ -190,10 +171,7 @@ module Twilio
190
171
  super(version)
191
172
 
192
173
  # Path Solution
193
- @solution = {
194
- account_sid: account_sid,
195
- sid: sid,
196
- }
174
+ @solution = {account_sid: account_sid, sid: sid,}
197
175
  @uri = "/Accounts/#{@solution[:account_sid]}/SIP/CredentialLists/#{@solution[:sid]}.json"
198
176
 
199
177
  # Dependents
@@ -225,9 +203,7 @@ module Twilio
225
203
  # @param [String] friendly_name The friendly_name
226
204
  # @return [CredentialListInstance] Updated CredentialListInstance
227
205
  def update(friendly_name: nil)
228
- data = Twilio::Values.of({
229
- 'FriendlyName' => friendly_name,
230
- })
206
+ data = Twilio::Values.of({'FriendlyName' => friendly_name,})
231
207
 
232
208
  payload = @version.update(
233
209
  'POST',
@@ -258,12 +234,7 @@ module Twilio
258
234
  raise ArgumentError, 'sid cannot be nil' if sid.nil?
259
235
 
260
236
  if sid != :unset
261
- return CredentialContext.new(
262
- @version,
263
- @solution[:account_sid],
264
- @solution[:sid],
265
- sid,
266
- )
237
+ return CredentialContext.new(@version, @solution[:account_sid], @solution[:sid], sid,)
267
238
  end
268
239
 
269
240
  unless @credentials
@@ -310,10 +281,7 @@ module Twilio
310
281
 
311
282
  # Context
312
283
  @instance_context = nil
313
- @params = {
314
- 'account_sid' => account_sid,
315
- 'sid' => sid || @properties['sid'],
316
- }
284
+ @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'],}
317
285
  end
318
286
 
319
287
  ##
@@ -322,11 +290,7 @@ module Twilio
322
290
  # @return [CredentialListContext] CredentialListContext for this CredentialListInstance
323
291
  def context
324
292
  unless @instance_context
325
- @instance_context = CredentialListContext.new(
326
- @version,
327
- @params['account_sid'],
328
- @params['sid'],
329
- )
293
+ @instance_context = CredentialListContext.new(@version, @params['account_sid'], @params['sid'],)
330
294
  end
331
295
  @instance_context
332
296
  end
@@ -385,9 +349,7 @@ module Twilio
385
349
  # @param [String] friendly_name The friendly_name
386
350
  # @return [CredentialListInstance] Updated CredentialListInstance
387
351
  def update(friendly_name: nil)
388
- context.update(
389
- friendly_name: friendly_name,
390
- )
352
+ context.update(friendly_name: friendly_name,)
391
353
  end
392
354
 
393
355
  ##
@@ -22,10 +22,7 @@ module Twilio
22
22
  super(version)
23
23
 
24
24
  # Path Solution
25
- @solution = {
26
- account_sid: account_sid,
27
- credential_list_sid: credential_list_sid
28
- }
25
+ @solution = {account_sid: account_sid, credential_list_sid: credential_list_sid}
29
26
  @uri = "/Accounts/#{@solution[:account_sid]}/SIP/CredentialLists/#{@solution[:credential_list_sid]}/Credentials.json"
30
27
  end
31
28
 
@@ -41,10 +38,7 @@ module Twilio
41
38
  # efficient page size, i.e. min(limit, 1000)
42
39
  # @return [Array] Array of up to limit results
43
40
  def list(limit: nil, page_size: nil)
44
- self.stream(
45
- limit: limit,
46
- page_size: page_size
47
- ).entries
41
+ self.stream(limit: limit, page_size: page_size).entries
48
42
  end
49
43
 
50
44
  ##
@@ -61,9 +55,7 @@ module Twilio
61
55
  def stream(limit: nil, page_size: nil)
62
56
  limits = @version.read_limits(limit, page_size)
63
57
 
64
- page = self.page(
65
- page_size: limits[:page_size],
66
- )
58
+ page = self.page(page_size: limits[:page_size],)
67
59
 
68
60
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
69
61
  end
@@ -75,9 +67,7 @@ module Twilio
75
67
  def each
76
68
  limits = @version.read_limits
77
69
 
78
- page = self.page(
79
- page_size: limits[:page_size],
80
- )
70
+ page = self.page(page_size: limits[:page_size],)
81
71
 
82
72
  @version.stream(page,
83
73
  limit: limits[:limit],
@@ -125,10 +115,7 @@ module Twilio
125
115
  # @param [String] password The password
126
116
  # @return [CredentialInstance] Newly created CredentialInstance
127
117
  def create(username: nil, password: nil)
128
- data = Twilio::Values.of({
129
- 'Username' => username,
130
- 'Password' => password,
131
- })
118
+ data = Twilio::Values.of({'Username' => username, 'Password' => password,})
132
119
 
133
120
  payload = @version.create(
134
121
  'POST',
@@ -197,11 +184,7 @@ module Twilio
197
184
  super(version)
198
185
 
199
186
  # Path Solution
200
- @solution = {
201
- account_sid: account_sid,
202
- credential_list_sid: credential_list_sid,
203
- sid: sid,
204
- }
187
+ @solution = {account_sid: account_sid, credential_list_sid: credential_list_sid, sid: sid,}
205
188
  @uri = "/Accounts/#{@solution[:account_sid]}/SIP/CredentialLists/#{@solution[:credential_list_sid]}/Credentials/#{@solution[:sid]}.json"
206
189
  end
207
190
 
@@ -231,9 +214,7 @@ module Twilio
231
214
  # @param [String] password The password
232
215
  # @return [CredentialInstance] Updated CredentialInstance
233
216
  def update(password: :unset)
234
- data = Twilio::Values.of({
235
- 'Password' => password,
236
- })
217
+ data = Twilio::Values.of({'Password' => password,})
237
218
 
238
219
  payload = @version.update(
239
220
  'POST',
@@ -367,9 +348,7 @@ module Twilio
367
348
  # @param [String] password The password
368
349
  # @return [CredentialInstance] Updated CredentialInstance
369
350
  def update(password: :unset)
370
- context.update(
371
- password: password,
372
- )
351
+ context.update(password: password,)
373
352
  end
374
353
 
375
354
  ##