twilio-ruby 7.1.0 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (446) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +39 -0
  3. data/Makefile +3 -0
  4. data/README.md +2 -2
  5. data/lib/twilio-ruby/base/client_base.rb +4 -1
  6. data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +2 -1
  7. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +8 -4
  8. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +8 -4
  9. data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +6 -3
  10. data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +4 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +8 -4
  12. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +8 -4
  13. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +2 -1
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +2 -1
  15. data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +2 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -1
  17. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +4 -2
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -4
  19. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +4 -2
  20. data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +4 -2
  21. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +2 -1
  22. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +4 -2
  23. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +9 -5
  24. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +8 -4
  25. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +6 -3
  26. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -2
  27. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +6 -3
  28. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -1
  29. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +6 -3
  30. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +2 -1
  31. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +2 -1
  32. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +2 -1
  33. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +8 -4
  34. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +6 -3
  35. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -1
  36. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +4 -2
  37. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +10 -6
  38. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +2 -1
  39. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +2 -1
  40. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -1
  41. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +6 -3
  42. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +4 -2
  43. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +8 -4
  44. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +4 -2
  45. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +4 -2
  46. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +4 -2
  47. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +5 -3
  48. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +4 -2
  49. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +6 -3
  50. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +8 -4
  51. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +8 -4
  52. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +6 -3
  53. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +6 -3
  54. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +6 -3
  55. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +6 -3
  56. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +6 -3
  57. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +8 -4
  58. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +8 -4
  59. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +8 -4
  60. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -1
  61. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +4 -2
  62. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +8 -4
  63. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -1
  64. data/lib/twilio-ruby/rest/api/v2010/account.rb +6 -3
  65. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +2 -1
  66. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +2 -1
  67. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +4 -2
  68. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -1
  69. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +4 -2
  70. data/lib/twilio-ruby/rest/chat/v1/credential.rb +8 -4
  71. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +6 -3
  72. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +8 -4
  73. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +8 -4
  74. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +8 -4
  75. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +8 -4
  76. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +8 -4
  77. data/lib/twilio-ruby/rest/chat/v1/service.rb +8 -4
  78. data/lib/twilio-ruby/rest/chat/v2/credential.rb +8 -4
  79. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +4 -2
  80. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +6 -3
  81. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +5 -4
  82. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +5 -4
  83. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +8 -4
  84. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +5 -4
  85. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +8 -4
  86. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +4 -2
  87. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +5 -3
  88. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +6 -4
  89. data/lib/twilio-ruby/rest/chat/v2/service.rb +8 -4
  90. data/lib/twilio-ruby/rest/chat/v3/channel.rb +1 -1
  91. data/lib/twilio-ruby/rest/client.rb +5 -0
  92. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +3 -2
  93. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +2 -1
  94. data/lib/twilio-ruby/rest/content/v1/content.rb +7 -4
  95. data/lib/twilio-ruby/rest/content/v2/content.rb +60 -3
  96. data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +60 -3
  97. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +8 -4
  98. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +4 -2
  99. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +4 -2
  100. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +2 -1
  101. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +5 -4
  102. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +5 -4
  103. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +8 -4
  104. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +5 -4
  105. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +8 -4
  106. data/lib/twilio-ruby/rest/conversations/v1/role.rb +8 -4
  107. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +4 -2
  108. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +4 -2
  109. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +4 -2
  110. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +4 -2
  111. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +2 -1
  112. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +5 -4
  113. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +5 -4
  114. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +8 -4
  115. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +5 -4
  116. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +8 -4
  117. data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +6 -3
  118. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +5 -4
  119. data/lib/twilio-ruby/rest/conversations/v1/service.rb +6 -3
  120. data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +6 -3
  121. data/lib/twilio-ruby/rest/conversations/v1/user.rb +5 -4
  122. data/lib/twilio-ruby/rest/events/v1/event_type.rb +16 -1
  123. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +2 -1
  124. data/lib/twilio-ruby/rest/events/v1/schema.rb +2 -1
  125. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +2 -1
  126. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +2 -1
  127. data/lib/twilio-ruby/rest/events/v1/sink.rb +8 -4
  128. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +8 -4
  129. data/lib/twilio-ruby/rest/events/v1/subscription.rb +8 -4
  130. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +2 -2
  131. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +6 -3
  132. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +5 -3
  133. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +8 -4
  134. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +1 -1
  135. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +4 -4
  136. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +3 -3
  137. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +3 -3
  138. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +1 -1
  139. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +1 -1
  140. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +1 -1
  141. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +1 -1
  142. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +2 -1
  143. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +4 -2
  144. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +4 -2
  145. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +4 -2
  146. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -2
  147. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +3 -3
  148. data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +1 -1
  149. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +1 -1
  150. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -2
  151. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +1 -1
  152. data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -2
  153. data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +1 -1
  154. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +2 -1
  155. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +8 -4
  156. data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +2 -1
  157. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +1 -1
  158. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +4 -2
  159. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +4 -2
  160. data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +2 -1
  161. data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -1
  162. data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +2 -1
  163. data/lib/twilio-ruby/rest/insights/v1/conference.rb +2 -1
  164. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +2 -1
  165. data/lib/twilio-ruby/rest/insights/v1/room.rb +2 -1
  166. data/lib/twilio-ruby/rest/insights/v1/setting.rb +4 -2
  167. data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +7 -4
  168. data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +2 -1
  169. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +4 -2
  170. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +2 -1
  171. data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +2 -1
  172. data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +2 -1
  173. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +7 -4
  174. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +2 -1
  175. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +2 -1
  176. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +6 -3
  177. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +8 -4
  178. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +6 -3
  179. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +8 -4
  180. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +8 -4
  181. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +8 -4
  182. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +8 -4
  183. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +8 -4
  184. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +8 -4
  185. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +8 -4
  186. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +4 -2
  187. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +6 -3
  188. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +5 -4
  189. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +5 -4
  190. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +8 -4
  191. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +5 -4
  192. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +8 -4
  193. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -2
  194. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +6 -3
  195. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +6 -4
  196. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +8 -4
  197. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -1
  198. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +2 -1
  199. data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +309 -0
  200. data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +336 -0
  201. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +352 -0
  202. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +170 -0
  203. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +465 -0
  204. data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +284 -0
  205. data/lib/twilio-ruby/rest/marketplace/v1.rb +79 -0
  206. data/lib/twilio-ruby/rest/marketplace.rb +6 -0
  207. data/lib/twilio-ruby/rest/marketplace_base.rb +38 -0
  208. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +2 -1
  209. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +4 -2
  210. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +6 -3
  211. data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +2 -1
  212. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +6 -3
  213. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +4 -2
  214. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +2 -1
  215. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +2 -1
  216. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +4 -2
  217. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +2 -1
  218. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +6 -3
  219. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +2 -1
  220. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +6 -3
  221. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +6 -3
  222. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +8 -4
  223. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +2 -1
  224. data/lib/twilio-ruby/rest/messaging/v1/service.rb +8 -4
  225. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +23 -7
  226. data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +2 -1
  227. data/lib/twilio-ruby/rest/messaging/v1.rb +1 -1
  228. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +8 -4
  229. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +8 -4
  230. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +2 -1
  231. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +4 -2
  232. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +8 -4
  233. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +8 -4
  234. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +4 -2
  235. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -1
  236. data/lib/twilio-ruby/rest/monitor/v1/event.rb +2 -1
  237. data/lib/twilio-ruby/rest/notify/v1/credential.rb +8 -4
  238. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +6 -3
  239. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -1
  240. data/lib/twilio-ruby/rest/notify/v1/service.rb +8 -4
  241. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +5 -3
  242. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +3 -2
  243. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +14 -4
  244. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +29 -6
  245. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +2 -15
  246. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +3 -2
  247. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +2 -1
  248. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb +2 -1
  249. data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +177 -0
  250. data/lib/twilio-ruby/rest/numbers/v1.rb +6 -0
  251. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +6 -3
  252. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +5 -3
  253. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +6 -3
  254. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +2 -1
  255. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +4 -2
  256. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +6 -3
  257. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +2 -1
  258. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +8 -4
  259. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +8 -4
  260. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +2 -1
  261. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +2 -1
  262. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +8 -4
  263. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +2 -1
  264. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +2 -1
  265. data/lib/twilio-ruby/rest/oauth/v1/token.rb +2 -1
  266. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +8 -4
  267. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +8 -4
  268. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +8 -4
  269. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +8 -4
  270. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +8 -4
  271. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +6 -3
  272. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -4
  273. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +2 -1
  274. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +2 -1
  275. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +4 -2
  276. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +8 -4
  277. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +6 -3
  278. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +7 -4
  279. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +6 -4
  280. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +6 -3
  281. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +6 -3
  282. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +6 -4
  283. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +6 -3
  284. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +6 -3
  285. data/lib/twilio-ruby/rest/preview/sync/service.rb +8 -4
  286. data/lib/twilio-ruby/rest/preview/wireless/command.rb +4 -2
  287. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +8 -4
  288. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +2 -1
  289. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +4 -2
  290. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -1
  291. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +2 -1
  292. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -1
  293. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -1
  294. data/lib/twilio-ruby/rest/pricing/v2/country.rb +2 -1
  295. data/lib/twilio-ruby/rest/pricing/v2/number.rb +2 -1
  296. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -1
  297. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +2 -1
  298. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +8 -4
  299. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +4 -2
  300. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +4 -2
  301. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +6 -3
  302. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +8 -4
  303. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +8 -4
  304. data/lib/twilio-ruby/rest/proxy/v1/service.rb +8 -4
  305. data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +4 -2
  306. data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +4 -2
  307. data/lib/twilio-ruby/rest/routes/v2/trunk.rb +4 -2
  308. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +2 -1
  309. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +8 -4
  310. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +2 -1
  311. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +6 -3
  312. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -2
  313. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +2 -1
  314. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +8 -4
  315. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -3
  316. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +2 -1
  317. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +2 -1
  318. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +8 -4
  319. data/lib/twilio-ruby/rest/serverless/v1/service.rb +8 -4
  320. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -1
  321. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -1
  322. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +2 -1
  323. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +6 -3
  324. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +2 -1
  325. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +2 -1
  326. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +2 -1
  327. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +8 -4
  328. data/lib/twilio-ruby/rest/studio/v1/flow.rb +4 -2
  329. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +2 -1
  330. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +2 -1
  331. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +2 -1
  332. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +8 -4
  333. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -1
  334. data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +4 -2
  335. data/lib/twilio-ruby/rest/studio/v2/flow.rb +8 -4
  336. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +2 -1
  337. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -2
  338. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +6 -3
  339. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +4 -2
  340. data/lib/twilio-ruby/rest/supersim/v1/network.rb +2 -1
  341. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +6 -3
  342. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -3
  343. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +6 -3
  344. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +4 -2
  345. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +6 -3
  346. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
  347. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -4
  348. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +6 -3
  349. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +8 -4
  350. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +6 -4
  351. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +6 -3
  352. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +8 -4
  353. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +2 -1
  354. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +8 -4
  355. data/lib/twilio-ruby/rest/sync/v1/service.rb +8 -4
  356. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +8 -4
  357. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +2 -1
  358. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +3 -2
  359. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +6 -4
  360. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +8 -4
  361. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +3 -2
  362. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +2 -1
  363. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +2 -1
  364. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +2 -1
  365. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -4
  366. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +3 -2
  367. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +4 -2
  368. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +2 -1
  369. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +2 -1
  370. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +2 -1
  371. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +2 -1
  372. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +6 -4
  373. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +2 -1
  374. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -1
  375. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +2 -1
  376. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +8 -4
  377. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +2 -1
  378. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +2 -1
  379. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +2 -1
  380. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +8 -4
  381. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +6 -3
  382. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +6 -3
  383. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +8 -4
  384. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +6 -3
  385. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +4 -2
  386. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +8 -4
  387. data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +4 -2
  388. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +4 -2
  389. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +6 -2
  390. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +6 -3
  391. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +6 -3
  392. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +4 -2
  393. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +8 -4
  394. data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +8 -4
  395. data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +2 -1
  396. data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +2 -1
  397. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +8 -4
  398. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +2 -1
  399. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +6 -3
  400. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +6 -3
  401. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +4 -2
  402. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +8 -4
  403. data/lib/twilio-ruby/rest/verify/v2/form.rb +2 -1
  404. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +6 -3
  405. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +4 -2
  406. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +2 -1
  407. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +6 -3
  408. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +6 -3
  409. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +2 -1
  410. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +6 -3
  411. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +8 -4
  412. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +8 -4
  413. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +8 -4
  414. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +6 -3
  415. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
  416. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +8 -4
  417. data/lib/twilio-ruby/rest/verify/v2/service.rb +8 -4
  418. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +2 -1
  419. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +2 -1
  420. data/lib/twilio-ruby/rest/video/v1/composition.rb +6 -3
  421. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +8 -4
  422. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +4 -2
  423. data/lib/twilio-ruby/rest/video/v1/recording.rb +4 -2
  424. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +4 -2
  425. data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +2 -1
  426. data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +2 -1
  427. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +4 -2
  428. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +2 -1
  429. data/lib/twilio-ruby/rest/video/v1/room/participant.rb +4 -2
  430. data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +4 -2
  431. data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +4 -2
  432. data/lib/twilio-ruby/rest/video/v1/room.rb +6 -3
  433. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +2 -1
  434. data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +8 -4
  435. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +8 -4
  436. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +8 -4
  437. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +2 -1
  438. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +2 -1
  439. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +4 -2
  440. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +8 -4
  441. data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +8 -4
  442. data/lib/twilio-ruby/rest/wireless/v1/command.rb +6 -3
  443. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +8 -4
  444. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +6 -3
  445. data/lib/twilio-ruby/version.rb +1 -1
  446. metadata +12 -2
