twilio-ruby 7.10.7 → 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/.github/workflows/test-and-deploy.yml +43 -67
- data/.gitignore +0 -1
- data/CHANGES.md +267 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +154 -0
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +25 -65
- 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 +48 -71
- 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/call.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -2
- 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/client.rb +0 -5
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +11 -60
- 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/message.rb +10 -10
- 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/message.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +2 -61
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +43 -21
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +584 -21
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +28 -28
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +10 -69
- data/lib/twilio-ruby/rest/conversations/v2/participant.rb +58 -58
- data/lib/twilio-ruby/rest/conversations/v2.rb +55 -49
- 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 +2 -61
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +15 -61
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/iam_base.rb +6 -1
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +7 -59
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
- 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/conversation.rb +8 -8
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +443 -0
- data/lib/twilio-ruby/rest/intelligence/v3.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +28 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +38 -0
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +8 -176
- data/lib/twilio-ruby/rest/knowledge/v2.rb +1 -2
- 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 +9 -177
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +15 -9
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +6 -12
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +1 -81
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +11 -191
- data/lib/twilio-ruby/rest/memory/v1/import.rb +28 -5
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +72 -22
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/profile.rb +2 -2
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +1 -60
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +3 -5
- data/lib/twilio-ruby/rest/memory/v1/store.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +56 -6
- data/lib/twilio-ruby/rest/memory/v1.rb +3 -46
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -18
- 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/channels_sender.rb +23 -4
- 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 +4 -63
- 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 +172 -0
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +179 -0
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +186 -0
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +165 -0
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1.rb +24 -0
- 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/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 +14 -61
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +200 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +10 -63
- 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 -78
- 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 +406 -0
- data/lib/twilio-ruby/rest/routes/v3.rb +50 -0
- data/lib/twilio-ruby/rest/routes_base.rb +6 -1
- 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 +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +174 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +262 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +174 -0
- 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 +386 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +386 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +74 -0
- 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 +497 -0
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +297 -0
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +353 -0
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +557 -0
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +532 -0
- data/lib/twilio-ruby/rest/voice/v2/type.rb +459 -0
- data/lib/twilio-ruby/rest/voice/v2.rb +141 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/rest/voice_base.rb +5 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +6 -68
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +36 -22
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +0 -558
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +0 -558
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +0 -431
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +0 -296
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +0 -927
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +0 -325
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +0 -349
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +0 -871
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +0 -364
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +0 -360
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +0 -501
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +0 -847
- data/lib/twilio-ruby/rest/assistants/v1.rb +0 -104
- data/lib/twilio-ruby/rest/assistants.rb +0 -6
- data/lib/twilio-ruby/rest/assistants_base.rb +0 -38
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
|
@@ -233,65 +233,6 @@ module Twilio
|
|
|
233
233
|
end
|
|
234
234
|
end
|
|
235
235
|
|
|
236
|
-
class VerificationAttemptsSummaryPageMetadata < PageMetadata
|
|
237
|
-
attr_reader :verification_attempts_summary_page
|
|
238
|
-
|
|
239
|
-
def initialize(version, response, solution, limit)
|
|
240
|
-
super(version, response)
|
|
241
|
-
@verification_attempts_summary_page = []
|
|
242
|
-
@limit = limit
|
|
243
|
-
key = get_key(response.body)
|
|
244
|
-
records = 0
|
|
245
|
-
while( limit != :unset && records < limit )
|
|
246
|
-
@verification_attempts_summary_page << VerificationAttemptsSummaryListResponse.new(version, @payload, key, limit - records)
|
|
247
|
-
@payload = self.next_page
|
|
248
|
-
break unless @payload
|
|
249
|
-
records += (@payload.body[key] || []).size
|
|
250
|
-
end
|
|
251
|
-
# Path Solution
|
|
252
|
-
@solution = solution
|
|
253
|
-
end
|
|
254
|
-
|
|
255
|
-
def each
|
|
256
|
-
@verification_attempts_summary_page.each do |record|
|
|
257
|
-
yield record
|
|
258
|
-
end
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def to_s
|
|
262
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
class VerificationAttemptsSummaryListResponse < InstanceListResource
|
|
266
|
-
|
|
267
|
-
# @param [Array<VerificationAttemptsSummaryInstance>] instance
|
|
268
|
-
# @param [Hash{String => Object}] headers
|
|
269
|
-
# @param [Integer] status_code
|
|
270
|
-
def initialize(version, payload, key, limit = :unset)
|
|
271
|
-
data_list = payload.body[key] || []
|
|
272
|
-
if limit != :unset
|
|
273
|
-
data_list = data_list[0, limit]
|
|
274
|
-
end
|
|
275
|
-
@verification_attempts_summary = data_list.map do |data|
|
|
276
|
-
VerificationAttemptsSummaryInstance.new(version, data)
|
|
277
|
-
end
|
|
278
|
-
@headers = payload.headers
|
|
279
|
-
@status_code = payload.status_code
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
def verification_attempts_summary
|
|
283
|
-
@verification_attempts_summary
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
def headers
|
|
287
|
-
@headers
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
def status_code
|
|
291
|
-
@status_code
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
|
|
295
236
|
class VerificationAttemptsSummaryInstance < InstanceResource
|
|
296
237
|
##
|
|
297
238
|
# Initialize the VerificationAttemptsSummaryInstance
|
|
@@ -277,65 +277,6 @@ module Twilio
|
|
|
277
277
|
end
|
|
278
278
|
end
|
|
279
279
|
|
|
280
|
-
class CompositionSettingsPageMetadata < PageMetadata
|
|
281
|
-
attr_reader :composition_settings_page
|
|
282
|
-
|
|
283
|
-
def initialize(version, response, solution, limit)
|
|
284
|
-
super(version, response)
|
|
285
|
-
@composition_settings_page = []
|
|
286
|
-
@limit = limit
|
|
287
|
-
key = get_key(response.body)
|
|
288
|
-
records = 0
|
|
289
|
-
while( limit != :unset && records < limit )
|
|
290
|
-
@composition_settings_page << CompositionSettingsListResponse.new(version, @payload, key, limit - records)
|
|
291
|
-
@payload = self.next_page
|
|
292
|
-
break unless @payload
|
|
293
|
-
records += (@payload.body[key] || []).size
|
|
294
|
-
end
|
|
295
|
-
# Path Solution
|
|
296
|
-
@solution = solution
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
def each
|
|
300
|
-
@composition_settings_page.each do |record|
|
|
301
|
-
yield record
|
|
302
|
-
end
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
def to_s
|
|
306
|
-
'<Twilio::REST::Video::V1PageMetadata>';
|
|
307
|
-
end
|
|
308
|
-
end
|
|
309
|
-
class CompositionSettingsListResponse < InstanceListResource
|
|
310
|
-
|
|
311
|
-
# @param [Array<CompositionSettingsInstance>] instance
|
|
312
|
-
# @param [Hash{String => Object}] headers
|
|
313
|
-
# @param [Integer] status_code
|
|
314
|
-
def initialize(version, payload, key, limit = :unset)
|
|
315
|
-
data_list = payload.body[key] || []
|
|
316
|
-
if limit != :unset
|
|
317
|
-
data_list = data_list[0, limit]
|
|
318
|
-
end
|
|
319
|
-
@composition_settings = data_list.map do |data|
|
|
320
|
-
CompositionSettingsInstance.new(version, data)
|
|
321
|
-
end
|
|
322
|
-
@headers = payload.headers
|
|
323
|
-
@status_code = payload.status_code
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
def composition_settings
|
|
327
|
-
@composition_settings
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
def headers
|
|
331
|
-
@headers
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
def status_code
|
|
335
|
-
@status_code
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
|
|
339
280
|
class CompositionSettingsInstance < InstanceResource
|
|
340
281
|
##
|
|
341
282
|
# Initialize the CompositionSettingsInstance
|
|
@@ -277,65 +277,6 @@ module Twilio
|
|
|
277
277
|
end
|
|
278
278
|
end
|
|
279
279
|
|
|
280
|
-
class RecordingSettingsPageMetadata < PageMetadata
|
|
281
|
-
attr_reader :recording_settings_page
|
|
282
|
-
|
|
283
|
-
def initialize(version, response, solution, limit)
|
|
284
|
-
super(version, response)
|
|
285
|
-
@recording_settings_page = []
|
|
286
|
-
@limit = limit
|
|
287
|
-
key = get_key(response.body)
|
|
288
|
-
records = 0
|
|
289
|
-
while( limit != :unset && records < limit )
|
|
290
|
-
@recording_settings_page << RecordingSettingsListResponse.new(version, @payload, key, limit - records)
|
|
291
|
-
@payload = self.next_page
|
|
292
|
-
break unless @payload
|
|
293
|
-
records += (@payload.body[key] || []).size
|
|
294
|
-
end
|
|
295
|
-
# Path Solution
|
|
296
|
-
@solution = solution
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
def each
|
|
300
|
-
@recording_settings_page.each do |record|
|
|
301
|
-
yield record
|
|
302
|
-
end
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
def to_s
|
|
306
|
-
'<Twilio::REST::Video::V1PageMetadata>';
|
|
307
|
-
end
|
|
308
|
-
end
|
|
309
|
-
class RecordingSettingsListResponse < InstanceListResource
|
|
310
|
-
|
|
311
|
-
# @param [Array<RecordingSettingsInstance>] instance
|
|
312
|
-
# @param [Hash{String => Object}] headers
|
|
313
|
-
# @param [Integer] status_code
|
|
314
|
-
def initialize(version, payload, key, limit = :unset)
|
|
315
|
-
data_list = payload.body[key] || []
|
|
316
|
-
if limit != :unset
|
|
317
|
-
data_list = data_list[0, limit]
|
|
318
|
-
end
|
|
319
|
-
@recording_settings = data_list.map do |data|
|
|
320
|
-
RecordingSettingsInstance.new(version, data)
|
|
321
|
-
end
|
|
322
|
-
@headers = payload.headers
|
|
323
|
-
@status_code = payload.status_code
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
def recording_settings
|
|
327
|
-
@recording_settings
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
def headers
|
|
331
|
-
@headers
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
def status_code
|
|
335
|
-
@status_code
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
|
|
339
280
|
class RecordingSettingsInstance < InstanceResource
|
|
340
281
|
##
|
|
341
282
|
# Initialize the RecordingSettingsInstance
|
|
@@ -200,65 +200,6 @@ module Twilio
|
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
202
|
|
|
203
|
-
class AnonymizePageMetadata < PageMetadata
|
|
204
|
-
attr_reader :anonymize_page
|
|
205
|
-
|
|
206
|
-
def initialize(version, response, solution, limit)
|
|
207
|
-
super(version, response)
|
|
208
|
-
@anonymize_page = []
|
|
209
|
-
@limit = limit
|
|
210
|
-
key = get_key(response.body)
|
|
211
|
-
records = 0
|
|
212
|
-
while( limit != :unset && records < limit )
|
|
213
|
-
@anonymize_page << AnonymizeListResponse.new(version, @payload, key, limit - records)
|
|
214
|
-
@payload = self.next_page
|
|
215
|
-
break unless @payload
|
|
216
|
-
records += (@payload.body[key] || []).size
|
|
217
|
-
end
|
|
218
|
-
# Path Solution
|
|
219
|
-
@solution = solution
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def each
|
|
223
|
-
@anonymize_page.each do |record|
|
|
224
|
-
yield record
|
|
225
|
-
end
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
def to_s
|
|
229
|
-
'<Twilio::REST::Video::V1PageMetadata>';
|
|
230
|
-
end
|
|
231
|
-
end
|
|
232
|
-
class AnonymizeListResponse < InstanceListResource
|
|
233
|
-
|
|
234
|
-
# @param [Array<AnonymizeInstance>] instance
|
|
235
|
-
# @param [Hash{String => Object}] headers
|
|
236
|
-
# @param [Integer] status_code
|
|
237
|
-
def initialize(version, payload, key, limit = :unset)
|
|
238
|
-
data_list = payload.body[key] || []
|
|
239
|
-
if limit != :unset
|
|
240
|
-
data_list = data_list[0, limit]
|
|
241
|
-
end
|
|
242
|
-
@anonymize = data_list.map do |data|
|
|
243
|
-
AnonymizeInstance.new(version, data)
|
|
244
|
-
end
|
|
245
|
-
@headers = payload.headers
|
|
246
|
-
@status_code = payload.status_code
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def anonymize
|
|
250
|
-
@anonymize
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
def headers
|
|
254
|
-
@headers
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def status_code
|
|
258
|
-
@status_code
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
|
|
262
203
|
class AnonymizeInstance < InstanceResource
|
|
263
204
|
##
|
|
264
205
|
# Initialize the AnonymizeInstance
|
|
@@ -179,65 +179,6 @@ module Twilio
|
|
|
179
179
|
end
|
|
180
180
|
end
|
|
181
181
|
|
|
182
|
-
class SubscribeRulesPageMetadata < PageMetadata
|
|
183
|
-
attr_reader :subscribe_rules_page
|
|
184
|
-
|
|
185
|
-
def initialize(version, response, solution, limit)
|
|
186
|
-
super(version, response)
|
|
187
|
-
@subscribe_rules_page = []
|
|
188
|
-
@limit = limit
|
|
189
|
-
key = get_key(response.body)
|
|
190
|
-
records = 0
|
|
191
|
-
while( limit != :unset && records < limit )
|
|
192
|
-
@subscribe_rules_page << SubscribeRulesListResponse.new(version, @payload, key, limit - records)
|
|
193
|
-
@payload = self.next_page
|
|
194
|
-
break unless @payload
|
|
195
|
-
records += (@payload.body[key] || []).size
|
|
196
|
-
end
|
|
197
|
-
# Path Solution
|
|
198
|
-
@solution = solution
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
def each
|
|
202
|
-
@subscribe_rules_page.each do |record|
|
|
203
|
-
yield record
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
def to_s
|
|
208
|
-
'<Twilio::REST::Video::V1PageMetadata>';
|
|
209
|
-
end
|
|
210
|
-
end
|
|
211
|
-
class SubscribeRulesListResponse < InstanceListResource
|
|
212
|
-
|
|
213
|
-
# @param [Array<SubscribeRulesInstance>] instance
|
|
214
|
-
# @param [Hash{String => Object}] headers
|
|
215
|
-
# @param [Integer] status_code
|
|
216
|
-
def initialize(version, payload, key, limit = :unset)
|
|
217
|
-
data_list = payload.body[key] || []
|
|
218
|
-
if limit != :unset
|
|
219
|
-
data_list = data_list[0, limit]
|
|
220
|
-
end
|
|
221
|
-
@subscribe_rules = data_list.map do |data|
|
|
222
|
-
SubscribeRulesInstance.new(version, data)
|
|
223
|
-
end
|
|
224
|
-
@headers = payload.headers
|
|
225
|
-
@status_code = payload.status_code
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
def subscribe_rules
|
|
229
|
-
@subscribe_rules
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
def headers
|
|
233
|
-
@headers
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def status_code
|
|
237
|
-
@status_code
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
|
|
241
182
|
class SubscribeRulesInstance < InstanceResource
|
|
242
183
|
##
|
|
243
184
|
# Initialize the SubscribeRulesInstance
|
|
@@ -174,65 +174,6 @@ module Twilio
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
class RecordingRulesPageMetadata < PageMetadata
|
|
178
|
-
attr_reader :recording_rules_page
|
|
179
|
-
|
|
180
|
-
def initialize(version, response, solution, limit)
|
|
181
|
-
super(version, response)
|
|
182
|
-
@recording_rules_page = []
|
|
183
|
-
@limit = limit
|
|
184
|
-
key = get_key(response.body)
|
|
185
|
-
records = 0
|
|
186
|
-
while( limit != :unset && records < limit )
|
|
187
|
-
@recording_rules_page << RecordingRulesListResponse.new(version, @payload, key, limit - records)
|
|
188
|
-
@payload = self.next_page
|
|
189
|
-
break unless @payload
|
|
190
|
-
records += (@payload.body[key] || []).size
|
|
191
|
-
end
|
|
192
|
-
# Path Solution
|
|
193
|
-
@solution = solution
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
def each
|
|
197
|
-
@recording_rules_page.each do |record|
|
|
198
|
-
yield record
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
def to_s
|
|
203
|
-
'<Twilio::REST::Video::V1PageMetadata>';
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
class RecordingRulesListResponse < InstanceListResource
|
|
207
|
-
|
|
208
|
-
# @param [Array<RecordingRulesInstance>] instance
|
|
209
|
-
# @param [Hash{String => Object}] headers
|
|
210
|
-
# @param [Integer] status_code
|
|
211
|
-
def initialize(version, payload, key, limit = :unset)
|
|
212
|
-
data_list = payload.body[key] || []
|
|
213
|
-
if limit != :unset
|
|
214
|
-
data_list = data_list[0, limit]
|
|
215
|
-
end
|
|
216
|
-
@recording_rules = data_list.map do |data|
|
|
217
|
-
RecordingRulesInstance.new(version, data)
|
|
218
|
-
end
|
|
219
|
-
@headers = payload.headers
|
|
220
|
-
@status_code = payload.status_code
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
def recording_rules
|
|
224
|
-
@recording_rules
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
def headers
|
|
228
|
-
@headers
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
def status_code
|
|
232
|
-
@status_code
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
177
|
class RecordingRulesInstance < InstanceResource
|
|
237
178
|
##
|
|
238
179
|
# Initialize the RecordingRulesInstance
|
|
@@ -183,65 +183,6 @@ module Twilio
|
|
|
183
183
|
end
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
-
class ArchivedCallPageMetadata < PageMetadata
|
|
187
|
-
attr_reader :archived_call_page
|
|
188
|
-
|
|
189
|
-
def initialize(version, response, solution, limit)
|
|
190
|
-
super(version, response)
|
|
191
|
-
@archived_call_page = []
|
|
192
|
-
@limit = limit
|
|
193
|
-
key = get_key(response.body)
|
|
194
|
-
records = 0
|
|
195
|
-
while( limit != :unset && records < limit )
|
|
196
|
-
@archived_call_page << ArchivedCallListResponse.new(version, @payload, key, limit - records)
|
|
197
|
-
@payload = self.next_page
|
|
198
|
-
break unless @payload
|
|
199
|
-
records += (@payload.body[key] || []).size
|
|
200
|
-
end
|
|
201
|
-
# Path Solution
|
|
202
|
-
@solution = solution
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
def each
|
|
206
|
-
@archived_call_page.each do |record|
|
|
207
|
-
yield record
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
def to_s
|
|
212
|
-
'<Twilio::REST::Voice::V1PageMetadata>';
|
|
213
|
-
end
|
|
214
|
-
end
|
|
215
|
-
class ArchivedCallListResponse < InstanceListResource
|
|
216
|
-
|
|
217
|
-
# @param [Array<ArchivedCallInstance>] instance
|
|
218
|
-
# @param [Hash{String => Object}] headers
|
|
219
|
-
# @param [Integer] status_code
|
|
220
|
-
def initialize(version, payload, key, limit = :unset)
|
|
221
|
-
data_list = payload.body[key] || []
|
|
222
|
-
if limit != :unset
|
|
223
|
-
data_list = data_list[0, limit]
|
|
224
|
-
end
|
|
225
|
-
@archived_call = data_list.map do |data|
|
|
226
|
-
ArchivedCallInstance.new(version, data)
|
|
227
|
-
end
|
|
228
|
-
@headers = payload.headers
|
|
229
|
-
@status_code = payload.status_code
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
def archived_call
|
|
233
|
-
@archived_call
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def headers
|
|
237
|
-
@headers
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
def status_code
|
|
241
|
-
@status_code
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
|
|
245
186
|
class ArchivedCallInstance < InstanceResource
|
|
246
187
|
##
|
|
247
188
|
# Initialize the ArchivedCallInstance
|
|
@@ -128,65 +128,6 @@ module Twilio
|
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
class BulkCountryUpdatePageMetadata < PageMetadata
|
|
132
|
-
attr_reader :bulk_country_update_page
|
|
133
|
-
|
|
134
|
-
def initialize(version, response, solution, limit)
|
|
135
|
-
super(version, response)
|
|
136
|
-
@bulk_country_update_page = []
|
|
137
|
-
@limit = limit
|
|
138
|
-
key = get_key(response.body)
|
|
139
|
-
records = 0
|
|
140
|
-
while( limit != :unset && records < limit )
|
|
141
|
-
@bulk_country_update_page << BulkCountryUpdateListResponse.new(version, @payload, key, limit - records)
|
|
142
|
-
@payload = self.next_page
|
|
143
|
-
break unless @payload
|
|
144
|
-
records += (@payload.body[key] || []).size
|
|
145
|
-
end
|
|
146
|
-
# Path Solution
|
|
147
|
-
@solution = solution
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
def each
|
|
151
|
-
@bulk_country_update_page.each do |record|
|
|
152
|
-
yield record
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
def to_s
|
|
157
|
-
'<Twilio::REST::Voice::V1PageMetadata>';
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
class BulkCountryUpdateListResponse < InstanceListResource
|
|
161
|
-
|
|
162
|
-
# @param [Array<BulkCountryUpdateInstance>] instance
|
|
163
|
-
# @param [Hash{String => Object}] headers
|
|
164
|
-
# @param [Integer] status_code
|
|
165
|
-
def initialize(version, payload, key, limit = :unset)
|
|
166
|
-
data_list = payload.body[key] || []
|
|
167
|
-
if limit != :unset
|
|
168
|
-
data_list = data_list[0, limit]
|
|
169
|
-
end
|
|
170
|
-
@bulk_country_update = data_list.map do |data|
|
|
171
|
-
BulkCountryUpdateInstance.new(version, data)
|
|
172
|
-
end
|
|
173
|
-
@headers = payload.headers
|
|
174
|
-
@status_code = payload.status_code
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
def bulk_country_update
|
|
178
|
-
@bulk_country_update
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
def headers
|
|
182
|
-
@headers
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
def status_code
|
|
186
|
-
@status_code
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
|
|
190
131
|
class BulkCountryUpdateInstance < InstanceResource
|
|
191
132
|
##
|
|
192
133
|
# Initialize the BulkCountryUpdateInstance
|
|
@@ -249,65 +249,6 @@ module Twilio
|
|
|
249
249
|
end
|
|
250
250
|
end
|
|
251
251
|
|
|
252
|
-
class SettingsPageMetadata < PageMetadata
|
|
253
|
-
attr_reader :settings_page
|
|
254
|
-
|
|
255
|
-
def initialize(version, response, solution, limit)
|
|
256
|
-
super(version, response)
|
|
257
|
-
@settings_page = []
|
|
258
|
-
@limit = limit
|
|
259
|
-
key = get_key(response.body)
|
|
260
|
-
records = 0
|
|
261
|
-
while( limit != :unset && records < limit )
|
|
262
|
-
@settings_page << SettingsListResponse.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
|
-
@settings_page.each do |record|
|
|
273
|
-
yield record
|
|
274
|
-
end
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
def to_s
|
|
278
|
-
'<Twilio::REST::Voice::V1PageMetadata>';
|
|
279
|
-
end
|
|
280
|
-
end
|
|
281
|
-
class SettingsListResponse < InstanceListResource
|
|
282
|
-
|
|
283
|
-
# @param [Array<SettingsInstance>] 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
|
-
@settings = data_list.map do |data|
|
|
292
|
-
SettingsInstance.new(version, data)
|
|
293
|
-
end
|
|
294
|
-
@headers = payload.headers
|
|
295
|
-
@status_code = payload.status_code
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
def settings
|
|
299
|
-
@settings
|
|
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 SettingsInstance < InstanceResource
|
|
312
253
|
##
|
|
313
254
|
# Initialize the SettingsInstance
|
|
@@ -99,65 +99,6 @@ module Twilio
|
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
class DialingPermissionsPageMetadata < PageMetadata
|
|
103
|
-
attr_reader :dialing_permissions_page
|
|
104
|
-
|
|
105
|
-
def initialize(version, response, solution, limit)
|
|
106
|
-
super(version, response)
|
|
107
|
-
@dialing_permissions_page = []
|
|
108
|
-
@limit = limit
|
|
109
|
-
key = get_key(response.body)
|
|
110
|
-
records = 0
|
|
111
|
-
while( limit != :unset && records < limit )
|
|
112
|
-
@dialing_permissions_page << DialingPermissionsListResponse.new(version, @payload, key, limit - records)
|
|
113
|
-
@payload = self.next_page
|
|
114
|
-
break unless @payload
|
|
115
|
-
records += (@payload.body[key] || []).size
|
|
116
|
-
end
|
|
117
|
-
# Path Solution
|
|
118
|
-
@solution = solution
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
def each
|
|
122
|
-
@dialing_permissions_page.each do |record|
|
|
123
|
-
yield record
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
def to_s
|
|
128
|
-
'<Twilio::REST::Voice::V1PageMetadata>';
|
|
129
|
-
end
|
|
130
|
-
end
|
|
131
|
-
class DialingPermissionsListResponse < InstanceListResource
|
|
132
|
-
|
|
133
|
-
# @param [Array<DialingPermissionsInstance>] instance
|
|
134
|
-
# @param [Hash{String => Object}] headers
|
|
135
|
-
# @param [Integer] status_code
|
|
136
|
-
def initialize(version, payload, key, limit = :unset)
|
|
137
|
-
data_list = payload.body[key] || []
|
|
138
|
-
if limit != :unset
|
|
139
|
-
data_list = data_list[0, limit]
|
|
140
|
-
end
|
|
141
|
-
@dialing_permissions = data_list.map do |data|
|
|
142
|
-
DialingPermissionsInstance.new(version, data)
|
|
143
|
-
end
|
|
144
|
-
@headers = payload.headers
|
|
145
|
-
@status_code = payload.status_code
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
def dialing_permissions
|
|
149
|
-
@dialing_permissions
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
def headers
|
|
153
|
-
@headers
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
def status_code
|
|
157
|
-
@status_code
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
|
|
161
102
|
class DialingPermissionsInstance < InstanceResource
|
|
162
103
|
##
|
|
163
104
|
# Initialize the DialingPermissionsInstance
|