twilio-ruby 6.8.0 → 7.10.7
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 +5 -5
- data/.dockerignore +1 -1
- data/.github/ISSUE_TEMPLATE/bug_report.yml +69 -0
- data/.github/workflows/test-and-deploy.yml +17 -8
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -0
- data/CHANGES.md +1303 -1
- data/Dockerfile +3 -2
- data/Gemfile +5 -0
- data/Makefile +4 -1
- data/README.md +7 -2
- data/UPGRADE.md +11 -0
- data/cluster/cluster_oauth_spec.rb +19 -0
- data/cluster/cluster_orgs_spec.rb +40 -0
- data/{cluster_spec.rb → cluster/cluster_spec.rb} +0 -2
- data/examples/public_oauth.rb +13 -0
- data/lib/twilio-ruby/auth_strategy/auth_strategy.rb +19 -0
- data/lib/twilio-ruby/auth_strategy/no_auth_strategy.rb +17 -0
- data/lib/twilio-ruby/auth_strategy/token_auth_strategy.rb +39 -0
- data/lib/twilio-ruby/base/client_base.rb +12 -2
- data/lib/twilio-ruby/credential/auth_type.rb +17 -0
- data/lib/twilio-ruby/credential/client_credential_provider.rb +28 -0
- data/lib/twilio-ruby/credential/credential_provider.rb +11 -0
- data/lib/twilio-ruby/credential/orgs_credential_provider.rb +30 -0
- data/lib/twilio-ruby/framework/request.rb +8 -1
- data/lib/twilio-ruby/framework/rest/api_v1_version.rb +22 -0
- data/lib/twilio-ruby/framework/rest/domain.rb +0 -1
- data/lib/twilio-ruby/framework/rest/error.rb +27 -0
- data/lib/twilio-ruby/framework/rest/page.rb +1 -0
- 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/token_page.rb +73 -0
- data/lib/twilio-ruby/framework/rest/version.rb +91 -4
- data/lib/twilio-ruby/http/client_token_manager.rb +31 -0
- data/lib/twilio-ruby/http/http_client.rb +22 -5
- data/lib/twilio-ruby/http/org_token_manager.rb +31 -0
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +143 -1
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +295 -14
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +295 -14
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +64 -0
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +285 -0
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +177 -10
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +168 -2
- data/lib/twilio-ruby/rest/accounts/v1.rb +29 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +102 -5
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +385 -42
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +427 -57
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +183 -20
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +183 -6
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +96 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +102 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +192 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +283 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +330 -19
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +1004 -207
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +1010 -213
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +559 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +109 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +186 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +550 -120
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +572 -86
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +263 -12
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +274 -36
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +285 -24
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +185 -8
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +250 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +507 -79
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +250 -10
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +105 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +215 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +421 -52
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +191 -6
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +254 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +232 -11
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +299 -15
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +343 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +232 -8
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +209 -7
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +209 -7
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +229 -10
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +254 -19
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +250 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +297 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +290 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +398 -48
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +311 -18
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +290 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +208 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +335 -27
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +124 -7
- data/lib/twilio-ruby/rest/api/v2010/account.rb +271 -13
- data/lib/twilio-ruby/rest/api/v2010.rb +1 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +558 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +558 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +431 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +296 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +927 -0
- data/lib/twilio-ruby/rest/{microvisor/v1/app.rb → assistants/v1/knowledge/chunk.rb} +145 -169
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +871 -0
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +364 -0
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +360 -0
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +501 -0
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +847 -0
- data/lib/twilio-ruby/rest/assistants/v1.rb +104 -0
- data/lib/twilio-ruby/rest/assistants.rb +6 -0
- data/lib/twilio-ruby/rest/{autopilot_base.rb → assistants_base.rb} +6 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +183 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +163 -13
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +170 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +144 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +195 -8
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +336 -28
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +305 -15
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +308 -16
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +315 -19
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +102 -5
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +312 -19
- data/lib/twilio-ruby/rest/chat/v1/service.rb +552 -118
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +336 -28
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +214 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +354 -33
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +353 -33
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +342 -28
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +351 -33
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +212 -7
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +266 -16
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +317 -22
- data/lib/twilio-ruby/rest/chat/v2/service.rb +437 -72
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +162 -7
- data/lib/twilio-ruby/rest/chat/v3.rb +6 -0
- data/lib/twilio-ruby/rest/client.rb +26 -11
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +280 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +144 -3
- data/lib/twilio-ruby/rest/content/v1/content.rb +1577 -10
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +102 -5
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +102 -5
- data/lib/twilio-ruby/rest/content/v1.rb +1 -0
- data/lib/twilio-ruby/rest/content/v2/content.rb +433 -0
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +426 -0
- data/lib/twilio-ruby/rest/content/v2.rb +46 -0
- data/lib/twilio-ruby/rest/content_base.rb +6 -1
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +373 -39
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +206 -15
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +198 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +184 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +360 -37
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +367 -40
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +334 -26
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +421 -76
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +392 -0
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +341 -30
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +106 -5
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +295 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +217 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +245 -28
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +200 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +216 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +185 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +363 -37
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +370 -40
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +337 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +425 -77
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +399 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +106 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +262 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +321 -24
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +283 -27
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +260 -14
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +318 -24
- data/lib/twilio-ruby/rest/conversations/v1.rb +12 -0
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +507 -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 +142 -0
- data/lib/twilio-ruby/rest/conversations_base.rb +6 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +198 -8
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +183 -8
- data/lib/twilio-ruby/rest/events/v1/schema.rb +144 -3
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +96 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +104 -2
- data/lib/twilio-ruby/rest/events/v1/sink.rb +299 -16
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +298 -19
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +297 -22
- data/lib/twilio-ruby/rest/events/v1.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +288 -31
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +282 -18
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +216 -3
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +433 -60
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +172 -16
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +106 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +331 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +266 -18
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +305 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +109 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +147 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +98 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +98 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +147 -5
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +143 -7
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +251 -11
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +548 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +257 -11
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +275 -5
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +629 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +708 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +390 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +572 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +607 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +376 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +547 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +400 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +327 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +312 -19
- data/lib/twilio-ruby/rest/flex_api/v1.rb +137 -0
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +515 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +125 -5
- data/lib/twilio-ruby/rest/flex_api/v2.rb +43 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +200 -12
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +1 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +471 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +328 -0
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +284 -0
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +647 -0
- data/lib/twilio-ruby/rest/iam/v1/role_permission.rb +327 -0
- data/lib/twilio-ruby/rest/iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +99 -0
- data/lib/twilio-ruby/rest/iam.rb +6 -0
- data/lib/twilio-ruby/rest/iam_base.rb +33 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +216 -19
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +162 -13
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +108 -9
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +106 -5
- data/lib/twilio-ruby/rest/insights/v1/call.rb +144 -1
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +267 -26
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +202 -10
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +202 -6
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +183 -8
- data/lib/twilio-ruby/rest/insights/v1/room.rb +194 -8
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +201 -10
- data/lib/twilio-ruby/rest/insights/v1.rb +3 -0
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +579 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +650 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +941 -0
- data/lib/twilio-ruby/rest/insights/v2.rb +82 -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 +11 -1
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +728 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +533 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +380 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +337 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +539 -0
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +533 -0
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +392 -50
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +152 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +207 -10
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +124 -10
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +333 -30
- data/lib/twilio-ruby/rest/intelligence/v2.rb +125 -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 +336 -28
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +305 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +308 -16
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +315 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +102 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +312 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +552 -118
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +336 -28
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +214 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +354 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +353 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +342 -28
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +351 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +212 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +262 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +317 -22
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +437 -72
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +325 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +865 -0
- data/lib/twilio-ruby/rest/{preview/sync.rb → knowledge/v1.rb} +17 -16
- 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.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge_base.rb +43 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +170 -12
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -0
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +501 -0
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +605 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +252 -44
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +351 -0
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +229 -0
- data/lib/twilio-ruby/rest/lookups/v2.rb +99 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +483 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +509 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +563 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +252 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +743 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +342 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +511 -0
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +235 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +94 -0
- data/lib/twilio-ruby/rest/marketplace.rb +6 -0
- data/lib/twilio-ruby/rest/marketplace_base.rb +38 -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 +721 -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 +746 -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/{media_base.rb → memory_base.rb} +6 -6
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +96 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +229 -11
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +296 -17
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +151 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +210 -7
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +200 -12
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +144 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +344 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +113 -3
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +170 -4
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +144 -3
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +379 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +282 -9
- data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +616 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +543 -30
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +103 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +453 -63
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +870 -83
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +95 -1
- data/lib/twilio-ruby/rest/messaging/v1.rb +46 -1
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +1017 -0
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +386 -0
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +237 -0
- data/lib/twilio-ruby/rest/messaging/v2.rb +72 -0
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +247 -0
- data/lib/twilio-ruby/rest/messaging/v3.rb +40 -0
- data/lib/twilio-ruby/rest/messaging_base.rb +11 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +188 -6
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +195 -7
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +336 -30
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +282 -17
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +173 -20
- data/lib/twilio-ruby/rest/notify/v1/service.rb +410 -57
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +190 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +221 -0
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +251 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +375 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +616 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +485 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +168 -26
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +242 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +301 -0
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +333 -0
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +403 -0
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +252 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +125 -12
- data/lib/twilio-ruby/rest/numbers/v2/application.rb +715 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +110 -5
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +270 -16
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +198 -5
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +430 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +448 -27
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +142 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +215 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +248 -9
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +104 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +376 -30
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +300 -16
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +182 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +218 -11
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +307 -16
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +182 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +64 -0
- data/lib/twilio-ruby/rest/numbers/v2.rb +35 -0
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +484 -0
- data/lib/twilio-ruby/rest/numbers/v3.rb +40 -0
- data/lib/twilio-ruby/rest/numbers_base.rb +5 -0
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +149 -27
- data/lib/twilio-ruby/rest/oauth/v1.rb +4 -22
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +311 -0
- data/lib/twilio-ruby/rest/oauth/v2.rb +46 -0
- data/lib/twilio-ruby/rest/oauth.rb +2 -29
- data/lib/twilio-ruby/rest/oauth_base.rb +6 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +112 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +316 -30
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +406 -48
- 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 +183 -8
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +182 -8
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +225 -11
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +304 -19
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +253 -16
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +328 -25
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +157 -7
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +308 -41
- data/lib/twilio-ruby/rest/preview/wireless.rb +3 -0
- data/lib/twilio-ruby/rest/preview.rb +1 -20
- data/lib/twilio-ruby/rest/preview_base.rb +0 -15
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/preview_iam/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +476 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +603 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +981 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +413 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless.rb +50 -0
- data/lib/twilio-ruby/rest/preview_iam.rb +9 -0
- data/lib/twilio-ruby/rest/{microvisor_base.rb → preview_iam_base.rb} +6 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +144 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +22 -4
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +152 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +152 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v2.rb +13 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +298 -16
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +210 -10
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +231 -11
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +262 -14
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +320 -23
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +350 -62
- data/lib/twilio-ruby/rest/proxy/v1.rb +1 -0
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2.rb +3 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +184 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +290 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +145 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +260 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +231 -10
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +191 -9
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +302 -17
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +252 -12
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +146 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +184 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +290 -14
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +309 -21
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +256 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +302 -14
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +207 -7
- data/lib/twilio-ruby/rest/studio/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +333 -16
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +190 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +185 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +336 -21
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +115 -5
- data/lib/twilio-ruby/rest/studio/v2.rb +1 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +243 -17
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +326 -33
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +249 -15
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +188 -8
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +248 -11
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +266 -14
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +106 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +102 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +102 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +297 -24
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +239 -13
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +118 -5
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +306 -18
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +333 -25
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +303 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +337 -26
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +303 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +105 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +294 -13
- data/lib/twilio-ruby/rest/sync/v1/service.rb +341 -30
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +298 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +205 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +505 -117
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +411 -41
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +303 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +258 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +154 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +114 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +351 -27
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +493 -113
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +232 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +168 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +167 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +152 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +182 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +336 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +153 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +333 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +172 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +152 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +172 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +339 -29
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +248 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +248 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +326 -24
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +249 -10
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +190 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +357 -33
- data/lib/twilio-ruby/rest/trunking/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +213 -5
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +656 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +474 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +256 -10
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +258 -11
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +223 -8
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +327 -21
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +300 -16
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +300 -16
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +256 -10
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +258 -11
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +223 -8
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +345 -39
- data/lib/twilio-ruby/rest/trusthub/v1.rb +31 -1
- data/lib/twilio-ruby/rest/verify/v2/form.rb +144 -3
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +208 -6
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +197 -6
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +402 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +106 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +299 -18
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +292 -26
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +164 -15
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +248 -9
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +294 -13
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +479 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +387 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +357 -0
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +302 -15
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +294 -13
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +301 -23
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +127 -7
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +332 -30
- data/lib/twilio-ruby/rest/verify/v2/service.rb +667 -65
- data/lib/twilio-ruby/rest/verify/v2/template.rb +104 -5
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +202 -10
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +179 -16
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +286 -17
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +376 -39
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +211 -17
- data/lib/twilio-ruby/rest/video/v1/recording.rb +220 -7
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +211 -17
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +145 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +184 -6
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +138 -3
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +184 -6
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +233 -9
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +136 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +216 -7
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +665 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +379 -39
- data/lib/twilio-ruby/rest/video/v1.rb +4 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +137 -3
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +368 -39
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +326 -24
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +287 -12
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +103 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +102 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +194 -8
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +183 -6
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +64 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +295 -14
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +291 -13
- 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 +278 -15
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +338 -24
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +102 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +108 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +343 -44
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +108 -5
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +403 -24
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +4 -3
- metadata +193 -88
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -264
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -328
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -473
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -433
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -683
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -207
- data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -55
- data/lib/twilio-ruby/rest/autopilot.rb +0 -22
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -420
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -404
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -252
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -432
- data/lib/twilio-ruby/rest/media/v1.rb +0 -79
- data/lib/twilio-ruby/rest/media.rb +0 -35
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -358
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -351
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -208
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -374
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -367
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -427
- data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -94
- data/lib/twilio-ruby/rest/microvisor.rb +0 -24
- data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -229
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +0 -185
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -417
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -401
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -456
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -414
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -504
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +0 -49
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -449
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -445
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -448
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -505
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -463
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -663
- data/lib/twilio-ruby/rest/preview/understand.rb +0 -49
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -406
|
@@ -20,12 +20,14 @@ module Twilio
|
|
|
20
20
|
class RegulatoryComplianceList < ListResource
|
|
21
21
|
|
|
22
22
|
class BundleList < ListResource
|
|
23
|
+
|
|
23
24
|
##
|
|
24
25
|
# Initialize the BundleList
|
|
25
26
|
# @param [Version] version Version that contains the resource
|
|
26
27
|
# @return [BundleList] BundleList
|
|
27
28
|
def initialize(version)
|
|
28
29
|
super(version)
|
|
30
|
+
|
|
29
31
|
# Path Solution
|
|
30
32
|
@solution = { }
|
|
31
33
|
@uri = "/RegulatoryCompliance/Bundles"
|
|
@@ -39,16 +41,18 @@ module Twilio
|
|
|
39
41
|
# @param [String] regulation_sid The unique string of a regulation that is associated to the Bundle resource.
|
|
40
42
|
# @param [String] iso_country The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
|
41
43
|
# @param [EndUserType] end_user_type
|
|
42
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll
|
|
44
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
|
45
|
+
# @param [Boolean] is_test Indicates that Bundle is a Test Bundle and will be Auto-Rejected
|
|
43
46
|
# @return [BundleInstance] Created BundleInstance
|
|
44
47
|
def create(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
friendly_name: nil,
|
|
49
|
+
email: nil,
|
|
50
|
+
status_callback: :unset,
|
|
51
|
+
regulation_sid: :unset,
|
|
52
|
+
iso_country: :unset,
|
|
53
|
+
end_user_type: :unset,
|
|
54
|
+
number_type: :unset,
|
|
55
|
+
is_test: :unset
|
|
52
56
|
)
|
|
53
57
|
|
|
54
58
|
data = Twilio::Values.of({
|
|
@@ -59,25 +63,86 @@ module Twilio
|
|
|
59
63
|
'IsoCountry' => iso_country,
|
|
60
64
|
'EndUserType' => end_user_type,
|
|
61
65
|
'NumberType' => number_type,
|
|
66
|
+
'IsTest' => is_test,
|
|
62
67
|
})
|
|
63
68
|
|
|
64
|
-
|
|
69
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
|
65
76
|
BundleInstance.new(
|
|
66
77
|
@version,
|
|
67
78
|
payload,
|
|
68
79
|
)
|
|
69
80
|
end
|
|
70
81
|
|
|
82
|
+
##
|
|
83
|
+
# Create the BundleInstanceMetadata
|
|
84
|
+
# @param [String] friendly_name The string that you assigned to describe the resource.
|
|
85
|
+
# @param [String] email The email address that will receive updates when the Bundle resource changes status.
|
|
86
|
+
# @param [String] status_callback The URL we call to inform your application of status changes.
|
|
87
|
+
# @param [String] regulation_sid The unique string of a regulation that is associated to the Bundle resource.
|
|
88
|
+
# @param [String] iso_country The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
|
89
|
+
# @param [EndUserType] end_user_type
|
|
90
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
|
91
|
+
# @param [Boolean] is_test Indicates that Bundle is a Test Bundle and will be Auto-Rejected
|
|
92
|
+
# @return [BundleInstance] Created BundleInstance
|
|
93
|
+
def create_with_metadata(
|
|
94
|
+
friendly_name: nil,
|
|
95
|
+
email: nil,
|
|
96
|
+
status_callback: :unset,
|
|
97
|
+
regulation_sid: :unset,
|
|
98
|
+
iso_country: :unset,
|
|
99
|
+
end_user_type: :unset,
|
|
100
|
+
number_type: :unset,
|
|
101
|
+
is_test: :unset
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
data = Twilio::Values.of({
|
|
105
|
+
'FriendlyName' => friendly_name,
|
|
106
|
+
'Email' => email,
|
|
107
|
+
'StatusCallback' => status_callback,
|
|
108
|
+
'RegulationSid' => regulation_sid,
|
|
109
|
+
'IsoCountry' => iso_country,
|
|
110
|
+
'EndUserType' => end_user_type,
|
|
111
|
+
'NumberType' => number_type,
|
|
112
|
+
'IsTest' => is_test,
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
|
|
122
|
+
bundle_instance = BundleInstance.new(
|
|
123
|
+
@version,
|
|
124
|
+
response.body,
|
|
125
|
+
)
|
|
126
|
+
BundleInstanceMetadata.new(
|
|
127
|
+
@version,
|
|
128
|
+
bundle_instance,
|
|
129
|
+
response.headers,
|
|
130
|
+
response.status_code
|
|
131
|
+
)
|
|
132
|
+
end
|
|
133
|
+
|
|
71
134
|
|
|
72
135
|
##
|
|
73
136
|
# Lists BundleInstance records from the API as a list.
|
|
74
137
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
75
138
|
# memory before returning.
|
|
76
139
|
# @param [Status] status The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details.
|
|
140
|
+
# @param [String] bundle_sids A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`.
|
|
77
141
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
|
78
142
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
|
79
143
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
|
80
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `
|
|
144
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
|
145
|
+
# @param [String] end_user_type The end user type of the regulation of the Bundle. Can be `business` or `individual`.
|
|
81
146
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
|
82
147
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
|
83
148
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
|
@@ -91,13 +156,15 @@ module Twilio
|
|
|
91
156
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
92
157
|
# efficient page size, i.e. min(limit, 1000)
|
|
93
158
|
# @return [Array] Array of up to limit results
|
|
94
|
-
def list(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
159
|
+
def list(status: :unset, bundle_sids: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, end_user_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
95
160
|
self.stream(
|
|
96
161
|
status: status,
|
|
162
|
+
bundle_sids: bundle_sids,
|
|
97
163
|
friendly_name: friendly_name,
|
|
98
164
|
regulation_sid: regulation_sid,
|
|
99
165
|
iso_country: iso_country,
|
|
100
166
|
number_type: number_type,
|
|
167
|
+
end_user_type: end_user_type,
|
|
101
168
|
has_valid_until_date: has_valid_until_date,
|
|
102
169
|
sort_by: sort_by,
|
|
103
170
|
sort_direction: sort_direction,
|
|
@@ -114,10 +181,12 @@ module Twilio
|
|
|
114
181
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
115
182
|
# is reached.
|
|
116
183
|
# @param [Status] status The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details.
|
|
184
|
+
# @param [String] bundle_sids A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`.
|
|
117
185
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
|
118
186
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
|
119
187
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
|
120
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `
|
|
188
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
|
189
|
+
# @param [String] end_user_type The end user type of the regulation of the Bundle. Can be `business` or `individual`.
|
|
121
190
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
|
122
191
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
|
123
192
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
|
@@ -131,15 +200,17 @@ module Twilio
|
|
|
131
200
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
132
201
|
# efficient page size, i.e. min(limit, 1000)
|
|
133
202
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
134
|
-
def stream(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
203
|
+
def stream(status: :unset, bundle_sids: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, end_user_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
135
204
|
limits = @version.read_limits(limit, page_size)
|
|
136
205
|
|
|
137
206
|
page = self.page(
|
|
138
207
|
status: status,
|
|
208
|
+
bundle_sids: bundle_sids,
|
|
139
209
|
friendly_name: friendly_name,
|
|
140
210
|
regulation_sid: regulation_sid,
|
|
141
211
|
iso_country: iso_country,
|
|
142
212
|
number_type: number_type,
|
|
213
|
+
end_user_type: end_user_type,
|
|
143
214
|
has_valid_until_date: has_valid_until_date,
|
|
144
215
|
sort_by: sort_by,
|
|
145
216
|
sort_direction: sort_direction,
|
|
@@ -148,7 +219,59 @@ module Twilio
|
|
|
148
219
|
valid_until_date_after: valid_until_date_after,
|
|
149
220
|
page_size: limits[:page_size], )
|
|
150
221
|
|
|
151
|
-
|
|
222
|
+
return [].each if page.nil?
|
|
223
|
+
|
|
224
|
+
result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
225
|
+
return [].each if result.nil?
|
|
226
|
+
result
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
##
|
|
230
|
+
# Lists BundlePageMetadata records from the API as a list.
|
|
231
|
+
# @param [Status] status The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details.
|
|
232
|
+
# @param [String] bundle_sids A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`.
|
|
233
|
+
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
|
234
|
+
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
|
235
|
+
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
|
236
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
|
237
|
+
# @param [String] end_user_type The end user type of the regulation of the Bundle. Can be `business` or `individual`.
|
|
238
|
+
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
|
239
|
+
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
|
240
|
+
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
|
241
|
+
# @param [Time] valid_until_date Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
|
242
|
+
# @param [Time] valid_until_date_before Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
|
243
|
+
# @param [Time] valid_until_date_after Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
|
244
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
245
|
+
# guarantees to never return more than limit. Default is no limit
|
|
246
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
247
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
248
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
249
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
250
|
+
# @return [Array] Array of up to limit results
|
|
251
|
+
def list_with_metadata(status: :unset, bundle_sids: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, end_user_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
252
|
+
limits = @version.read_limits(limit, page_size)
|
|
253
|
+
params = Twilio::Values.of({
|
|
254
|
+
'Status' => status,
|
|
255
|
+
'BundleSids' => bundle_sids,
|
|
256
|
+
'FriendlyName' => friendly_name,
|
|
257
|
+
'RegulationSid' => regulation_sid,
|
|
258
|
+
'IsoCountry' => iso_country,
|
|
259
|
+
'NumberType' => number_type,
|
|
260
|
+
'EndUserType' => end_user_type,
|
|
261
|
+
'HasValidUntilDate' => has_valid_until_date,
|
|
262
|
+
'SortBy' => sort_by,
|
|
263
|
+
'SortDirection' => sort_direction,
|
|
264
|
+
'ValidUntilDate' => Twilio.serialize_iso8601_datetime(valid_until_date),
|
|
265
|
+
'ValidUntilDate<' => Twilio.serialize_iso8601_datetime(valid_until_date_before),
|
|
266
|
+
'ValidUntilDate>' => Twilio.serialize_iso8601_datetime(valid_until_date_after),
|
|
267
|
+
|
|
268
|
+
'PageSize' => limits[:page_size],
|
|
269
|
+
});
|
|
270
|
+
headers = Twilio::Values.of({})
|
|
271
|
+
|
|
272
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
273
|
+
|
|
274
|
+
BundlePageMetadata.new(@version, response, @solution, limits[:limit])
|
|
152
275
|
end
|
|
153
276
|
|
|
154
277
|
##
|
|
@@ -160,19 +283,25 @@ module Twilio
|
|
|
160
283
|
|
|
161
284
|
page = self.page(page_size: limits[:page_size], )
|
|
162
285
|
|
|
163
|
-
|
|
286
|
+
return [].each if page.nil?
|
|
287
|
+
|
|
288
|
+
result = @version.stream(page,
|
|
164
289
|
limit: limits[:limit],
|
|
165
|
-
page_limit: limits[:page_limit])
|
|
290
|
+
page_limit: limits[:page_limit])
|
|
291
|
+
return [].each if result.nil?
|
|
292
|
+
result.each {|x| yield x}
|
|
166
293
|
end
|
|
167
294
|
|
|
168
295
|
##
|
|
169
296
|
# Retrieve a single page of BundleInstance records from the API.
|
|
170
297
|
# Request is executed immediately.
|
|
171
298
|
# @param [Status] status The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details.
|
|
299
|
+
# @param [String] bundle_sids A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`.
|
|
172
300
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
|
173
301
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
|
174
302
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
|
175
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `
|
|
303
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
|
304
|
+
# @param [String] end_user_type The end user type of the regulation of the Bundle. Can be `business` or `individual`.
|
|
176
305
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
|
177
306
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
|
178
307
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
|
@@ -183,13 +312,15 @@ module Twilio
|
|
|
183
312
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
184
313
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
185
314
|
# @return [Page] Page of BundleInstance
|
|
186
|
-
def page(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, page_token: :unset, page_number: :unset,
|
|
315
|
+
def page(status: :unset, bundle_sids: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, end_user_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
187
316
|
params = Twilio::Values.of({
|
|
188
317
|
'Status' => status,
|
|
318
|
+
'BundleSids' => bundle_sids,
|
|
189
319
|
'FriendlyName' => friendly_name,
|
|
190
320
|
'RegulationSid' => regulation_sid,
|
|
191
321
|
'IsoCountry' => iso_country,
|
|
192
322
|
'NumberType' => number_type,
|
|
323
|
+
'EndUserType' => end_user_type,
|
|
193
324
|
'HasValidUntilDate' => has_valid_until_date,
|
|
194
325
|
'SortBy' => sort_by,
|
|
195
326
|
'SortDirection' => sort_direction,
|
|
@@ -200,8 +331,11 @@ module Twilio
|
|
|
200
331
|
'Page' => page_number,
|
|
201
332
|
'PageSize' => page_size,
|
|
202
333
|
})
|
|
334
|
+
headers = Twilio::Values.of({})
|
|
335
|
+
|
|
336
|
+
|
|
203
337
|
|
|
204
|
-
response = @version.page('GET', @uri, params: params)
|
|
338
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
205
339
|
|
|
206
340
|
BundlePage.new(@version, response, @solution)
|
|
207
341
|
end
|
|
@@ -236,6 +370,7 @@ module Twilio
|
|
|
236
370
|
# @return [BundleContext] BundleContext
|
|
237
371
|
def initialize(version, sid)
|
|
238
372
|
super(version)
|
|
373
|
+
|
|
239
374
|
|
|
240
375
|
# Path Solution
|
|
241
376
|
@solution = { sid: sid, }
|
|
@@ -252,7 +387,31 @@ module Twilio
|
|
|
252
387
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
253
388
|
def delete
|
|
254
389
|
|
|
255
|
-
|
|
390
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
@version.delete('DELETE', @uri, headers: headers)
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
##
|
|
399
|
+
# Delete the BundleInstanceMetadata
|
|
400
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
401
|
+
def delete_with_metadata
|
|
402
|
+
|
|
403
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
408
|
+
bundle_instance = BundleInstance.new(
|
|
409
|
+
@version,
|
|
410
|
+
response.body,
|
|
411
|
+
account_sid: @solution[:account_sid],
|
|
412
|
+
sid: @solution[:sid],
|
|
413
|
+
)
|
|
414
|
+
BundleInstanceMetadata.new(@version, bundle_instance, response.headers, response.status_code)
|
|
256
415
|
end
|
|
257
416
|
|
|
258
417
|
##
|
|
@@ -260,7 +419,13 @@ module Twilio
|
|
|
260
419
|
# @return [BundleInstance] Fetched BundleInstance
|
|
261
420
|
def fetch
|
|
262
421
|
|
|
263
|
-
|
|
422
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
264
429
|
BundleInstance.new(
|
|
265
430
|
@version,
|
|
266
431
|
payload,
|
|
@@ -268,6 +433,31 @@ module Twilio
|
|
|
268
433
|
)
|
|
269
434
|
end
|
|
270
435
|
|
|
436
|
+
##
|
|
437
|
+
# Fetch the BundleInstanceMetadata
|
|
438
|
+
# @return [BundleInstance] Fetched BundleInstance
|
|
439
|
+
def fetch_with_metadata
|
|
440
|
+
|
|
441
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
448
|
+
bundle_instance = BundleInstance.new(
|
|
449
|
+
@version,
|
|
450
|
+
response.body,
|
|
451
|
+
sid: @solution[:sid],
|
|
452
|
+
)
|
|
453
|
+
BundleInstanceMetadata.new(
|
|
454
|
+
@version,
|
|
455
|
+
bundle_instance,
|
|
456
|
+
response.headers,
|
|
457
|
+
response.status_code
|
|
458
|
+
)
|
|
459
|
+
end
|
|
460
|
+
|
|
271
461
|
##
|
|
272
462
|
# Update the BundleInstance
|
|
273
463
|
# @param [Status] status
|
|
@@ -276,10 +466,10 @@ module Twilio
|
|
|
276
466
|
# @param [String] email The email address that will receive updates when the Bundle resource changes status.
|
|
277
467
|
# @return [BundleInstance] Updated BundleInstance
|
|
278
468
|
def update(
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
469
|
+
status: :unset,
|
|
470
|
+
status_callback: :unset,
|
|
471
|
+
friendly_name: :unset,
|
|
472
|
+
email: :unset
|
|
283
473
|
)
|
|
284
474
|
|
|
285
475
|
data = Twilio::Values.of({
|
|
@@ -289,7 +479,13 @@ module Twilio
|
|
|
289
479
|
'Email' => email,
|
|
290
480
|
})
|
|
291
481
|
|
|
292
|
-
|
|
482
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
|
293
489
|
BundleInstance.new(
|
|
294
490
|
@version,
|
|
295
491
|
payload,
|
|
@@ -297,6 +493,47 @@ module Twilio
|
|
|
297
493
|
)
|
|
298
494
|
end
|
|
299
495
|
|
|
496
|
+
##
|
|
497
|
+
# Update the BundleInstanceMetadata
|
|
498
|
+
# @param [Status] status
|
|
499
|
+
# @param [String] status_callback The URL we call to inform your application of status changes.
|
|
500
|
+
# @param [String] friendly_name The string that you assigned to describe the resource.
|
|
501
|
+
# @param [String] email The email address that will receive updates when the Bundle resource changes status.
|
|
502
|
+
# @return [BundleInstance] Updated BundleInstance
|
|
503
|
+
def update_with_metadata(
|
|
504
|
+
status: :unset,
|
|
505
|
+
status_callback: :unset,
|
|
506
|
+
friendly_name: :unset,
|
|
507
|
+
email: :unset
|
|
508
|
+
)
|
|
509
|
+
|
|
510
|
+
data = Twilio::Values.of({
|
|
511
|
+
'Status' => status,
|
|
512
|
+
'StatusCallback' => status_callback,
|
|
513
|
+
'FriendlyName' => friendly_name,
|
|
514
|
+
'Email' => email,
|
|
515
|
+
})
|
|
516
|
+
|
|
517
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
|
|
524
|
+
bundle_instance = BundleInstance.new(
|
|
525
|
+
@version,
|
|
526
|
+
response.body,
|
|
527
|
+
sid: @solution[:sid],
|
|
528
|
+
)
|
|
529
|
+
BundleInstanceMetadata.new(
|
|
530
|
+
@version,
|
|
531
|
+
bundle_instance,
|
|
532
|
+
response.headers,
|
|
533
|
+
response.status_code
|
|
534
|
+
)
|
|
535
|
+
end
|
|
536
|
+
|
|
300
537
|
##
|
|
301
538
|
# Access the replace_items
|
|
302
539
|
# @return [ReplaceItemsList]
|
|
@@ -373,6 +610,53 @@ module Twilio
|
|
|
373
610
|
end
|
|
374
611
|
end
|
|
375
612
|
|
|
613
|
+
class BundleInstanceMetadata < InstanceResourceMetadata
|
|
614
|
+
##
|
|
615
|
+
# Initializes a new BundleInstanceMetadata.
|
|
616
|
+
# @param [Version] version Version that contains the resource
|
|
617
|
+
# @param [}BundleInstance] bundle_instance The instance associated with the metadata.
|
|
618
|
+
# @param [Hash] headers Header object with response headers.
|
|
619
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
620
|
+
# @return [BundleInstanceMetadata] The initialized instance with metadata.
|
|
621
|
+
def initialize(version, bundle_instance, headers, status_code)
|
|
622
|
+
super(version, headers, status_code)
|
|
623
|
+
@bundle_instance = bundle_instance
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
def bundle
|
|
627
|
+
@bundle_instance
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
def headers
|
|
631
|
+
@headers
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
def status_code
|
|
635
|
+
@status_code
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
def to_s
|
|
639
|
+
"<Twilio.Api.V2010.BundleInstanceMetadata status=#{@status_code}>"
|
|
640
|
+
end
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
class BundleListResponse < InstanceListResource
|
|
644
|
+
# @param [Array<BundleInstance>] instance
|
|
645
|
+
# @param [Hash{String => Object}] headers
|
|
646
|
+
# @param [Integer] status_code
|
|
647
|
+
def initialize(version, payload, key)
|
|
648
|
+
@bundle_instance = payload.body[key].map do |data|
|
|
649
|
+
BundleInstance.new(version, data)
|
|
650
|
+
end
|
|
651
|
+
@headers = payload.headers
|
|
652
|
+
@status_code = payload.status_code
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
def bundle_instance
|
|
656
|
+
@instance
|
|
657
|
+
end
|
|
658
|
+
end
|
|
659
|
+
|
|
376
660
|
class BundlePage < Page
|
|
377
661
|
##
|
|
378
662
|
# Initialize the BundlePage
|
|
@@ -382,6 +666,7 @@ module Twilio
|
|
|
382
666
|
# @return [BundlePage] BundlePage
|
|
383
667
|
def initialize(version, response, solution)
|
|
384
668
|
super(version, response)
|
|
669
|
+
|
|
385
670
|
|
|
386
671
|
# Path Solution
|
|
387
672
|
@solution = solution
|
|
@@ -401,6 +686,66 @@ module Twilio
|
|
|
401
686
|
'<Twilio.Numbers.V2.BundlePage>'
|
|
402
687
|
end
|
|
403
688
|
end
|
|
689
|
+
|
|
690
|
+
class BundlePageMetadata < PageMetadata
|
|
691
|
+
attr_reader :bundle_page
|
|
692
|
+
|
|
693
|
+
def initialize(version, response, solution, limit)
|
|
694
|
+
super(version, response)
|
|
695
|
+
@bundle_page = []
|
|
696
|
+
@limit = limit
|
|
697
|
+
key = get_key(response.body)
|
|
698
|
+
records = 0
|
|
699
|
+
while( limit != :unset && records < limit )
|
|
700
|
+
@bundle_page << BundleListResponse.new(version, @payload, key, limit - records)
|
|
701
|
+
@payload = self.next_page
|
|
702
|
+
break unless @payload
|
|
703
|
+
records += (@payload.body[key] || []).size
|
|
704
|
+
end
|
|
705
|
+
# Path Solution
|
|
706
|
+
@solution = solution
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
def each
|
|
710
|
+
@bundle_page.each do |record|
|
|
711
|
+
yield record
|
|
712
|
+
end
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
def to_s
|
|
716
|
+
'<Twilio::REST::Numbers::V2PageMetadata>';
|
|
717
|
+
end
|
|
718
|
+
end
|
|
719
|
+
class BundleListResponse < InstanceListResource
|
|
720
|
+
|
|
721
|
+
# @param [Array<BundleInstance>] instance
|
|
722
|
+
# @param [Hash{String => Object}] headers
|
|
723
|
+
# @param [Integer] status_code
|
|
724
|
+
def initialize(version, payload, key, limit = :unset)
|
|
725
|
+
data_list = payload.body[key] || []
|
|
726
|
+
if limit != :unset
|
|
727
|
+
data_list = data_list[0, limit]
|
|
728
|
+
end
|
|
729
|
+
@bundle = data_list.map do |data|
|
|
730
|
+
BundleInstance.new(version, data)
|
|
731
|
+
end
|
|
732
|
+
@headers = payload.headers
|
|
733
|
+
@status_code = payload.status_code
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
def bundle
|
|
737
|
+
@bundle
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
def headers
|
|
741
|
+
@headers
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
def status_code
|
|
745
|
+
@status_code
|
|
746
|
+
end
|
|
747
|
+
end
|
|
748
|
+
|
|
404
749
|
class BundleInstance < InstanceResource
|
|
405
750
|
##
|
|
406
751
|
# Initialize the BundleInstance
|
|
@@ -414,6 +759,7 @@ module Twilio
|
|
|
414
759
|
def initialize(version, payload , sid: nil)
|
|
415
760
|
super(version)
|
|
416
761
|
|
|
762
|
+
|
|
417
763
|
# Marshaled Properties
|
|
418
764
|
@properties = {
|
|
419
765
|
'sid' => payload['sid'],
|
|
@@ -542,10 +888,10 @@ module Twilio
|
|
|
542
888
|
# @param [String] email The email address that will receive updates when the Bundle resource changes status.
|
|
543
889
|
# @return [BundleInstance] Updated BundleInstance
|
|
544
890
|
def update(
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
891
|
+
status: :unset,
|
|
892
|
+
status_callback: :unset,
|
|
893
|
+
friendly_name: :unset,
|
|
894
|
+
email: :unset
|
|
549
895
|
)
|
|
550
896
|
|
|
551
897
|
context.update(
|