twilio-ruby 5.0.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (258) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +30 -2
  3. data/CONTRIBUTING.md +159 -0
  4. data/ISSUE_TEMPLATE.md +26 -0
  5. data/LICENSE.md +1 -1
  6. data/README.md +6 -7
  7. data/VERSIONS.md +21 -49
  8. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +11 -11
  9. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +11 -11
  10. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +11 -11
  11. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +11 -11
  12. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +11 -11
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +11 -11
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +11 -11
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +11 -11
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +11 -11
  17. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +11 -11
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +11 -18
  19. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +11 -11
  20. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +11 -11
  21. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +11 -11
  22. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +11 -11
  23. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +358 -0
  24. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +439 -0
  25. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -11
  26. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -11
  27. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -11
  28. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +48 -11
  29. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +11 -11
  30. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +11 -11
  31. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +22 -12
  32. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +11 -11
  33. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +11 -11
  34. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +11 -11
  35. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +11 -11
  36. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +11 -11
  37. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +11 -11
  38. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +11 -11
  39. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +11 -18
  40. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +11 -11
  41. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +11 -11
  42. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +11 -11
  43. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +11 -11
  44. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +11 -11
  45. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -11
  46. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +11 -11
  47. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +11 -11
  48. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +11 -11
  49. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +11 -11
  50. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +11 -11
  51. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +11 -11
  52. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +11 -11
  53. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +11 -11
  54. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +11 -11
  55. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +11 -11
  56. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +11 -11
  57. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +11 -11
  58. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +11 -11
  59. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +11 -11
  60. data/lib/twilio-ruby/rest/api/v2010/account.rb +11 -11
  61. data/lib/twilio-ruby/rest/chat/v1/credential.rb +11 -11
  62. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +11 -11
  63. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +11 -11
  64. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +11 -11
  65. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +11 -11
  66. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +11 -11
  67. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +11 -11
  68. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +11 -11
  69. data/lib/twilio-ruby/rest/chat/v1/service.rb +11 -11
  70. data/lib/twilio-ruby/rest/chat/v2/credential.rb +11 -11
  71. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +11 -11
  72. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +11 -11
  73. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +11 -11
  74. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +11 -11
  75. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +11 -11
  76. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +11 -11
  77. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +11 -11
  78. data/lib/twilio-ruby/rest/chat/v2/service.rb +11 -11
  79. data/lib/twilio-ruby/rest/client.rb +42 -0
  80. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +334 -0
  81. data/lib/twilio-ruby/rest/fax/v1/fax.rb +549 -0
  82. data/lib/twilio-ruby/rest/fax/v1.rb +41 -0
  83. data/lib/twilio-ruby/rest/fax.rb +44 -0
  84. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +11 -11
  85. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +11 -11
  86. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +11 -11
  87. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +11 -11
  88. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +11 -11
  89. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +11 -11
  90. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +11 -11
  91. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +11 -11
  92. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +11 -11
  93. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +11 -11
  94. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +11 -11
  95. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +11 -11
  96. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +11 -11
  97. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +11 -11
  98. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +11 -11
  99. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +11 -11
  100. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +11 -11
  101. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +11 -11
  102. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +360 -0
  103. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +367 -0
  104. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +367 -0
  105. data/lib/twilio-ruby/rest/messaging/v1/service.rb +645 -0
  106. data/lib/twilio-ruby/rest/messaging/v1.rb +41 -0
  107. data/lib/twilio-ruby/rest/messaging.rb +44 -0
  108. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +11 -11
  109. data/lib/twilio-ruby/rest/monitor/v1/event.rb +11 -11
  110. data/lib/twilio-ruby/rest/notify/v1/credential.rb +411 -0
  111. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +438 -0
  112. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +294 -0
  113. data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +230 -0
  114. data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +262 -0
  115. data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +442 -0
  116. data/lib/twilio-ruby/rest/notify/v1/service/user.rb +453 -0
  117. data/lib/twilio-ruby/rest/notify/v1/service.rb +647 -0
  118. data/lib/twilio-ruby/rest/notify/v1.rb +56 -0
  119. data/lib/twilio-ruby/rest/notify.rb +52 -0
  120. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +216 -0
  121. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +211 -0
  122. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +251 -0
  123. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +56 -0
  124. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +570 -0
  125. data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +42 -0
  126. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +309 -0
  127. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +341 -0
  128. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +349 -0
  129. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +448 -0
  130. data/lib/twilio-ruby/rest/preview/marketplace.rb +58 -0
  131. data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +367 -0
  132. data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +437 -0
  133. data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +460 -0
  134. data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +514 -0
  135. data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +544 -0
  136. data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +367 -0
  137. data/lib/twilio-ruby/rest/preview/proxy/service.rb +508 -0
  138. data/lib/twilio-ruby/rest/preview/proxy.rb +41 -0
  139. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +403 -0
  140. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +453 -0
  141. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +438 -0
  142. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +403 -0
  143. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +446 -0
  144. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +440 -0
  145. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +403 -0
  146. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +446 -0
  147. data/lib/twilio-ruby/rest/preview/sync/service.rb +512 -0
  148. data/lib/twilio-ruby/rest/preview/sync.rb +41 -0
  149. data/lib/twilio-ruby/rest/preview/wireless/command.rb +390 -0
  150. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +443 -0
  151. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +244 -0
  152. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +552 -0
  153. data/lib/twilio-ruby/rest/preview/wireless.rb +71 -0
  154. data/lib/twilio-ruby/rest/preview.rb +145 -0
  155. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +11 -11
  156. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +11 -11
  157. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +11 -11
  158. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +403 -0
  159. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +453 -0
  160. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +438 -0
  161. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +403 -0
  162. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +446 -0
  163. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +440 -0
  164. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +403 -0
  165. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +446 -0
  166. data/lib/twilio-ruby/rest/sync/v1/service.rb +512 -0
  167. data/lib/twilio-ruby/rest/sync/v1.rb +41 -0
  168. data/lib/twilio-ruby/rest/sync.rb +44 -0
  169. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +11 -11
  170. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +11 -11
  171. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +143 -13
  172. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +11 -11
  173. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +11 -11
  174. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +11 -11
  175. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +11 -11
  176. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +143 -13
  177. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +11 -11
  178. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +11 -11
  179. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +11 -11
  180. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +11 -11
  181. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +11 -11
  182. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +11 -11
  183. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +11 -11
  184. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +11 -11
  185. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +11 -11
  186. data/lib/twilio-ruby/rest/video/v1/recording.rb +11 -11
  187. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +11 -11
  188. data/lib/twilio-ruby/rest/video/v1/room.rb +11 -11
  189. data/lib/twilio-ruby/rest/wireless/v1/command.rb +375 -0
  190. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +460 -0
  191. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +241 -0
  192. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +556 -0
  193. data/lib/twilio-ruby/rest/wireless/v1.rb +71 -0
  194. data/lib/twilio-ruby/rest/wireless.rb +60 -0
  195. data/lib/twilio-ruby/version.rb +1 -1
  196. data/spec/integration/api/v2010/account/call/recording_spec.rb +0 -2
  197. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +135 -0
  198. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +223 -0
  199. data/spec/integration/api/v2010/account/recording_spec.rb +0 -2
  200. data/spec/integration/fax/v1/fax/fax_media_spec.rb +126 -0
  201. data/spec/integration/fax/v1/fax_spec.rb +272 -0
  202. data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +170 -0
  203. data/spec/integration/messaging/v1/service/phone_number_spec.rb +201 -0
  204. data/spec/integration/messaging/v1/service/short_code_spec.rb +173 -0
  205. data/spec/integration/messaging/v1/service_spec.rb +263 -0
  206. data/spec/integration/notify/v1/credential_spec.rb +223 -0
  207. data/spec/integration/notify/v1/service/binding_spec.rb +227 -0
  208. data/spec/integration/notify/v1/service/notification_spec.rb +97 -0
  209. data/spec/integration/notify/v1/service/segment_spec.rb +84 -0
  210. data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +118 -0
  211. data/spec/integration/notify/v1/service/user/user_binding_spec.rb +269 -0
  212. data/spec/integration/notify/v1/service/user_spec.rb +213 -0
  213. data/spec/integration/notify/v1/service_spec.rb +280 -0
  214. data/spec/integration/preview/bulk_exports/export/day_spec.rb +56 -0
  215. data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +79 -0
  216. data/spec/integration/preview/bulk_exports/export_spec.rb +43 -0
  217. data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +280 -0
  218. data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +121 -0
  219. data/spec/integration/preview/marketplace/available_add_on_spec.rb +142 -0
  220. data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +164 -0
  221. data/spec/integration/preview/marketplace/installed_add_on_spec.rb +252 -0
  222. data/spec/integration/preview/proxy/service/phone_number_spec.rb +173 -0
  223. data/spec/integration/preview/proxy/service/session/interaction_spec.rb +104 -0
  224. data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +164 -0
  225. data/spec/integration/preview/proxy/service/session/participant_spec.rb +226 -0
  226. data/spec/integration/preview/proxy/service/session_spec.rb +216 -0
  227. data/spec/integration/preview/proxy/service/short_code_spec.rb +173 -0
  228. data/spec/integration/preview/proxy/service_spec.rb +200 -0
  229. data/spec/integration/preview/sync/service/document/document_permission_spec.rb +206 -0
  230. data/spec/integration/preview/sync/service/document_spec.rb +254 -0
  231. data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +256 -0
  232. data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +206 -0
  233. data/spec/integration/preview/sync/service/sync_list_spec.rb +207 -0
  234. data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +257 -0
  235. data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +206 -0
  236. data/spec/integration/preview/sync/service/sync_map_spec.rb +207 -0
  237. data/spec/integration/preview/sync/service_spec.rb +244 -0
  238. data/spec/integration/preview/wireless/command_spec.rb +169 -0
  239. data/spec/integration/preview/wireless/rate_plan_spec.rb +260 -0
  240. data/spec/integration/preview/wireless/sim/usage_spec.rb +49 -0
  241. data/spec/integration/preview/wireless/sim_spec.rb +208 -0
  242. data/spec/integration/sync/v1/service/document/document_permission_spec.rb +206 -0
  243. data/spec/integration/sync/v1/service/document_spec.rb +254 -0
  244. data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +256 -0
  245. data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +206 -0
  246. data/spec/integration/sync/v1/service/sync_list_spec.rb +207 -0
  247. data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +257 -0
  248. data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +206 -0
  249. data/spec/integration/sync/v1/service/sync_map_spec.rb +207 -0
  250. data/spec/integration/sync/v1/service_spec.rb +244 -0
  251. data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +5 -5
  252. data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +5 -5
  253. data/spec/integration/wireless/v1/command_spec.rb +166 -0
  254. data/spec/integration/wireless/v1/rate_plan_spec.rb +268 -0
  255. data/spec/integration/wireless/v1/sim/usage_record_spec.rb +65 -0
  256. data/spec/integration/wireless/v1/sim_spec.rb +208 -0
  257. data/twilio-ruby.gemspec +1 -3
  258. metadata +192 -2