@@ -0,0 +1,170 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Marketplace
8
+ # This is the public Twilio REST API.
9
+ #
10
+ # NOTE: This class is auto generated by OpenAPI Generator.
11
+ # https://openapi-generator.tech
12
+ # Do not edit the class manually.
13
+ #
14
+
15
+
16
+ module Twilio
17
+ module REST
18
+ class Marketplace < MarketplaceBase
19
+ class V1 < Version
20
+ class InstalledAddOnContext < InstanceContext
21
+
22
+ class InstalledAddOnUsageList < ListResource
23
+
24
+ class CreateMarketplaceBillingUsageRequest
25
+ # @param [billable_items]: [Array<InstalledAddOnUsageList.CreateMarketplaceBillingUsageRequestBillableItems>]
26
+ attr_accessor :billable_items
27
+ def initialize(payload)
28
+ @billable_items = payload["billable_items"]
29
+ end
30
+ def to_json(options = {})
31
+ {
32
+ billable_items: @billable_items,
33
+ }.to_json(options)
34
+ end
35
+ end
36
+
37
+ class CreateMarketplaceBillingUsageRequestBillableItems
38
+ # @param [quantity]: [Float]
39
+ # @param [sid]: [String]
40
+ attr_accessor :quantity, :sid
41
+ def initialize(payload)
42
+ @quantity = payload["quantity"]
43
+ @sid = payload["sid"]
44
+ end
45
+ def to_json(options = {})
46
+ {
47
+ quantity: @quantity,
48
+ sid: @sid,
49
+ }.to_json(options)
50
+ end
51
+ end
52
+
53
+ ##
54
+ # Initialize the InstalledAddOnUsageList
55
+ # @param [Version] version Version that contains the resource
56
+ # @return [InstalledAddOnUsageList] InstalledAddOnUsageList
57
+ def initialize(version, installed_add_on_sid: nil)
58
+ super(version)
59
+ # Path Solution
60
+ @solution = { installed_add_on_sid: installed_add_on_sid }
61
+ @uri = "/InstalledAddOns/#{@solution[:installed_add_on_sid]}/Usage"
62
+
63
+ end
64
+ ##
65
+ # Create the InstalledAddOnUsageInstance
66
+ # @param [CreateMarketplaceBillingUsageRequest] create_marketplace_billing_usage_request
67
+ # @return [InstalledAddOnUsageInstance] Created InstalledAddOnUsageInstance
68
+ def create(create_marketplace_billing_usage_request: nil
69
+ )
70
+
71
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
72
+ headers['Content-Type'] = 'application/json'
73
+ payload = @version.create('POST', @uri, headers: headers, data: create_marketplace_billing_usage_request.to_json)
74
+ InstalledAddOnUsageInstance.new(
75
+ @version,
76
+ payload,
77
+ installed_add_on_sid: @solution[:installed_add_on_sid],
78
+ )
79
+ end
80
+
81
+
82
+
83
+
84
+ # Provide a user friendly representation
85
+ def to_s
86
+ '#<Twilio.Marketplace.V1.InstalledAddOnUsageList>'
87
+ end
88
+ end
89
+
90
+ class InstalledAddOnUsagePage < Page
91
+ ##
92
+ # Initialize the InstalledAddOnUsagePage
93
+ # @param [Version] version Version that contains the resource
94
+ # @param [Response] response Response from the API
95
+ # @param [Hash] solution Path solution for the resource
96
+ # @return [InstalledAddOnUsagePage] InstalledAddOnUsagePage
97
+ def initialize(version, response, solution)
98
+ super(version, response)
99
+
100
+ # Path Solution
101
+ @solution = solution
102
+ end
103
+
104
+ ##
105
+ # Build an instance of InstalledAddOnUsageInstance
106
+ # @param [Hash] payload Payload response from the API
107
+ # @return [InstalledAddOnUsageInstance] InstalledAddOnUsageInstance
108
+ def get_instance(payload)
109
+ InstalledAddOnUsageInstance.new(@version, payload, installed_add_on_sid: @solution[:installed_add_on_sid])
110
+ end
111
+
112
+ ##
113
+ # Provide a user friendly representation
114
+ def to_s
115
+ '<Twilio.Marketplace.V1.InstalledAddOnUsagePage>'
116
+ end
117
+ end
118
+ class InstalledAddOnUsageInstance < InstanceResource
119
+ ##
120
+ # Initialize the InstalledAddOnUsageInstance
121
+ # @param [Version] version Version that contains the resource
122
+ # @param [Hash] payload payload that contains response from Twilio
123
+ # @param [String] account_sid The SID of the
124
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this InstalledAddOnUsage
125
+ # resource.
126
+ # @param [String] sid The SID of the Call resource to fetch.
127
+ # @return [InstalledAddOnUsageInstance] InstalledAddOnUsageInstance
128
+ def initialize(version, payload , installed_add_on_sid: nil)
129
+ super(version)
130
+
131
+ # Marshaled Properties
132
+ @properties = {
133
+ 'billable_items' => payload['billable_items'],
134
+ 'total_submitted' => payload['total_submitted'],
135
+ }
136
+ end
137
+
138
+
139
+ ##
140
+ # @return [Array<MarketplaceInstalledAddOnBillingUsageResponseBillableItems>]
141
+ def billable_items
142
+ @properties['billable_items']
143
+ end
144
+
145
+ ##
146
+ # @return [Float] Represents the total quantity submitted.
147
+ def total_submitted
148
+ @properties['total_submitted']
149
+ end
150
+
151
+ ##
152
+ # Provide a user friendly representation
153
+ def to_s
154
+ "<Twilio.Marketplace.V1.InstalledAddOnUsageInstance>"
155
+ end
156
+
157
+ ##
158
+ # Provide a detailed, user friendly representation
159
+ def inspect
160
+ "<Twilio.Marketplace.V1.InstalledAddOnUsageInstance>"
161
+ end
162
+ end
163
+
164
+ end
165
+ end
166
+ end
167
+ end
168
+ end
169
+
170
+
@@ -0,0 +1,465 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Marketplace
8
+ # This is the public Twilio REST API.
9
+ #
10
+ # NOTE: This class is auto generated by OpenAPI Generator.
11
+ # https://openapi-generator.tech
12
+ # Do not edit the class manually.
13
+ #
14
+
15
+
16
+ module Twilio
17
+ module REST
18
+ class Marketplace < MarketplaceBase
19
+ class V1 < Version
20
+ class InstalledAddOnList < ListResource
21
+
22
+ ##
23
+ # Initialize the InstalledAddOnList
24
+ # @param [Version] version Version that contains the resource
25
+ # @return [InstalledAddOnList] InstalledAddOnList
26
+ def initialize(version)
27
+ super(version)
28
+ # Path Solution
29
+ @solution = { }
30
+ @uri = "/InstalledAddOns"
31
+
32
+ end
33
+ ##
34
+ # Create the InstalledAddOnInstance
35
+ # @param [String] available_add_on_sid The SID of the AvaliableAddOn to install.
36
+ # @param [Boolean] accept_terms_of_service Whether the Terms of Service were accepted.
37
+ # @param [Object] configuration The JSON object that represents the configuration of the new Add-on being installed.
38
+ # @param [String] unique_name An application-defined string that uniquely identifies the resource. This value must be unique within the Account.
39
+ # @return [InstalledAddOnInstance] Created InstalledAddOnInstance
40
+ def create(
41
+ available_add_on_sid: nil,
42
+ accept_terms_of_service: nil,
43
+ configuration: :unset,
44
+ unique_name: :unset
45
+ )
46
+
47
+ data = Twilio::Values.of({
48
+ 'AvailableAddOnSid' => available_add_on_sid,
49
+ 'AcceptTermsOfService' => accept_terms_of_service,
50
+ 'Configuration' => Twilio.serialize_object(configuration),
51
+ 'UniqueName' => unique_name,
52
+ })
53
+
54
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
55
+
56
+ payload = @version.create('POST', @uri, data: data, headers: headers)
57
+ InstalledAddOnInstance.new(
58
+ @version,
59
+ payload,
60
+ )
61
+ end
62
+
63
+
64
+ ##
65
+ # Lists InstalledAddOnInstance records from the API as a list.
66
+ # Unlike stream(), this operation is eager and will load `limit` records into
67
+ # memory before returning.
68
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
69
+ # guarantees to never return more than limit. Default is no limit
70
+ # @param [Integer] page_size Number of records to fetch per request, when
71
+ # not set will use the default value of 50 records. If no page_size is defined
72
+ # but a limit is defined, stream() will attempt to read the limit with the most
73
+ # efficient page size, i.e. min(limit, 1000)
74
+ # @return [Array] Array of up to limit results
75
+ def list(limit: nil, page_size: nil)
76
+ self.stream(
77
+ limit: limit,
78
+ page_size: page_size
79
+ ).entries
80
+ end
81
+
82
+ ##
83
+ # Streams Instance records from the API as an Enumerable.
84
+ # This operation lazily loads records as efficiently as possible until the limit
85
+ # is reached.
86
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
87
+ # guarantees to never return more than limit. Default is no limit
88
+ # @param [Integer] page_size Number of records to fetch per request, when
89
+ # not set will use the default value of 50 records. If no page_size is defined
90
+ # but a limit is defined, stream() will attempt to read the limit with the most
91
+ # efficient page size, i.e. min(limit, 1000)
92
+ # @return [Enumerable] Enumerable that will yield up to limit results
93
+ def stream(limit: nil, page_size: nil)
94
+ limits = @version.read_limits(limit, page_size)
95
+
96
+ page = self.page(
97
+ page_size: limits[:page_size], )
98
+
99
+ @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
100
+ end
101
+
102
+ ##
103
+ # When passed a block, yields InstalledAddOnInstance records from the API.
104
+ # This operation lazily loads records as efficiently as possible until the limit
105
+ # is reached.
106
+ def each
107
+ limits = @version.read_limits
108
+
109
+ page = self.page(page_size: limits[:page_size], )
110
+
111
+ @version.stream(page,
112
+ limit: limits[:limit],
113
+ page_limit: limits[:page_limit]).each {|x| yield x}
114
+ end
115
+
116
+ ##
117
+ # Retrieve a single page of InstalledAddOnInstance records from the API.
118
+ # Request is executed immediately.
119
+ # @param [String] page_token PageToken provided by the API
120
+ # @param [Integer] page_number Page Number, this value is simply for client state
121
+ # @param [Integer] page_size Number of records to return, defaults to 50
122
+ # @return [Page] Page of InstalledAddOnInstance
123
+ def page(page_token: :unset, page_number: :unset, page_size: :unset)
124
+ params = Twilio::Values.of({
125
+ 'PageToken' => page_token,
126
+ 'Page' => page_number,
127
+ 'PageSize' => page_size,
128
+ })
129
+
130
+ response = @version.page('GET', @uri, params: params)
131
+
132
+ InstalledAddOnPage.new(@version, response, @solution)
133
+ end
134
+
135
+ ##
136
+ # Retrieve a single page of InstalledAddOnInstance records from the API.
137
+ # Request is executed immediately.
138
+ # @param [String] target_url API-generated URL for the requested results page
139
+ # @return [Page] Page of InstalledAddOnInstance
140
+ def get_page(target_url)
141
+ response = @version.domain.request(
142
+ 'GET',
143
+ target_url
144
+ )
145
+ InstalledAddOnPage.new(@version, response, @solution)
146
+ end
147
+
148
+
149
+
150
+ # Provide a user friendly representation
151
+ def to_s
152
+ '#<Twilio.Marketplace.V1.InstalledAddOnList>'
153
+ end
154
+ end
155
+
156
+
157
+ class InstalledAddOnContext < InstanceContext
158
+ ##
159
+ # Initialize the InstalledAddOnContext
160
+ # @param [Version] version Version that contains the resource
161
+ # @param [String] sid The SID of the InstalledAddOn resource to update.
162
+ # @return [InstalledAddOnContext] InstalledAddOnContext
163
+ def initialize(version, sid)
164
+ super(version)
165
+
166
+ # Path Solution
167
+ @solution = { sid: sid, }
168
+ @uri = "/InstalledAddOns/#{@solution[:sid]}"
169
+
170
+ # Dependents
171
+ @usage = nil
172
+ @extensions = nil
173
+ end
174
+ ##
175
+ # Delete the InstalledAddOnInstance
176
+ # @return [Boolean] True if delete succeeds, false otherwise
177
+ def delete
178
+
179
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
180
+
181
+ @version.delete('DELETE', @uri, headers: headers)
182
+ end
183
+
184
+ ##
185
+ # Fetch the InstalledAddOnInstance
186
+ # @return [InstalledAddOnInstance] Fetched InstalledAddOnInstance
187
+ def fetch
188
+
189
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
190
+
191
+ payload = @version.fetch('GET', @uri, headers: headers)
192
+ InstalledAddOnInstance.new(
193
+ @version,
194
+ payload,
195
+ sid: @solution[:sid],
196
+ )
197
+ end
198
+
199
+ ##
200
+ # Update the InstalledAddOnInstance
201
+ # @param [Object] configuration Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured
202
+ # @param [String] unique_name An application-defined string that uniquely identifies the resource. This value must be unique within the Account.
203
+ # @return [InstalledAddOnInstance] Updated InstalledAddOnInstance
204
+ def update(
205
+ configuration: :unset,
206
+ unique_name: :unset
207
+ )
208
+
209
+ data = Twilio::Values.of({
210
+ 'Configuration' => Twilio.serialize_object(configuration),
211
+ 'UniqueName' => unique_name,
212
+ })
213
+
214
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
215
+
216
+ payload = @version.update('POST', @uri, data: data, headers: headers)
217
+ InstalledAddOnInstance.new(
218
+ @version,
219
+ payload,
220
+ sid: @solution[:sid],
221
+ )
222
+ end
223
+
224
+ ##
225
+ # Access the usage
226
+ # @return [InstalledAddOnUsageList]
227
+ # @return [InstalledAddOnUsageContext]
228
+ def usage
229
+ unless @usage
230
+ @usage = InstalledAddOnUsageList.new(
231
+ @version, installed_add_on_sid: @solution[:sid], )
232
+ end
233
+ @usage
234
+ end
235
+ ##
236
+ # Access the extensions
237
+ # @return [InstalledAddOnExtensionList]
238
+ # @return [InstalledAddOnExtensionContext] if sid was passed.
239
+ def extensions(sid=:unset)
240
+
241
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
242
+
243
+ if sid != :unset
244
+ return InstalledAddOnExtensionContext.new(@version, @solution[:sid],sid )
245
+ end
246
+
247
+ unless @extensions
248
+ @extensions = InstalledAddOnExtensionList.new(
249
+ @version, installed_add_on_sid: @solution[:sid], )
250
+ end
251
+
252
+ @extensions
253
+ end
254
+
255
+ ##
256
+ # Provide a user friendly representation
257
+ def to_s
258
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
259
+ "#<Twilio.Marketplace.V1.InstalledAddOnContext #{context}>"
260
+ end
261
+
262
+ ##
263
+ # Provide a detailed, user friendly representation
264
+ def inspect
265
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
266
+ "#<Twilio.Marketplace.V1.InstalledAddOnContext #{context}>"
267
+ end
268
+ end
269
+
270
+ class InstalledAddOnPage < Page
271
+ ##
272
+ # Initialize the InstalledAddOnPage
273
+ # @param [Version] version Version that contains the resource
274
+ # @param [Response] response Response from the API
275
+ # @param [Hash] solution Path solution for the resource
276
+ # @return [InstalledAddOnPage] InstalledAddOnPage
277
+ def initialize(version, response, solution)
278
+ super(version, response)
279
+
280
+ # Path Solution
281
+ @solution = solution
282
+ end
283
+
284
+ ##
285
+ # Build an instance of InstalledAddOnInstance
286
+ # @param [Hash] payload Payload response from the API
287
+ # @return [InstalledAddOnInstance] InstalledAddOnInstance
288
+ def get_instance(payload)
289
+ InstalledAddOnInstance.new(@version, payload)
290
+ end
291
+
292
+ ##
293
+ # Provide a user friendly representation
294
+ def to_s
295
+ '<Twilio.Marketplace.V1.InstalledAddOnPage>'
296
+ end
297
+ end
298
+ class InstalledAddOnInstance < InstanceResource
299
+ ##
300
+ # Initialize the InstalledAddOnInstance
301
+ # @param [Version] version Version that contains the resource
302
+ # @param [Hash] payload payload that contains response from Twilio
303
+ # @param [String] account_sid The SID of the
304
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this InstalledAddOn
305
+ # resource.
306
+ # @param [String] sid The SID of the Call resource to fetch.
307
+ # @return [InstalledAddOnInstance] InstalledAddOnInstance
308
+ def initialize(version, payload , sid: nil)
309
+ super(version)
310
+
311
+ # Marshaled Properties
312
+ @properties = {
313
+ 'sid' => payload['sid'],
314
+ 'account_sid' => payload['account_sid'],
315
+ 'friendly_name' => payload['friendly_name'],
316
+ 'description' => payload['description'],
317
+ 'configuration' => payload['configuration'],
318
+ 'unique_name' => payload['unique_name'],
319
+ 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
320
+ 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
321
+ 'url' => payload['url'],
322
+ 'links' => payload['links'],
323
+ }
324
+
325
+ # Context
326
+ @instance_context = nil
327
+ @params = { 'sid' => sid || @properties['sid'] , }
328
+ end
329
+
330
+ ##
331
+ # Generate an instance context for the instance, the context is capable of
332
+ # performing various actions. All instance actions are proxied to the context
333
+ # @return [InstalledAddOnContext] CallContext for this CallInstance
334
+ def context
335
+ unless @instance_context
336
+ @instance_context = InstalledAddOnContext.new(@version , @params['sid'])
337
+ end
338
+ @instance_context
339
+ end
340
+
341
+ ##
342
+ # @return [String] The unique string that we created to identify the InstalledAddOn resource. This Sid can also be found in the Console on that specific Add-ons page as the 'Available Add-on Sid'.
343
+ def sid
344
+ @properties['sid']
345
+ end
346
+
347
+ ##
348
+ # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the InstalledAddOn resource.
349
+ def account_sid
350
+ @properties['account_sid']
351
+ end
352
+
353
+ ##
354
+ # @return [String] The string that you assigned to describe the resource.
355
+ def friendly_name
356
+ @properties['friendly_name']
357
+ end
358
+
359
+ ##
360
+ # @return [String] A short description of the Add-on's functionality.
361
+ def description
362
+ @properties['description']
363
+ end
364
+
365
+ ##
366
+ # @return [Hash] The JSON object that represents the current configuration of installed Add-on.
367
+ def configuration
368
+ @properties['configuration']
369
+ end
370
+
371
+ ##
372
+ # @return [String] An application-defined string that uniquely identifies the resource.
373
+ def unique_name
374
+ @properties['unique_name']
375
+ end
376
+
377
+ ##
378
+ # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
379
+ def date_created
380
+ @properties['date_created']
381
+ end
382
+
383
+ ##
384
+ # @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
385
+ def date_updated
386
+ @properties['date_updated']
387
+ end
388
+
389
+ ##
390
+ # @return [String] The absolute URL of the resource.
391
+ def url
392
+ @properties['url']
393
+ end
394
+
395
+ ##
396
+ # @return [Hash] The URLs of related resources.
397
+ def links
398
+ @properties['links']
399
+ end
400
+
401
+ ##
402
+ # Delete the InstalledAddOnInstance
403
+ # @return [Boolean] True if delete succeeds, false otherwise
404
+ def delete
405
+
406
+ context.delete
407
+ end
408
+
409
+ ##
410
+ # Fetch the InstalledAddOnInstance
411
+ # @return [InstalledAddOnInstance] Fetched InstalledAddOnInstance
412
+ def fetch
413
+
414
+ context.fetch
415
+ end
416
+
417
+ ##
418
+ # Update the InstalledAddOnInstance
419
+ # @param [Object] configuration Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured
420
+ # @param [String] unique_name An application-defined string that uniquely identifies the resource. This value must be unique within the Account.
421
+ # @return [InstalledAddOnInstance] Updated InstalledAddOnInstance
422
+ def update(
423
+ configuration: :unset,
424
+ unique_name: :unset
425
+ )
426
+
427
+ context.update(
428
+ configuration: configuration,
429
+ unique_name: unique_name,
430
+ )
431
+ end
432
+
433
+ ##
434
+ # Access the usage
435
+ # @return [usage] usage
436
+ def usage
437
+ context.usage
438
+ end
439
+
440
+ ##
441
+ # Access the extensions
442
+ # @return [extensions] extensions
443
+ def extensions
444
+ context.extensions
445
+ end
446
+
447
+ ##
448
+ # Provide a user friendly representation
449
+ def to_s
450
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
451
+ "<Twilio.Marketplace.V1.InstalledAddOnInstance #{values}>"
452
+ end
453
+
454
+ ##
455
+ # Provide a detailed, user friendly representation
456
+ def inspect
457
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
458
+ "<Twilio.Marketplace.V1.InstalledAddOnInstance #{values}>"
459
+ end
460
+ end
461
+
462
+ end
463
+ end
464
+ end
465
+ end