twilio-ruby 7.3.7 → 7.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +8 -0
- data/.rubocop.yml +1 -0
- data/CHANGES.md +6 -0
- data/Makefile +1 -1
- data/README.md +7 -2
- 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 +8 -1
- 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/rest/domain.rb +0 -1
- data/lib/twilio-ruby/framework/rest/page.rb +1 -0
- data/lib/twilio-ruby/http/client_token_manager.rb +28 -0
- data/lib/twilio-ruby/http/http_client.rb +9 -0
- data/lib/twilio-ruby/http/org_token_manager.rb +28 -0
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +4 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +4 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +4 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +18 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +18 -1
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +10 -0
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +8 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +8 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +8 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +8 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +12 -1
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +12 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +12 -1
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +18 -1
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +4 -0
- data/lib/twilio-ruby/rest/api/v2010/account.rb +16 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +10 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +10 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +13 -5
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +10 -5
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +50 -31
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +4 -1
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +4 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +52 -33
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +4 -1
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +4 -1
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +8 -1
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +58 -39
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +8 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +8 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +6 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +4 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +8 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +14 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +4 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +10 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +14 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +14 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +18 -1
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +4 -0
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +7 -2
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +4 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +115 -101
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +4 -1
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +4 -1
- data/lib/twilio-ruby/rest/content/v2/content.rb +4 -1
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +4 -1
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +8 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +4 -0
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +4 -1
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +10 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +8 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +8 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +4 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +4 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +14 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +18 -1
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +14 -1
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +14 -1
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +18 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +8 -1
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +8 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +4 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +4 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +4 -0
- data/lib/twilio-ruby/rest/events/v1/sink.rb +18 -1
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +18 -1
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +18 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +14 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +8 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +18 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +8 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +4 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +18 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +14 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +14 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +4 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +8 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +8 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +16 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +8 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +12 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +18 -1
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +8 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +4 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +8 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +10 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +4 -1
- data/lib/twilio-ruby/rest/iam/v1/{key.rb → new_api_key.rb} +24 -20
- data/lib/twilio-ruby/rest/iam/v1.rb +4 -4
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +8 -0
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +4 -0
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +4 -1
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +4 -1
- data/lib/twilio-ruby/rest/insights/v1/call.rb +4 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +4 -1
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +8 -1
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +8 -1
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +8 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +8 -1
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +8 -0
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +18 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +8 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +6 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +4 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +8 -1
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +8 -1
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +18 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +4 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +8 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +4 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +14 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +14 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +4 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +10 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +14 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +10 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +14 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +18 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +18 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +4 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +4 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +8 -1
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +8 -1
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +12 -1
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +7 -2
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +18 -1
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +8 -0
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +6 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +12 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +16 -1
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +10 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +8 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +6 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +14 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +14 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +14 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +14 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +18 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +4 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +18 -1
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +4 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +18 -1
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +18 -1
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +4 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +10 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +18 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +18 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +12 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +8 -1
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +8 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +18 -1
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +14 -1
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +4 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +8 -0
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +4 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +10 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +6 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +4 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +4 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +2 -0
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +8 -1
- data/lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +24 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +4 -1
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +14 -1
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +8 -0
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +4 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +18 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +8 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +12 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +14 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +4 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +18 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +18 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +8 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +8 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +18 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +8 -1
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +4 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +4 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +4 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +16 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +18 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +8 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +8 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +12 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +18 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +14 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +18 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +18 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +14 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +14 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +18 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +14 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +14 -1
- data/lib/twilio-ruby/rest/preview/sync/service.rb +18 -1
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +12 -1
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +18 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +4 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +12 -1
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +148 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +186 -0
- data/lib/twilio-ruby/rest/preview_iam/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +309 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +375 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +530 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +277 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless.rb +49 -0
- data/lib/twilio-ruby/rest/preview_iam.rb +9 -0
- data/lib/twilio-ruby/rest/preview_iam_base.rb +38 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +8 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +8 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +8 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +4 -0
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +8 -1
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +4 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +8 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +4 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +18 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +10 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +12 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +14 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +18 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +18 -1
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +8 -0
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +8 -0
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +8 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +8 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +18 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +4 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +14 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +12 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +8 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +18 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +14 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +4 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +8 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +18 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +8 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +14 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +8 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +18 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +10 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +4 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +8 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +18 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +8 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +8 -0
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +18 -1
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +4 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +12 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +16 -1
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +12 -1
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +8 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +14 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +16 -1
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +4 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +4 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +4 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +16 -1
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +12 -1
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +14 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +14 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +14 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +4 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +18 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +8 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +12 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +4 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +12 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +12 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +18 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +4 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +18 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +14 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +14 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +18 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +14 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +8 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +18 -1
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +8 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +8 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +4 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +14 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +14 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +12 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +18 -1
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +18 -1
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +8 -1
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +8 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +18 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +8 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +14 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +14 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +12 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/form.rb +4 -0
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +10 -0
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +8 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +4 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +16 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +14 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +4 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +14 -1
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +12 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +4 -0
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +18 -1
- data/lib/twilio-ruby/rest/verify/v2/template.rb +4 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +8 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +14 -1
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +18 -1
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +10 -1
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +8 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +8 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +12 -1
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +10 -1
- data/lib/twilio-ruby/rest/video/v1/room.rb +16 -1
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +2 -0
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +18 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +18 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +18 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +4 -0
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +4 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +8 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +8 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +18 -1
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +18 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +14 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +18 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +4 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +4 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +14 -1
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +27 -5
@@ -99,8 +99,11 @@ module Twilio
|
|
99
99
|
'Page' => page_number,
|
100
100
|
'PageSize' => page_size,
|
101
101
|
})
|
102
|
+
headers = Twilio::Values.of({})
|
103
|
+
|
104
|
+
|
102
105
|
|
103
|
-
response = @version.page('GET', @uri, params: params)
|
106
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
104
107
|
|
105
108
|
SyncMapPermissionPage.new(@version, response, @solution)
|
106
109
|
end
|
@@ -151,6 +154,8 @@ module Twilio
|
|
151
154
|
|
152
155
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
153
156
|
|
157
|
+
|
158
|
+
|
154
159
|
@version.delete('DELETE', @uri, headers: headers)
|
155
160
|
end
|
156
161
|
|
@@ -161,6 +166,10 @@ module Twilio
|
|
161
166
|
|
162
167
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
163
168
|
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
164
173
|
payload = @version.fetch('GET', @uri, headers: headers)
|
165
174
|
SyncMapPermissionInstance.new(
|
166
175
|
@version,
|
@@ -191,6 +200,10 @@ module Twilio
|
|
191
200
|
|
192
201
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
193
202
|
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
194
207
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
195
208
|
SyncMapPermissionInstance.new(
|
196
209
|
@version,
|
@@ -46,6 +46,10 @@ module Twilio
|
|
46
46
|
|
47
47
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
48
48
|
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
49
53
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
50
54
|
SyncMapInstance.new(
|
51
55
|
@version,
|
@@ -120,8 +124,11 @@ module Twilio
|
|
120
124
|
'Page' => page_number,
|
121
125
|
'PageSize' => page_size,
|
122
126
|
})
|
127
|
+
headers = Twilio::Values.of({})
|
128
|
+
|
129
|
+
|
123
130
|
|
124
|
-
response = @version.page('GET', @uri, params: params)
|
131
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
125
132
|
|
126
133
|
SyncMapPage.new(@version, response, @solution)
|
127
134
|
end
|
@@ -173,6 +180,8 @@ module Twilio
|
|
173
180
|
|
174
181
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
175
182
|
|
183
|
+
|
184
|
+
|
176
185
|
@version.delete('DELETE', @uri, headers: headers)
|
177
186
|
end
|
178
187
|
|
@@ -183,6 +192,10 @@ module Twilio
|
|
183
192
|
|
184
193
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
185
194
|
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
186
199
|
payload = @version.fetch('GET', @uri, headers: headers)
|
187
200
|
SyncMapInstance.new(
|
188
201
|
@version,
|
@@ -53,6 +53,10 @@ module Twilio
|
|
53
53
|
|
54
54
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
55
55
|
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
56
60
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
57
61
|
ServiceInstance.new(
|
58
62
|
@version,
|
@@ -126,8 +130,11 @@ module Twilio
|
|
126
130
|
'Page' => page_number,
|
127
131
|
'PageSize' => page_size,
|
128
132
|
})
|
133
|
+
headers = Twilio::Values.of({})
|
134
|
+
|
135
|
+
|
129
136
|
|
130
|
-
response = @version.page('GET', @uri, params: params)
|
137
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
131
138
|
|
132
139
|
ServicePage.new(@version, response, @solution)
|
133
140
|
end
|
@@ -179,6 +186,8 @@ module Twilio
|
|
179
186
|
|
180
187
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
181
188
|
|
189
|
+
|
190
|
+
|
182
191
|
@version.delete('DELETE', @uri, headers: headers)
|
183
192
|
end
|
184
193
|
|
@@ -189,6 +198,10 @@ module Twilio
|
|
189
198
|
|
190
199
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
191
200
|
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
192
205
|
payload = @version.fetch('GET', @uri, headers: headers)
|
193
206
|
ServiceInstance.new(
|
194
207
|
@version,
|
@@ -220,6 +233,10 @@ module Twilio
|
|
220
233
|
|
221
234
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
222
235
|
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
223
240
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
224
241
|
ServiceInstance.new(
|
225
242
|
@version,
|
@@ -62,6 +62,10 @@ module Twilio
|
|
62
62
|
|
63
63
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
64
64
|
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
65
69
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
66
70
|
CommandInstance.new(
|
67
71
|
@version,
|
@@ -159,8 +163,11 @@ module Twilio
|
|
159
163
|
'Page' => page_number,
|
160
164
|
'PageSize' => page_size,
|
161
165
|
})
|
166
|
+
headers = Twilio::Values.of({})
|
167
|
+
|
168
|
+
|
162
169
|
|
163
|
-
response = @version.page('GET', @uri, params: params)
|
170
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
164
171
|
|
165
172
|
CommandPage.new(@version, response, @solution)
|
166
173
|
end
|
@@ -209,6 +216,10 @@ module Twilio
|
|
209
216
|
|
210
217
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
211
218
|
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
212
223
|
payload = @version.fetch('GET', @uri, headers: headers)
|
213
224
|
CommandInstance.new(
|
214
225
|
@version,
|
@@ -71,6 +71,10 @@ module Twilio
|
|
71
71
|
|
72
72
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
73
73
|
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
74
78
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
75
79
|
RatePlanInstance.new(
|
76
80
|
@version,
|
@@ -144,8 +148,11 @@ module Twilio
|
|
144
148
|
'Page' => page_number,
|
145
149
|
'PageSize' => page_size,
|
146
150
|
})
|
151
|
+
headers = Twilio::Values.of({})
|
152
|
+
|
153
|
+
|
147
154
|
|
148
|
-
response = @version.page('GET', @uri, params: params)
|
155
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
149
156
|
|
150
157
|
RatePlanPage.new(@version, response, @solution)
|
151
158
|
end
|
@@ -194,6 +201,8 @@ module Twilio
|
|
194
201
|
|
195
202
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
196
203
|
|
204
|
+
|
205
|
+
|
197
206
|
@version.delete('DELETE', @uri, headers: headers)
|
198
207
|
end
|
199
208
|
|
@@ -204,6 +213,10 @@ module Twilio
|
|
204
213
|
|
205
214
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
206
215
|
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
207
220
|
payload = @version.fetch('GET', @uri, headers: headers)
|
208
221
|
RatePlanInstance.new(
|
209
222
|
@version,
|
@@ -229,6 +242,10 @@ module Twilio
|
|
229
242
|
|
230
243
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
231
244
|
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
232
249
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
233
250
|
RatePlanInstance.new(
|
234
251
|
@version,
|
@@ -126,8 +126,11 @@ module Twilio
|
|
126
126
|
'Page' => page_number,
|
127
127
|
'PageSize' => page_size,
|
128
128
|
})
|
129
|
+
headers = Twilio::Values.of({})
|
130
|
+
|
131
|
+
|
129
132
|
|
130
|
-
response = @version.page('GET', @uri, params: params)
|
133
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
131
134
|
|
132
135
|
SimPage.new(@version, response, @solution)
|
133
136
|
end
|
@@ -177,6 +180,10 @@ module Twilio
|
|
177
180
|
|
178
181
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
179
182
|
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
180
187
|
payload = @version.fetch('GET', @uri, headers: headers)
|
181
188
|
SimInstance.new(
|
182
189
|
@version,
|
@@ -244,6 +251,10 @@ module Twilio
|
|
244
251
|
|
245
252
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
246
253
|
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
247
258
|
payload = @version.update('POST', @uri, data: data, headers: headers)
|
248
259
|
SimInstance.new(
|
249
260
|
@version,
|
@@ -0,0 +1,148 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Organization Public API
|
8
|
+
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
9
|
+
#
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
+
# https://openapi-generator.tech
|
12
|
+
# Do not edit the class manually.
|
13
|
+
#
|
14
|
+
|
15
|
+
|
16
|
+
module Twilio
|
17
|
+
module REST
|
18
|
+
class PreviewIam < PreviewIamBase
|
19
|
+
class V1 < Version
|
20
|
+
class AuthorizeList < ListResource
|
21
|
+
|
22
|
+
##
|
23
|
+
# Initialize the AuthorizeList
|
24
|
+
# @param [Version] version Version that contains the resource
|
25
|
+
# @return [AuthorizeList] AuthorizeList
|
26
|
+
def initialize(version)
|
27
|
+
super(version)
|
28
|
+
# Path Solution
|
29
|
+
@solution = { }
|
30
|
+
@uri = "/authorize"
|
31
|
+
|
32
|
+
end
|
33
|
+
##
|
34
|
+
# Fetch the AuthorizeInstance
|
35
|
+
# @param [String] response_type Response Type
|
36
|
+
# @param [String] client_id The Client Identifier
|
37
|
+
# @param [String] redirect_uri The url to which response will be redirected to
|
38
|
+
# @param [String] scope The scope of the access request
|
39
|
+
# @param [String] state An opaque value which can be used to maintain state between the request and callback
|
40
|
+
# @return [AuthorizeInstance] Fetched AuthorizeInstance
|
41
|
+
def fetch(
|
42
|
+
response_type: :unset,
|
43
|
+
client_id: :unset,
|
44
|
+
redirect_uri: :unset,
|
45
|
+
scope: :unset,
|
46
|
+
state: :unset
|
47
|
+
)
|
48
|
+
|
49
|
+
params = Twilio::Values.of({
|
50
|
+
'response_type' => response_type,
|
51
|
+
'client_id' => client_id,
|
52
|
+
'redirect_uri' => redirect_uri,
|
53
|
+
'scope' => scope,
|
54
|
+
'state' => state,
|
55
|
+
})
|
56
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
63
|
+
AuthorizeInstance.new(
|
64
|
+
@version,
|
65
|
+
payload,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
# Provide a user friendly representation
|
73
|
+
def to_s
|
74
|
+
'#<Twilio.PreviewIam.V1.AuthorizeList>'
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
class AuthorizePage < Page
|
79
|
+
##
|
80
|
+
# Initialize the AuthorizePage
|
81
|
+
# @param [Version] version Version that contains the resource
|
82
|
+
# @param [Response] response Response from the API
|
83
|
+
# @param [Hash] solution Path solution for the resource
|
84
|
+
# @return [AuthorizePage] AuthorizePage
|
85
|
+
def initialize(version, response, solution)
|
86
|
+
super(version, response)
|
87
|
+
|
88
|
+
# Path Solution
|
89
|
+
@solution = solution
|
90
|
+
end
|
91
|
+
|
92
|
+
##
|
93
|
+
# Build an instance of AuthorizeInstance
|
94
|
+
# @param [Hash] payload Payload response from the API
|
95
|
+
# @return [AuthorizeInstance] AuthorizeInstance
|
96
|
+
def get_instance(payload)
|
97
|
+
AuthorizeInstance.new(@version, payload)
|
98
|
+
end
|
99
|
+
|
100
|
+
##
|
101
|
+
# Provide a user friendly representation
|
102
|
+
def to_s
|
103
|
+
'<Twilio.PreviewIam.V1.AuthorizePage>'
|
104
|
+
end
|
105
|
+
end
|
106
|
+
class AuthorizeInstance < InstanceResource
|
107
|
+
##
|
108
|
+
# Initialize the AuthorizeInstance
|
109
|
+
# @param [Version] version Version that contains the resource
|
110
|
+
# @param [Hash] payload payload that contains response from Twilio
|
111
|
+
# @param [String] account_sid The SID of the
|
112
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Authorize
|
113
|
+
# resource.
|
114
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
115
|
+
# @return [AuthorizeInstance] AuthorizeInstance
|
116
|
+
def initialize(version, payload )
|
117
|
+
super(version)
|
118
|
+
|
119
|
+
# Marshaled Properties
|
120
|
+
@properties = {
|
121
|
+
'redirect_to' => payload['redirect_to'],
|
122
|
+
}
|
123
|
+
end
|
124
|
+
|
125
|
+
|
126
|
+
##
|
127
|
+
# @return [String] The callback URL
|
128
|
+
def redirect_to
|
129
|
+
@properties['redirect_to']
|
130
|
+
end
|
131
|
+
|
132
|
+
##
|
133
|
+
# Provide a user friendly representation
|
134
|
+
def to_s
|
135
|
+
"<Twilio.PreviewIam.V1.AuthorizeInstance>"
|
136
|
+
end
|
137
|
+
|
138
|
+
##
|
139
|
+
# Provide a detailed, user friendly representation
|
140
|
+
def inspect
|
141
|
+
"<Twilio.PreviewIam.V1.AuthorizeInstance>"
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
@@ -0,0 +1,186 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Organization Public API
|
8
|
+
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
9
|
+
#
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
+
# https://openapi-generator.tech
|
12
|
+
# Do not edit the class manually.
|
13
|
+
#
|
14
|
+
|
15
|
+
|
16
|
+
module Twilio
|
17
|
+
module REST
|
18
|
+
class PreviewIam < PreviewIamBase
|
19
|
+
class V1 < Version
|
20
|
+
class TokenList < ListResource
|
21
|
+
|
22
|
+
##
|
23
|
+
# Initialize the TokenList
|
24
|
+
# @param [Version] version Version that contains the resource
|
25
|
+
# @return [TokenList] TokenList
|
26
|
+
def initialize(version)
|
27
|
+
super(version)
|
28
|
+
# Path Solution
|
29
|
+
@solution = { }
|
30
|
+
@uri = "/token"
|
31
|
+
|
32
|
+
end
|
33
|
+
##
|
34
|
+
# Create the TokenInstance
|
35
|
+
# @param [String] grant_type Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token.
|
36
|
+
# @param [String] client_id A 34 character string that uniquely identifies this OAuth App.
|
37
|
+
# @param [String] client_secret The credential for confidential OAuth App.
|
38
|
+
# @param [String] code JWT token related to the authorization code grant type.
|
39
|
+
# @param [String] redirect_uri The redirect uri
|
40
|
+
# @param [String] audience The targeted audience uri
|
41
|
+
# @param [String] refresh_token JWT token related to refresh access token.
|
42
|
+
# @param [String] scope The scope of token
|
43
|
+
# @return [TokenInstance] Created TokenInstance
|
44
|
+
def create(
|
45
|
+
grant_type: nil,
|
46
|
+
client_id: nil,
|
47
|
+
client_secret: :unset,
|
48
|
+
code: :unset,
|
49
|
+
redirect_uri: :unset,
|
50
|
+
audience: :unset,
|
51
|
+
refresh_token: :unset,
|
52
|
+
scope: :unset
|
53
|
+
)
|
54
|
+
|
55
|
+
data = Twilio::Values.of({
|
56
|
+
'grant_type' => grant_type,
|
57
|
+
'client_id' => client_id,
|
58
|
+
'client_secret' => client_secret,
|
59
|
+
'code' => code,
|
60
|
+
'redirect_uri' => redirect_uri,
|
61
|
+
'audience' => audience,
|
62
|
+
'refresh_token' => refresh_token,
|
63
|
+
'scope' => scope,
|
64
|
+
})
|
65
|
+
|
66
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
73
|
+
TokenInstance.new(
|
74
|
+
@version,
|
75
|
+
payload,
|
76
|
+
)
|
77
|
+
end
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
# Provide a user friendly representation
|
83
|
+
def to_s
|
84
|
+
'#<Twilio.PreviewIam.V1.TokenList>'
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
class TokenPage < Page
|
89
|
+
##
|
90
|
+
# Initialize the TokenPage
|
91
|
+
# @param [Version] version Version that contains the resource
|
92
|
+
# @param [Response] response Response from the API
|
93
|
+
# @param [Hash] solution Path solution for the resource
|
94
|
+
# @return [TokenPage] TokenPage
|
95
|
+
def initialize(version, response, solution)
|
96
|
+
super(version, response)
|
97
|
+
|
98
|
+
# Path Solution
|
99
|
+
@solution = solution
|
100
|
+
end
|
101
|
+
|
102
|
+
##
|
103
|
+
# Build an instance of TokenInstance
|
104
|
+
# @param [Hash] payload Payload response from the API
|
105
|
+
# @return [TokenInstance] TokenInstance
|
106
|
+
def get_instance(payload)
|
107
|
+
TokenInstance.new(@version, payload)
|
108
|
+
end
|
109
|
+
|
110
|
+
##
|
111
|
+
# Provide a user friendly representation
|
112
|
+
def to_s
|
113
|
+
'<Twilio.PreviewIam.V1.TokenPage>'
|
114
|
+
end
|
115
|
+
end
|
116
|
+
class TokenInstance < InstanceResource
|
117
|
+
##
|
118
|
+
# Initialize the TokenInstance
|
119
|
+
# @param [Version] version Version that contains the resource
|
120
|
+
# @param [Hash] payload payload that contains response from Twilio
|
121
|
+
# @param [String] account_sid The SID of the
|
122
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Token
|
123
|
+
# resource.
|
124
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
125
|
+
# @return [TokenInstance] TokenInstance
|
126
|
+
def initialize(version, payload )
|
127
|
+
super(version)
|
128
|
+
|
129
|
+
# Marshaled Properties
|
130
|
+
@properties = {
|
131
|
+
'access_token' => payload['access_token'],
|
132
|
+
'refresh_token' => payload['refresh_token'],
|
133
|
+
'id_token' => payload['id_token'],
|
134
|
+
'token_type' => payload['token_type'],
|
135
|
+
'expires_in' => payload['expires_in'],
|
136
|
+
}
|
137
|
+
end
|
138
|
+
|
139
|
+
|
140
|
+
##
|
141
|
+
# @return [String] Token which carries the necessary information to access a Twilio resource directly.
|
142
|
+
def access_token
|
143
|
+
@properties['access_token']
|
144
|
+
end
|
145
|
+
|
146
|
+
##
|
147
|
+
# @return [String] Token which carries the information necessary to get a new access token.
|
148
|
+
def refresh_token
|
149
|
+
@properties['refresh_token']
|
150
|
+
end
|
151
|
+
|
152
|
+
##
|
153
|
+
# @return [String] Token which carries the information necessary of user profile.
|
154
|
+
def id_token
|
155
|
+
@properties['id_token']
|
156
|
+
end
|
157
|
+
|
158
|
+
##
|
159
|
+
# @return [String] Token type
|
160
|
+
def token_type
|
161
|
+
@properties['token_type']
|
162
|
+
end
|
163
|
+
|
164
|
+
##
|
165
|
+
# @return [String]
|
166
|
+
def expires_in
|
167
|
+
@properties['expires_in']
|
168
|
+
end
|
169
|
+
|
170
|
+
##
|
171
|
+
# Provide a user friendly representation
|
172
|
+
def to_s
|
173
|
+
"<Twilio.PreviewIam.V1.TokenInstance>"
|
174
|
+
end
|
175
|
+
|
176
|
+
##
|
177
|
+
# Provide a detailed, user friendly representation
|
178
|
+
def inspect
|
179
|
+
"<Twilio.PreviewIam.V1.TokenInstance>"
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Organization Public API
|
8
|
+
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
9
|
+
#
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
+
# https://openapi-generator.tech
|
12
|
+
# Do not edit the class manually.
|
13
|
+
#
|
14
|
+
|
15
|
+
module Twilio
|
16
|
+
module REST
|
17
|
+
class PreviewIam
|
18
|
+
class V1 < Version
|
19
|
+
##
|
20
|
+
# Initialize the V1 version of PreviewIam
|
21
|
+
def initialize(domain)
|
22
|
+
super
|
23
|
+
@version = 'v1'
|
24
|
+
@authorize = nil
|
25
|
+
@token = nil
|
26
|
+
end
|
27
|
+
|
28
|
+
##
|
29
|
+
# @return [Twilio::REST::PreviewIam::V1::AuthorizeList]
|
30
|
+
def authorize
|
31
|
+
@authorize ||= AuthorizeList.new self
|
32
|
+
end
|
33
|
+
##
|
34
|
+
# @return [Twilio::REST::PreviewIam::V1::TokenList]
|
35
|
+
def token
|
36
|
+
@token ||= TokenList.new self
|
37
|
+
end
|
38
|
+
##
|
39
|
+
# Provide a user friendly representation
|
40
|
+
def to_s
|
41
|
+
'<Twilio::REST::PreviewIam::V1>';
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|