twilio-ruby 7.9.1 → 7.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +81 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/framework/rest/page_metadata.rb +83 -0
- data/lib/twilio-ruby/framework/rest/resource.rb +16 -0
- data/lib/twilio-ruby/framework/rest/version.rb +70 -1
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +135 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +94 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +94 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +248 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +248 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +63 -0
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +124 -0
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +150 -0
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +155 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +86 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +304 -1
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +337 -1
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +160 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +122 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +122 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +122 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +122 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +122 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +122 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +122 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +160 -1
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +88 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +86 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +169 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +232 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +272 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +784 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +784 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +225 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +99 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +170 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +394 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +434 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +224 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +215 -1
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +234 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +162 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +214 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +192 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +192 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +192 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +388 -1
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +213 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +96 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +187 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +327 -1
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +95 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +95 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +168 -1
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +217 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +198 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +251 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +139 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +182 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +181 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +181 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +198 -1
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +212 -1
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +213 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +251 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +245 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +214 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +214 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +63 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +214 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +63 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +63 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +214 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +214 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +317 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +260 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +245 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +63 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +95 -0
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +180 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +94 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +94 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +94 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +94 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +94 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +94 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +94 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +94 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +94 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +275 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +63 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +110 -0
- data/lib/twilio-ruby/rest/api/v2010/account.rb +229 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +180 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +180 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +113 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +90 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +232 -1
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +86 -1
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +136 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +234 -1
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +90 -1
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +86 -1
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +159 -1
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +234 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +160 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +133 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +156 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +136 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +174 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +275 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +220 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +257 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +259 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +263 -1
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +251 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +86 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +260 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +401 -1
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +275 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +186 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +220 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +291 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +290 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +281 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +288 -1
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +251 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +184 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +224 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +264 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +332 -1
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +149 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +90 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +136 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +232 -1
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +86 -1
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +86 -1
- data/lib/twilio-ruby/rest/content/v2/content.rb +107 -1
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +107 -1
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +301 -1
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +178 -0
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +175 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +161 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +293 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +297 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +275 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +315 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +129 -0
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +278 -1
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +90 -1
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +248 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +186 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +204 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +177 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +177 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +162 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +296 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +300 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +278 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +318 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +130 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +90 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +251 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +221 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +267 -1
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +210 -1
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +219 -1
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +264 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +161 -1
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +160 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +136 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +88 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +95 -0
- data/lib/twilio-ruby/rest/events/v1/sink.rb +252 -1
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +248 -1
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +250 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +238 -1
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +237 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +167 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +340 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +140 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +90 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +274 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +226 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +253 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +93 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +138 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +90 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +90 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +138 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +119 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +207 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +195 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +196 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +208 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +214 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +240 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +139 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +165 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +203 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +139 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +197 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +140 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +135 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +260 -1
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +176 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +108 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +177 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +191 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +88 -1
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +103 -0
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +184 -0
- data/lib/twilio-ruby/rest/iam/v1/token.rb +115 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +186 -0
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +142 -0
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +88 -1
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +90 -1
- data/lib/twilio-ruby/rest/insights/v1/call.rb +136 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +158 -1
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +175 -1
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +179 -1
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +160 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +171 -1
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +178 -0
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +257 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +163 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +157 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +136 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +159 -1
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +163 -1
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +295 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +142 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +142 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +142 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +168 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +90 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +235 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +275 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +220 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +257 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +259 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +263 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +251 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +86 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +260 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +401 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +275 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +186 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +220 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +291 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +290 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +281 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +288 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +251 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +184 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +221 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +264 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +332 -1
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +86 -1
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +136 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +234 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +151 -0
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +185 -0
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +213 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +184 -0
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +89 -0
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +93 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +160 -1
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +159 -1
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +193 -1
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +90 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +254 -1
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +121 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +186 -0
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +89 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +88 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +197 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +227 -1
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +141 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +188 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +177 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +136 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +136 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +100 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +157 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +136 -0
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +136 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +212 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +212 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +217 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +212 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +212 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +308 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +94 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +332 -1
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +463 -1
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +87 -0
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +234 -1
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +136 -0
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +97 -0
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +165 -1
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +171 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +275 -1
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +240 -1
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +146 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +322 -1
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +162 -0
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +89 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +98 -1
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +182 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +157 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +145 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +89 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +131 -0
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +116 -1
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +87 -0
- data/lib/twilio-ruby/rest/numbers/v2/application.rb +185 -1
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +94 -1
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +229 -1
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +168 -0
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +149 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +303 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +118 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +185 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +212 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +95 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +294 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +251 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +159 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +173 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +251 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +159 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +63 -0
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +142 -0
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +105 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +115 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +120 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +96 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +259 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +327 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +160 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +159 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +193 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +254 -1
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +216 -1
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +272 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +145 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +246 -1
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +105 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +115 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +160 -1
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +185 -1
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +239 -1
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +136 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +159 -1
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +63 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +159 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +63 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +159 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +136 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +63 -0
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +159 -1
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +142 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +159 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +142 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +63 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +251 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +181 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +199 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +223 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +266 -1
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +284 -1
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +171 -0
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +171 -0
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +171 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +161 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +245 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +137 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +221 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +197 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +167 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +254 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +215 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +138 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +161 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +245 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +257 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +137 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +138 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +161 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +218 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +137 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +138 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +161 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +255 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +179 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +137 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +138 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +161 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +255 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +160 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +168 -0
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +260 -1
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +103 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +205 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +266 -1
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +213 -1
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +165 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +212 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +225 -1
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +90 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +86 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +86 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +246 -1
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +205 -1
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +102 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +221 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +256 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +277 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +221 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +254 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +280 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +221 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +254 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +96 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +248 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +278 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +252 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +182 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +360 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +310 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +254 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +90 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +155 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +143 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +155 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +98 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +283 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +352 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +198 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +152 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +151 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +142 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +160 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +281 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +155 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +143 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +155 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +274 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +154 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +142 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +154 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +277 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +212 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +212 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +269 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +212 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +171 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +284 -1
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +183 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +291 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +212 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +219 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +214 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +192 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +266 -1
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +251 -1
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +159 -1
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +159 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +251 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +159 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +219 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +214 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +192 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +266 -1
- data/lib/twilio-ruby/rest/verify/v2/form.rb +136 -0
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +187 -0
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +178 -0
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +90 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +97 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +252 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +239 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +135 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +212 -1
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +248 -1
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +138 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +90 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +90 -0
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +254 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +248 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +253 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +110 -0
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +269 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +392 -1
- data/lib/twilio-ruby/rest/verify/v2/template.rb +88 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +175 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +156 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +242 -1
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +304 -1
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +181 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +192 -1
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +181 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +137 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +161 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +122 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +161 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +201 -1
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +120 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +188 -1
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +232 -1
- data/lib/twilio-ruby/rest/video/v1/room.rb +278 -1
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +131 -0
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +296 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +269 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +242 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +94 -0
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +86 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +171 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +166 -0
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +63 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +248 -1
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +245 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +236 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +278 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +86 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +92 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +272 -1
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +92 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +71 -4
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -2
|
@@ -25,6 +25,7 @@ module Twilio
|
|
|
25
25
|
# @return [InsightsQuestionnairesCategoryList] InsightsQuestionnairesCategoryList
|
|
26
26
|
def initialize(version)
|
|
27
27
|
super(version)
|
|
28
|
+
|
|
28
29
|
# Path Solution
|
|
29
30
|
@solution = { }
|
|
30
31
|
@uri = "/Insights/QualityManagement/Categories"
|
|
@@ -57,6 +58,39 @@ module Twilio
|
|
|
57
58
|
)
|
|
58
59
|
end
|
|
59
60
|
|
|
61
|
+
##
|
|
62
|
+
# Create the InsightsQuestionnairesCategoryInstanceMetadata
|
|
63
|
+
# @param [String] name The name of this category.
|
|
64
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
65
|
+
# @return [InsightsQuestionnairesCategoryInstance] Created InsightsQuestionnairesCategoryInstance
|
|
66
|
+
def create_with_metadata(
|
|
67
|
+
name: nil,
|
|
68
|
+
authorization: :unset
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
data = Twilio::Values.of({
|
|
72
|
+
'Name' => name,
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, })
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
|
|
82
|
+
insights_questionnaires_category_instance = InsightsQuestionnairesCategoryInstance.new(
|
|
83
|
+
@version,
|
|
84
|
+
response.body,
|
|
85
|
+
)
|
|
86
|
+
InsightsQuestionnairesCategoryInstanceMetadata.new(
|
|
87
|
+
@version,
|
|
88
|
+
insights_questionnaires_category_instance,
|
|
89
|
+
response.headers,
|
|
90
|
+
response.status_code
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
|
|
60
94
|
|
|
61
95
|
##
|
|
62
96
|
# Lists InsightsQuestionnairesCategoryInstance records from the API as a list.
|
|
@@ -100,6 +134,30 @@ module Twilio
|
|
|
100
134
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
101
135
|
end
|
|
102
136
|
|
|
137
|
+
##
|
|
138
|
+
# Lists InsightsQuestionnairesCategoryPageMetadata records from the API as a list.
|
|
139
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
140
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
141
|
+
# guarantees to never return more than limit. Default is no limit
|
|
142
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
143
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
144
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
145
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
146
|
+
# @return [Array] Array of up to limit results
|
|
147
|
+
def list_with_metadata(authorization: :unset, limit: nil, page_size: nil)
|
|
148
|
+
limits = @version.read_limits(limit, page_size)
|
|
149
|
+
params = Twilio::Values.of({
|
|
150
|
+
'Authorization' => authorization,
|
|
151
|
+
|
|
152
|
+
'PageSize' => limits[:page_size],
|
|
153
|
+
});
|
|
154
|
+
headers = Twilio::Values.of({})
|
|
155
|
+
|
|
156
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
157
|
+
|
|
158
|
+
InsightsQuestionnairesCategoryPageMetadata.new(@version, response, @solution, limits[:limit])
|
|
159
|
+
end
|
|
160
|
+
|
|
103
161
|
##
|
|
104
162
|
# When passed a block, yields InsightsQuestionnairesCategoryInstance records from the API.
|
|
105
163
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
@@ -122,7 +180,7 @@ module Twilio
|
|
|
122
180
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
123
181
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
124
182
|
# @return [Page] Page of InsightsQuestionnairesCategoryInstance
|
|
125
|
-
def page(authorization: :unset, page_token: :unset, page_number: :unset,
|
|
183
|
+
def page(authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
126
184
|
params = Twilio::Values.of({
|
|
127
185
|
'Authorization' => authorization,
|
|
128
186
|
'PageToken' => page_token,
|
|
@@ -168,6 +226,7 @@ module Twilio
|
|
|
168
226
|
# @return [InsightsQuestionnairesCategoryContext] InsightsQuestionnairesCategoryContext
|
|
169
227
|
def initialize(version, category_sid)
|
|
170
228
|
super(version)
|
|
229
|
+
|
|
171
230
|
|
|
172
231
|
# Path Solution
|
|
173
232
|
@solution = { category_sid: category_sid, }
|
|
@@ -187,9 +246,32 @@ module Twilio
|
|
|
187
246
|
|
|
188
247
|
|
|
189
248
|
|
|
249
|
+
|
|
190
250
|
@version.delete('DELETE', @uri, headers: headers)
|
|
191
251
|
end
|
|
192
252
|
|
|
253
|
+
##
|
|
254
|
+
# Delete the InsightsQuestionnairesCategoryInstanceMetadata
|
|
255
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
256
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
257
|
+
def delete_with_metadata(
|
|
258
|
+
authorization: :unset
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, })
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
266
|
+
insightsQuestionnairesCategory_instance = InsightsQuestionnairesCategoryInstance.new(
|
|
267
|
+
@version,
|
|
268
|
+
response.body,
|
|
269
|
+
account_sid: @solution[:account_sid],
|
|
270
|
+
sid: @solution[:sid],
|
|
271
|
+
)
|
|
272
|
+
InsightsQuestionnairesCategoryInstanceMetadata.new(@version, insightsQuestionnairesCategory_instance, response.headers, response.status_code)
|
|
273
|
+
end
|
|
274
|
+
|
|
193
275
|
##
|
|
194
276
|
# Update the InsightsQuestionnairesCategoryInstance
|
|
195
277
|
# @param [String] name The name of this category.
|
|
@@ -218,6 +300,40 @@ module Twilio
|
|
|
218
300
|
)
|
|
219
301
|
end
|
|
220
302
|
|
|
303
|
+
##
|
|
304
|
+
# Update the InsightsQuestionnairesCategoryInstanceMetadata
|
|
305
|
+
# @param [String] name The name of this category.
|
|
306
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
307
|
+
# @return [InsightsQuestionnairesCategoryInstance] Updated InsightsQuestionnairesCategoryInstance
|
|
308
|
+
def update_with_metadata(
|
|
309
|
+
name: nil,
|
|
310
|
+
authorization: :unset
|
|
311
|
+
)
|
|
312
|
+
|
|
313
|
+
data = Twilio::Values.of({
|
|
314
|
+
'Name' => name,
|
|
315
|
+
})
|
|
316
|
+
|
|
317
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, })
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
|
|
324
|
+
insights_questionnaires_category_instance = InsightsQuestionnairesCategoryInstance.new(
|
|
325
|
+
@version,
|
|
326
|
+
response.body,
|
|
327
|
+
category_sid: @solution[:category_sid],
|
|
328
|
+
)
|
|
329
|
+
InsightsQuestionnairesCategoryInstanceMetadata.new(
|
|
330
|
+
@version,
|
|
331
|
+
insights_questionnaires_category_instance,
|
|
332
|
+
response.headers,
|
|
333
|
+
response.status_code
|
|
334
|
+
)
|
|
335
|
+
end
|
|
336
|
+
|
|
221
337
|
|
|
222
338
|
##
|
|
223
339
|
# Provide a user friendly representation
|
|
@@ -234,6 +350,53 @@ module Twilio
|
|
|
234
350
|
end
|
|
235
351
|
end
|
|
236
352
|
|
|
353
|
+
class InsightsQuestionnairesCategoryInstanceMetadata < InstanceResourceMetadata
|
|
354
|
+
##
|
|
355
|
+
# Initializes a new InsightsQuestionnairesCategoryInstanceMetadata.
|
|
356
|
+
# @param [Version] version Version that contains the resource
|
|
357
|
+
# @param [}InsightsQuestionnairesCategoryInstance] insights_questionnaires_category_instance The instance associated with the metadata.
|
|
358
|
+
# @param [Hash] headers Header object with response headers.
|
|
359
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
360
|
+
# @return [InsightsQuestionnairesCategoryInstanceMetadata] The initialized instance with metadata.
|
|
361
|
+
def initialize(version, insights_questionnaires_category_instance, headers, status_code)
|
|
362
|
+
super(version, headers, status_code)
|
|
363
|
+
@insights_questionnaires_category_instance = insights_questionnaires_category_instance
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
def insights_questionnaires_category
|
|
367
|
+
@insights_questionnaires_category_instance
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
def headers
|
|
371
|
+
@headers
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
def status_code
|
|
375
|
+
@status_code
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
def to_s
|
|
379
|
+
"<Twilio.Api.V2010.InsightsQuestionnairesCategoryInstanceMetadata status=#{@status_code}>"
|
|
380
|
+
end
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
class InsightsQuestionnairesCategoryListResponse < InstanceListResource
|
|
384
|
+
# @param [Array<InsightsQuestionnairesCategoryInstance>] instance
|
|
385
|
+
# @param [Hash{String => Object}] headers
|
|
386
|
+
# @param [Integer] status_code
|
|
387
|
+
def initialize(version, payload, key)
|
|
388
|
+
@insights_questionnaires_category_instance = payload.body[key].map do |data|
|
|
389
|
+
InsightsQuestionnairesCategoryInstance.new(version, data)
|
|
390
|
+
end
|
|
391
|
+
@headers = payload.headers
|
|
392
|
+
@status_code = payload.status_code
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
def insights_questionnaires_category_instance
|
|
396
|
+
@instance
|
|
397
|
+
end
|
|
398
|
+
end
|
|
399
|
+
|
|
237
400
|
class InsightsQuestionnairesCategoryPage < Page
|
|
238
401
|
##
|
|
239
402
|
# Initialize the InsightsQuestionnairesCategoryPage
|
|
@@ -243,6 +406,7 @@ module Twilio
|
|
|
243
406
|
# @return [InsightsQuestionnairesCategoryPage] InsightsQuestionnairesCategoryPage
|
|
244
407
|
def initialize(version, response, solution)
|
|
245
408
|
super(version, response)
|
|
409
|
+
|
|
246
410
|
|
|
247
411
|
# Path Solution
|
|
248
412
|
@solution = solution
|
|
@@ -262,6 +426,66 @@ module Twilio
|
|
|
262
426
|
'<Twilio.FlexApi.V1.InsightsQuestionnairesCategoryPage>'
|
|
263
427
|
end
|
|
264
428
|
end
|
|
429
|
+
|
|
430
|
+
class InsightsQuestionnairesCategoryPageMetadata < PageMetadata
|
|
431
|
+
attr_reader :insights_questionnaires_category_page
|
|
432
|
+
|
|
433
|
+
def initialize(version, response, solution, limit)
|
|
434
|
+
super(version, response)
|
|
435
|
+
@insights_questionnaires_category_page = []
|
|
436
|
+
@limit = limit
|
|
437
|
+
key = get_key(response.body)
|
|
438
|
+
records = 0
|
|
439
|
+
while( limit != :unset && records < limit )
|
|
440
|
+
@insights_questionnaires_category_page << InsightsQuestionnairesCategoryListResponse.new(version, @payload, key, limit - records)
|
|
441
|
+
@payload = self.next_page
|
|
442
|
+
break unless @payload
|
|
443
|
+
records += @payload.body[key].size
|
|
444
|
+
end
|
|
445
|
+
# Path Solution
|
|
446
|
+
@solution = solution
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
def each
|
|
450
|
+
@insights_questionnaires_category_page.each do |record|
|
|
451
|
+
yield record
|
|
452
|
+
end
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
def to_s
|
|
456
|
+
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
457
|
+
end
|
|
458
|
+
end
|
|
459
|
+
class InsightsQuestionnairesCategoryListResponse < InstanceListResource
|
|
460
|
+
|
|
461
|
+
# @param [Array<InsightsQuestionnairesCategoryInstance>] instance
|
|
462
|
+
# @param [Hash{String => Object}] headers
|
|
463
|
+
# @param [Integer] status_code
|
|
464
|
+
def initialize(version, payload, key, limit = :unset)
|
|
465
|
+
data_list = payload.body[key]
|
|
466
|
+
if limit != :unset
|
|
467
|
+
data_list = data_list[0, limit]
|
|
468
|
+
end
|
|
469
|
+
@insights_questionnaires_category = data_list.map do |data|
|
|
470
|
+
InsightsQuestionnairesCategoryInstance.new(version, data)
|
|
471
|
+
end
|
|
472
|
+
@headers = payload.headers
|
|
473
|
+
@status_code = payload.status_code
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
def insights_questionnaires_category
|
|
477
|
+
@insights_questionnaires_category
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
def headers
|
|
481
|
+
@headers
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
def status_code
|
|
485
|
+
@status_code
|
|
486
|
+
end
|
|
487
|
+
end
|
|
488
|
+
|
|
265
489
|
class InsightsQuestionnairesCategoryInstance < InstanceResource
|
|
266
490
|
##
|
|
267
491
|
# Initialize the InsightsQuestionnairesCategoryInstance
|
|
@@ -275,6 +499,7 @@ module Twilio
|
|
|
275
499
|
def initialize(version, payload , category_sid: nil)
|
|
276
500
|
super(version)
|
|
277
501
|
|
|
502
|
+
|
|
278
503
|
# Marshaled Properties
|
|
279
504
|
@properties = {
|
|
280
505
|
'account_sid' => payload['account_sid'],
|
|
@@ -25,6 +25,7 @@ module Twilio
|
|
|
25
25
|
# @return [InsightsQuestionnairesQuestionList] InsightsQuestionnairesQuestionList
|
|
26
26
|
def initialize(version)
|
|
27
27
|
super(version)
|
|
28
|
+
|
|
28
29
|
# Path Solution
|
|
29
30
|
@solution = { }
|
|
30
31
|
@uri = "/Insights/QualityManagement/Questions"
|
|
@@ -69,6 +70,51 @@ module Twilio
|
|
|
69
70
|
)
|
|
70
71
|
end
|
|
71
72
|
|
|
73
|
+
##
|
|
74
|
+
# Create the InsightsQuestionnairesQuestionInstanceMetadata
|
|
75
|
+
# @param [String] category_sid The SID of the category
|
|
76
|
+
# @param [String] question The question.
|
|
77
|
+
# @param [String] answer_set_id The answer_set for the question.
|
|
78
|
+
# @param [Boolean] allow_na The flag to enable for disable NA for answer.
|
|
79
|
+
# @param [String] description The description for the question.
|
|
80
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
81
|
+
# @return [InsightsQuestionnairesQuestionInstance] Created InsightsQuestionnairesQuestionInstance
|
|
82
|
+
def create_with_metadata(
|
|
83
|
+
category_sid: nil,
|
|
84
|
+
question: nil,
|
|
85
|
+
answer_set_id: nil,
|
|
86
|
+
allow_na: nil,
|
|
87
|
+
description: :unset,
|
|
88
|
+
authorization: :unset
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
data = Twilio::Values.of({
|
|
92
|
+
'CategorySid' => category_sid,
|
|
93
|
+
'Question' => question,
|
|
94
|
+
'AnswerSetId' => answer_set_id,
|
|
95
|
+
'AllowNa' => allow_na,
|
|
96
|
+
'Description' => description,
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, })
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
|
|
106
|
+
insights_questionnaires_question_instance = InsightsQuestionnairesQuestionInstance.new(
|
|
107
|
+
@version,
|
|
108
|
+
response.body,
|
|
109
|
+
)
|
|
110
|
+
InsightsQuestionnairesQuestionInstanceMetadata.new(
|
|
111
|
+
@version,
|
|
112
|
+
insights_questionnaires_question_instance,
|
|
113
|
+
response.headers,
|
|
114
|
+
response.status_code
|
|
115
|
+
)
|
|
116
|
+
end
|
|
117
|
+
|
|
72
118
|
|
|
73
119
|
##
|
|
74
120
|
# Lists InsightsQuestionnairesQuestionInstance records from the API as a list.
|
|
@@ -116,6 +162,33 @@ module Twilio
|
|
|
116
162
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
117
163
|
end
|
|
118
164
|
|
|
165
|
+
##
|
|
166
|
+
# Lists InsightsQuestionnairesQuestionPageMetadata records from the API as a list.
|
|
167
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
168
|
+
# @param [Array[String]] category_sid The list of category SIDs
|
|
169
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
170
|
+
# guarantees to never return more than limit. Default is no limit
|
|
171
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
172
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
173
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
174
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
175
|
+
# @return [Array] Array of up to limit results
|
|
176
|
+
def list_with_metadata(authorization: :unset, category_sid: :unset, limit: nil, page_size: nil)
|
|
177
|
+
limits = @version.read_limits(limit, page_size)
|
|
178
|
+
params = Twilio::Values.of({
|
|
179
|
+
'Authorization' => authorization,
|
|
180
|
+
|
|
181
|
+
'CategorySid' => Twilio.serialize_list(category_sid) { |e| e },
|
|
182
|
+
|
|
183
|
+
'PageSize' => limits[:page_size],
|
|
184
|
+
});
|
|
185
|
+
headers = Twilio::Values.of({})
|
|
186
|
+
|
|
187
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
188
|
+
|
|
189
|
+
InsightsQuestionnairesQuestionPageMetadata.new(@version, response, @solution, limits[:limit])
|
|
190
|
+
end
|
|
191
|
+
|
|
119
192
|
##
|
|
120
193
|
# When passed a block, yields InsightsQuestionnairesQuestionInstance records from the API.
|
|
121
194
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
@@ -139,7 +212,7 @@ module Twilio
|
|
|
139
212
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
140
213
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
141
214
|
# @return [Page] Page of InsightsQuestionnairesQuestionInstance
|
|
142
|
-
def page(authorization: :unset, category_sid: :unset, page_token: :unset, page_number: :unset,
|
|
215
|
+
def page(authorization: :unset, category_sid: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
143
216
|
params = Twilio::Values.of({
|
|
144
217
|
'Authorization' => authorization,
|
|
145
218
|
|
|
@@ -187,6 +260,7 @@ module Twilio
|
|
|
187
260
|
# @return [InsightsQuestionnairesQuestionContext] InsightsQuestionnairesQuestionContext
|
|
188
261
|
def initialize(version, question_sid)
|
|
189
262
|
super(version)
|
|
263
|
+
|
|
190
264
|
|
|
191
265
|
# Path Solution
|
|
192
266
|
@solution = { question_sid: question_sid, }
|
|
@@ -206,9 +280,32 @@ module Twilio
|
|
|
206
280
|
|
|
207
281
|
|
|
208
282
|
|
|
283
|
+
|
|
209
284
|
@version.delete('DELETE', @uri, headers: headers)
|
|
210
285
|
end
|
|
211
286
|
|
|
287
|
+
##
|
|
288
|
+
# Delete the InsightsQuestionnairesQuestionInstanceMetadata
|
|
289
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
290
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
291
|
+
def delete_with_metadata(
|
|
292
|
+
authorization: :unset
|
|
293
|
+
)
|
|
294
|
+
|
|
295
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, })
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
300
|
+
insightsQuestionnairesQuestion_instance = InsightsQuestionnairesQuestionInstance.new(
|
|
301
|
+
@version,
|
|
302
|
+
response.body,
|
|
303
|
+
account_sid: @solution[:account_sid],
|
|
304
|
+
sid: @solution[:sid],
|
|
305
|
+
)
|
|
306
|
+
InsightsQuestionnairesQuestionInstanceMetadata.new(@version, insightsQuestionnairesQuestion_instance, response.headers, response.status_code)
|
|
307
|
+
end
|
|
308
|
+
|
|
212
309
|
##
|
|
213
310
|
# Update the InsightsQuestionnairesQuestionInstance
|
|
214
311
|
# @param [Boolean] allow_na The flag to enable for disable NA for answer.
|
|
@@ -249,6 +346,52 @@ module Twilio
|
|
|
249
346
|
)
|
|
250
347
|
end
|
|
251
348
|
|
|
349
|
+
##
|
|
350
|
+
# Update the InsightsQuestionnairesQuestionInstanceMetadata
|
|
351
|
+
# @param [Boolean] allow_na The flag to enable for disable NA for answer.
|
|
352
|
+
# @param [String] category_sid The SID of the category
|
|
353
|
+
# @param [String] question The question.
|
|
354
|
+
# @param [String] description The description for the question.
|
|
355
|
+
# @param [String] answer_set_id The answer_set for the question.
|
|
356
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
357
|
+
# @return [InsightsQuestionnairesQuestionInstance] Updated InsightsQuestionnairesQuestionInstance
|
|
358
|
+
def update_with_metadata(
|
|
359
|
+
allow_na: nil,
|
|
360
|
+
category_sid: :unset,
|
|
361
|
+
question: :unset,
|
|
362
|
+
description: :unset,
|
|
363
|
+
answer_set_id: :unset,
|
|
364
|
+
authorization: :unset
|
|
365
|
+
)
|
|
366
|
+
|
|
367
|
+
data = Twilio::Values.of({
|
|
368
|
+
'AllowNa' => allow_na,
|
|
369
|
+
'CategorySid' => category_sid,
|
|
370
|
+
'Question' => question,
|
|
371
|
+
'Description' => description,
|
|
372
|
+
'AnswerSetId' => answer_set_id,
|
|
373
|
+
})
|
|
374
|
+
|
|
375
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, })
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
|
|
382
|
+
insights_questionnaires_question_instance = InsightsQuestionnairesQuestionInstance.new(
|
|
383
|
+
@version,
|
|
384
|
+
response.body,
|
|
385
|
+
question_sid: @solution[:question_sid],
|
|
386
|
+
)
|
|
387
|
+
InsightsQuestionnairesQuestionInstanceMetadata.new(
|
|
388
|
+
@version,
|
|
389
|
+
insights_questionnaires_question_instance,
|
|
390
|
+
response.headers,
|
|
391
|
+
response.status_code
|
|
392
|
+
)
|
|
393
|
+
end
|
|
394
|
+
|
|
252
395
|
|
|
253
396
|
##
|
|
254
397
|
# Provide a user friendly representation
|
|
@@ -265,6 +408,53 @@ module Twilio
|
|
|
265
408
|
end
|
|
266
409
|
end
|
|
267
410
|
|
|
411
|
+
class InsightsQuestionnairesQuestionInstanceMetadata < InstanceResourceMetadata
|
|
412
|
+
##
|
|
413
|
+
# Initializes a new InsightsQuestionnairesQuestionInstanceMetadata.
|
|
414
|
+
# @param [Version] version Version that contains the resource
|
|
415
|
+
# @param [}InsightsQuestionnairesQuestionInstance] insights_questionnaires_question_instance The instance associated with the metadata.
|
|
416
|
+
# @param [Hash] headers Header object with response headers.
|
|
417
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
418
|
+
# @return [InsightsQuestionnairesQuestionInstanceMetadata] The initialized instance with metadata.
|
|
419
|
+
def initialize(version, insights_questionnaires_question_instance, headers, status_code)
|
|
420
|
+
super(version, headers, status_code)
|
|
421
|
+
@insights_questionnaires_question_instance = insights_questionnaires_question_instance
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
def insights_questionnaires_question
|
|
425
|
+
@insights_questionnaires_question_instance
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
def headers
|
|
429
|
+
@headers
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
def status_code
|
|
433
|
+
@status_code
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
def to_s
|
|
437
|
+
"<Twilio.Api.V2010.InsightsQuestionnairesQuestionInstanceMetadata status=#{@status_code}>"
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
class InsightsQuestionnairesQuestionListResponse < InstanceListResource
|
|
442
|
+
# @param [Array<InsightsQuestionnairesQuestionInstance>] instance
|
|
443
|
+
# @param [Hash{String => Object}] headers
|
|
444
|
+
# @param [Integer] status_code
|
|
445
|
+
def initialize(version, payload, key)
|
|
446
|
+
@insights_questionnaires_question_instance = payload.body[key].map do |data|
|
|
447
|
+
InsightsQuestionnairesQuestionInstance.new(version, data)
|
|
448
|
+
end
|
|
449
|
+
@headers = payload.headers
|
|
450
|
+
@status_code = payload.status_code
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
def insights_questionnaires_question_instance
|
|
454
|
+
@instance
|
|
455
|
+
end
|
|
456
|
+
end
|
|
457
|
+
|
|
268
458
|
class InsightsQuestionnairesQuestionPage < Page
|
|
269
459
|
##
|
|
270
460
|
# Initialize the InsightsQuestionnairesQuestionPage
|
|
@@ -274,6 +464,7 @@ module Twilio
|
|
|
274
464
|
# @return [InsightsQuestionnairesQuestionPage] InsightsQuestionnairesQuestionPage
|
|
275
465
|
def initialize(version, response, solution)
|
|
276
466
|
super(version, response)
|
|
467
|
+
|
|
277
468
|
|
|
278
469
|
# Path Solution
|
|
279
470
|
@solution = solution
|
|
@@ -293,6 +484,66 @@ module Twilio
|
|
|
293
484
|
'<Twilio.FlexApi.V1.InsightsQuestionnairesQuestionPage>'
|
|
294
485
|
end
|
|
295
486
|
end
|
|
487
|
+
|
|
488
|
+
class InsightsQuestionnairesQuestionPageMetadata < PageMetadata
|
|
489
|
+
attr_reader :insights_questionnaires_question_page
|
|
490
|
+
|
|
491
|
+
def initialize(version, response, solution, limit)
|
|
492
|
+
super(version, response)
|
|
493
|
+
@insights_questionnaires_question_page = []
|
|
494
|
+
@limit = limit
|
|
495
|
+
key = get_key(response.body)
|
|
496
|
+
records = 0
|
|
497
|
+
while( limit != :unset && records < limit )
|
|
498
|
+
@insights_questionnaires_question_page << InsightsQuestionnairesQuestionListResponse.new(version, @payload, key, limit - records)
|
|
499
|
+
@payload = self.next_page
|
|
500
|
+
break unless @payload
|
|
501
|
+
records += @payload.body[key].size
|
|
502
|
+
end
|
|
503
|
+
# Path Solution
|
|
504
|
+
@solution = solution
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
def each
|
|
508
|
+
@insights_questionnaires_question_page.each do |record|
|
|
509
|
+
yield record
|
|
510
|
+
end
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
def to_s
|
|
514
|
+
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
515
|
+
end
|
|
516
|
+
end
|
|
517
|
+
class InsightsQuestionnairesQuestionListResponse < InstanceListResource
|
|
518
|
+
|
|
519
|
+
# @param [Array<InsightsQuestionnairesQuestionInstance>] instance
|
|
520
|
+
# @param [Hash{String => Object}] headers
|
|
521
|
+
# @param [Integer] status_code
|
|
522
|
+
def initialize(version, payload, key, limit = :unset)
|
|
523
|
+
data_list = payload.body[key]
|
|
524
|
+
if limit != :unset
|
|
525
|
+
data_list = data_list[0, limit]
|
|
526
|
+
end
|
|
527
|
+
@insights_questionnaires_question = data_list.map do |data|
|
|
528
|
+
InsightsQuestionnairesQuestionInstance.new(version, data)
|
|
529
|
+
end
|
|
530
|
+
@headers = payload.headers
|
|
531
|
+
@status_code = payload.status_code
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
def insights_questionnaires_question
|
|
535
|
+
@insights_questionnaires_question
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
def headers
|
|
539
|
+
@headers
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
def status_code
|
|
543
|
+
@status_code
|
|
544
|
+
end
|
|
545
|
+
end
|
|
546
|
+
|
|
296
547
|
class InsightsQuestionnairesQuestionInstance < InstanceResource
|
|
297
548
|
##
|
|
298
549
|
# Initialize the InsightsQuestionnairesQuestionInstance
|
|
@@ -306,6 +557,7 @@ module Twilio
|
|
|
306
557
|
def initialize(version, payload , question_sid: nil)
|
|
307
558
|
super(version)
|
|
308
559
|
|
|
560
|
+
|
|
309
561
|
# Marshaled Properties
|
|
310
562
|
@properties = {
|
|
311
563
|
'account_sid' => payload['account_sid'],
|