twilio-ruby 6.12.1 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +5 -5
  3. data/CHANGES.md +47 -1
  4. data/README.md +2 -2
  5. data/UPGRADE.md +11 -0
  6. data/lib/twilio-ruby/framework/request.rb +8 -1
  7. data/lib/twilio-ruby/http/http_client.rb +10 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
  9. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +22 -22
  10. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
  11. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
  12. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
  13. data/lib/twilio-ruby/rest/client.rb +8 -3
  14. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
  15. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -13
  16. data/lib/twilio-ruby/rest/content/v1/content.rb +422 -3
  17. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
  18. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
  19. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
  20. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
  21. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +26 -0
  22. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
  23. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
  24. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
  25. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
  26. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
  27. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +6 -0
  28. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
  29. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
  30. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
  31. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
  32. data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
  33. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
  34. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
  35. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
  36. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
  37. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -2
  38. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
  39. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -2
  40. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
  41. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
  42. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
  43. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
  44. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
  45. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
  46. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
  47. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
  48. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
  49. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
  50. data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -2
  51. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -2
  52. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
  53. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
  54. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
  55. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
  56. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
  57. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
  58. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
  59. data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
  60. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
  61. data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
  62. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +16 -3
  63. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +127 -0
  64. data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
  65. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +134 -0
  66. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -2
  67. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
  68. data/lib/twilio-ruby/rest/numbers/v1.rb +12 -0
  69. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
  70. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +16 -3
  71. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
  72. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
  73. data/lib/twilio-ruby/rest/oauth/v1/token.rb +181 -0
  74. data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
  75. data/lib/twilio-ruby/rest/{media.rb → oauth.rb} +1 -1
  76. data/lib/twilio-ruby/rest/{media_base.rb → oauth_base.rb} +6 -6
  77. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
  78. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
  79. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
  80. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
  81. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
  82. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
  83. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
  84. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
  85. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
  86. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
  87. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
  88. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
  89. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
  90. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
  91. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
  92. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
  93. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
  94. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
  95. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
  96. data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
  97. data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
  98. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
  99. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
  100. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
  101. data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
  102. data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
  103. data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
  104. data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
  105. data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
  106. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
  107. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
  108. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
  109. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
  110. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
  111. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
  112. data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
  113. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
  114. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
  115. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
  116. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
  117. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
  118. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
  119. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
  120. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
  121. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
  122. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
  123. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
  124. data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
  125. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
  126. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
  127. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
  128. data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
  129. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
  130. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
  131. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
  132. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
  133. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +163 -0
  134. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
  135. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
  136. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
  137. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
  138. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
  139. data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
  140. data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
  141. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
  142. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
  143. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
  144. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
  145. data/lib/twilio-ruby/version.rb +1 -1
  146. metadata +16 -9
  147. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
  148. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -407
  149. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
  150. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
  151. data/lib/twilio-ruby/rest/media/v1.rb +0 -79
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class ProvisioningStatusContext < InstanceContext
46
44
  ##
47
45
  # Initialize the ProvisioningStatusContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class UserContext < InstanceContext
46
44
  ##
47
45
  # Initialize the UserContext
@@ -42,8 +42,6 @@ module Twilio
42
42
  end
43
43
 
44
44
 
45
- ##
46
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
47
45
  class AnnotationContext < InstanceContext
48
46
  ##
49
47
  # Initialize the AnnotationContext
@@ -126,8 +126,6 @@ module Twilio
126
126
  end
127
127
 
128
128
 
129
- ##
130
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
131
129
  class ParticipantContext < InstanceContext
132
130
  ##
133
131
  # Initialize the ParticipantContext
@@ -156,8 +156,6 @@ module Twilio
156
156
  end
157
157
 
158
158
 
159
- ##
160
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
161
159
  class RoomContext < InstanceContext
162
160
  ##
163
161
  # Initialize the RoomContext
@@ -168,8 +168,6 @@ module Twilio
168
168
  end
169
169
 
170
170
 
171
- ##
172
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
173
171
  class ServiceContext < InstanceContext
174
172
  ##
175
173
  # Initialize the ServiceContext
@@ -42,8 +42,6 @@ module Twilio
42
42
  end
43
43
 
44
44
 
45
- ##
46
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
47
45
  class MediaContext < InstanceContext
48
46
  ##
49
47
  # Initialize the MediaContext
@@ -132,8 +132,6 @@ module Twilio
132
132
  end
133
133
 
134
134
 
135
- ##
136
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
137
135
  class OperatorResultContext < InstanceContext
138
136
  ##
139
137
  # Initialize the OperatorResultContext
@@ -201,8 +201,6 @@ module Twilio
201
201
  end
202
202
 
203
203
 
204
- ##
205
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
206
204
  class TranscriptContext < InstanceContext
