twilio-ruby 7.11.1 → 7.11.3
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 +13 -1
- data/CHANGES.md +417 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/githooks/pre-commit +11 -0
- 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/conversation.rb +101 -12
- 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/capacity.rb +161 -0
- data/lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb +279 -0
- 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 +29 -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 +33 -60
- 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/data_mapping.rb +3 -3
- 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/memory/v1/store.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +3 -3
- 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/factor.rb +1 -1
- 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 +1 -60
- 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/recording_account_default_configuration.rb +547 -0
- 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/v2.rb +6 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/twiml/voice_response.rb +12 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio API definition for public-api voice
|
|
8
|
+
# Powers Twilio public-api voice
|
|
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 Voice < VoiceBase
|
|
19
|
+
class V2 < Version
|
|
20
|
+
class RecordingAccountDefaultConfigurationList < ListResource
|
|
21
|
+
|
|
22
|
+
class VoiceV2AccountDefaultConfigurationRecordingRequest
|
|
23
|
+
# @param [description]: [String] Optional description.
|
|
24
|
+
# @param [configuration]: [RecordingAccountDefaultConfigurationList.VoiceV2ConfigurationRecordingConfiguration]
|
|
25
|
+
attr_accessor :description, :configuration
|
|
26
|
+
def initialize(payload)
|
|
27
|
+
@description = payload["description"]
|
|
28
|
+
@configuration = payload["configuration"]
|
|
29
|
+
end
|
|
30
|
+
def to_json(options = {})
|
|
31
|
+
{
|
|
32
|
+
"description": @description,
|
|
33
|
+
"configuration": @configuration,
|
|
34
|
+
}.to_json(options)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
class VoiceV2ConfigurationRecordingCompositionPolicy
|
|
39
|
+
# @param [channels]: [String] The number of channels to be composed.
|
|
40
|
+
# @param [trim]: [String] Trim the silence in the recordings.
|
|
41
|
+
# @param [track]: [String] The audio track to record for the call.
|
|
42
|
+
attr_accessor :channels, :trim, :track
|
|
43
|
+
def initialize(payload)
|
|
44
|
+
@channels = payload["channels"]
|
|
45
|
+
@trim = payload["trim"]
|
|
46
|
+
@track = payload["track"]
|
|
47
|
+
end
|
|
48
|
+
def to_json(options = {})
|
|
49
|
+
{
|
|
50
|
+
"channels": @channels,
|
|
51
|
+
"trim": @trim,
|
|
52
|
+
"track": @track,
|
|
53
|
+
}.to_json(options)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
class VoiceV2ConfigurationRecordingFeature
|
|
58
|
+
# @param [type]: [String] The type of feature.
|
|
59
|
+
# @param [feature_id]: [String] The ID of the feature.
|
|
60
|
+
# @param [description]: [String] The description of the feature.
|
|
61
|
+
attr_accessor :type, :feature_id, :description
|
|
62
|
+
def initialize(payload)
|
|
63
|
+
@type = payload["type"]
|
|
64
|
+
@feature_id = payload["feature_id"]
|
|
65
|
+
@description = payload["description"]
|
|
66
|
+
end
|
|
67
|
+
def to_json(options = {})
|
|
68
|
+
{
|
|
69
|
+
"type": @type,
|
|
70
|
+
"featureId": @feature_id,
|
|
71
|
+
"description": @description,
|
|
72
|
+
}.to_json(options)
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
class VoiceV2ConfigurationRecordingStatusCallback
|
|
77
|
+
# @param [url]: [String] The recording status callback URL.
|
|
78
|
+
# @param [method]: [String] The recording status callback method.
|
|
79
|
+
# @param [events]: [Array<String>] The recording status callback events.
|
|
80
|
+
attr_accessor :url, :method, :events
|
|
81
|
+
def initialize(payload)
|
|
82
|
+
@url = payload["url"]
|
|
83
|
+
@method = payload["method"]
|
|
84
|
+
@events = payload["events"]
|
|
85
|
+
end
|
|
86
|
+
def to_json(options = {})
|
|
87
|
+
{
|
|
88
|
+
"url": @url,
|
|
89
|
+
"method": @method,
|
|
90
|
+
"events": @events,
|
|
91
|
+
}.to_json(options)
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
##
|
|
97
|
+
# Initialize the RecordingAccountDefaultConfigurationList
|
|
98
|
+
# @param [Version] version Version that contains the resource
|
|
99
|
+
# @return [RecordingAccountDefaultConfigurationList] RecordingAccountDefaultConfigurationList
|
|
100
|
+
def initialize(version)
|
|
101
|
+
super(version)
|
|
102
|
+
|
|
103
|
+
# Path Solution
|
|
104
|
+
@solution = { }
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
# Provide a user friendly representation
|
|
112
|
+
def to_s
|
|
113
|
+
'#<Twilio.Voice.V2.RecordingAccountDefaultConfigurationList>'
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class RecordingAccountDefaultConfigurationContext < InstanceContext
|
|
119
|
+
##
|
|
120
|
+
# Initialize the RecordingAccountDefaultConfigurationContext
|
|
121
|
+
# @param [Version] version Version that contains the resource
|
|
122
|
+
# @return [RecordingAccountDefaultConfigurationContext] RecordingAccountDefaultConfigurationContext
|
|
123
|
+
def initialize(version)
|
|
124
|
+
super(version)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
# Path Solution
|
|
128
|
+
@solution = { }
|
|
129
|
+
@uri = "/AccountDefaultConfiguration/Recording"
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
end
|
|
133
|
+
##
|
|
134
|
+
# Create the RecordingAccountDefaultConfigurationInstance
|
|
135
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
136
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Created RecordingAccountDefaultConfigurationInstance
|
|
137
|
+
def create(voice_v2_account_default_configuration_recording_request: :unset
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
141
|
+
headers['Content-Type'] = 'application/json'
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
payload = @version.create('POST', @uri, headers: headers, data: voice_v2_account_default_configuration_recording_request.to_json)
|
|
147
|
+
RecordingAccountDefaultConfigurationInstance.new(
|
|
148
|
+
@version,
|
|
149
|
+
payload,
|
|
150
|
+
)
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
##
|
|
154
|
+
# Create the RecordingAccountDefaultConfigurationInstanceMetadata
|
|
155
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
156
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Created RecordingAccountDefaultConfigurationInstance
|
|
157
|
+
def create_with_metadata(voice_v2_account_default_configuration_recording_request: :unset
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
161
|
+
headers['Content-Type'] = 'application/json'
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
response = @version.create_with_metadata('POST', @uri, headers: headers, data: voice_v2_account_default_configuration_recording_request.to_json)
|
|
167
|
+
recording_account_default_configuration_instance = RecordingAccountDefaultConfigurationInstance.new(
|
|
168
|
+
@version,
|
|
169
|
+
response.body,
|
|
170
|
+
)
|
|
171
|
+
RecordingAccountDefaultConfigurationInstanceMetadata.new(
|
|
172
|
+
@version,
|
|
173
|
+
recording_account_default_configuration_instance,
|
|
174
|
+
response.headers,
|
|
175
|
+
response.status_code
|
|
176
|
+
)
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
##
|
|
180
|
+
# Delete the RecordingAccountDefaultConfigurationInstance
|
|
181
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
182
|
+
def delete
|
|
183
|
+
|
|
184
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
@version.delete('DELETE', @uri, headers: headers)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
##
|
|
193
|
+
# Delete the RecordingAccountDefaultConfigurationInstanceMetadata
|
|
194
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
195
|
+
def delete_with_metadata
|
|
196
|
+
|
|
197
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
202
|
+
recordingAccountDefaultConfiguration_instance = RecordingAccountDefaultConfigurationInstance.new(
|
|
203
|
+
@version,
|
|
204
|
+
response.body,
|
|
205
|
+
account_sid: @solution[:account_sid],
|
|
206
|
+
sid: @solution[:sid],
|
|
207
|
+
)
|
|
208
|
+
RecordingAccountDefaultConfigurationInstanceMetadata.new(@version, recordingAccountDefaultConfiguration_instance, response.headers, response.status_code)
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
##
|
|
212
|
+
# Fetch the RecordingAccountDefaultConfigurationInstance
|
|
213
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Fetched RecordingAccountDefaultConfigurationInstance
|
|
214
|
+
def fetch
|
|
215
|
+
|
|
216
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
223
|
+
RecordingAccountDefaultConfigurationInstance.new(
|
|
224
|
+
@version,
|
|
225
|
+
payload,
|
|
226
|
+
)
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
##
|
|
230
|
+
# Fetch the RecordingAccountDefaultConfigurationInstanceMetadata
|
|
231
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Fetched RecordingAccountDefaultConfigurationInstance
|
|
232
|
+
def fetch_with_metadata
|
|
233
|
+
|
|
234
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
241
|
+
recording_account_default_configuration_instance = RecordingAccountDefaultConfigurationInstance.new(
|
|
242
|
+
@version,
|
|
243
|
+
response.body,
|
|
244
|
+
)
|
|
245
|
+
RecordingAccountDefaultConfigurationInstanceMetadata.new(
|
|
246
|
+
@version,
|
|
247
|
+
recording_account_default_configuration_instance,
|
|
248
|
+
response.headers,
|
|
249
|
+
response.status_code
|
|
250
|
+
)
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
##
|
|
254
|
+
# Update the RecordingAccountDefaultConfigurationInstance
|
|
255
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
256
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Updated RecordingAccountDefaultConfigurationInstance
|
|
257
|
+
def update(voice_v2_account_default_configuration_recording_request: :unset
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
261
|
+
headers['Content-Type'] = 'application/json'
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
payload = @version.update('PUT', @uri, headers: headers, data: voice_v2_account_default_configuration_recording_request.to_json)
|
|
267
|
+
RecordingAccountDefaultConfigurationInstance.new(
|
|
268
|
+
@version,
|
|
269
|
+
payload,
|
|
270
|
+
)
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
##
|
|
274
|
+
# Update the RecordingAccountDefaultConfigurationInstanceMetadata
|
|
275
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
276
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Updated RecordingAccountDefaultConfigurationInstance
|
|
277
|
+
def update_with_metadata(voice_v2_account_default_configuration_recording_request: :unset
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
281
|
+
headers['Content-Type'] = 'application/json'
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
response = @version.update_with_metadata('PUT', @uri, headers: headers, data: voice_v2_account_default_configuration_recording_request.to_json)
|
|
287
|
+
recording_account_default_configuration_instance = RecordingAccountDefaultConfigurationInstance.new(
|
|
288
|
+
@version,
|
|
289
|
+
response.body,
|
|
290
|
+
)
|
|
291
|
+
RecordingAccountDefaultConfigurationInstanceMetadata.new(
|
|
292
|
+
@version,
|
|
293
|
+
recording_account_default_configuration_instance,
|
|
294
|
+
response.headers,
|
|
295
|
+
response.status_code
|
|
296
|
+
)
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
##
|
|
301
|
+
# Provide a user friendly representation
|
|
302
|
+
def to_s
|
|
303
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
304
|
+
"#<Twilio.Voice.V2.RecordingAccountDefaultConfigurationContext #{context}>"
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
##
|
|
308
|
+
# Provide a detailed, user friendly representation
|
|
309
|
+
def inspect
|
|
310
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
311
|
+
"#<Twilio.Voice.V2.RecordingAccountDefaultConfigurationContext #{context}>"
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
class RecordingAccountDefaultConfigurationInstanceMetadata < InstanceResourceMetadata
|
|
316
|
+
##
|
|
317
|
+
# Initializes a new RecordingAccountDefaultConfigurationInstanceMetadata.
|
|
318
|
+
# @param [Version] version Version that contains the resource
|
|
319
|
+
# @param [}RecordingAccountDefaultConfigurationInstance] recording_account_default_configuration_instance The instance associated with the metadata.
|
|
320
|
+
# @param [Hash] headers Header object with response headers.
|
|
321
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
322
|
+
# @return [RecordingAccountDefaultConfigurationInstanceMetadata] The initialized instance with metadata.
|
|
323
|
+
def initialize(version, recording_account_default_configuration_instance, headers, status_code)
|
|
324
|
+
super(version, headers, status_code)
|
|
325
|
+
@recording_account_default_configuration_instance = recording_account_default_configuration_instance
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
def recording_account_default_configuration
|
|
329
|
+
@recording_account_default_configuration_instance
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
def headers
|
|
333
|
+
@headers
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
def status_code
|
|
337
|
+
@status_code
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
def to_s
|
|
341
|
+
"<Twilio.Api.V2010.RecordingAccountDefaultConfigurationInstanceMetadata status=#{@status_code}>"
|
|
342
|
+
end
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
class RecordingAccountDefaultConfigurationListResponse < InstanceListResource
|
|
346
|
+
# @param [Array<RecordingAccountDefaultConfigurationInstance>] instance
|
|
347
|
+
# @param [Hash{String => Object}] headers
|
|
348
|
+
# @param [Integer] status_code
|
|
349
|
+
def initialize(version, payload, key)
|
|
350
|
+
@recording_account_default_configuration_instance = payload.body[key].map do |data|
|
|
351
|
+
RecordingAccountDefaultConfigurationInstance.new(version, data)
|
|
352
|
+
end
|
|
353
|
+
@headers = payload.headers
|
|
354
|
+
@status_code = payload.status_code
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
def recording_account_default_configuration_instance
|
|
358
|
+
@instance
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
class RecordingAccountDefaultConfigurationPage < Page
|
|
363
|
+
##
|
|
364
|
+
# Initialize the RecordingAccountDefaultConfigurationPage
|
|
365
|
+
# @param [Version] version Version that contains the resource
|
|
366
|
+
# @param [Response] response Response from the API
|
|
367
|
+
# @param [Hash] solution Path solution for the resource
|
|
368
|
+
# @return [RecordingAccountDefaultConfigurationPage] RecordingAccountDefaultConfigurationPage
|
|
369
|
+
def initialize(version, response, solution)
|
|
370
|
+
super(version, response)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
# Path Solution
|
|
374
|
+
@solution = solution
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
##
|
|
378
|
+
# Build an instance of RecordingAccountDefaultConfigurationInstance
|
|
379
|
+
# @param [Hash] payload Payload response from the API
|
|
380
|
+
# @return [RecordingAccountDefaultConfigurationInstance] RecordingAccountDefaultConfigurationInstance
|
|
381
|
+
def get_instance(payload)
|
|
382
|
+
RecordingAccountDefaultConfigurationInstance.new(@version, payload)
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
##
|
|
386
|
+
# Provide a user friendly representation
|
|
387
|
+
def to_s
|
|
388
|
+
'<Twilio.Voice.V2.RecordingAccountDefaultConfigurationPage>'
|
|
389
|
+
end
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
class RecordingAccountDefaultConfigurationInstance < InstanceResource
|
|
393
|
+
##
|
|
394
|
+
# Initialize the RecordingAccountDefaultConfigurationInstance
|
|
395
|
+
# @param [Version] version Version that contains the resource
|
|
396
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
397
|
+
# @param [String] account_sid The SID of the
|
|
398
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this RecordingAccountDefaultConfiguration
|
|
399
|
+
# resource.
|
|
400
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
401
|
+
# @return [RecordingAccountDefaultConfigurationInstance] RecordingAccountDefaultConfigurationInstance
|
|
402
|
+
def initialize(version, payload )
|
|
403
|
+
super(version)
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
# Marshaled Properties
|
|
407
|
+
@properties = {
|
|
408
|
+
'account_sid' => payload['account_sid'],
|
|
409
|
+
'description' => payload['description'],
|
|
410
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
411
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
412
|
+
'configuration' => payload['configuration'],
|
|
413
|
+
'message' => payload['message'],
|
|
414
|
+
'code' => payload['code'],
|
|
415
|
+
'status' => payload['status'],
|
|
416
|
+
'more_info' => payload['more_info'],
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
# Context
|
|
420
|
+
@instance_context = nil
|
|
421
|
+
@params = { }
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
##
|
|
425
|
+
# Generate an instance context for the instance, the context is capable of
|
|
426
|
+
# performing various actions. All instance actions are proxied to the context
|
|
427
|
+
# @return [RecordingAccountDefaultConfigurationContext] CallContext for this CallInstance
|
|
428
|
+
def context
|
|
429
|
+
unless @instance_context
|
|
430
|
+
@instance_context = RecordingAccountDefaultConfigurationContext.new(@version )
|
|
431
|
+
end
|
|
432
|
+
@instance_context
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
##
|
|
436
|
+
# @return [String] Account SID.
|
|
437
|
+
def account_sid
|
|
438
|
+
@properties['account_sid']
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
##
|
|
442
|
+
# @return [String] The description.
|
|
443
|
+
def description
|
|
444
|
+
@properties['description']
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
##
|
|
448
|
+
# @return [Time] The created date.
|
|
449
|
+
def date_created
|
|
450
|
+
@properties['date_created']
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
##
|
|
454
|
+
# @return [Time] The updated date.
|
|
455
|
+
def date_updated
|
|
456
|
+
@properties['date_updated']
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
##
|
|
460
|
+
# @return [VoiceV2ConfigurationRecordingConfiguration]
|
|
461
|
+
def configuration
|
|
462
|
+
@properties['configuration']
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
##
|
|
466
|
+
# @return [String] Error message
|
|
467
|
+
def message
|
|
468
|
+
@properties['message']
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
##
|
|
472
|
+
# @return [String] Twilio error code
|
|
473
|
+
def code
|
|
474
|
+
@properties['code']
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
##
|
|
478
|
+
# @return [String] status code
|
|
479
|
+
def status
|
|
480
|
+
@properties['status']
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
##
|
|
484
|
+
# @return [String] More information about the error
|
|
485
|
+
def more_info
|
|
486
|
+
@properties['more_info']
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
##
|
|
490
|
+
# Create the RecordingAccountDefaultConfigurationInstance
|
|
491
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
492
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Created RecordingAccountDefaultConfigurationInstance
|
|
493
|
+
def create(voice_v2_account_default_configuration_recording_request: :unset
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
context.create(
|
|
497
|
+
voice_v2_account_default_configuration_recording_request: voice_v2_account_default_configuration_recording_request,
|
|
498
|
+
)
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
##
|
|
502
|
+
# Delete the RecordingAccountDefaultConfigurationInstance
|
|
503
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
504
|
+
def delete
|
|
505
|
+
|
|
506
|
+
context.delete
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
##
|
|
510
|
+
# Fetch the RecordingAccountDefaultConfigurationInstance
|
|
511
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Fetched RecordingAccountDefaultConfigurationInstance
|
|
512
|
+
def fetch
|
|
513
|
+
|
|
514
|
+
context.fetch
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
##
|
|
518
|
+
# Update the RecordingAccountDefaultConfigurationInstance
|
|
519
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
520
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Updated RecordingAccountDefaultConfigurationInstance
|
|
521
|
+
def update(voice_v2_account_default_configuration_recording_request: :unset
|
|
522
|
+
)
|
|
523
|
+
|
|
524
|
+
context.update(
|
|
525
|
+
voice_v2_account_default_configuration_recording_request: voice_v2_account_default_configuration_recording_request,
|
|
526
|
+
)
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
##
|
|
530
|
+
# Provide a user friendly representation
|
|
531
|
+
def to_s
|
|
532
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
533
|
+
"<Twilio.Voice.V2.RecordingAccountDefaultConfigurationInstance #{values}>"
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
##
|
|
537
|
+
# Provide a detailed, user friendly representation
|
|
538
|
+
def inspect
|
|
539
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
540
|
+
"<Twilio.Voice.V2.RecordingAccountDefaultConfigurationInstance #{values}>"
|
|
541
|
+
end
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
end
|
|
545
|
+
end
|
|
546
|
+
end
|
|
547
|
+
end
|
|
@@ -372,65 +372,6 @@ module Twilio
|
|
|
372
372
|
end
|
|
373
373
|
end
|
|
374
374
|
|
|
375
|
-
class TranscriptionPageMetadata < PageMetadata
|
|
376
|
-
attr_reader :transcription_page
|
|
377
|
-
|
|
378
|
-
def initialize(version, response, solution, limit)
|
|
379
|
-
super(version, response)
|
|
380
|
-
@transcription_page = []
|
|
381
|
-
@limit = limit
|
|
382
|
-
key = get_key(response.body)
|
|
383
|
-
records = 0
|
|
384
|
-
while( limit != :unset && records < limit )
|
|
385
|
-
@transcription_page << TranscriptionListResponse.new(version, @payload, key, limit - records)
|
|
386
|
-
@payload = self.next_page
|
|
387
|
-
break unless @payload
|
|
388
|
-
records += (@payload.body[key] || []).size
|
|
389
|
-
end
|
|
390
|
-
# Path Solution
|
|
391
|
-
@solution = solution
|
|
392
|
-
end
|
|
393
|
-
|
|
394
|
-
def each
|
|
395
|
-
@transcription_page.each do |record|
|
|
396
|
-
yield record
|
|
397
|
-
end
|
|
398
|
-
end
|
|
399
|
-
|
|
400
|
-
def to_s
|
|
401
|
-
'<Twilio::REST::Voice::V2PageMetadata>';
|
|
402
|
-
end
|
|
403
|
-
end
|
|
404
|
-
class TranscriptionListResponse < InstanceListResource
|
|
405
|
-
|
|
406
|
-
# @param [Array<TranscriptionInstance>] instance
|
|
407
|
-
# @param [Hash{String => Object}] headers
|
|
408
|
-
# @param [Integer] status_code
|
|
409
|
-
def initialize(version, payload, key, limit = :unset)
|
|
410
|
-
data_list = payload.body[key] || []
|
|
411
|
-
if limit != :unset
|
|
412
|
-
data_list = data_list[0, limit]
|
|
413
|
-
end
|
|
414
|
-
@transcription = data_list.map do |data|
|
|
415
|
-
TranscriptionInstance.new(version, data)
|
|
416
|
-
end
|
|
417
|
-
@headers = payload.headers
|
|
418
|
-
@status_code = payload.status_code
|
|
419
|
-
end
|
|
420
|
-
|
|
421
|
-
def transcription
|
|
422
|
-
@transcription
|
|
423
|
-
end
|
|
424
|
-
|
|
425
|
-
def headers
|
|
426
|
-
@headers
|
|
427
|
-
end
|
|
428
|
-
|
|
429
|
-
def status_code
|
|
430
|
-
@status_code
|
|
431
|
-
end
|
|
432
|
-
end
|
|
433
|
-
|
|
434
375
|
class TranscriptionInstance < InstanceResource
|
|
435
376
|
##
|
|
436
377
|
# Initialize the TranscriptionInstance
|
|
@@ -299,65 +299,6 @@ module Twilio
|
|
|
299
299
|
end
|
|
300
300
|
end
|
|
301
301
|
|
|
302
|
-
class TypePageMetadata < PageMetadata
|
|
303
|
-
attr_reader :type_page
|
|
304
|
-
|
|
305
|
-
def initialize(version, response, solution, limit)
|
|
306
|
-
super(version, response)
|
|
307
|
-
@type_page = []
|
|
308
|
-
@limit = limit
|
|
309
|
-
key = get_key(response.body)
|
|
310
|
-
records = 0
|
|
311
|
-
while( limit != :unset && records < limit )
|
|
312
|
-
@type_page << TypeListResponse.new(version, @payload, key, limit - records)
|
|
313
|
-
@payload = self.next_page
|
|
314
|
-
break unless @payload
|
|
315
|
-
records += (@payload.body[key] || []).size
|
|
316
|
-
end
|
|
317
|
-
# Path Solution
|
|
318
|
-
@solution = solution
|
|
319
|
-
end
|
|
320
|
-
|
|
321
|
-
def each
|
|
322
|
-
@type_page.each do |record|
|
|
323
|
-
yield record
|
|
324
|
-
end
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
def to_s
|
|
328
|
-
'<Twilio::REST::Voice::V2PageMetadata>';
|
|
329
|
-
end
|
|
330
|
-
end
|
|
331
|
-
class TypeListResponse < InstanceListResource
|
|
332
|
-
|
|
333
|
-
# @param [Array<TypeInstance>] instance
|
|
334
|
-
# @param [Hash{String => Object}] headers
|
|
335
|
-
# @param [Integer] status_code
|
|
336
|
-
def initialize(version, payload, key, limit = :unset)
|
|
337
|
-
data_list = payload.body[key] || []
|
|
338
|
-
if limit != :unset
|
|
339
|
-
data_list = data_list[0, limit]
|
|
340
|
-
end
|
|
341
|
-
@type = data_list.map do |data|
|
|
342
|
-
TypeInstance.new(version, data)
|
|
343
|
-
end
|
|
344
|
-
@headers = payload.headers
|
|
345
|
-
@status_code = payload.status_code
|
|
346
|
-
end
|
|
347
|
-
|
|
348
|
-
def type
|
|
349
|
-
@type
|
|
350
|
-
end
|
|
351
|
-
|
|
352
|
-
def headers
|
|
353
|
-
@headers
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
def status_code
|
|
357
|
-
@status_code
|
|
358
|
-
end
|
|
359
|
-
end
|
|
360
|
-
|
|
361
302
|
class TypeInstance < InstanceResource
|
|
362
303
|
##
|
|
363
304
|
# Initialize the TypeInstance
|