@@ -0,0 +1,244 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+
7
+ module Twilio
8
+ module REST
9
+ class Preview < Domain
10
+ class Wireless < Version
11
+ class SimContext < InstanceContext
12
+ ##
13
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
14
+ class UsageList < ListResource
15
+ ##
16
+ # Initialize the UsageList
17
+ # @param [Version] version Version that contains the resource
18
+ # @param [String] sim_sid The sim_sid
19
+ # @return [UsageList] UsageList
20
+ def initialize(version, sim_sid: nil)
21
+ super(version)
22
+
23
+ # Path Solution
24
+ @solution = {
25
+ sim_sid: sim_sid
26
+ }
27
+ end
28
+
29
+ ##
30
+ # Provide a user friendly representation
31
+ def to_s
32
+ '#<Twilio.Preview.Wireless.UsageList>'
33
+ end
34
+ end
35
+
36
+ ##
37
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
38
+ class UsagePage < Page
39
+ ##
40
+ # Initialize the UsagePage
41
+ # @param [Version] version Version that contains the resource
42
+ # @param [Response] response Response from the API
43
+ # @param [Hash] solution Path solution for the resource
44
+ # @return [UsagePage] UsagePage
45
+ def initialize(version, response, solution)
46
+ super(version, response)
47
+
48
+ # Path Solution
49
+ @solution = solution
50
+ end
51
+
52
+ ##
53
+ # Build an instance of UsageInstance
54
+ # @param [Hash] payload Payload response from the API
55
+ # @return [UsageInstance] UsageInstance
56
+ def get_instance(payload)
57
+ UsageInstance.new(
58
+ @version,
59
+ payload,
60
+ sim_sid: @solution[:sim_sid],
61
+ )
62
+ end
63
+
64
+ ##
65
+ # Provide a user friendly representation
66
+ def to_s
67
+ '<Twilio.Preview.Wireless.UsagePage>'
68
+ end
69
+ end
70
+
71
+ ##
72
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
73
+ class UsageContext < InstanceContext
74
+ ##
75
+ # Initialize the UsageContext
76
+ # @param [Version] version Version that contains the resource
77
+ # @param [String] sim_sid The sim_sid
78
+ # @return [UsageContext] UsageContext
79
+ def initialize(version, sim_sid)
80
+ super(version)
81
+
82
+ # Path Solution
83
+ @solution = {
84
+ sim_sid: sim_sid,
85
+ }
86
+ @uri = "/Sims/#{@solution[:sim_sid]}/Usage"
87
+ end
88
+
89
+ ##
90
+ # Fetch a UsageInstance
91
+ # @param [String] end_ The end
92
+ # @param [String] start The start
93
+ # @return [UsageInstance] Fetched UsageInstance
94
+ def fetch(end_: :unset, start: :unset)
95
+ params = Twilio::Values.of({
96
+ 'End' => end_,
97
+ 'Start' => start,
98
+ })
99
+
100
+ payload = @version.fetch(
101
+ 'GET',
102
+ @uri,
103
+ params,
104
+ )
105
+
106
+ UsageInstance.new(
107
+ @version,
108
+ payload,
109
+ sim_sid: @solution[:sim_sid],
110
+ )
111
+ end
112
+
113
+ ##
114
+ # Provide a user friendly representation
115
+ def to_s
116
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
117
+ "#<Twilio.Preview.Wireless.UsageContext #{context}>"
118
+ end
119
+ end
120
+
121
+ ##
122
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
123
+ class UsageInstance < InstanceResource
124
+ ##
125
+ # Initialize the UsageInstance
126
+ # @param [Version] version Version that contains the resource
127
+ # @param [Hash] payload payload that contains response from Twilio
128
+ # @param [String] sim_sid The sim_sid
129
+ # @return [UsageInstance] UsageInstance
130
+ def initialize(version, payload, sim_sid: nil)
131
+ super(version)
132
+
133
+ # Marshaled Properties
134
+ @properties = {
135
+ 'sim_sid' => payload['sim_sid'],
136
+ 'sim_unique_name' => payload['sim_unique_name'],
137
+ 'account_sid' => payload['account_sid'],
138
+ 'period' => payload['period'],
139
+ 'commands_usage' => payload['commands_usage'],
140
+ 'commands_costs' => payload['commands_costs'],
141
+ 'data_usage' => payload['data_usage'],
142
+ 'data_costs' => payload['data_costs'],
143
+ 'url' => payload['url'],
144
+ }
145
+
146
+ # Context
147
+ @instance_context = nil
148
+ @params = {
149
+ 'sim_sid' => sim_sid,
150
+ }
151
+ end
152
+
153
+ ##
154
+ # Generate an instance context for the instance, the context is capable of
155
+ # performing various actions. All instance actions are proxied to the context
156
+ # @return [UsageContext] UsageContext for this UsageInstance
157
+ def context
158
+ unless @instance_context
159
+ @instance_context = UsageContext.new(
160
+ @version,
161
+ @params['sim_sid'],
162
+ )
163
+ end
164
+ @instance_context
165
+ end
166
+
167
+ ##
168
+ # @return [String] The sim_sid
169
+ def sim_sid
170
+ @properties['sim_sid']
171
+ end
172
+
173
+ ##
174
+ # @return [String] The sim_unique_name
175
+ def sim_unique_name
176
+ @properties['sim_unique_name']
177
+ end
178
+
179
+ ##
180
+ # @return [String] The account_sid
181
+ def account_sid
182
+ @properties['account_sid']
183
+ end
184
+
185
+ ##
186
+ # @return [Hash] The period
187
+ def period
188
+ @properties['period']
189
+ end
190
+
191
+ ##
192
+ # @return [Hash] The commands_usage
193
+ def commands_usage
194
+ @properties['commands_usage']
195
+ end
196
+
197
+ ##
198
+ # @return [Hash] The commands_costs
199
+ def commands_costs
200
+ @properties['commands_costs']
201
+ end
202
+
203
+ ##
204
+ # @return [Hash] The data_usage
205
+ def data_usage
206
+ @properties['data_usage']
207
+ end
208
+
209
+ ##
210
+ # @return [Hash] The data_costs
211
+ def data_costs
212
+ @properties['data_costs']
213
+ end
214
+
215
+ ##
216
+ # @return [String] The url
217
+ def url
218
+ @properties['url']
219
+ end
220
+
221
+ ##
222
+ # Fetch a UsageInstance
223
+ # @param [String] end_ The end
224
+ # @param [String] start The start
225
+ # @return [UsageInstance] Fetched UsageInstance
226
+ def fetch(end_: :unset, start: :unset)
227
+ context.fetch(
228
+ end_: end_,
229
+ start: start,
230
+ )
231
+ end
232
+
233
+ ##
234
+ # Provide a user friendly representation
235
+ def to_s
236
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
237
+ "<Twilio.Preview.Wireless.UsageInstance #{values}>"
238
+ end
239
+ end
240
+ end
241
+ end
242
+ end
243
+ end
244
+ end
@@ -0,0 +1,552 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+
7
+ module Twilio
8
+ module REST
9
+ class Preview < Domain
10
+ class Wireless < Version
11
+ ##
12
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
13
+ class SimList < ListResource
14
+ ##
15
+ # Initialize the SimList
16
+ # @param [Version] version Version that contains the resource
17
+ # @return [SimList] SimList
18
+ def initialize(version)
19
+ super(version)
20
+
21
+ # Path Solution
22
+ @solution = {}
23
+ @uri = "/Sims"
24
+ end
25
+
26
+ ##
27
+ # Lists SimInstance records from the API as a list.
28
+ # Unlike stream(), this operation is eager and will load `limit` records into
29
+ # memory before returning.
30
+ # @param [String] status The status
31
+ # @param [String] iccid The iccid
32
+ # @param [String] rate_plan The rate_plan
33
+ # @param [String] e_id The e_id
34
+ # @param [String] sim_registration_code The sim_registration_code
35
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
36
+ # guarantees to never return more than limit. Default is no limit
37
+ # @param [Integer] page_size Number of records to fetch per request, when
38
+ # not set will use the default value of 50 records. If no page_size is defined
39
+ # but a limit is defined, stream() will attempt to read the limit with the most
40
+ # efficient page size, i.e. min(limit, 1000)
41
+ # @return [Array] Array of up to limit results
42
+ def list(status: :unset, iccid: :unset, rate_plan: :unset, e_id: :unset, sim_registration_code: :unset, limit: nil, page_size: nil)
43
+ self.stream(
44
+ status: status,
45
+ iccid: iccid,
46
+ rate_plan: rate_plan,
47
+ e_id: e_id,
48
+ sim_registration_code: sim_registration_code,
49
+ limit: limit,
50
+ page_size: page_size
51
+ ).entries
52
+ end
53
+
54
+ ##
55
+ # Streams SimInstance records from the API as an Enumerable.
56
+ # This operation lazily loads records as efficiently as possible until the limit
57
+ # is reached.
58
+ # @param [String] status The status
59
+ # @param [String] iccid The iccid
60
+ # @param [String] rate_plan The rate_plan
61
+ # @param [String] e_id The e_id
62
+ # @param [String] sim_registration_code The sim_registration_code
63
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
64
+ # guarantees to never return more than limit. Default is no limit.
65
+ # @param [Integer] page_size Number of records to fetch per request, when
66
+ # not set will use the default value of 50 records. If no page_size is defined
67
+ # but a limit is defined, stream() will attempt to read the limit with the most
68
+ # efficient page size, i.e. min(limit, 1000)
69
+ # @return [Enumerable] Enumerable that will yield up to limit results
70
+ def stream(status: :unset, iccid: :unset, rate_plan: :unset, e_id: :unset, sim_registration_code: :unset, limit: nil, page_size: nil)
71
+ limits = @version.read_limits(limit, page_size)
72
+
73
+ page = self.page(
74
+ status: status,
75
+ iccid: iccid,
76
+ rate_plan: rate_plan,
77
+ e_id: e_id,
78
+ sim_registration_code: sim_registration_code,
79
+ page_size: limits[:page_size],
80
+ )
81
+
82
+ @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
83
+ end
84
+
85
+ ##
86
+ # When passed a block, yields SimInstance records from the API.
87
+ # This operation lazily loads records as efficiently as possible until the limit
88
+ # is reached.
89
+ def each
90
+ limits = @version.read_limits
91
+
92
+ page = self.page(
93
+ page_size: limits[:page_size],
94
+ )
95
+
96
+ @version.stream(page,
97
+ limit: limits[:limit],
98
+ page_limit: limits[:page_limit]).each {|x| yield x}
99
+ end
100
+
101
+ ##
102
+ # Retrieve a single page of SimInstance records from the API.
103
+ # Request is executed immediately.
104
+ # @param [String] status The status
105
+ # @param [String] iccid The iccid
106
+ # @param [String] rate_plan The rate_plan
107
+ # @param [String] e_id The e_id
108
+ # @param [String] sim_registration_code The sim_registration_code
109
+ # @param [String] page_token PageToken provided by the API
110
+ # @param [Integer] page_number Page Number, this value is simply for client state
111
+ # @param [Integer] page_size Number of records to return, defaults to 50
112
+ # @return [Page] Page of SimInstance
113
+ def page(status: :unset, iccid: :unset, rate_plan: :unset, e_id: :unset, sim_registration_code: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
114
+ params = Twilio::Values.of({
115
+ 'Status' => status,
116
+ 'Iccid' => iccid,
117
+ 'RatePlan' => rate_plan,
118
+ 'EId' => e_id,
119
+ 'SimRegistrationCode' => sim_registration_code,
120
+ 'PageToken' => page_token,
121
+ 'Page' => page_number,
122
+ 'PageSize' => page_size,
123
+ })
124
+ response = @version.page(
125
+ 'GET',
126
+ @uri,
127
+ params
128
+ )
129
+ SimPage.new(@version, response, @solution)
130
+ end
131
+
132
+ ##
133
+ # Retrieve a single page of SimInstance records from the API.
134
+ # Request is executed immediately.
135
+ # @param [String] target_url API-generated URL for the requested results page
136
+ # @return [Page] Page of SimInstance
137
+ def get_page(target_url)
138
+ response = @version.domain.request(
139
+ 'GET',
140
+ target_url
141
+ )
142
+ SimPage.new(@version, response, @solution)
143
+ end
144
+
145
+ ##
146
+ # Provide a user friendly representation
147
+ def to_s
148
+ '#<Twilio.Preview.Wireless.SimList>'
149
+ end
150
+ end
151
+
152
+ ##
153
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
154
+ class SimPage < Page
155
+ ##
156
+ # Initialize the SimPage
157
+ # @param [Version] version Version that contains the resource
158
+ # @param [Response] response Response from the API
159
+ # @param [Hash] solution Path solution for the resource
160
+ # @return [SimPage] SimPage
161
+ def initialize(version, response, solution)
162
+ super(version, response)
163
+
164
+ # Path Solution
165
+ @solution = solution
166
+ end
167
+
168
+ ##
169
+ # Build an instance of SimInstance
170
+ # @param [Hash] payload Payload response from the API
171
+ # @return [SimInstance] SimInstance
172
+ def get_instance(payload)
173
+ SimInstance.new(
174
+ @version,
175
+ payload,
176
+ )
177
+ end
178
+
179
+ ##
180
+ # Provide a user friendly representation
181
+ def to_s
182
+ '<Twilio.Preview.Wireless.SimPage>'
183
+ end
184
+ end
185
+
186
+ ##
187
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
188
+ class SimContext < InstanceContext
189
+ ##
190
+ # Initialize the SimContext
191
+ # @param [Version] version Version that contains the resource
192
+ # @param [String] sid The sid
193
+ # @return [SimContext] SimContext
194
+ def initialize(version, sid)
195
+ super(version)
196
+
197
+ # Path Solution
198
+ @solution = {
199
+ sid: sid,
200
+ }
201
+ @uri = "/Sims/#{@solution[:sid]}"
202
+
203
+ # Dependents
204
+ @usage = nil
205
+ end
206
+
207
+ ##
208
+ # Fetch a SimInstance
209
+ # @return [SimInstance] Fetched SimInstance
210
+ def fetch
211
+ params = Twilio::Values.of({})
212
+
213
+ payload = @version.fetch(
214
+ 'GET',
215
+ @uri,
216
+ params,
217
+ )
218
+
219
+ SimInstance.new(
220
+ @version,
221
+ payload,
222
+ sid: @solution[:sid],
223
+ )
224
+ end
225
+
226
+ ##
227
+ # Update the SimInstance
228
+ # @param [String] unique_name The unique_name
229
+ # @param [String] callback_method The callback_method
230
+ # @param [String] callback_url The callback_url
231
+ # @param [String] friendly_name The friendly_name
232
+ # @param [String] rate_plan The rate_plan
233
+ # @param [String] status The status
234
+ # @param [String] commands_callback_method The commands_callback_method
235
+ # @param [String] commands_callback_url The commands_callback_url
236
+ # @param [String] sms_fallback_method The sms_fallback_method
237
+ # @param [String] sms_fallback_url The sms_fallback_url
238
+ # @param [String] sms_method The sms_method
239
+ # @param [String] sms_url The sms_url
240
+ # @param [String] voice_fallback_method The voice_fallback_method
241
+ # @param [String] voice_fallback_url The voice_fallback_url
242
+ # @param [String] voice_method The voice_method
243
+ # @param [String] voice_url The voice_url
244
+ # @return [SimInstance] Updated SimInstance
245
+ def update(unique_name: :unset, callback_method: :unset, callback_url: :unset, friendly_name: :unset, rate_plan: :unset, status: :unset, commands_callback_method: :unset, commands_callback_url: :unset, sms_fallback_method: :unset, sms_fallback_url: :unset, sms_method: :unset, sms_url: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_url: :unset)
246
+ data = Twilio::Values.of({
247
+ 'UniqueName' => unique_name,
248
+ 'CallbackMethod' => callback_method,
249
+ 'CallbackUrl' => callback_url,
250
+ 'FriendlyName' => friendly_name,
251
+ 'RatePlan' => rate_plan,
252
+ 'Status' => status,
253
+ 'CommandsCallbackMethod' => commands_callback_method,
254
+ 'CommandsCallbackUrl' => commands_callback_url,
255
+ 'SmsFallbackMethod' => sms_fallback_method,
256
+ 'SmsFallbackUrl' => sms_fallback_url,
257
+ 'SmsMethod' => sms_method,
258
+ 'SmsUrl' => sms_url,
259
+ 'VoiceFallbackMethod' => voice_fallback_method,
260
+ 'VoiceFallbackUrl' => voice_fallback_url,
261
+ 'VoiceMethod' => voice_method,
262
+ 'VoiceUrl' => voice_url,
263
+ })
264
+
265
+ payload = @version.update(
266
+ 'POST',
267
+ @uri,
268
+ data: data,
269
+ )
270
+
271
+ SimInstance.new(
272
+ @version,
273
+ payload,
274
+ sid: @solution[:sid],
275
+ )
276
+ end
277
+
278
+ ##
279
+ # Access the usage
280
+ # @return [UsageList]
281
+ # @return [UsageContext]
282
+ def usage
283
+ UsageContext.new(
284
+ @version,
285
+ @solution[:sid],
286
+ )
287
+ end
288
+
289
+ ##
290
+ # Provide a user friendly representation
291
+ def to_s
292
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
293
+ "#<Twilio.Preview.Wireless.SimContext #{context}>"
294
+ end
295
+ end
296
+
297
+ ##
298
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
299
+ class SimInstance < InstanceResource
300
+ ##
301
+ # Initialize the SimInstance
302
+ # @param [Version] version Version that contains the resource
303
+ # @param [Hash] payload payload that contains response from Twilio
304
+ # @param [String] sid The sid
305
+ # @return [SimInstance] SimInstance
306
+ def initialize(version, payload, sid: nil)
307
+ super(version)
308
+
309
+ # Marshaled Properties
310
+ @properties = {
311
+ 'sid' => payload['sid'],
312
+ 'unique_name' => payload['unique_name'],
313
+ 'account_sid' => payload['account_sid'],
314
+ 'rate_plan_sid' => payload['rate_plan_sid'],
315
+ 'friendly_name' => payload['friendly_name'],
316
+ 'iccid' => payload['iccid'],
317
+ 'e_id' => payload['e_id'],
318
+ 'status' => payload['status'],
319
+ 'commands_callback_url' => payload['commands_callback_url'],
320
+ 'commands_callback_method' => payload['commands_callback_method'],
321
+ 'sms_fallback_method' => payload['sms_fallback_method'],
322
+ 'sms_fallback_url' => payload['sms_fallback_url'],
323
+ 'sms_method' => payload['sms_method'],
324
+ 'sms_url' => payload['sms_url'],
325
+ 'voice_fallback_method' => payload['voice_fallback_method'],
326
+ 'voice_fallback_url' => payload['voice_fallback_url'],
327
+ 'voice_method' => payload['voice_method'],
328
+ 'voice_url' => payload['voice_url'],
329
+ 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
330
+ 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
331
+ 'url' => payload['url'],
332
+ 'links' => payload['links'],
333
+ }
334
+
335
+ # Context
336
+ @instance_context = nil
337
+ @params = {
338
+ 'sid' => sid || @properties['sid'],
339
+ }
340
+ end
341
+
342
+ ##
343
+ # Generate an instance context for the instance, the context is capable of
344
+ # performing various actions. All instance actions are proxied to the context
345
+ # @return [SimContext] SimContext for this SimInstance
346
+ def context
347
+ unless @instance_context
348
+ @instance_context = SimContext.new(
349
+ @version,
350
+ @params['sid'],
351
+ )
352
+ end
353
+ @instance_context
354
+ end
355
+
356
+ ##
357
+ # @return [String] The sid
358
+ def sid
359
+ @properties['sid']
360
+ end
361
+
362
+ ##
363
+ # @return [String] The unique_name
364
+ def unique_name
365
+ @properties['unique_name']
366
+ end
367
+
368
+ ##
369
+ # @return [String] The account_sid
370
+ def account_sid
371
+ @properties['account_sid']
372
+ end
373
+
374
+ ##
375
+ # @return [String] The rate_plan_sid
376
+ def rate_plan_sid
377
+ @properties['rate_plan_sid']
378
+ end
379
+
380
+ ##
381
+ # @return [String] The friendly_name
382
+ def friendly_name
383
+ @properties['friendly_name']
384
+ end
385
+
386
+ ##
387
+ # @return [String] The iccid
388
+ def iccid
389
+ @properties['iccid']
390
+ end
391
+
392
+ ##
393
+ # @return [String] The e_id
394
+ def e_id
395
+ @properties['e_id']
396
+ end
397
+
398
+ ##
399
+ # @return [String] The status
400
+ def status
401
+ @properties['status']
402
+ end
403
+
404
+ ##
405
+ # @return [String] The commands_callback_url
406
+ def commands_callback_url
407
+ @properties['commands_callback_url']
408
+ end
409
+
410
+ ##
411
+ # @return [String] The commands_callback_method
412
+ def commands_callback_method
413
+ @properties['commands_callback_method']
414
+ end
415
+
416
+ ##
417
+ # @return [String] The sms_fallback_method
418
+ def sms_fallback_method
419
+ @properties['sms_fallback_method']
420
+ end
421
+
422
+ ##
423
+ # @return [String] The sms_fallback_url
424
+ def sms_fallback_url
425
+ @properties['sms_fallback_url']
426
+ end
427
+
428
+ ##
429
+ # @return [String] The sms_method
430
+ def sms_method
431
+ @properties['sms_method']
432
+ end
433
+
434
+ ##
435
+ # @return [String] The sms_url
436
+ def sms_url
437
+ @properties['sms_url']
438
+ end
439
+
440
+ ##
441
+ # @return [String] The voice_fallback_method
442
+ def voice_fallback_method
443
+ @properties['voice_fallback_method']
444
+ end
445
+
446
+ ##
447
+ # @return [String] The voice_fallback_url
448
+ def voice_fallback_url
449
+ @properties['voice_fallback_url']
450
+ end
451
+
452
+ ##
453
+ # @return [String] The voice_method
454
+ def voice_method
455
+ @properties['voice_method']
456
+ end
457
+
458
+ ##
459
+ # @return [String] The voice_url
460
+ def voice_url
461
+ @properties['voice_url']
462
+ end
463
+
464
+ ##
465
+ # @return [Time] The date_created
466
+ def date_created
467
+ @properties['date_created']
468
+ end
469
+
470
+ ##
471
+ # @return [Time] The date_updated
472
+ def date_updated
473
+ @properties['date_updated']
474
+ end
475
+
476
+ ##
477
+ # @return [String] The url
478
+ def url
479
+ @properties['url']
480
+ end
481
+
482
+ ##
483
+ # @return [String] The links
484
+ def links
485
+ @properties['links']
486
+ end
487
+
488
+ ##
489
+ # Fetch a SimInstance
490
+ # @return [SimInstance] Fetched SimInstance
491
+ def fetch
492
+ context.fetch
493
+ end
494
+
495
+ ##
496
+ # Update the SimInstance
497
+ # @param [String] unique_name The unique_name
498
+ # @param [String] callback_method The callback_method
499
+ # @param [String] callback_url The callback_url
500
+ # @param [String] friendly_name The friendly_name
501
+ # @param [String] rate_plan The rate_plan
502
+ # @param [String] status The status
503
+ # @param [String] commands_callback_method The commands_callback_method
504
+ # @param [String] commands_callback_url The commands_callback_url
505
+ # @param [String] sms_fallback_method The sms_fallback_method
506
+ # @param [String] sms_fallback_url The sms_fallback_url
507
+ # @param [String] sms_method The sms_method
508
+ # @param [String] sms_url The sms_url
509
+ # @param [String] voice_fallback_method The voice_fallback_method
510
+ # @param [String] voice_fallback_url The voice_fallback_url
511
+ # @param [String] voice_method The voice_method
512
+ # @param [String] voice_url The voice_url
513
+ # @return [SimInstance] Updated SimInstance
514
+ def update(unique_name: :unset, callback_method: :unset, callback_url: :unset, friendly_name: :unset, rate_plan: :unset, status: :unset, commands_callback_method: :unset, commands_callback_url: :unset, sms_fallback_method: :unset, sms_fallback_url: :unset, sms_method: :unset, sms_url: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_url: :unset)
515
+ context.update(
516
+ unique_name: unique_name,
517
+ callback_method: callback_method,
518
+ callback_url: callback_url,
519
+ friendly_name: friendly_name,
520
+ rate_plan: rate_plan,
521
+ status: status,
522
+ commands_callback_method: commands_callback_method,
523
+ commands_callback_url: commands_callback_url,
524
+ sms_fallback_method: sms_fallback_method,
525
+ sms_fallback_url: sms_fallback_url,
526
+ sms_method: sms_method,
527
+ sms_url: sms_url,
528
+ voice_fallback_method: voice_fallback_method,
529
+ voice_fallback_url: voice_fallback_url,
530
+ voice_method: voice_method,
531
+ voice_url: voice_url,
532
+ )
533
+ end
534
+
535
+ ##
536
+ # Access the usage
537
+ # @return [usage] usage
538
+ def usage
539
+ context.usage
540
+ end
541
+
542
+ ##
543
+ # Provide a user friendly representation
544
+ def to_s
545
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
546
+ "<Twilio.Preview.Wireless.SimInstance #{values}>"
547
+ end
548
+ end
549
+ end
550
+ end
551
+ end
552
+ end