207
205
  ##
208
206
  # Initialize the TranscriptContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class PhoneNumberContext < InstanceContext
46
44
  ##
47
45
  # Initialize the PhoneNumberContext
@@ -156,8 +156,6 @@ module Twilio
156
156
  end
157
157
 
158
158
 
159
- ##
160
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
161
159
  class BrandVettingContext < InstanceContext
162
160
  ##
163
161
  # Initialize the BrandVettingContext
@@ -156,8 +156,6 @@ module Twilio
156
156
  end
157
157
 
158
158
 
159
- ##
160
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
161
159
  class BrandRegistrationContext < InstanceContext
162
160
  ##
163
161
  # Initialize the BrandRegistrationContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class DomainCertsContext < InstanceContext
46
44
  ##
47
45
  # Initialize the DomainCertsContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class DomainConfigContext < InstanceContext
46
44
  ##
47
45
  # Initialize the DomainConfigContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class DomainConfigMessagingServiceContext < InstanceContext
46
44
  ##
47
45
  # Initialize the DomainConfigMessagingServiceContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class LinkshorteningMessagingServiceContext < InstanceContext
46
44
  ##
47
45
  # Initialize the LinkshorteningMessagingServiceContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class LinkshorteningMessagingServiceDomainAssociationContext < InstanceContext
46
44
  ##
47
45
  # Initialize the LinkshorteningMessagingServiceDomainAssociationContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class AlphaSenderContext < InstanceContext
153
151
  ##
154
152
  # Initialize the AlphaSenderContext
@@ -126,8 +126,6 @@ module Twilio
126
126
  end
127
127
 
128
128
 
129
- ##
130
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
131
129
  class ChannelSenderContext < InstanceContext
132
130
  ##
133
131
  # Initialize the ChannelSenderContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class PhoneNumberContext < InstanceContext
153
151
  ##
154
152
  # Initialize the PhoneNumberContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class ShortCodeContext < InstanceContext
153
151
  ##
154
152
  # Initialize the ShortCodeContext
@@ -192,8 +192,6 @@ module Twilio
192
192
  end
193
193
 
194
194
 
195
- ##
196
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
197
195
  class UsAppToPersonContext < InstanceContext
198
196
  ##
199
197
  # Initialize the UsAppToPersonContext
@@ -189,8 +189,6 @@ module Twilio
189
189
  end
190
190
 
191
191
 
192
- ##
193
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
194
192
  class ServiceContext < InstanceContext
195
193
  ##
196
194
  # Initialize the ServiceContext
@@ -222,8 +222,6 @@ module Twilio
222
222
  end
223
223
 
224
224
 
225
- ##
226
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
227
225
  class TollfreeVerificationContext < InstanceContext
228
226
  ##
229
227
  # Initialize the TollfreeVerificationContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #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.
152
150
  class AccountConfigContext < InstanceContext
153
151
  ##
154
152
  # Initialize the AccountConfigContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #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.
152
150
  class AccountSecretContext < InstanceContext
153
151
  ##
154
152
  # Initialize the AccountSecretContext
@@ -42,8 +42,6 @@ module Twilio
42
42
  end
43
43
 
44
44
 
45
- ##
46
- #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.
47
45
  class AppManifestContext < InstanceContext
48
46
  ##
49
47
  # Initialize the AppManifestContext
@@ -124,8 +124,6 @@ module Twilio
124
124
  end
125
125
 
126
126
 
127
- ##
128
- #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.
129
127
  class AppContext < InstanceContext
130
128
  ##
131
129
  # Initialize the AppContext
@@ -150,8 +150,6 @@ module Twilio
150
150
  end
151
151
 
152
152
 
153
- ##
154
- #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.
155
153
  class DeviceConfigContext < InstanceContext
156
154
  ##
157
155
  # Initialize the DeviceConfigContext
@@ -150,8 +150,6 @@ module Twilio
150
150
  end
151
151
 
152
152
 
153
- ##
154
- #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.
155
153
  class DeviceSecretContext < InstanceContext
156
154
  ##
157
155
  # Initialize the DeviceSecretContext
@@ -124,8 +124,6 @@ module Twilio
124
124
  end
125
125
 
126
126
 
127
- ##
128
- #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.
129
127
  class DeviceContext < InstanceContext
130
128
  ##
131
129
  # Initialize the DeviceContext
@@ -162,8 +162,6 @@ module Twilio
162
162
  end
163
163
 
164
164
 
165
- ##
166
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
167
165
  class CredentialContext < InstanceContext
168
166
  ##
169
167
  # Initialize the CredentialContext
@@ -191,8 +191,6 @@ module Twilio
191
191
  end
192
192
 
193
193
 
