twilio-ruby 7.10.5 → 7.10.6
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 +1 -1
- data/CHANGES.md +53 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +3 -3
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +3 -3
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +18 -10
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +18 -10
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +4 -4
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +5 -5
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1.rb +11 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +41 -33
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +61 -53
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +28 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +30 -16
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +207 -207
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +207 -207
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +27 -27
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +73 -59
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +93 -79
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +17 -9
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +19 -11
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +29 -21
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +36 -28
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +36 -28
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +36 -28
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +83 -75
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +15 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +42 -34
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +15 -7
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +17 -9
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +19 -11
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +15 -7
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +25 -17
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +15 -7
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +17 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +16 -8
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +52 -44
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +22 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +16 -8
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +13 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +26 -18
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account.rb +18 -10
- data/lib/twilio-ruby/rest/api/v2010.rb +1 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +2 -2
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +14 -5
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +2 -2
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +14 -5
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +14 -5
- data/lib/twilio-ruby/rest/assistants/v1.rb +4 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +13 -5
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +19 -11
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +8 -8
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +32 -24
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +15 -7
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +19 -11
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +20 -12
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +23 -15
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +18 -10
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +13 -5
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +23 -15
- data/lib/twilio-ruby/rest/chat/v1/service.rb +122 -114
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +32 -24
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +13 -5
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +15 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +37 -29
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +37 -29
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +32 -24
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +37 -29
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +18 -10
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +13 -5
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +21 -13
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +26 -18
- data/lib/twilio-ruby/rest/chat/v2/service.rb +76 -68
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +8 -8
- data/lib/twilio-ruby/rest/chat/v3.rb +6 -0
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +2 -2
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +2 -2
- data/lib/twilio-ruby/rest/content/v1/content.rb +14 -5
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +13 -5
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +13 -5
- data/lib/twilio-ruby/rest/content/v1.rb +1 -0
- data/lib/twilio-ruby/rest/content/v2/content.rb +13 -5
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +43 -35
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +12 -12
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +39 -31
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +44 -36
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +30 -22
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +51 -43
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +15 -15
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +34 -26
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +18 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +28 -28
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +39 -31
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +44 -36
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +30 -22
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +51 -43
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +15 -15
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +13 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +18 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +19 -11
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +28 -20
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +14 -6
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +19 -11
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +28 -20
- data/lib/twilio-ruby/rest/conversations/v1.rb +6 -0
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +698 -0
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +1208 -0
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +1365 -0
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +369 -0
- data/lib/twilio-ruby/rest/conversations/v2/participant.rb +745 -0
- data/lib/twilio-ruby/rest/conversations/v2.rb +126 -0
- data/lib/twilio-ruby/rest/conversations_base.rb +6 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +13 -5
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +13 -5
- data/lib/twilio-ruby/rest/events/v1/schema.rb +2 -2
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +2 -2
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
- data/lib/twilio-ruby/rest/events/v1/sink.rb +18 -10
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +17 -9
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +18 -10
- data/lib/twilio-ruby/rest/events/v1.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +32 -24
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -15
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +5 -4
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +64 -56
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +20 -12
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +13 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +32 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +21 -13
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +33 -25
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +13 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +14 -6
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +18 -10
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +3 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +17 -9
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +8 -8
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +27 -19
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +25 -17
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +15 -7
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +19 -11
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +17 -9
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +23 -15
- data/lib/twilio-ruby/rest/flex_api/v1.rb +19 -0
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +8 -8
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +8 -8
- data/lib/twilio-ruby/rest/flex_api/v2.rb +6 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +10 -10
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +1 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +6 -6
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +13 -5
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +6 -6
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +3 -2
- data/lib/twilio-ruby/rest/iam/v1/role_permission.rb +13 -5
- data/lib/twilio-ruby/rest/iam/v1/token.rb +10 -10
- data/lib/twilio-ruby/rest/iam/v1.rb +13 -2
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +16 -16
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +14 -14
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +17 -9
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +13 -5
- data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -2
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +23 -15
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +17 -9
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +13 -5
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +13 -5
- data/lib/twilio-ruby/rest/insights/v1/room.rb +13 -5
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +10 -10
- data/lib/twilio-ruby/rest/insights/v1.rb +3 -0
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +14 -5
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +14 -5
- data/lib/twilio-ruby/rest/insights/v2/report.rb +3 -2
- data/lib/twilio-ruby/rest/insights/v2.rb +3 -0
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +227 -0
- data/lib/twilio-ruby/rest/insights/v3/query.rb +394 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +46 -0
- data/lib/twilio-ruby/rest/insights_base.rb +5 -0
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +22 -14
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +13 -5
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +2 -2
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +2 -2
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +13 -5
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +13 -5
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +43 -35
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +4 -4
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +4 -4
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +4 -4
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +15 -7
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +13 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +17 -9
- data/lib/twilio-ruby/rest/intelligence/v2.rb +13 -0
- data/lib/twilio-ruby/rest/intelligence/v3/configuration.rb +1073 -0
- data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +602 -0
- data/lib/twilio-ruby/rest/intelligence/v3/operator.rb +784 -0
- data/lib/twilio-ruby/rest/intelligence/v3/operator_result.rb +622 -0
- data/lib/twilio-ruby/rest/intelligence/v3/version.rb +556 -0
- data/lib/twilio-ruby/rest/intelligence/v3.rb +120 -0
- data/lib/twilio-ruby/rest/intelligence_base.rb +6 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +32 -24
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +15 -7
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +19 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +20 -12
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +23 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +18 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +13 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +23 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +122 -114
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +32 -24
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +13 -5
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +15 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +37 -29
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +37 -29
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +32 -24
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +37 -29
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +18 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +13 -5
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +19 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +26 -18
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +76 -68
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +13 -5
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +2 -2
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +14 -5
- data/lib/twilio-ruby/rest/knowledge/v1.rb +1 -0
- data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +306 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +714 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb +739 -0
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +376 -0
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +355 -0
- data/lib/twilio-ruby/rest/knowledge/v2.rb +145 -0
- data/lib/twilio-ruby/rest/knowledge_base.rb +6 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +10 -10
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -0
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +3 -2
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +4 -2
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +32 -32
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +2 -2
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +3 -3
- data/lib/twilio-ruby/rest/lookups/v2.rb +13 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +13 -5
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +13 -5
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +15 -7
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +2 -2
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +21 -13
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +4 -4
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +16 -16
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +2 -2
- data/lib/twilio-ruby/rest/marketplace/v1.rb +3 -0
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +362 -0
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +798 -0
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +843 -0
- data/lib/twilio-ruby/rest/memory/v1/event.rb +320 -0
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +710 -0
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +442 -0
- data/lib/twilio-ruby/rest/memory/v1/import.rb +574 -0
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +250 -0
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +786 -0
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +376 -0
- data/lib/twilio-ruby/rest/memory/v1/profile.rb +636 -0
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +366 -0
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +349 -0
- data/lib/twilio-ruby/rest/memory/v1/store.rb +701 -0
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +336 -0
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +904 -0
- data/lib/twilio-ruby/rest/memory/v1.rb +475 -0
- data/lib/twilio-ruby/rest/memory.rb +6 -0
- data/lib/twilio-ruby/rest/memory_base.rb +38 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +15 -7
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +18 -10
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +10 -10
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +5 -5
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +14 -6
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +14 -6
- data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +15 -7
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +14 -6
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +14 -6
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +54 -46
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +61 -53
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +120 -112
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +22 -7
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +13 -5
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +13 -5
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +32 -24
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +20 -12
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +20 -20
- data/lib/twilio-ruby/rest/notify/v1/service.rb +55 -47
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +6 -6
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1.rb +21 -2
- data/lib/twilio-ruby/rest/numbers/v2/application.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +19 -11
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +4 -4
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +8 -8
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +35 -27
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +14 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +14 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +3 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +29 -21
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +20 -12
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +15 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +20 -12
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +13 -5
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v2.rb +5 -0
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +19 -19
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +7 -7
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +10 -10
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +7 -7
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +11 -11
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +13 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +33 -25
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +50 -42
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +13 -5
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +13 -5
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +15 -7
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +21 -13
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +20 -12
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +27 -19
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +6 -6
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +45 -37
- data/lib/twilio-ruby/rest/preview/wireless.rb +3 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +7 -7
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +10 -10
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +13 -5
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +54 -10
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +27 -11
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +2 -2
- data/lib/twilio-ruby/rest/preview_iam/versionless.rb +1 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +13 -5
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +13 -5
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +13 -5
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1.rb +22 -4
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +13 -5
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +13 -5
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2.rb +13 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +18 -10
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +13 -5
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +15 -7
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +17 -9
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +25 -17
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +37 -29
- data/lib/twilio-ruby/rest/proxy/v1.rb +1 -0
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +6 -6
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +6 -6
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +6 -6
- data/lib/twilio-ruby/rest/routes/v2.rb +3 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +13 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +16 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -9
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +15 -7
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +13 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +19 -11
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +15 -7
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +13 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +16 -8
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +23 -15
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +13 -5
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +16 -8
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +13 -5
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +18 -10
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +13 -5
- data/lib/twilio-ruby/rest/studio/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +13 -5
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +18 -10
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +13 -5
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +4 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +42 -19
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -6
- data/lib/twilio-ruby/rest/studio/v2.rb +1 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +17 -9
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +36 -28
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +19 -11
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +13 -5
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +14 -6
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +17 -9
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +13 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +13 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +13 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +27 -19
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +17 -9
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +13 -5
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +19 -11
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +22 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +29 -21
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +19 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +20 -12
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +30 -22
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +19 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +20 -12
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +17 -9
- data/lib/twilio-ruby/rest/sync/v1/service.rb +34 -26
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +17 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +13 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +123 -115
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +38 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +20 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +13 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +31 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +119 -111
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +17 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +16 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +28 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +30 -22
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +33 -25
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +14 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +14 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +28 -20
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +14 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +6 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +37 -29
- data/lib/twilio-ruby/rest/trunking/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +9 -9
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +45 -45
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +40 -40
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +15 -7
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +14 -6
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +14 -6
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +25 -17
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +20 -12
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +13 -5
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +13 -5
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +20 -12
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +13 -5
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +15 -7
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +14 -6
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +14 -6
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +25 -17
- data/lib/twilio-ruby/rest/trusthub/v1.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2/form.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +23 -15
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +31 -23
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +16 -16
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +14 -6
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +17 -9
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -2
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +19 -11
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +17 -9
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +22 -22
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +40 -32
- data/lib/twilio-ruby/rest/verify/v2/service.rb +91 -83
- data/lib/twilio-ruby/rest/verify/v2/template.rb +13 -5
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +13 -5
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +14 -14
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +22 -14
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +43 -35
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +14 -14
- data/lib/twilio-ruby/rest/video/v1/recording.rb +13 -5
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +14 -14
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +13 -5
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +13 -5
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +15 -7
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +13 -5
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +18 -10
- data/lib/twilio-ruby/rest/video/v1/room.rb +32 -24
- data/lib/twilio-ruby/rest/video/v1.rb +4 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +43 -35
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +28 -20
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +16 -8
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +3 -3
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +13 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +13 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +4 -4
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +18 -10
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +17 -9
- data/lib/twilio-ruby/rest/voice/v1.rb +10 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +514 -0
- data/lib/twilio-ruby/rest/voice/v3.rb +50 -0
- data/lib/twilio-ruby/rest/voice_base.rb +6 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +20 -12
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +29 -21
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +13 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +13 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +49 -41
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +13 -5
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +12 -8
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +46 -4
|
@@ -0,0 +1,843 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio Memory API
|
|
8
|
+
# APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
|
|
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 Memory < MemoryBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class DataMappingList < ListResource
|
|
21
|
+
|
|
22
|
+
class CreateDataMappingInput
|
|
23
|
+
# @param [display_name]: [String] Name of the data mapping.
|
|
24
|
+
# @param [description]: [String] A human readable description of this resource, up to 512 characters.
|
|
25
|
+
# @param [is_enabled]: [Boolean] Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
|
|
26
|
+
# @param [mapping_to]: [DataMappingList.DataMappingToTraits]
|
|
27
|
+
# @param [mapping_from]: [DataMappingList.DataMappingFromDataSet]
|
|
28
|
+
attr_accessor :display_name, :description, :is_enabled, :mapping_to, :mapping_from
|
|
29
|
+
def initialize(payload)
|
|
30
|
+
@display_name = payload["display_name"]
|
|
31
|
+
@description = payload["description"]
|
|
32
|
+
@is_enabled = payload["is_enabled"]
|
|
33
|
+
@mapping_to = payload["mapping_to"]
|
|
34
|
+
@mapping_from = payload["mapping_from"]
|
|
35
|
+
end
|
|
36
|
+
def to_json(options = {})
|
|
37
|
+
{
|
|
38
|
+
"displayName": @display_name,
|
|
39
|
+
"description": @description,
|
|
40
|
+
"isEnabled": @is_enabled,
|
|
41
|
+
"mappingTo": @mapping_to,
|
|
42
|
+
"mappingFrom": @mapping_from,
|
|
43
|
+
}.to_json(options)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
class DataMappingCore
|
|
48
|
+
# @param [display_name]: [String] Name of the data mapping.
|
|
49
|
+
# @param [description]: [String] A human readable description of this resource, up to 512 characters.
|
|
50
|
+
# @param [is_enabled]: [Boolean] Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
|
|
51
|
+
# @param [mapping_to]: [DataMappingList.DataMappingToTraits]
|
|
52
|
+
attr_accessor :display_name, :description, :is_enabled, :mapping_to
|
|
53
|
+
def initialize(payload)
|
|
54
|
+
@display_name = payload["display_name"]
|
|
55
|
+
@description = payload["description"]
|
|
56
|
+
@is_enabled = payload["is_enabled"]
|
|
57
|
+
@mapping_to = payload["mapping_to"]
|
|
58
|
+
end
|
|
59
|
+
def to_json(options = {})
|
|
60
|
+
{
|
|
61
|
+
"displayName": @display_name,
|
|
62
|
+
"description": @description,
|
|
63
|
+
"isEnabled": @is_enabled,
|
|
64
|
+
"mappingTo": @mapping_to,
|
|
65
|
+
}.to_json(options)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
class MappingTraitItem
|
|
70
|
+
# @param [field_name]: [String] The name of the field/column in the source. Deprecated in favor of expression.
|
|
71
|
+
# @param [expression]: [String] The expression identifying the field/column in the source.
|
|
72
|
+
# @param [trait_group]: [String] The name of the Trait Group to map to.
|
|
73
|
+
# @param [trait_name]: [String] The name of the trait within the Trait Group to map to.
|
|
74
|
+
attr_accessor :field_name, :expression, :trait_group, :trait_name
|
|
75
|
+
def initialize(payload)
|
|
76
|
+
@field_name = payload["field_name"]
|
|
77
|
+
@expression = payload["expression"]
|
|
78
|
+
@trait_group = payload["trait_group"]
|
|
79
|
+
@trait_name = payload["trait_name"]
|
|
80
|
+
end
|
|
81
|
+
def to_json(options = {})
|
|
82
|
+
{
|
|
83
|
+
"fieldName": @field_name,
|
|
84
|
+
"expression": @expression,
|
|
85
|
+
"traitGroup": @trait_group,
|
|
86
|
+
"traitName": @trait_name,
|
|
87
|
+
}.to_json(options)
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class CreateDataMappingInput
|
|
93
|
+
# @param [display_name]: [String] Name of the data mapping.
|
|
94
|
+
# @param [description]: [String] A human readable description of this resource, up to 512 characters.
|
|
95
|
+
# @param [is_enabled]: [Boolean] Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
|
|
96
|
+
# @param [mapping_to]: [DataMappingList.DataMappingToTraits]
|
|
97
|
+
# @param [mapping_from]: [DataMappingList.DataMappingFromDataSet]
|
|
98
|
+
attr_accessor :display_name, :description, :is_enabled, :mapping_to, :mapping_from
|
|
99
|
+
def initialize(payload)
|
|
100
|
+
@display_name = payload["display_name"]
|
|
101
|
+
@description = payload["description"]
|
|
102
|
+
@is_enabled = payload["is_enabled"]
|
|
103
|
+
@mapping_to = payload["mapping_to"]
|
|
104
|
+
@mapping_from = payload["mapping_from"]
|
|
105
|
+
end
|
|
106
|
+
def to_json(options = {})
|
|
107
|
+
{
|
|
108
|
+
"displayName": @display_name,
|
|
109
|
+
"description": @description,
|
|
110
|
+
"isEnabled": @is_enabled,
|
|
111
|
+
"mappingTo": @mapping_to,
|
|
112
|
+
"mappingFrom": @mapping_from,
|
|
113
|
+
}.to_json(options)
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
class DataMappingCore
|
|
118
|
+
# @param [display_name]: [String] Name of the data mapping.
|
|
119
|
+
# @param [description]: [String] A human readable description of this resource, up to 512 characters.
|
|
120
|
+
# @param [is_enabled]: [Boolean] Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
|
|
121
|
+
# @param [mapping_to]: [DataMappingList.DataMappingToTraits]
|
|
122
|
+
attr_accessor :display_name, :description, :is_enabled, :mapping_to
|
|
123
|
+
def initialize(payload)
|
|
124
|
+
@display_name = payload["display_name"]
|
|
125
|
+
@description = payload["description"]
|
|
126
|
+
@is_enabled = payload["is_enabled"]
|
|
127
|
+
@mapping_to = payload["mapping_to"]
|
|
128
|
+
end
|
|
129
|
+
def to_json(options = {})
|
|
130
|
+
{
|
|
131
|
+
"displayName": @display_name,
|
|
132
|
+
"description": @description,
|
|
133
|
+
"isEnabled": @is_enabled,
|
|
134
|
+
"mappingTo": @mapping_to,
|
|
135
|
+
}.to_json(options)
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
class MappingTraitItem
|
|
140
|
+
# @param [field_name]: [String] The name of the field/column in the source. Deprecated in favor of expression.
|
|
141
|
+
# @param [expression]: [String] The expression identifying the field/column in the source.
|
|
142
|
+
# @param [trait_group]: [String] The name of the Trait Group to map to.
|
|
143
|
+
# @param [trait_name]: [String] The name of the trait within the Trait Group to map to.
|
|
144
|
+
attr_accessor :field_name, :expression, :trait_group, :trait_name
|
|
145
|
+
def initialize(payload)
|
|
146
|
+
@field_name = payload["field_name"]
|
|
147
|
+
@expression = payload["expression"]
|
|
148
|
+
@trait_group = payload["trait_group"]
|
|
149
|
+
@trait_name = payload["trait_name"]
|
|
150
|
+
end
|
|
151
|
+
def to_json(options = {})
|
|
152
|
+
{
|
|
153
|
+
"fieldName": @field_name,
|
|
154
|
+
"expression": @expression,
|
|
155
|
+
"traitGroup": @trait_group,
|
|
156
|
+
"traitName": @trait_name,
|
|
157
|
+
}.to_json(options)
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
##
|
|
163
|
+
# Initialize the DataMappingList
|
|
164
|
+
# @param [Version] version Version that contains the resource
|
|
165
|
+
# @return [DataMappingList] DataMappingList
|
|
166
|
+
def initialize(version, store_id: nil)
|
|
167
|
+
|
|
168
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
169
|
+
super(apiV1Version)
|
|
170
|
+
# Path Solution
|
|
171
|
+
@solution = { store_id: store_id }
|
|
172
|
+
@uri = "/ControlPlane/Stores/#{@solution[:store_id]}/DataMappings"
|
|
173
|
+
|
|
174
|
+
end
|
|
175
|
+
##
|
|
176
|
+
# Create the DataMappingInstance
|
|
177
|
+
# @param [CreateDataMappingInput] create_data_mapping_input
|
|
178
|
+
# @return [DataMappingInstance] Created DataMappingInstance
|
|
179
|
+
def create(create_data_mapping_input: nil
|
|
180
|
+
)
|
|
181
|
+
|
|
182
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
183
|
+
headers['Content-Type'] = 'application/json'
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
payload = @version.create('POST', @uri, headers: headers, data: create_data_mapping_input.to_json)
|
|
189
|
+
DataMappingInstance.new(
|
|
190
|
+
@version,
|
|
191
|
+
payload,
|
|
192
|
+
store_id: @solution[:store_id],
|
|
193
|
+
)
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
##
|
|
197
|
+
# Create the DataMappingInstanceMetadata
|
|
198
|
+
# @param [CreateDataMappingInput] create_data_mapping_input
|
|
199
|
+
# @return [DataMappingInstance] Created DataMappingInstance
|
|
200
|
+
def create_with_metadata(create_data_mapping_input: nil
|
|
201
|
+
)
|
|
202
|
+
|
|
203
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
204
|
+
headers['Content-Type'] = 'application/json'
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
response = @version.create_with_metadata('POST', @uri, headers: headers, data: create_data_mapping_input.to_json)
|
|
210
|
+
data_mapping_instance = DataMappingInstance.new(
|
|
211
|
+
@version,
|
|
212
|
+
response.body,
|
|
213
|
+
store_id: @solution[:store_id],
|
|
214
|
+
)
|
|
215
|
+
DataMappingInstanceMetadata.new(
|
|
216
|
+
@version,
|
|
217
|
+
data_mapping_instance,
|
|
218
|
+
response.headers,
|
|
219
|
+
response.status_code
|
|
220
|
+
)
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
##
|
|
225
|
+
# Lists DataMappingInstance records from the API as a list.
|
|
226
|
+
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
227
|
+
# memory before returning.
|
|
228
|
+
# @param [String] page_token The token for the page of results to retrieve.
|
|
229
|
+
# @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
|
|
230
|
+
# @param [DataMappingType] type Filter data mappings by type.
|
|
231
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
232
|
+
# guarantees to never return more than limit. Default is no limit
|
|
233
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
234
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
235
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
236
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
237
|
+
# @return [Array] Array of up to limit results
|
|
238
|
+
def list(page_token: :unset, order_by: :unset, type: :unset, limit: nil, page_size: nil)
|
|
239
|
+
self.stream(
|
|
240
|
+
page_token: page_token,
|
|
241
|
+
order_by: order_by,
|
|
242
|
+
type: type,
|
|
243
|
+
limit: limit,
|
|
244
|
+
page_size: page_size
|
|
245
|
+
).entries
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
##
|
|
249
|
+
# Streams Instance records from the API as an Enumerable.
|
|
250
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
|
251
|
+
# is reached.
|
|
252
|
+
# @param [String] page_token The token for the page of results to retrieve.
|
|
253
|
+
# @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
|
|
254
|
+
# @param [DataMappingType] type Filter data mappings by type.
|
|
255
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
256
|
+
# guarantees to never return more than limit. Default is no limit
|
|
257
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
258
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
259
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
260
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
261
|
+
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
262
|
+
def stream(page_token: :unset, order_by: :unset, type: :unset, limit: nil, page_size: nil)
|
|
263
|
+
limits = @version.read_limits(limit, page_size)
|
|
264
|
+
|
|
265
|
+
page = self.page(
|
|
266
|
+
page_token: page_token,
|
|
267
|
+
order_by: order_by,
|
|
268
|
+
type: type,
|
|
269
|
+
page_size: limits[:page_size], )
|
|
270
|
+
|
|
271
|
+
return [].each if page.nil?
|
|
272
|
+
|
|
273
|
+
result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
274
|
+
return [].each if result.nil?
|
|
275
|
+
result
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
##
|
|
279
|
+
# Lists DataMappingPageMetadata records from the API as a list.
|
|
280
|
+
# @param [String] page_token The token for the page of results to retrieve.
|
|
281
|
+
# @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
|
|
282
|
+
# @param [DataMappingType] type Filter data mappings by type.
|
|
283
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
284
|
+
# guarantees to never return more than limit. Default is no limit
|
|
285
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
286
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
287
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
288
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
289
|
+
# @return [Array] Array of up to limit results
|
|
290
|
+
def list_with_metadata(page_token: :unset, order_by: :unset, type: :unset, limit: nil, page_size: nil)
|
|
291
|
+
limits = @version.read_limits(limit, page_size)
|
|
292
|
+
params = Twilio::Values.of({
|
|
293
|
+
'pageToken' => page_token,
|
|
294
|
+
'orderBy' => order_by,
|
|
295
|
+
'type' => type,
|
|
296
|
+
|
|
297
|
+
'PageSize' => limits[:page_size],
|
|
298
|
+
});
|
|
299
|
+
headers = Twilio::Values.of({})
|
|
300
|
+
|
|
301
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
302
|
+
|
|
303
|
+
DataMappingPageMetadata.new(@version, response, @solution, limits[:limit])
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
##
|
|
307
|
+
# When passed a block, yields DataMappingInstance records from the API.
|
|
308
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
|
309
|
+
# is reached.
|
|
310
|
+
def each
|
|
311
|
+
limits = @version.read_limits
|
|
312
|
+
|
|
313
|
+
page = self.page(page_size: limits[:page_size], )
|
|
314
|
+
|
|
315
|
+
return [].each if page.nil?
|
|
316
|
+
|
|
317
|
+
result = @version.stream(page,
|
|
318
|
+
limit: limits[:limit],
|
|
319
|
+
page_limit: limits[:page_limit])
|
|
320
|
+
return [].each if result.nil?
|
|
321
|
+
result.each {|x| yield x}
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
##
|
|
325
|
+
# Retrieve a single page of DataMappingInstance records from the API.
|
|
326
|
+
# Request is executed immediately.
|
|
327
|
+
# @param [String] page_token The token for the page of results to retrieve.
|
|
328
|
+
# @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
|
|
329
|
+
# @param [DataMappingType] type Filter data mappings by type.
|
|
330
|
+
|
|
331
|
+
# @return [Page] Page of DataMappingInstance
|
|
332
|
+
def page(page_token: :unset, order_by: :unset, type: :unset, page_size: :unset)
|
|
333
|
+
params = Twilio::Values.of({
|
|
334
|
+
'pageToken' => page_token,
|
|
335
|
+
'orderBy' => order_by,
|
|
336
|
+
'type' => type,
|
|
337
|
+
'PageSize' => page_size,
|
|
338
|
+
})
|
|
339
|
+
headers = Twilio::Values.of({})
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
344
|
+
|
|
345
|
+
DataMappingPage.new(@version, response, @solution)
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
##
|
|
349
|
+
# Retrieve a single page of DataMappingInstance records from the API.
|
|
350
|
+
# Request is executed immediately.
|
|
351
|
+
# @param [String] target_url API-generated URL for the requested results page
|
|
352
|
+
# @return [Page] Page of DataMappingInstance
|
|
353
|
+
def get_page(target_url)
|
|
354
|
+
response = @version.domain.request(
|
|
355
|
+
'GET',
|
|
356
|
+
target_url
|
|
357
|
+
)
|
|
358
|
+
DataMappingPage.new(@version, response, @solution)
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
# Provide a user friendly representation
|
|
364
|
+
def to_s
|
|
365
|
+
'#<Twilio.Memory.V1.DataMappingList>'
|
|
366
|
+
end
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
class DataMappingContext < InstanceContext
|
|
371
|
+
##
|
|
372
|
+
# Initialize the DataMappingContext
|
|
373
|
+
# @param [Version] version Version that contains the resource
|
|
374
|
+
# @param [String] store_id A unique Memory Store ID using Twilio Type ID (TTID) format
|
|
375
|
+
# @param [String] data_mapping_id A unique DataMapping ID using Twilio Type ID (TTID) format
|
|
376
|
+
# @return [DataMappingContext] DataMappingContext
|
|
377
|
+
def initialize(version, store_id, data_mapping_id)
|
|
378
|
+
|
|
379
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
380
|
+
super(apiV1Version)
|
|
381
|
+
|
|
382
|
+
# Path Solution
|
|
383
|
+
@solution = { store_id: store_id, data_mapping_id: data_mapping_id, }
|
|
384
|
+
@uri = "/ControlPlane/Stores/#{@solution[:store_id]}/DataMappings/#{@solution[:data_mapping_id]}"
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
end
|
|
388
|
+
##
|
|
389
|
+
# Delete the DataMappingInstance
|
|
390
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
391
|
+
def delete
|
|
392
|
+
|
|
393
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
398
|
+
DataMappingInstance.new(
|
|
399
|
+
@version,
|
|
400
|
+
response.body,
|
|
401
|
+
store_id: @solution[:store_id],
|
|
402
|
+
data_mapping_id: @solution[:data_mapping_id],
|
|
403
|
+
)
|
|
404
|
+
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
##
|
|
408
|
+
# Delete the DataMappingInstanceMetadata
|
|
409
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
410
|
+
def delete_with_metadata
|
|
411
|
+
|
|
412
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
417
|
+
dataMapping_instance = DataMappingInstance.new(
|
|
418
|
+
@version,
|
|
419
|
+
response.body,
|
|
420
|
+
account_sid: @solution[:account_sid],
|
|
421
|
+
sid: @solution[:sid],
|
|
422
|
+
)
|
|
423
|
+
DataMappingInstanceMetadata.new(@version, dataMapping_instance, response.headers, response.status_code)
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
##
|
|
427
|
+
# Fetch the DataMappingInstance
|
|
428
|
+
# @return [DataMappingInstance] Fetched DataMappingInstance
|
|
429
|
+
def fetch
|
|
430
|
+
|
|
431
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
438
|
+
DataMappingInstance.new(
|
|
439
|
+
@version,
|
|
440
|
+
payload,
|
|
441
|
+
store_id: @solution[:store_id],
|
|
442
|
+
data_mapping_id: @solution[:data_mapping_id],
|
|
443
|
+
)
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
##
|
|
447
|
+
# Fetch the DataMappingInstanceMetadata
|
|
448
|
+
# @return [DataMappingInstance] Fetched DataMappingInstance
|
|
449
|
+
def fetch_with_metadata
|
|
450
|
+
|
|
451
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
458
|
+
data_mapping_instance = DataMappingInstance.new(
|
|
459
|
+
@version,
|
|
460
|
+
response.body,
|
|
461
|
+
store_id: @solution[:store_id],
|
|
462
|
+
data_mapping_id: @solution[:data_mapping_id],
|
|
463
|
+
)
|
|
464
|
+
DataMappingInstanceMetadata.new(
|
|
465
|
+
@version,
|
|
466
|
+
data_mapping_instance,
|
|
467
|
+
response.headers,
|
|
468
|
+
response.status_code
|
|
469
|
+
)
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
##
|
|
473
|
+
# Patch the DataMappingInstance
|
|
474
|
+
# @param [String] if_match Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
|
|
475
|
+
# @param [DataMappingCore] data_mapping_core
|
|
476
|
+
# @return [DataMappingInstance] Patched DataMappingInstance
|
|
477
|
+
def patch(
|
|
478
|
+
if_match: :unset,
|
|
479
|
+
data_mapping_core: :unset
|
|
480
|
+
)
|
|
481
|
+
|
|
482
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
|
483
|
+
headers['Content-Type'] = 'application/json'
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
payload = @version.patch('PATCH', @uri, headers: headers, data: data_mapping_core.to_json)
|
|
489
|
+
DataMappingInstance.new(
|
|
490
|
+
@version,
|
|
491
|
+
payload,
|
|
492
|
+
store_id: @solution[:store_id],
|
|
493
|
+
data_mapping_id: @solution[:data_mapping_id],
|
|
494
|
+
)
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
##
|
|
498
|
+
# Patch the DataMappingInstanceMetadata
|
|
499
|
+
# @param [String] if_match Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
|
|
500
|
+
# @param [DataMappingCore] data_mapping_core
|
|
501
|
+
# @return [DataMappingInstance] Patchd DataMappingInstance
|
|
502
|
+
def patch_with_metadata(
|
|
503
|
+
if_match: :unset,
|
|
504
|
+
data_mapping_core: :unset
|
|
505
|
+
)
|
|
506
|
+
|
|
507
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
|
508
|
+
headers['Content-Type'] = 'application/json'
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
response = @version.patch_with_metadata('PATCH', @uri, headers: headers, data: data_mapping_core.to_json)
|
|
514
|
+
data_mapping_instance = DataMappingInstance.new(
|
|
515
|
+
@version,
|
|
516
|
+
response.body,
|
|
517
|
+
store_id: @solution[:store_id],
|
|
518
|
+
data_mapping_id: @solution[:data_mapping_id],
|
|
519
|
+
)
|
|
520
|
+
DataMappingInstanceMetadata.new(
|
|
521
|
+
@version,
|
|
522
|
+
data_mapping_instance,
|
|
523
|
+
response.headers,
|
|
524
|
+
response.status_code
|
|
525
|
+
)
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
##
|
|
530
|
+
# Provide a user friendly representation
|
|
531
|
+
def to_s
|
|
532
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
533
|
+
"#<Twilio.Memory.V1.DataMappingContext #{context}>"
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
##
|
|
537
|
+
# Provide a detailed, user friendly representation
|
|
538
|
+
def inspect
|
|
539
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
540
|
+
"#<Twilio.Memory.V1.DataMappingContext #{context}>"
|
|
541
|
+
end
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
class DataMappingInstanceMetadata < InstanceResourceMetadata
|
|
545
|
+
##
|
|
546
|
+
# Initializes a new DataMappingInstanceMetadata.
|
|
547
|
+
# @param [Version] version Version that contains the resource
|
|
548
|
+
# @param [}DataMappingInstance] data_mapping_instance The instance associated with the metadata.
|
|
549
|
+
# @param [Hash] headers Header object with response headers.
|
|
550
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
551
|
+
# @return [DataMappingInstanceMetadata] The initialized instance with metadata.
|
|
552
|
+
def initialize(version, data_mapping_instance, headers, status_code)
|
|
553
|
+
super(version, headers, status_code)
|
|
554
|
+
@data_mapping_instance = data_mapping_instance
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
def data_mapping
|
|
558
|
+
@data_mapping_instance
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
def headers
|
|
562
|
+
@headers
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
def status_code
|
|
566
|
+
@status_code
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
def to_s
|
|
570
|
+
"<Twilio.Api.V2010.DataMappingInstanceMetadata status=#{@status_code}>"
|
|
571
|
+
end
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
class DataMappingListResponse < InstanceListResource
|
|
575
|
+
# @param [Array<DataMappingInstance>] instance
|
|
576
|
+
# @param [Hash{String => Object}] headers
|
|
577
|
+
# @param [Integer] status_code
|
|
578
|
+
def initialize(version, payload, key)
|
|
579
|
+
@data_mapping_instance = payload.body[key].map do |data|
|
|
580
|
+
DataMappingInstance.new(version, data)
|
|
581
|
+
end
|
|
582
|
+
@headers = payload.headers
|
|
583
|
+
@status_code = payload.status_code
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
def data_mapping_instance
|
|
587
|
+
@instance
|
|
588
|
+
end
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
class DataMappingPage < TokenPage
|
|
592
|
+
##
|
|
593
|
+
# Initialize the DataMappingPage
|
|
594
|
+
# @param [Version] version Version that contains the resource
|
|
595
|
+
# @param [Response] response Response from the API
|
|
596
|
+
# @param [Hash] solution Path solution for the resource
|
|
597
|
+
# @return [DataMappingPage] DataMappingPage
|
|
598
|
+
def initialize(version, response, solution)
|
|
599
|
+
|
|
600
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
601
|
+
super(apiV1Version, response)
|
|
602
|
+
|
|
603
|
+
# Path Solution
|
|
604
|
+
@solution = solution
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
##
|
|
608
|
+
# Build an instance of DataMappingInstance
|
|
609
|
+
# @param [Hash] payload Payload response from the API
|
|
610
|
+
# @return [DataMappingInstance] DataMappingInstance
|
|
611
|
+
def get_instance(payload)
|
|
612
|
+
DataMappingInstance.new(@version, payload, store_id: @solution[:store_id])
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
##
|
|
616
|
+
# Provide a user friendly representation
|
|
617
|
+
def to_s
|
|
618
|
+
'<Twilio.Memory.V1.DataMappingPage>'
|
|
619
|
+
end
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
class DataMappingPageMetadata < PageMetadata
|
|
623
|
+
attr_reader :data_mapping_page
|
|
624
|
+
|
|
625
|
+
def initialize(version, response, solution, limit)
|
|
626
|
+
super(version, response)
|
|
627
|
+
@data_mapping_page = []
|
|
628
|
+
@limit = limit
|
|
629
|
+
key = get_key(response.body)
|
|
630
|
+
records = 0
|
|
631
|
+
while( limit != :unset && records < limit )
|
|
632
|
+
@data_mapping_page << DataMappingListResponse.new(version, @payload, key, limit - records)
|
|
633
|
+
@payload = self.next_page
|
|
634
|
+
break unless @payload
|
|
635
|
+
records += (@payload.body[key] || []).size
|
|
636
|
+
end
|
|
637
|
+
# Path Solution
|
|
638
|
+
@solution = solution
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
def each
|
|
642
|
+
@data_mapping_page.each do |record|
|
|
643
|
+
yield record
|
|
644
|
+
end
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
def to_s
|
|
648
|
+
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
649
|
+
end
|
|
650
|
+
end
|
|
651
|
+
class DataMappingListResponse < InstanceListResource
|
|
652
|
+
|
|
653
|
+
# @param [Array<DataMappingInstance>] instance
|
|
654
|
+
# @param [Hash{String => Object}] headers
|
|
655
|
+
# @param [Integer] status_code
|
|
656
|
+
def initialize(version, payload, key, limit = :unset)
|
|
657
|
+
data_list = payload.body[key] || []
|
|
658
|
+
if limit != :unset
|
|
659
|
+
data_list = data_list[0, limit]
|
|
660
|
+
end
|
|
661
|
+
@data_mapping = data_list.map do |data|
|
|
662
|
+
DataMappingInstance.new(version, data)
|
|
663
|
+
end
|
|
664
|
+
@headers = payload.headers
|
|
665
|
+
@status_code = payload.status_code
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
def data_mapping
|
|
669
|
+
@data_mapping
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
def headers
|
|
673
|
+
@headers
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
def status_code
|
|
677
|
+
@status_code
|
|
678
|
+
end
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
class DataMappingInstance < InstanceResource
|
|
682
|
+
##
|
|
683
|
+
# Initialize the DataMappingInstance
|
|
684
|
+
# @param [Version] version Version that contains the resource
|
|
685
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
686
|
+
# @param [String] account_sid The SID of the
|
|
687
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this DataMapping
|
|
688
|
+
# resource.
|
|
689
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
690
|
+
# @return [DataMappingInstance] DataMappingInstance
|
|
691
|
+
def initialize(version, payload , store_id: nil, data_mapping_id: nil)
|
|
692
|
+
|
|
693
|
+
apiV1Version = ApiV1Version.new version.domain, version
|
|
694
|
+
super(apiV1Version)
|
|
695
|
+
|
|
696
|
+
# Marshaled Properties
|
|
697
|
+
@properties = {
|
|
698
|
+
'message' => payload['message'],
|
|
699
|
+
'status_url' => payload['status_url'],
|
|
700
|
+
'display_name' => payload['display_name'],
|
|
701
|
+
'description' => payload['description'],
|
|
702
|
+
'is_enabled' => payload['is_enabled'],
|
|
703
|
+
'mapping_to' => payload['mapping_to'],
|
|
704
|
+
'mapping_from' => payload['mapping_from'],
|
|
705
|
+
'id' => payload['id'],
|
|
706
|
+
'created_at' => Twilio.deserialize_iso8601_datetime(payload['created_at']),
|
|
707
|
+
'updated_at' => Twilio.deserialize_iso8601_datetime(payload['updated_at']),
|
|
708
|
+
'version' => payload['version'] == nil ? payload['version'] : payload['version'].to_i,
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
# Context
|
|
712
|
+
@instance_context = nil
|
|
713
|
+
@params = { 'store_id' => store_id || @properties['store_id'] ,'data_mapping_id' => data_mapping_id || @properties['data_mapping_id'] , }
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
##
|
|
717
|
+
# Generate an instance context for the instance, the context is capable of
|
|
718
|
+
# performing various actions. All instance actions are proxied to the context
|
|
719
|
+
# @return [DataMappingContext] CallContext for this CallInstance
|
|
720
|
+
def context
|
|
721
|
+
unless @instance_context
|
|
722
|
+
@instance_context = DataMappingContext.new(@version , @params['store_id'], @params['data_mapping_id'])
|
|
723
|
+
end
|
|
724
|
+
@instance_context
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
##
|
|
728
|
+
# @return [String]
|
|
729
|
+
def message
|
|
730
|
+
@properties['message']
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
##
|
|
734
|
+
# @return [String] URI to check operation status.
|
|
735
|
+
def status_url
|
|
736
|
+
@properties['status_url']
|
|
737
|
+
end
|
|
738
|
+
|
|
739
|
+
##
|
|
740
|
+
# @return [String] Name of the data mapping.
|
|
741
|
+
def display_name
|
|
742
|
+
@properties['display_name']
|
|
743
|
+
end
|
|
744
|
+
|
|
745
|
+
##
|
|
746
|
+
# @return [String] A human readable description of this resource, up to 512 characters.
|
|
747
|
+
def description
|
|
748
|
+
@properties['description']
|
|
749
|
+
end
|
|
750
|
+
|
|
751
|
+
##
|
|
752
|
+
# @return [Boolean] Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
|
|
753
|
+
def is_enabled
|
|
754
|
+
@properties['is_enabled']
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
##
|
|
758
|
+
# @return [DataMappingToTraits]
|
|
759
|
+
def mapping_to
|
|
760
|
+
@properties['mapping_to']
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
##
|
|
764
|
+
# @return [DataMappingFromDataSet]
|
|
765
|
+
def mapping_from
|
|
766
|
+
@properties['mapping_from']
|
|
767
|
+
end
|
|
768
|
+
|
|
769
|
+
##
|
|
770
|
+
# @return [String] The unique identifier for the data mapping.
|
|
771
|
+
def id
|
|
772
|
+
@properties['id']
|
|
773
|
+
end
|
|
774
|
+
|
|
775
|
+
##
|
|
776
|
+
# @return [Time] The ISO 8601 timestamp when the data mapping was created.
|
|
777
|
+
def created_at
|
|
778
|
+
@properties['created_at']
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
##
|
|
782
|
+
# @return [Time] The ISO 8601 timestamp when the data mapping was last updated.
|
|
783
|
+
def updated_at
|
|
784
|
+
@properties['updated_at']
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
##
|
|
788
|
+
# @return [String] The current version number of the DataMapping. Incremented on each successful update.
|
|
789
|
+
def version
|
|
790
|
+
@properties['version']
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
##
|
|
794
|
+
# Delete the DataMappingInstance
|
|
795
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
796
|
+
def delete
|
|
797
|
+
|
|
798
|
+
context.delete
|
|
799
|
+
end
|
|
800
|
+
|
|
801
|
+
##
|
|
802
|
+
# Fetch the DataMappingInstance
|
|
803
|
+
# @return [DataMappingInstance] Fetched DataMappingInstance
|
|
804
|
+
def fetch
|
|
805
|
+
|
|
806
|
+
context.fetch
|
|
807
|
+
end
|
|
808
|
+
|
|
809
|
+
##
|
|
810
|
+
# Patch the DataMappingInstance
|
|
811
|
+
# @param [String] if_match Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
|
|
812
|
+
# @param [DataMappingCore] data_mapping_core
|
|
813
|
+
# @return [DataMappingInstance] Patched DataMappingInstance
|
|
814
|
+
def patch(
|
|
815
|
+
if_match: :unset,
|
|
816
|
+
data_mapping_core: :unset
|
|
817
|
+
)
|
|
818
|
+
|
|
819
|
+
context.patch(
|
|
820
|
+
if_match: if_match,
|
|
821
|
+
data_mapping_core: data_mapping_core,
|
|
822
|
+
)
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
##
|
|
826
|
+
# Provide a user friendly representation
|
|
827
|
+
def to_s
|
|
828
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
829
|
+
"<Twilio.Memory.V1.DataMappingInstance #{values}>"
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
##
|
|
833
|
+
# Provide a detailed, user friendly representation
|
|
834
|
+
def inspect
|
|
835
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
836
|
+
"<Twilio.Memory.V1.DataMappingInstance #{values}>"
|
|
837
|
+
end
|
|
838
|
+
end
|
|
839
|
+
|
|
840
|
+
end
|
|
841
|
+
end
|
|
842
|
+
end
|
|
843
|
+
end
|