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
|
@@ -27,6 +27,7 @@ module Twilio
|
|
|
27
27
|
# @return [ChannelList] ChannelList
|
|
28
28
|
def initialize(version, service_sid: nil)
|
|
29
29
|
super(version)
|
|
30
|
+
|
|
30
31
|
# Path Solution
|
|
31
32
|
@solution = { service_sid: service_sid }
|
|
32
33
|
@uri = "/Services/#{@solution[:service_sid]}/Channels"
|
|
@@ -67,6 +68,47 @@ module Twilio
|
|
|
67
68
|
)
|
|
68
69
|
end
|
|
69
70
|
|
|
71
|
+
##
|
|
72
|
+
# Create the ChannelInstanceMetadata
|
|
73
|
+
# @param [String] friendly_name A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
|
|
74
|
+
# @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service.
|
|
75
|
+
# @param [String] attributes A valid JSON string that contains application-specific data.
|
|
76
|
+
# @param [ChannelType] type
|
|
77
|
+
# @return [ChannelInstance] Created ChannelInstance
|
|
78
|
+
def create_with_metadata(
|
|
79
|
+
friendly_name: :unset,
|
|
80
|
+
unique_name: :unset,
|
|
81
|
+
attributes: :unset,
|
|
82
|
+
type: :unset
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
data = Twilio::Values.of({
|
|
86
|
+
'FriendlyName' => friendly_name,
|
|
87
|
+
'UniqueName' => unique_name,
|
|
88
|
+
'Attributes' => attributes,
|
|
89
|
+
'Type' => type,
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
|
|
99
|
+
channel_instance = ChannelInstance.new(
|
|
100
|
+
@version,
|
|
101
|
+
response.body,
|
|
102
|
+
service_sid: @solution[:service_sid],
|
|
103
|
+
)
|
|
104
|
+
ChannelInstanceMetadata.new(
|
|
105
|
+
@version,
|
|
106
|
+
channel_instance,
|
|
107
|
+
response.headers,
|
|
108
|
+
response.status_code
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
|
|
70
112
|
|
|
71
113
|
##
|
|
72
114
|
# Lists ChannelInstance records from the API as a list.
|
|
@@ -110,6 +152,31 @@ module Twilio
|
|
|
110
152
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
111
153
|
end
|
|
112
154
|
|
|
155
|
+
##
|
|
156
|
+
# Lists ChannelPageMetadata records from the API as a list.
|
|
157
|
+
# @param [Array[ChannelType]] type The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`.
|
|
158
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
159
|
+
# guarantees to never return more than limit. Default is no limit
|
|
160
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
161
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
162
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
163
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
164
|
+
# @return [Array] Array of up to limit results
|
|
165
|
+
def list_with_metadata(type: :unset, limit: nil, page_size: nil)
|
|
166
|
+
limits = @version.read_limits(limit, page_size)
|
|
167
|
+
params = Twilio::Values.of({
|
|
168
|
+
|
|
169
|
+
'Type' => Twilio.serialize_list(type) { |e| e },
|
|
170
|
+
|
|
171
|
+
'PageSize' => limits[:page_size],
|
|
172
|
+
});
|
|
173
|
+
headers = Twilio::Values.of({})
|
|
174
|
+
|
|
175
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
176
|
+
|
|
177
|
+
ChannelPageMetadata.new(@version, response, @solution, limits[:limit])
|
|
178
|
+
end
|
|
179
|
+
|
|
113
180
|
##
|
|
114
181
|
# When passed a block, yields ChannelInstance records from the API.
|
|
115
182
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
@@ -132,7 +199,7 @@ module Twilio
|
|
|
132
199
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
133
200
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
134
201
|
# @return [Page] Page of ChannelInstance
|
|
135
|
-
def page(type: :unset, page_token: :unset, page_number: :unset,
|
|
202
|
+
def page(type: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
136
203
|
params = Twilio::Values.of({
|
|
137
204
|
|
|
138
205
|
'Type' => Twilio.serialize_list(type) { |e| e },
|
|
@@ -180,6 +247,7 @@ module Twilio
|
|
|
180
247
|
# @return [ChannelContext] ChannelContext
|
|
181
248
|
def initialize(version, service_sid, sid)
|
|
182
249
|
super(version)
|
|
250
|
+
|
|
183
251
|
|
|
184
252
|
# Path Solution
|
|
185
253
|
@solution = { service_sid: service_sid, sid: sid, }
|
|
@@ -199,9 +267,29 @@ module Twilio
|
|
|
199
267
|
|
|
200
268
|
|
|
201
269
|
|
|
270
|
+
|
|
202
271
|
@version.delete('DELETE', @uri, headers: headers)
|
|
203
272
|
end
|
|
204
273
|
|
|
274
|
+
##
|
|
275
|
+
# Delete the ChannelInstanceMetadata
|
|
276
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
277
|
+
def delete_with_metadata
|
|
278
|
+
|
|
279
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
284
|
+
channel_instance = ChannelInstance.new(
|
|
285
|
+
@version,
|
|
286
|
+
response.body,
|
|
287
|
+
account_sid: @solution[:account_sid],
|
|
288
|
+
sid: @solution[:sid],
|
|
289
|
+
)
|
|
290
|
+
ChannelInstanceMetadata.new(@version, channel_instance, response.headers, response.status_code)
|
|
291
|
+
end
|
|
292
|
+
|
|
205
293
|
##
|
|
206
294
|
# Fetch the ChannelInstance
|
|
207
295
|
# @return [ChannelInstance] Fetched ChannelInstance
|
|
@@ -222,6 +310,32 @@ module Twilio
|
|
|
222
310
|
)
|
|
223
311
|
end
|
|
224
312
|
|
|
313
|
+
##
|
|
314
|
+
# Fetch the ChannelInstanceMetadata
|
|
315
|
+
# @return [ChannelInstance] Fetched ChannelInstance
|
|
316
|
+
def fetch_with_metadata
|
|
317
|
+
|
|
318
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
325
|
+
channel_instance = ChannelInstance.new(
|
|
326
|
+
@version,
|
|
327
|
+
response.body,
|
|
328
|
+
service_sid: @solution[:service_sid],
|
|
329
|
+
sid: @solution[:sid],
|
|
330
|
+
)
|
|
331
|
+
ChannelInstanceMetadata.new(
|
|
332
|
+
@version,
|
|
333
|
+
channel_instance,
|
|
334
|
+
response.headers,
|
|
335
|
+
response.status_code
|
|
336
|
+
)
|
|
337
|
+
end
|
|
338
|
+
|
|
225
339
|
##
|
|
226
340
|
# Update the ChannelInstance
|
|
227
341
|
# @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
|
|
@@ -255,6 +369,45 @@ module Twilio
|
|
|
255
369
|
)
|
|
256
370
|
end
|
|
257
371
|
|
|
372
|
+
##
|
|
373
|
+
# Update the ChannelInstanceMetadata
|
|
374
|
+
# @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
|
|
375
|
+
# @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service.
|
|
376
|
+
# @param [String] attributes A valid JSON string that contains application-specific data.
|
|
377
|
+
# @return [ChannelInstance] Updated ChannelInstance
|
|
378
|
+
def update_with_metadata(
|
|
379
|
+
friendly_name: :unset,
|
|
380
|
+
unique_name: :unset,
|
|
381
|
+
attributes: :unset
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
data = Twilio::Values.of({
|
|
385
|
+
'FriendlyName' => friendly_name,
|
|
386
|
+
'UniqueName' => unique_name,
|
|
387
|
+
'Attributes' => attributes,
|
|
388
|
+
})
|
|
389
|
+
|
|
390
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
|
|
397
|
+
channel_instance = ChannelInstance.new(
|
|
398
|
+
@version,
|
|
399
|
+
response.body,
|
|
400
|
+
service_sid: @solution[:service_sid],
|
|
401
|
+
sid: @solution[:sid],
|
|
402
|
+
)
|
|
403
|
+
ChannelInstanceMetadata.new(
|
|
404
|
+
@version,
|
|
405
|
+
channel_instance,
|
|
406
|
+
response.headers,
|
|
407
|
+
response.status_code
|
|
408
|
+
)
|
|
409
|
+
end
|
|
410
|
+
|
|
258
411
|
##
|
|
259
412
|
# Access the members
|
|
260
413
|
# @return [MemberList]
|
|
@@ -328,6 +481,53 @@ module Twilio
|
|
|
328
481
|
end
|
|
329
482
|
end
|
|
330
483
|
|
|
484
|
+
class ChannelInstanceMetadata < InstanceResourceMetadata
|
|
485
|
+
##
|
|
486
|
+
# Initializes a new ChannelInstanceMetadata.
|
|
487
|
+
# @param [Version] version Version that contains the resource
|
|
488
|
+
# @param [}ChannelInstance] channel_instance The instance associated with the metadata.
|
|
489
|
+
# @param [Hash] headers Header object with response headers.
|
|
490
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
491
|
+
# @return [ChannelInstanceMetadata] The initialized instance with metadata.
|
|
492
|
+
def initialize(version, channel_instance, headers, status_code)
|
|
493
|
+
super(version, headers, status_code)
|
|
494
|
+
@channel_instance = channel_instance
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
def channel
|
|
498
|
+
@channel_instance
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
def headers
|
|
502
|
+
@headers
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
def status_code
|
|
506
|
+
@status_code
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
def to_s
|
|
510
|
+
"<Twilio.Api.V2010.ChannelInstanceMetadata status=#{@status_code}>"
|
|
511
|
+
end
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
class ChannelListResponse < InstanceListResource
|
|
515
|
+
# @param [Array<ChannelInstance>] instance
|
|
516
|
+
# @param [Hash{String => Object}] headers
|
|
517
|
+
# @param [Integer] status_code
|
|
518
|
+
def initialize(version, payload, key)
|
|
519
|
+
@channel_instance = payload.body[key].map do |data|
|
|
520
|
+
ChannelInstance.new(version, data)
|
|
521
|
+
end
|
|
522
|
+
@headers = payload.headers
|
|
523
|
+
@status_code = payload.status_code
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
def channel_instance
|
|
527
|
+
@instance
|
|
528
|
+
end
|
|
529
|
+
end
|
|
530
|
+
|
|
331
531
|
class ChannelPage < Page
|
|
332
532
|
##
|
|
333
533
|
# Initialize the ChannelPage
|
|
@@ -337,6 +537,7 @@ module Twilio
|
|
|
337
537
|
# @return [ChannelPage] ChannelPage
|
|
338
538
|
def initialize(version, response, solution)
|
|
339
539
|
super(version, response)
|
|
540
|
+
|
|
340
541
|
|
|
341
542
|
# Path Solution
|
|
342
543
|
@solution = solution
|
|
@@ -356,6 +557,66 @@ module Twilio
|
|
|
356
557
|
'<Twilio.Chat.V1.ChannelPage>'
|
|
357
558
|
end
|
|
358
559
|
end
|
|
560
|
+
|
|
561
|
+
class ChannelPageMetadata < PageMetadata
|
|
562
|
+
attr_reader :channel_page
|
|
563
|
+
|
|
564
|
+
def initialize(version, response, solution, limit)
|
|
565
|
+
super(version, response)
|
|
566
|
+
@channel_page = []
|
|
567
|
+
@limit = limit
|
|
568
|
+
key = get_key(response.body)
|
|
569
|
+
records = 0
|
|
570
|
+
while( limit != :unset && records < limit )
|
|
571
|
+
@channel_page << ChannelListResponse.new(version, @payload, key, limit - records)
|
|
572
|
+
@payload = self.next_page
|
|
573
|
+
break unless @payload
|
|
574
|
+
records += @payload.body[key].size
|
|
575
|
+
end
|
|
576
|
+
# Path Solution
|
|
577
|
+
@solution = solution
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
def each
|
|
581
|
+
@channel_page.each do |record|
|
|
582
|
+
yield record
|
|
583
|
+
end
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
def to_s
|
|
587
|
+
'<Twilio::REST::Chat::V1PageMetadata>';
|
|
588
|
+
end
|
|
589
|
+
end
|
|
590
|
+
class ChannelListResponse < InstanceListResource
|
|
591
|
+
|
|
592
|
+
# @param [Array<ChannelInstance>] instance
|
|
593
|
+
# @param [Hash{String => Object}] headers
|
|
594
|
+
# @param [Integer] status_code
|
|
595
|
+
def initialize(version, payload, key, limit = :unset)
|
|
596
|
+
data_list = payload.body[key]
|
|
597
|
+
if limit != :unset
|
|
598
|
+
data_list = data_list[0, limit]
|
|
599
|
+
end
|
|
600
|
+
@channel = data_list.map do |data|
|
|
601
|
+
ChannelInstance.new(version, data)
|
|
602
|
+
end
|
|
603
|
+
@headers = payload.headers
|
|
604
|
+
@status_code = payload.status_code
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
def channel
|
|
608
|
+
@channel
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
def headers
|
|
612
|
+
@headers
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
def status_code
|
|
616
|
+
@status_code
|
|
617
|
+
end
|
|
618
|
+
end
|
|
619
|
+
|
|
359
620
|
class ChannelInstance < InstanceResource
|
|
360
621
|
##
|
|
361
622
|
# Initialize the ChannelInstance
|
|
@@ -369,6 +630,7 @@ module Twilio
|
|
|
369
630
|
def initialize(version, payload , service_sid: nil, sid: nil)
|
|
370
631
|
super(version)
|
|
371
632
|
|
|
633
|
+
|
|
372
634
|
# Marshaled Properties
|
|
373
635
|
@properties = {
|
|
374
636
|
'sid' => payload['sid'],
|
|
@@ -27,6 +27,7 @@ module Twilio
|
|
|
27
27
|
# @return [RoleList] RoleList
|
|
28
28
|
def initialize(version, service_sid: nil)
|
|
29
29
|
super(version)
|
|
30
|
+
|
|
30
31
|
# Path Solution
|
|
31
32
|
@solution = { service_sid: service_sid }
|
|
32
33
|
@uri = "/Services/#{@solution[:service_sid]}/Roles"
|
|
@@ -64,6 +65,44 @@ module Twilio
|
|
|
64
65
|
)
|
|
65
66
|
end
|
|
66
67
|
|
|
68
|
+
##
|
|
69
|
+
# Create the RoleInstanceMetadata
|
|
70
|
+
# @param [String] friendly_name A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
|
|
71
|
+
# @param [RoleType] type
|
|
72
|
+
# @param [Array[String]] permission A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation.
|
|
73
|
+
# @return [RoleInstance] Created RoleInstance
|
|
74
|
+
def create_with_metadata(
|
|
75
|
+
friendly_name: nil,
|
|
76
|
+
type: nil,
|
|
77
|
+
permission: nil
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
data = Twilio::Values.of({
|
|
81
|
+
'FriendlyName' => friendly_name,
|
|
82
|
+
'Type' => type,
|
|
83
|
+
'Permission' => Twilio.serialize_list(permission) { |e| e },
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
|
|
93
|
+
role_instance = RoleInstance.new(
|
|
94
|
+
@version,
|
|
95
|
+
response.body,
|
|
96
|
+
service_sid: @solution[:service_sid],
|
|
97
|
+
)
|
|
98
|
+
RoleInstanceMetadata.new(
|
|
99
|
+
@version,
|
|
100
|
+
role_instance,
|
|
101
|
+
response.headers,
|
|
102
|
+
response.status_code
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
|
|
67
106
|
|
|
68
107
|
##
|
|
69
108
|
# Lists RoleInstance records from the API as a list.
|
|
@@ -103,6 +142,28 @@ module Twilio
|
|
|
103
142
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
104
143
|
end
|
|
105
144
|
|
|
145
|
+
##
|
|
146
|
+
# Lists RolePageMetadata records from the API as a list.
|
|
147
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
148
|
+
# guarantees to never return more than limit. Default is no limit
|
|
149
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
150
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
151
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
152
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
153
|
+
# @return [Array] Array of up to limit results
|
|
154
|
+
def list_with_metadata(limit: nil, page_size: nil)
|
|
155
|
+
limits = @version.read_limits(limit, page_size)
|
|
156
|
+
params = Twilio::Values.of({
|
|
157
|
+
|
|
158
|
+
'PageSize' => limits[:page_size],
|
|
159
|
+
});
|
|
160
|
+
headers = Twilio::Values.of({})
|
|
161
|
+
|
|
162
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
163
|
+
|
|
164
|
+
RolePageMetadata.new(@version, response, @solution, limits[:limit])
|
|
165
|
+
end
|
|
166
|
+
|
|
106
167
|
##
|
|
107
168
|
# When passed a block, yields RoleInstance records from the API.
|
|
108
169
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
@@ -124,7 +185,7 @@ module Twilio
|
|
|
124
185
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
125
186
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
126
187
|
# @return [Page] Page of RoleInstance
|
|
127
|
-
def page(page_token: :unset, page_number: :unset,
|
|
188
|
+
def page(page_token: :unset, page_number: :unset,page_size: :unset)
|
|
128
189
|
params = Twilio::Values.of({
|
|
129
190
|
'PageToken' => page_token,
|
|
130
191
|
'Page' => page_number,
|
|
@@ -170,6 +231,7 @@ module Twilio
|
|
|
170
231
|
# @return [RoleContext] RoleContext
|
|
171
232
|
def initialize(version, service_sid, sid)
|
|
172
233
|
super(version)
|
|
234
|
+
|
|
173
235
|
|
|
174
236
|
# Path Solution
|
|
175
237
|
@solution = { service_sid: service_sid, sid: sid, }
|
|
@@ -186,9 +248,29 @@ module Twilio
|
|
|
186
248
|
|
|
187
249
|
|
|
188
250
|
|
|
251
|
+
|
|
189
252
|
@version.delete('DELETE', @uri, headers: headers)
|
|
190
253
|
end
|
|
191
254
|
|
|
255
|
+
##
|
|
256
|
+
# Delete the RoleInstanceMetadata
|
|
257
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
258
|
+
def delete_with_metadata
|
|
259
|
+
|
|
260
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
265
|
+
role_instance = RoleInstance.new(
|
|
266
|
+
@version,
|
|
267
|
+
response.body,
|
|
268
|
+
account_sid: @solution[:account_sid],
|
|
269
|
+
sid: @solution[:sid],
|
|
270
|
+
)
|
|
271
|
+
RoleInstanceMetadata.new(@version, role_instance, response.headers, response.status_code)
|
|
272
|
+
end
|
|
273
|
+
|
|
192
274
|
##
|
|
193
275
|
# Fetch the RoleInstance
|
|
194
276
|
# @return [RoleInstance] Fetched RoleInstance
|
|
@@ -209,6 +291,32 @@ module Twilio
|
|
|
209
291
|
)
|
|
210
292
|
end
|
|
211
293
|
|
|
294
|
+
##
|
|
295
|
+
# Fetch the RoleInstanceMetadata
|
|
296
|
+
# @return [RoleInstance] Fetched RoleInstance
|
|
297
|
+
def fetch_with_metadata
|
|
298
|
+
|
|
299
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
306
|
+
role_instance = RoleInstance.new(
|
|
307
|
+
@version,
|
|
308
|
+
response.body,
|
|
309
|
+
service_sid: @solution[:service_sid],
|
|
310
|
+
sid: @solution[:sid],
|
|
311
|
+
)
|
|
312
|
+
RoleInstanceMetadata.new(
|
|
313
|
+
@version,
|
|
314
|
+
role_instance,
|
|
315
|
+
response.headers,
|
|
316
|
+
response.status_code
|
|
317
|
+
)
|
|
318
|
+
end
|
|
319
|
+
|
|
212
320
|
##
|
|
213
321
|
# Update the RoleInstance
|
|
214
322
|
# @param [Array[String]] permission A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation.
|
|
@@ -236,6 +344,39 @@ module Twilio
|
|
|
236
344
|
)
|
|
237
345
|
end
|
|
238
346
|
|
|
347
|
+
##
|
|
348
|
+
# Update the RoleInstanceMetadata
|
|
349
|
+
# @param [Array[String]] permission A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation.
|
|
350
|
+
# @return [RoleInstance] Updated RoleInstance
|
|
351
|
+
def update_with_metadata(
|
|
352
|
+
permission: nil
|
|
353
|
+
)
|
|
354
|
+
|
|
355
|
+
data = Twilio::Values.of({
|
|
356
|
+
'Permission' => Twilio.serialize_list(permission) { |e| e },
|
|
357
|
+
})
|
|
358
|
+
|
|
359
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
|
|
366
|
+
role_instance = RoleInstance.new(
|
|
367
|
+
@version,
|
|
368
|
+
response.body,
|
|
369
|
+
service_sid: @solution[:service_sid],
|
|
370
|
+
sid: @solution[:sid],
|
|
371
|
+
)
|
|
372
|
+
RoleInstanceMetadata.new(
|
|
373
|
+
@version,
|
|
374
|
+
role_instance,
|
|
375
|
+
response.headers,
|
|
376
|
+
response.status_code
|
|
377
|
+
)
|
|
378
|
+
end
|
|
379
|
+
|
|
239
380
|
|
|
240
381
|
##
|
|
241
382
|
# Provide a user friendly representation
|
|
@@ -252,6 +393,53 @@ module Twilio
|
|
|
252
393
|
end
|
|
253
394
|
end
|
|
254
395
|
|
|
396
|
+
class RoleInstanceMetadata < InstanceResourceMetadata
|
|
397
|
+
##
|
|
398
|
+
# Initializes a new RoleInstanceMetadata.
|
|
399
|
+
# @param [Version] version Version that contains the resource
|
|
400
|
+
# @param [}RoleInstance] role_instance The instance associated with the metadata.
|
|
401
|
+
# @param [Hash] headers Header object with response headers.
|
|
402
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
403
|
+
# @return [RoleInstanceMetadata] The initialized instance with metadata.
|
|
404
|
+
def initialize(version, role_instance, headers, status_code)
|
|
405
|
+
super(version, headers, status_code)
|
|
406
|
+
@role_instance = role_instance
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
def role
|
|
410
|
+
@role_instance
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
def headers
|
|
414
|
+
@headers
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
def status_code
|
|
418
|
+
@status_code
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
def to_s
|
|
422
|
+
"<Twilio.Api.V2010.RoleInstanceMetadata status=#{@status_code}>"
|
|
423
|
+
end
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
class RoleListResponse < InstanceListResource
|
|
427
|
+
# @param [Array<RoleInstance>] instance
|
|
428
|
+
# @param [Hash{String => Object}] headers
|
|
429
|
+
# @param [Integer] status_code
|
|
430
|
+
def initialize(version, payload, key)
|
|
431
|
+
@role_instance = payload.body[key].map do |data|
|
|
432
|
+
RoleInstance.new(version, data)
|
|
433
|
+
end
|
|
434
|
+
@headers = payload.headers
|
|
435
|
+
@status_code = payload.status_code
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
def role_instance
|
|
439
|
+
@instance
|
|
440
|
+
end
|
|
441
|
+
end
|
|
442
|
+
|
|
255
443
|
class RolePage < Page
|
|
256
444
|
##
|
|
257
445
|
# Initialize the RolePage
|
|
@@ -261,6 +449,7 @@ module Twilio
|
|
|
261
449
|
# @return [RolePage] RolePage
|
|
262
450
|
def initialize(version, response, solution)
|
|
263
451
|
super(version, response)
|
|
452
|
+
|
|
264
453
|
|
|
265
454
|
# Path Solution
|
|
266
455
|
@solution = solution
|
|
@@ -280,6 +469,66 @@ module Twilio
|
|
|
280
469
|
'<Twilio.Chat.V1.RolePage>'
|
|
281
470
|
end
|
|
282
471
|
end
|
|
472
|
+
|
|
473
|
+
class RolePageMetadata < PageMetadata
|
|
474
|
+
attr_reader :role_page
|
|
475
|
+
|
|
476
|
+
def initialize(version, response, solution, limit)
|
|
477
|
+
super(version, response)
|
|
478
|
+
@role_page = []
|
|
479
|
+
@limit = limit
|
|
480
|
+
key = get_key(response.body)
|
|
481
|
+
records = 0
|
|
482
|
+
while( limit != :unset && records < limit )
|
|
483
|
+
@role_page << RoleListResponse.new(version, @payload, key, limit - records)
|
|
484
|
+
@payload = self.next_page
|
|
485
|
+
break unless @payload
|
|
486
|
+
records += @payload.body[key].size
|
|
487
|
+
end
|
|
488
|
+
# Path Solution
|
|
489
|
+
@solution = solution
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
def each
|
|
493
|
+
@role_page.each do |record|
|
|
494
|
+
yield record
|
|
495
|
+
end
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
def to_s
|
|
499
|
+
'<Twilio::REST::Chat::V1PageMetadata>';
|
|
500
|
+
end
|
|
501
|
+
end
|
|
502
|
+
class RoleListResponse < InstanceListResource
|
|
503
|
+
|
|
504
|
+
# @param [Array<RoleInstance>] instance
|
|
505
|
+
# @param [Hash{String => Object}] headers
|
|
506
|
+
# @param [Integer] status_code
|
|
507
|
+
def initialize(version, payload, key, limit = :unset)
|
|
508
|
+
data_list = payload.body[key]
|
|
509
|
+
if limit != :unset
|
|
510
|
+
data_list = data_list[0, limit]
|
|
511
|
+
end
|
|
512
|
+
@role = data_list.map do |data|
|
|
513
|
+
RoleInstance.new(version, data)
|
|
514
|
+
end
|
|
515
|
+
@headers = payload.headers
|
|
516
|
+
@status_code = payload.status_code
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
def role
|
|
520
|
+
@role
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
def headers
|
|
524
|
+
@headers
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
def status_code
|
|
528
|
+
@status_code
|
|
529
|
+
end
|
|
530
|
+
end
|
|
531
|
+
|
|
283
532
|
class RoleInstance < InstanceResource
|
|
284
533
|
##
|
|
285
534
|
# Initialize the RoleInstance
|
|
@@ -293,6 +542,7 @@ module Twilio
|
|
|
293
542
|
def initialize(version, payload , service_sid: nil, sid: nil)
|
|
294
543
|
super(version)
|
|
295
544
|
|
|
545
|
+
|
|
296
546
|
# Marshaled Properties
|
|
297
547
|
@properties = {
|
|
298
548
|
'sid' => payload['sid'],
|