194
- ##
195
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
196
194
  class BindingContext < InstanceContext
197
195
  ##
198
196
  # Initialize the BindingContext
@@ -189,8 +189,6 @@ module Twilio
189
189
  end
190
190
 
191
191
 
192
- ##
193
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
194
192
  class ServiceContext < InstanceContext
195
193
  ##
196
194
  # Initialize the ServiceContext
@@ -27,9 +27,24 @@ module Twilio
27
27
  super(version)
28
28
  # Path Solution
29
29
  @solution = { }
30
-
30
+ @uri = "/HostedNumber/Eligibility/Bulk"
31
31
 
32
32
  end
33
+ ##
34
+ # Create the BulkEligibilityInstance
35
+ # @param [Object] body
36
+ # @return [BulkEligibilityInstance] Created BulkEligibilityInstance
37
+ def create(body: :unset
38
+ )
39
+
40
+ headers = Twilio::Values.of({"Content-Type"=> "application/json"})
41
+ payload = @version.create('POST', @uri, data: body.to_json, headers: headers)
42
+ BulkEligibilityInstance.new(
43
+ @version,
44
+ payload,
45
+ )
46
+ end
47
+
33
48
 
34
49
 
35
50
 
@@ -40,8 +55,6 @@ module Twilio
40
55
  end
41
56
 
42
57
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
58
  class BulkEligibilityContext < InstanceContext
46
59
  ##
47
60
  # Initialize the BulkEligibilityContext
@@ -0,0 +1,127 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Numbers
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 Numbers < NumbersBase
19
+ class V1 < Version
20
+ class EligibilityList < ListResource
21
+
22
+ ##
23
+ # Initialize the EligibilityList
24
+ # @param [Version] version Version that contains the resource
25
+ # @return [EligibilityList] EligibilityList
26
+ def initialize(version)
27
+ super(version)
28
+ # Path Solution
29
+ @solution = { }
30
+ @uri = "/HostedNumber/Eligibility"
31
+
32
+ end
33
+ ##
34
+ # Create the EligibilityInstance
35
+ # @param [Object] body
36
+ # @return [EligibilityInstance] Created EligibilityInstance
37
+ def create(body: :unset
38
+ )
39
+
40
+ headers = Twilio::Values.of({"Content-Type"=> "application/json"})
41
+ payload = @version.create('POST', @uri, data: body.to_json, headers: headers)
42
+ EligibilityInstance.new(
43
+ @version,
44
+ payload,
45
+ )
46
+ end
47
+
48
+
49
+
50
+
51
+ # Provide a user friendly representation
52
+ def to_s
53
+ '#<Twilio.Numbers.V1.EligibilityList>'
54
+ end
55
+ end
56
+
57
+ class EligibilityPage < Page
58
+ ##
59
+ # Initialize the EligibilityPage
60
+ # @param [Version] version Version that contains the resource
61
+ # @param [Response] response Response from the API
62
+ # @param [Hash] solution Path solution for the resource
63
+ # @return [EligibilityPage] EligibilityPage
64
+ def initialize(version, response, solution)
65
+ super(version, response)
66
+
67
+ # Path Solution
68
+ @solution = solution
69
+ end
70
+
71
+ ##
72
+ # Build an instance of EligibilityInstance
73
+ # @param [Hash] payload Payload response from the API
74
+ # @return [EligibilityInstance] EligibilityInstance
75
+ def get_instance(payload)
76
+ EligibilityInstance.new(@version, payload)
77
+ end
78
+
79
+ ##
80
+ # Provide a user friendly representation
81
+ def to_s
82
+ '<Twilio.Numbers.V1.EligibilityPage>'
83
+ end
84
+ end
85
+ class EligibilityInstance < InstanceResource
86
+ ##
87
+ # Initialize the EligibilityInstance
88
+ # @param [Version] version Version that contains the resource
89
+ # @param [Hash] payload payload that contains response from Twilio
90
+ # @param [String] account_sid The SID of the
91
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Eligibility
92
+ # resource.
93
+ # @param [String] sid The SID of the Call resource to fetch.
94
+ # @return [EligibilityInstance] EligibilityInstance
95
+ def initialize(version, payload )
96
+ super(version)
97
+
98
+ # Marshaled Properties
99
+ @properties = {
100
+ 'results' => payload['results'],
101
+ }
102
+ end
103
+
104
+
105
+ ##
106
+ # @return [Array<Hash>] The result set that contains the eligibility check response for the requested number, each result has at least the following attributes: phone_number: The requested phone number ,hosting_account_sid: The account sid where the phone number will be hosted, date_last_checked: Datetime (ISO 8601) when the PN was last checked for eligibility, country: Phone number’s country, eligibility_status: Indicates the eligibility status of the PN (Eligible/Ineligible), eligibility_sub_status: Indicates the sub status of the eligibility , ineligibility_reason: Reason for number's ineligibility (if applicable), next_step: Suggested next step in the hosting process based on the eligibility status.
107
+ def results
108
+ @properties['results']
109
+ end
110
+
111
+ ##
112
+ # Provide a user friendly representation
113
+ def to_s
114
+ "<Twilio.Numbers.V1.EligibilityInstance>"
115
+ end
116
+
117
+ ##
118
+ # Provide a detailed, user friendly representation
119
+ def inspect
120
+ "<Twilio.Numbers.V1.EligibilityInstance>"
121
+ end
122
+ end
123
+
124
+ end
125
+ end
126
+ end
127
+ end
@@ -60,8 +60,6 @@ module Twilio
60
60
  end
