twilio-ruby 7.11.1 → 7.11.2
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.
- checksums.yaml +4 -4
- data/CHANGES.md +221 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +525 -0
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2.rb +10 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
- data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
- data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
- data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query_job.rb +654 -0
- data/lib/twilio-ruby/rest/insights/v3/result.rb +195 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +17 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +0 -80
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2.rb +0 -16
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -61
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -62
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -61
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/type.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +6 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -180,65 +180,6 @@ module Twilio
|
|
|
180
180
|
end
|
|
181
181
|
end
|
|
182
182
|
|
|
183
|
-
class MessagingGeopermissionsPageMetadata < PageMetadata
|
|
184
|
-
attr_reader :messaging_geopermissions_page
|
|
185
|
-
|
|
186
|
-
def initialize(version, response, solution, limit)
|
|
187
|
-
super(version, response)
|
|
188
|
-
@messaging_geopermissions_page = []
|
|
189
|
-
@limit = limit
|
|
190
|
-
key = get_key(response.body)
|
|
191
|
-
records = 0
|
|
192
|
-
while( limit != :unset && records < limit )
|
|
193
|
-
@messaging_geopermissions_page << MessagingGeopermissionsListResponse.new(version, @payload, key, limit - records)
|
|
194
|
-
@payload = self.next_page
|
|
195
|
-
break unless @payload
|
|
196
|
-
records += (@payload.body[key] || []).size
|
|
197
|
-
end
|
|
198
|
-
# Path Solution
|
|
199
|
-
@solution = solution
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
def each
|
|
203
|
-
@messaging_geopermissions_page.each do |record|
|
|
204
|
-
yield record
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
def to_s
|
|
209
|
-
'<Twilio::REST::Accounts::V1PageMetadata>';
|
|
210
|
-
end
|
|
211
|
-
end
|
|
212
|
-
class MessagingGeopermissionsListResponse < InstanceListResource
|
|
213
|
-
|
|
214
|
-
# @param [Array<MessagingGeopermissionsInstance>] instance
|
|
215
|
-
# @param [Hash{String => Object}] headers
|
|
216
|
-
# @param [Integer] status_code
|
|
217
|
-
def initialize(version, payload, key, limit = :unset)
|
|
218
|
-
data_list = payload.body[key] || []
|
|
219
|
-
if limit != :unset
|
|
220
|
-
data_list = data_list[0, limit]
|
|
221
|
-
end
|
|
222
|
-
@messaging_geopermissions = data_list.map do |data|
|
|
223
|
-
MessagingGeopermissionsInstance.new(version, data)
|
|
224
|
-
end
|
|
225
|
-
@headers = payload.headers
|
|
226
|
-
@status_code = payload.status_code
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
def messaging_geopermissions
|
|
230
|
-
@messaging_geopermissions
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
def headers
|
|
234
|
-
@headers
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
def status_code
|
|
238
|
-
@status_code
|
|
239
|
-
end
|
|
240
|
-
end
|
|
241
|
-
|
|
242
183
|
class MessagingGeopermissionsInstance < InstanceResource
|
|
243
184
|
##
|
|
244
185
|
# Initialize the MessagingGeopermissionsInstance
|
|
@@ -224,65 +224,6 @@ module Twilio
|
|
|
224
224
|
end
|
|
225
225
|
end
|
|
226
226
|
|
|
227
|
-
class SafelistPageMetadata < PageMetadata
|
|
228
|
-
attr_reader :safelist_page
|
|
229
|
-
|
|
230
|
-
def initialize(version, response, solution, limit)
|
|
231
|
-
super(version, response)
|
|
232
|
-
@safelist_page = []
|
|
233
|
-
@limit = limit
|
|
234
|
-
key = get_key(response.body)
|
|
235
|
-
records = 0
|
|
236
|
-
while( limit != :unset && records < limit )
|
|
237
|
-
@safelist_page << SafelistListResponse.new(version, @payload, key, limit - records)
|
|
238
|
-
@payload = self.next_page
|
|
239
|
-
break unless @payload
|
|
240
|
-
records += (@payload.body[key] || []).size
|
|
241
|
-
end
|
|
242
|
-
# Path Solution
|
|
243
|
-
@solution = solution
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
def each
|
|
247
|
-
@safelist_page.each do |record|
|
|
248
|
-
yield record
|
|
249
|
-
end
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
def to_s
|
|
253
|
-
'<Twilio::REST::Accounts::V1PageMetadata>';
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
class SafelistListResponse < InstanceListResource
|
|
257
|
-
|
|
258
|
-
# @param [Array<SafelistInstance>] instance
|
|
259
|
-
# @param [Hash{String => Object}] headers
|
|
260
|
-
# @param [Integer] status_code
|
|
261
|
-
def initialize(version, payload, key, limit = :unset)
|
|
262
|
-
data_list = payload.body[key] || []
|
|
263
|
-
if limit != :unset
|
|
264
|
-
data_list = data_list[0, limit]
|
|
265
|
-
end
|
|
266
|
-
@safelist = data_list.map do |data|
|
|
267
|
-
SafelistInstance.new(version, data)
|
|
268
|
-
end
|
|
269
|
-
@headers = payload.headers
|
|
270
|
-
@status_code = payload.status_code
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
def safelist
|
|
274
|
-
@safelist
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
def headers
|
|
278
|
-
@headers
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
def status_code
|
|
282
|
-
@status_code
|
|
283
|
-
end
|
|
284
|
-
end
|
|
285
|
-
|
|
286
227
|
class SafelistInstance < InstanceResource
|
|
287
228
|
##
|
|
288
229
|
# Initialize the SafelistInstance
|
|
@@ -249,65 +249,6 @@ module Twilio
|
|
|
249
249
|
end
|
|
250
250
|
end
|
|
251
251
|
|
|
252
|
-
class SecondaryAuthTokenPageMetadata < PageMetadata
|
|
253
|
-
attr_reader :secondary_auth_token_page
|
|
254
|
-
|
|
255
|
-
def initialize(version, response, solution, limit)
|
|
256
|
-
super(version, response)
|
|
257
|
-
@secondary_auth_token_page = []
|
|
258
|
-
@limit = limit
|
|
259
|
-
key = get_key(response.body)
|
|
260
|
-
records = 0
|
|
261
|
-
while( limit != :unset && records < limit )
|
|
262
|
-
@secondary_auth_token_page << SecondaryAuthTokenListResponse.new(version, @payload, key, limit - records)
|
|
263
|
-
@payload = self.next_page
|
|
264
|
-
break unless @payload
|
|
265
|
-
records += (@payload.body[key] || []).size
|
|
266
|
-
end
|
|
267
|
-
# Path Solution
|
|
268
|
-
@solution = solution
|
|
269
|
-
end
|
|
270
|
-
|
|
271
|
-
def each
|
|
272
|
-
@secondary_auth_token_page.each do |record|
|
|
273
|
-
yield record
|
|
274
|
-
end
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
def to_s
|
|
278
|
-
'<Twilio::REST::Accounts::V1PageMetadata>';
|
|
279
|
-
end
|
|
280
|
-
end
|
|
281
|
-
class SecondaryAuthTokenListResponse < InstanceListResource
|
|
282
|
-
|
|
283
|
-
# @param [Array<SecondaryAuthTokenInstance>] instance
|
|
284
|
-
# @param [Hash{String => Object}] headers
|
|
285
|
-
# @param [Integer] status_code
|
|
286
|
-
def initialize(version, payload, key, limit = :unset)
|
|
287
|
-
data_list = payload.body[key] || []
|
|
288
|
-
if limit != :unset
|
|
289
|
-
data_list = data_list[0, limit]
|
|
290
|
-
end
|
|
291
|
-
@secondary_auth_token = data_list.map do |data|
|
|
292
|
-
SecondaryAuthTokenInstance.new(version, data)
|
|
293
|
-
end
|
|
294
|
-
@headers = payload.headers
|
|
295
|
-
@status_code = payload.status_code
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
def secondary_auth_token
|
|
299
|
-
@secondary_auth_token
|
|
300
|
-
end
|
|
301
|
-
|
|
302
|
-
def headers
|
|
303
|
-
@headers
|
|
304
|
-
end
|
|
305
|
-
|
|
306
|
-
def status_code
|
|
307
|
-
@status_code
|
|
308
|
-
end
|
|
309
|
-
end
|
|
310
|
-
|
|
311
252
|
class SecondaryAuthTokenInstance < InstanceResource
|
|
312
253
|
##
|
|
313
254
|
# Initialize the SecondaryAuthTokenInstance
|
|
@@ -116,65 +116,6 @@ module Twilio
|
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
-
class BalancePageMetadata < PageMetadata
|
|
120
|
-
attr_reader :balance_page
|
|
121
|
-
|
|
122
|
-
def initialize(version, response, solution, limit)
|
|
123
|
-
super(version, response)
|
|
124
|
-
@balance_page = []
|
|
125
|
-
@limit = limit
|
|
126
|
-
key = get_key(response.body)
|
|
127
|
-
records = 0
|
|
128
|
-
while( limit != :unset && records < limit )
|
|
129
|
-
@balance_page << BalanceListResponse.new(version, @payload, key, limit - records)
|
|
130
|
-
@payload = self.next_page
|
|
131
|
-
break unless @payload
|
|
132
|
-
records += (@payload.body[key] || []).size
|
|
133
|
-
end
|
|
134
|
-
# Path Solution
|
|
135
|
-
@solution = solution
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
def each
|
|
139
|
-
@balance_page.each do |record|
|
|
140
|
-
yield record
|
|
141
|
-
end
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
def to_s
|
|
145
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
146
|
-
end
|
|
147
|
-
end
|
|
148
|
-
class BalanceListResponse < InstanceListResource
|
|
149
|
-
|
|
150
|
-
# @param [Array<BalanceInstance>] instance
|
|
151
|
-
# @param [Hash{String => Object}] headers
|
|
152
|
-
# @param [Integer] status_code
|
|
153
|
-
def initialize(version, payload, key, limit = :unset)
|
|
154
|
-
data_list = payload.body[key] || []
|
|
155
|
-
if limit != :unset
|
|
156
|
-
data_list = data_list[0, limit]
|
|
157
|
-
end
|
|
158
|
-
@balance = data_list.map do |data|
|
|
159
|
-
BalanceInstance.new(version, data)
|
|
160
|
-
end
|
|
161
|
-
@headers = payload.headers
|
|
162
|
-
@status_code = payload.status_code
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def balance
|
|
166
|
-
@balance
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def headers
|
|
170
|
-
@headers
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
def status_code
|
|
174
|
-
@status_code
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
|
|
178
119
|
class BalanceInstance < InstanceResource
|
|
179
120
|
##
|
|
180
121
|
# Initialize the BalanceInstance
|
|
@@ -397,65 +397,6 @@ module Twilio
|
|
|
397
397
|
end
|
|
398
398
|
end
|
|
399
399
|
|
|
400
|
-
class PaymentPageMetadata < PageMetadata
|
|
401
|
-
attr_reader :payment_page
|
|
402
|
-
|
|
403
|
-
def initialize(version, response, solution, limit)
|
|
404
|
-
super(version, response)
|
|
405
|
-
@payment_page = []
|
|
406
|
-
@limit = limit
|
|
407
|
-
key = get_key(response.body)
|
|
408
|
-
records = 0
|
|
409
|
-
while( limit != :unset && records < limit )
|
|
410
|
-
@payment_page << PaymentListResponse.new(version, @payload, key, limit - records)
|
|
411
|
-
@payload = self.next_page
|
|
412
|
-
break unless @payload
|
|
413
|
-
records += (@payload.body[key] || []).size
|
|
414
|
-
end
|
|
415
|
-
# Path Solution
|
|
416
|
-
@solution = solution
|
|
417
|
-
end
|
|
418
|
-
|
|
419
|
-
def each
|
|
420
|
-
@payment_page.each do |record|
|
|
421
|
-
yield record
|
|
422
|
-
end
|
|
423
|
-
end
|
|
424
|
-
|
|
425
|
-
def to_s
|
|
426
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
427
|
-
end
|
|
428
|
-
end
|
|
429
|
-
class PaymentListResponse < InstanceListResource
|
|
430
|
-
|
|
431
|
-
# @param [Array<PaymentInstance>] instance
|
|
432
|
-
# @param [Hash{String => Object}] headers
|
|
433
|
-
# @param [Integer] status_code
|
|
434
|
-
def initialize(version, payload, key, limit = :unset)
|
|
435
|
-
data_list = payload.body[key] || []
|
|
436
|
-
if limit != :unset
|
|
437
|
-
data_list = data_list[0, limit]
|
|
438
|
-
end
|
|
439
|
-
@payment = data_list.map do |data|
|
|
440
|
-
PaymentInstance.new(version, data)
|
|
441
|
-
end
|
|
442
|
-
@headers = payload.headers
|
|
443
|
-
@status_code = payload.status_code
|
|
444
|
-
end
|
|
445
|
-
|
|
446
|
-
def payment
|
|
447
|
-
@payment
|
|
448
|
-
end
|
|
449
|
-
|
|
450
|
-
def headers
|
|
451
|
-
@headers
|
|
452
|
-
end
|
|
453
|
-
|
|
454
|
-
def status_code
|
|
455
|
-
@status_code
|
|
456
|
-
end
|
|
457
|
-
end
|
|
458
|
-
|
|
459
400
|
class PaymentInstance < InstanceResource
|
|
460
401
|
##
|
|
461
402
|
# Initialize the PaymentInstance
|
|
@@ -1489,65 +1489,6 @@ module Twilio
|
|
|
1489
1489
|
end
|
|
1490
1490
|
end
|
|
1491
1491
|
|
|
1492
|
-
class SiprecPageMetadata < PageMetadata
|
|
1493
|
-
attr_reader :siprec_page
|
|
1494
|
-
|
|
1495
|
-
def initialize(version, response, solution, limit)
|
|
1496
|
-
super(version, response)
|
|
1497
|
-
@siprec_page = []
|
|
1498
|
-
@limit = limit
|
|
1499
|
-
key = get_key(response.body)
|
|
1500
|
-
records = 0
|
|
1501
|
-
while( limit != :unset && records < limit )
|
|
1502
|
-
@siprec_page << SiprecListResponse.new(version, @payload, key, limit - records)
|
|
1503
|
-
@payload = self.next_page
|
|
1504
|
-
break unless @payload
|
|
1505
|
-
records += (@payload.body[key] || []).size
|
|
1506
|
-
end
|
|
1507
|
-
# Path Solution
|
|
1508
|
-
@solution = solution
|
|
1509
|
-
end
|
|
1510
|
-
|
|
1511
|
-
def each
|
|
1512
|
-
@siprec_page.each do |record|
|
|
1513
|
-
yield record
|
|
1514
|
-
end
|
|
1515
|
-
end
|
|
1516
|
-
|
|
1517
|
-
def to_s
|
|
1518
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
1519
|
-
end
|
|
1520
|
-
end
|
|
1521
|
-
class SiprecListResponse < InstanceListResource
|
|
1522
|
-
|
|
1523
|
-
# @param [Array<SiprecInstance>] instance
|
|
1524
|
-
# @param [Hash{String => Object}] headers
|
|
1525
|
-
# @param [Integer] status_code
|
|
1526
|
-
def initialize(version, payload, key, limit = :unset)
|
|
1527
|
-
data_list = payload.body[key] || []
|
|
1528
|
-
if limit != :unset
|
|
1529
|
-
data_list = data_list[0, limit]
|
|
1530
|
-
end
|
|
1531
|
-
@siprec = data_list.map do |data|
|
|
1532
|
-
SiprecInstance.new(version, data)
|
|
1533
|
-
end
|
|
1534
|
-
@headers = payload.headers
|
|
1535
|
-
@status_code = payload.status_code
|
|
1536
|
-
end
|
|
1537
|
-
|
|
1538
|
-
def siprec
|
|
1539
|
-
@siprec
|
|
1540
|
-
end
|
|
1541
|
-
|
|
1542
|
-
def headers
|
|
1543
|
-
@headers
|
|
1544
|
-
end
|
|
1545
|
-
|
|
1546
|
-
def status_code
|
|
1547
|
-
@status_code
|
|
1548
|
-
end
|
|
1549
|
-
end
|
|
1550
|
-
|
|
1551
1492
|
class SiprecInstance < InstanceResource
|
|
1552
1493
|
##
|
|
1553
1494
|
# Initialize the SiprecInstance
|
|
@@ -1489,65 +1489,6 @@ module Twilio
|
|
|
1489
1489
|
end
|
|
1490
1490
|
end
|
|
1491
1491
|
|
|
1492
|
-
class StreamPageMetadata < PageMetadata
|
|
1493
|
-
attr_reader :stream_page
|
|
1494
|
-
|
|
1495
|
-
def initialize(version, response, solution, limit)
|
|
1496
|
-
super(version, response)
|
|
1497
|
-
@stream_page = []
|
|
1498
|
-
@limit = limit
|
|
1499
|
-
key = get_key(response.body)
|
|
1500
|
-
records = 0
|
|
1501
|
-
while( limit != :unset && records < limit )
|
|
1502
|
-
@stream_page << StreamListResponse.new(version, @payload, key, limit - records)
|
|
1503
|
-
@payload = self.next_page
|
|
1504
|
-
break unless @payload
|
|
1505
|
-
records += (@payload.body[key] || []).size
|
|
1506
|
-
end
|
|
1507
|
-
# Path Solution
|
|
1508
|
-
@solution = solution
|
|
1509
|
-
end
|
|
1510
|
-
|
|
1511
|
-
def each
|
|
1512
|
-
@stream_page.each do |record|
|
|
1513
|
-
yield record
|
|
1514
|
-
end
|
|
1515
|
-
end
|
|
1516
|
-
|
|
1517
|
-
def to_s
|
|
1518
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
1519
|
-
end
|
|
1520
|
-
end
|
|
1521
|
-
class StreamListResponse < InstanceListResource
|
|
1522
|
-
|
|
1523
|
-
# @param [Array<StreamInstance>] instance
|
|
1524
|
-
# @param [Hash{String => Object}] headers
|
|
1525
|
-
# @param [Integer] status_code
|
|
1526
|
-
def initialize(version, payload, key, limit = :unset)
|
|
1527
|
-
data_list = payload.body[key] || []
|
|
1528
|
-
if limit != :unset
|
|
1529
|
-
data_list = data_list[0, limit]
|
|
1530
|
-
end
|
|
1531
|
-
@stream = data_list.map do |data|
|
|
1532
|
-
StreamInstance.new(version, data)
|
|
1533
|
-
end
|
|
1534
|
-
@headers = payload.headers
|
|
1535
|
-
@status_code = payload.status_code
|
|
1536
|
-
end
|
|
1537
|
-
|
|
1538
|
-
def stream
|
|
1539
|
-
@stream
|
|
1540
|
-
end
|
|
1541
|
-
|
|
1542
|
-
def headers
|
|
1543
|
-
@headers
|
|
1544
|
-
end
|
|
1545
|
-
|
|
1546
|
-
def status_code
|
|
1547
|
-
@status_code
|
|
1548
|
-
end
|
|
1549
|
-
end
|
|
1550
|
-
|
|
1551
1492
|
class StreamInstance < InstanceResource
|
|
1552
1493
|
##
|
|
1553
1494
|
# Initialize the StreamInstance
|
|
@@ -379,65 +379,6 @@ module Twilio
|
|
|
379
379
|
end
|
|
380
380
|
end
|
|
381
381
|
|
|
382
|
-
class TranscriptionPageMetadata < PageMetadata
|
|
383
|
-
attr_reader :transcription_page
|
|
384
|
-
|
|
385
|
-
def initialize(version, response, solution, limit)
|
|
386
|
-
super(version, response)
|
|
387
|
-
@transcription_page = []
|
|
388
|
-
@limit = limit
|
|
389
|
-
key = get_key(response.body)
|
|
390
|
-
records = 0
|
|
391
|
-
while( limit != :unset && records < limit )
|
|
392
|
-
@transcription_page << TranscriptionListResponse.new(version, @payload, key, limit - records)
|
|
393
|
-
@payload = self.next_page
|
|
394
|
-
break unless @payload
|
|
395
|
-
records += (@payload.body[key] || []).size
|
|
396
|
-
end
|
|
397
|
-
# Path Solution
|
|
398
|
-
@solution = solution
|
|
399
|
-
end
|
|
400
|
-
|
|
401
|
-
def each
|
|
402
|
-
@transcription_page.each do |record|
|
|
403
|
-
yield record
|
|
404
|
-
end
|
|
405
|
-
end
|
|
406
|
-
|
|
407
|
-
def to_s
|
|
408
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
409
|
-
end
|
|
410
|
-
end
|
|
411
|
-
class TranscriptionListResponse < InstanceListResource
|
|
412
|
-
|
|
413
|
-
# @param [Array<TranscriptionInstance>] instance
|
|
414
|
-
# @param [Hash{String => Object}] headers
|
|
415
|
-
# @param [Integer] status_code
|
|
416
|
-
def initialize(version, payload, key, limit = :unset)
|
|
417
|
-
data_list = payload.body[key] || []
|
|
418
|
-
if limit != :unset
|
|
419
|
-
data_list = data_list[0, limit]
|
|
420
|
-
end
|
|
421
|
-
@transcription = data_list.map do |data|
|
|
422
|
-
TranscriptionInstance.new(version, data)
|
|
423
|
-
end
|
|
424
|
-
@headers = payload.headers
|
|
425
|
-
@status_code = payload.status_code
|
|
426
|
-
end
|
|
427
|
-
|
|
428
|
-
def transcription
|
|
429
|
-
@transcription
|
|
430
|
-
end
|
|
431
|
-
|
|
432
|
-
def headers
|
|
433
|
-
@headers
|
|
434
|
-
end
|
|
435
|
-
|
|
436
|
-
def status_code
|
|
437
|
-
@status_code
|
|
438
|
-
end
|
|
439
|
-
end
|
|
440
|
-
|
|
441
382
|
class TranscriptionInstance < InstanceResource
|
|
442
383
|
##
|
|
443
384
|
# Initialize the TranscriptionInstance
|
|
@@ -139,65 +139,6 @@ module Twilio
|
|
|
139
139
|
end
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
-
class UserDefinedMessagePageMetadata < PageMetadata
|
|
143
|
-
attr_reader :user_defined_message_page
|
|
144
|
-
|
|
145
|
-
def initialize(version, response, solution, limit)
|
|
146
|
-
super(version, response)
|
|
147
|
-
@user_defined_message_page = []
|
|
148
|
-
@limit = limit
|
|
149
|
-
key = get_key(response.body)
|
|
150
|
-
records = 0
|
|
151
|
-
while( limit != :unset && records < limit )
|
|
152
|
-
@user_defined_message_page << UserDefinedMessageListResponse.new(version, @payload, key, limit - records)
|
|
153
|
-
@payload = self.next_page
|
|
154
|
-
break unless @payload
|
|
155
|
-
records += (@payload.body[key] || []).size
|
|
156
|
-
end
|
|
157
|
-
# Path Solution
|
|
158
|
-
@solution = solution
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
def each
|
|
162
|
-
@user_defined_message_page.each do |record|
|
|
163
|
-
yield record
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def to_s
|
|
168
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
class UserDefinedMessageListResponse < InstanceListResource
|
|
172
|
-
|
|
173
|
-
# @param [Array<UserDefinedMessageInstance>] instance
|
|
174
|
-
# @param [Hash{String => Object}] headers
|
|
175
|
-
# @param [Integer] status_code
|
|
176
|
-
def initialize(version, payload, key, limit = :unset)
|
|
177
|
-
data_list = payload.body[key] || []
|
|
178
|
-
if limit != :unset
|
|
179
|
-
data_list = data_list[0, limit]
|
|
180
|
-
end
|
|
181
|
-
@user_defined_message = data_list.map do |data|
|
|
182
|
-
UserDefinedMessageInstance.new(version, data)
|
|
183
|
-
end
|
|
184
|
-
@headers = payload.headers
|
|
185
|
-
@status_code = payload.status_code
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
def user_defined_message
|
|
189
|
-
@user_defined_message
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
def headers
|
|
193
|
-
@headers
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
def status_code
|
|
197
|
-
@status_code
|
|
198
|
-
end
|
|
199
|
-
end
|
|
200
|
-
|
|
201
142
|
class UserDefinedMessageInstance < InstanceResource
|
|
202
143
|
##
|
|
203
144
|
# Initialize the UserDefinedMessageInstance
|
|
@@ -259,65 +259,6 @@ module Twilio
|
|
|
259
259
|
end
|
|
260
260
|
end
|
|
261
261
|
|
|
262
|
-
class UserDefinedMessageSubscriptionPageMetadata < PageMetadata
|
|
263
|
-
attr_reader :user_defined_message_subscription_page
|
|
264
|
-
|
|
265
|
-
def initialize(version, response, solution, limit)
|
|
266
|
-
super(version, response)
|
|
267
|
-
@user_defined_message_subscription_page = []
|
|
268
|
-
@limit = limit
|
|
269
|
-
key = get_key(response.body)
|
|
270
|
-
records = 0
|
|
271
|
-
while( limit != :unset && records < limit )
|
|
272
|
-
@user_defined_message_subscription_page << UserDefinedMessageSubscriptionListResponse.new(version, @payload, key, limit - records)
|
|
273
|
-
@payload = self.next_page
|
|
274
|
-
break unless @payload
|
|
275
|
-
records += (@payload.body[key] || []).size
|
|
276
|
-
end
|
|
277
|
-
# Path Solution
|
|
278
|
-
@solution = solution
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
def each
|
|
282
|
-
@user_defined_message_subscription_page.each do |record|
|
|
283
|
-
yield record
|
|
284
|
-
end
|
|
285
|
-
end
|
|
286
|
-
|
|
287
|
-
def to_s
|
|
288
|
-
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
289
|
-
end
|
|
290
|
-
end
|
|
291
|
-
class UserDefinedMessageSubscriptionListResponse < InstanceListResource
|
|
292
|
-
|
|
293
|
-
# @param [Array<UserDefinedMessageSubscriptionInstance>] instance
|
|
294
|
-
# @param [Hash{String => Object}] headers
|
|
295
|
-
# @param [Integer] status_code
|
|
296
|
-
def initialize(version, payload, key, limit = :unset)
|
|
297
|
-
data_list = payload.body[key] || []
|
|
298
|
-
if limit != :unset
|
|
299
|
-
data_list = data_list[0, limit]
|
|
300
|
-
end
|
|
301
|
-
@user_defined_message_subscription = data_list.map do |data|
|
|
302
|
-
UserDefinedMessageSubscriptionInstance.new(version, data)
|
|
303
|
-
end
|
|
304
|
-
@headers = payload.headers
|
|
305
|
-
@status_code = payload.status_code
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
def user_defined_message_subscription
|
|
309
|
-
@user_defined_message_subscription
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
def headers
|
|
313
|
-
@headers
|
|
314
|
-
end
|
|
315
|
-
|
|
316
|
-
def status_code
|
|
317
|
-
@status_code
|
|
318
|
-
end
|
|
319
|
-
end
|
|
320
|
-
|
|
321
262
|
class UserDefinedMessageSubscriptionInstance < InstanceResource
|
|
322
263
|
##
|
|
323
264
|
# Initialize the UserDefinedMessageSubscriptionInstance
|