61
61
 
62
62
 
63
- ##
64
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
65
63
  class PortingBulkPortabilityContext < InstanceContext
66
64
  ##
67
65
  # Initialize the PortingBulkPortabilityContext
@@ -0,0 +1,134 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Numbers
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 Numbers < NumbersBase
19
+ class V1 < Version
20
+ class PortingPortInList < ListResource
21
+
22
+ ##
23
+ # Initialize the PortingPortInList
24
+ # @param [Version] version Version that contains the resource
25
+ # @return [PortingPortInList] PortingPortInList
26
+ def initialize(version)
27
+ super(version)
28
+ # Path Solution
29
+ @solution = { }
30
+ @uri = "/Porting/PortIn"
31
+
32
+ end
33
+ ##
34
+ # Create the PortingPortInInstance
35
+ # @param [Object] body
36
+ # @return [PortingPortInInstance] Created PortingPortInInstance
37
+ def create(body: :unset
38
+ )
39
+
40
+ headers = Twilio::Values.of({"Content-Type"=> "application/json"})
41
+ payload = @version.create('POST', @uri, data: body.to_json, headers: headers)
42
+ PortingPortInInstance.new(
43
+ @version,
44
+ payload,
45
+ )
46
+ end
47
+
48
+
49
+
50
+
51
+ # Provide a user friendly representation
52
+ def to_s
53
+ '#<Twilio.Numbers.V1.PortingPortInList>'
54
+ end
55
+ end
56
+
57
+ class PortingPortInPage < Page
58
+ ##
59
+ # Initialize the PortingPortInPage
60
+ # @param [Version] version Version that contains the resource
61
+ # @param [Response] response Response from the API
62
+ # @param [Hash] solution Path solution for the resource
63
+ # @return [PortingPortInPage] PortingPortInPage
64
+ def initialize(version, response, solution)
65
+ super(version, response)
66
+
67
+ # Path Solution
68
+ @solution = solution
69
+ end
70
+
71
+ ##
72
+ # Build an instance of PortingPortInInstance
73
+ # @param [Hash] payload Payload response from the API
74
+ # @return [PortingPortInInstance] PortingPortInInstance
75
+ def get_instance(payload)
76
+ PortingPortInInstance.new(@version, payload)
77
+ end
78
+
79
+ ##
80
+ # Provide a user friendly representation
81
+ def to_s
82
+ '<Twilio.Numbers.V1.PortingPortInPage>'
83
+ end
84
+ end
85
+ class PortingPortInInstance < InstanceResource
86
+ ##
87
+ # Initialize the PortingPortInInstance
88
+ # @param [Version] version Version that contains the resource
89
+ # @param [Hash] payload payload that contains response from Twilio
90
+ # @param [String] account_sid The SID of the
91
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingPortIn
92
+ # resource.
93
+ # @param [String] sid The SID of the Call resource to fetch.
94
+ # @return [PortingPortInInstance] PortingPortInInstance
95
+ def initialize(version, payload )
96
+ super(version)
97
+
98
+ # Marshaled Properties
99
+ @properties = {
100
+ 'port_in_request_sid' => payload['port_in_request_sid'],
101
+ 'url' => payload['url'],
102
+ }
103
+ end
104
+
105
+
106
+ ##
107
+ # @return [String] The SID of the Port In request. This is a unique identifier of the port in request.
108
+ def port_in_request_sid
109
+ @properties['port_in_request_sid']
110
+ end
111
+
112
+ ##
113
+ # @return [String]
114
+ def url
115
+ @properties['url']
116
+ end
117
+
118
+ ##
119
+ # Provide a user friendly representation
120
+ def to_s
121
+ "<Twilio.Numbers.V1.PortingPortInInstance>"
122
+ end
123
+
124
+ ##
125
+ # Provide a detailed, user friendly representation
126
+ def inspect
127
+ "<Twilio.Numbers.V1.PortingPortInInstance>"
128
+ end
129
+ end
130
+
131
+ end
132
+ end
133
+ end
134
+ end