twilio-ruby 7.1.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +39 -0
- data/Makefile +3 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/base/client_base.rb +4 -1
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +2 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +8 -4
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +8 -4
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +6 -3
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +9 -5
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +10 -6
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +5 -3
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +6 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +2 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +2 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +4 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +5 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +5 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +5 -4
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +5 -3
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +6 -4
- data/lib/twilio-ruby/rest/chat/v2/service.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +1 -1
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +3 -2
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +2 -1
- data/lib/twilio-ruby/rest/content/v1/content.rb +7 -4
- data/lib/twilio-ruby/rest/content/v2/content.rb +60 -3
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +60 -3
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +2 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +2 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +6 -3
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +6 -3
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +6 -3
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +5 -4
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +16 -1
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +8 -4
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +8 -4
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +8 -4
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +6 -3
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +5 -3
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +8 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +4 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +4 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +4 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +8 -4
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +1 -1
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +4 -2
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +4 -2
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +4 -2
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +7 -4
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +4 -2
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +7 -4
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +4 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +5 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +5 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +5 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +6 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +8 -4
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -1
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +2 -1
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +309 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +336 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +352 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +170 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +465 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +284 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +79 -0
- data/lib/twilio-ruby/rest/marketplace.rb +6 -0
- data/lib/twilio-ruby/rest/marketplace_base.rb +38 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +4 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +4 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +4 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +8 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +23 -7
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1.rb +1 -1
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +2 -1
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +4 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +4 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -1
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +2 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +6 -3
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -1
- data/lib/twilio-ruby/rest/notify/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +5 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +3 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +14 -4
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +29 -6
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +2 -15
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +3 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +177 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +6 -3
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +5 -3
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +6 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +4 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +6 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +2 -1
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +2 -1
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +2 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +8 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +6 -3
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -4
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +2 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +2 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +4 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +8 -4
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +6 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +6 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service.rb +8 -4
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +4 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +8 -4
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +2 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +4 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +2 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +8 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +4 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +4 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +6 -3
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +8 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +8 -4
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +4 -2
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +4 -2
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +4 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +8 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +6 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +8 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +8 -4
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +6 -3
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +4 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +4 -2
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +2 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -2
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +4 -2
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +2 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +4 -2
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +8 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +6 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +8 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +2 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +8 -4
- data/lib/twilio-ruby/rest/sync/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +3 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +6 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +3 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +3 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +4 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +6 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +8 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +6 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +6 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +8 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +6 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +4 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +6 -2
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +2 -1
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +2 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +2 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/form.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +4 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/composition.rb +6 -3
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +8 -4
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room.rb +6 -3
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +4 -2
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +8 -4
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +6 -3
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +8 -4
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +6 -3
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +12 -2
@@ -0,0 +1,284 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Marketplace
|
8
|
+
# This is the public Twilio REST API.
|
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 Marketplace < MarketplaceBase
|
19
|
+
class V1 < Version
|
20
|
+
class ModuleDataManagementList < ListResource
|
21
|
+
|
22
|
+
##
|
23
|
+
# Initialize the ModuleDataManagementList
|
24
|
+
# @param [Version] version Version that contains the resource
|
25
|
+
# @return [ModuleDataManagementList] ModuleDataManagementList
|
26
|
+
def initialize(version)
|
27
|
+
super(version)
|
28
|
+
# Path Solution
|
29
|
+
@solution = { }
|
30
|
+
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
# Provide a user friendly representation
|
37
|
+
def to_s
|
38
|
+
'#<Twilio.Marketplace.V1.ModuleDataManagementList>'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
class ModuleDataManagementContext < InstanceContext
|
44
|
+
##
|
45
|
+
# Initialize the ModuleDataManagementContext
|
46
|
+
# @param [Version] version Version that contains the resource
|
47
|
+
# @param [String] sid
|
48
|
+
# @return [ModuleDataManagementContext] ModuleDataManagementContext
|
49
|
+
def initialize(version, sid)
|
50
|
+
super(version)
|
51
|
+
|
52
|
+
# Path Solution
|
53
|
+
@solution = { sid: sid, }
|
54
|
+
@uri = "/Listing/#{@solution[:sid]}"
|
55
|
+
|
56
|
+
|
57
|
+
end
|
58
|
+
##
|
59
|
+
# Fetch the ModuleDataManagementInstance
|
60
|
+
# @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
|
61
|
+
def fetch
|
62
|
+
|
63
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
64
|
+
|
65
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
66
|
+
ModuleDataManagementInstance.new(
|
67
|
+
@version,
|
68
|
+
payload,
|
69
|
+
sid: @solution[:sid],
|
70
|
+
)
|
71
|
+
end
|
72
|
+
|
73
|
+
##
|
74
|
+
# Update the ModuleDataManagementInstance
|
75
|
+
# @param [String] module_info
|
76
|
+
# @param [String] description
|
77
|
+
# @param [String] documentation
|
78
|
+
# @param [String] policies
|
79
|
+
# @param [String] support
|
80
|
+
# @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
|
81
|
+
def update(
|
82
|
+
module_info: :unset,
|
83
|
+
description: :unset,
|
84
|
+
documentation: :unset,
|
85
|
+
policies: :unset,
|
86
|
+
support: :unset
|
87
|
+
)
|
88
|
+
|
89
|
+
data = Twilio::Values.of({
|
90
|
+
'ModuleInfo' => module_info,
|
91
|
+
'Description' => description,
|
92
|
+
'Documentation' => documentation,
|
93
|
+
'Policies' => policies,
|
94
|
+
'Support' => support,
|
95
|
+
})
|
96
|
+
|
97
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
98
|
+
|
99
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
100
|
+
ModuleDataManagementInstance.new(
|
101
|
+
@version,
|
102
|
+
payload,
|
103
|
+
sid: @solution[:sid],
|
104
|
+
)
|
105
|
+
end
|
106
|
+
|
107
|
+
|
108
|
+
##
|
109
|
+
# Provide a user friendly representation
|
110
|
+
def to_s
|
111
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
112
|
+
"#<Twilio.Marketplace.V1.ModuleDataManagementContext #{context}>"
|
113
|
+
end
|
114
|
+
|
115
|
+
##
|
116
|
+
# Provide a detailed, user friendly representation
|
117
|
+
def inspect
|
118
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
119
|
+
"#<Twilio.Marketplace.V1.ModuleDataManagementContext #{context}>"
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
class ModuleDataManagementPage < Page
|
124
|
+
##
|
125
|
+
# Initialize the ModuleDataManagementPage
|
126
|
+
# @param [Version] version Version that contains the resource
|
127
|
+
# @param [Response] response Response from the API
|
128
|
+
# @param [Hash] solution Path solution for the resource
|
129
|
+
# @return [ModuleDataManagementPage] ModuleDataManagementPage
|
130
|
+
def initialize(version, response, solution)
|
131
|
+
super(version, response)
|
132
|
+
|
133
|
+
# Path Solution
|
134
|
+
@solution = solution
|
135
|
+
end
|
136
|
+
|
137
|
+
##
|
138
|
+
# Build an instance of ModuleDataManagementInstance
|
139
|
+
# @param [Hash] payload Payload response from the API
|
140
|
+
# @return [ModuleDataManagementInstance] ModuleDataManagementInstance
|
141
|
+
def get_instance(payload)
|
142
|
+
ModuleDataManagementInstance.new(@version, payload)
|
143
|
+
end
|
144
|
+
|
145
|
+
##
|
146
|
+
# Provide a user friendly representation
|
147
|
+
def to_s
|
148
|
+
'<Twilio.Marketplace.V1.ModuleDataManagementPage>'
|
149
|
+
end
|
150
|
+
end
|
151
|
+
class ModuleDataManagementInstance < InstanceResource
|
152
|
+
##
|
153
|
+
# Initialize the ModuleDataManagementInstance
|
154
|
+
# @param [Version] version Version that contains the resource
|
155
|
+
# @param [Hash] payload payload that contains response from Twilio
|
156
|
+
# @param [String] account_sid The SID of the
|
157
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ModuleDataManagement
|
158
|
+
# resource.
|
159
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
160
|
+
# @return [ModuleDataManagementInstance] ModuleDataManagementInstance
|
161
|
+
def initialize(version, payload , sid: nil)
|
162
|
+
super(version)
|
163
|
+
|
164
|
+
# Marshaled Properties
|
165
|
+
@properties = {
|
166
|
+
'url' => payload['url'],
|
167
|
+
'sid' => payload['sid'],
|
168
|
+
'description' => payload['description'],
|
169
|
+
'support' => payload['support'],
|
170
|
+
'policies' => payload['policies'],
|
171
|
+
'module_info' => payload['module_info'],
|
172
|
+
'documentation' => payload['documentation'],
|
173
|
+
}
|
174
|
+
|
175
|
+
# Context
|
176
|
+
@instance_context = nil
|
177
|
+
@params = { 'sid' => sid || @properties['sid'] , }
|
178
|
+
end
|
179
|
+
|
180
|
+
##
|
181
|
+
# Generate an instance context for the instance, the context is capable of
|
182
|
+
# performing various actions. All instance actions are proxied to the context
|
183
|
+
# @return [ModuleDataManagementContext] CallContext for this CallInstance
|
184
|
+
def context
|
185
|
+
unless @instance_context
|
186
|
+
@instance_context = ModuleDataManagementContext.new(@version , @params['sid'])
|
187
|
+
end
|
188
|
+
@instance_context
|
189
|
+
end
|
190
|
+
|
191
|
+
##
|
192
|
+
# @return [String]
|
193
|
+
def url
|
194
|
+
@properties['url']
|
195
|
+
end
|
196
|
+
|
197
|
+
##
|
198
|
+
# @return [String]
|
199
|
+
def sid
|
200
|
+
@properties['sid']
|
201
|
+
end
|
202
|
+
|
203
|
+
##
|
204
|
+
# @return [Hash]
|
205
|
+
def description
|
206
|
+
@properties['description']
|
207
|
+
end
|
208
|
+
|
209
|
+
##
|
210
|
+
# @return [Hash]
|
211
|
+
def support
|
212
|
+
@properties['support']
|
213
|
+
end
|
214
|
+
|
215
|
+
##
|
216
|
+
# @return [Hash]
|
217
|
+
def policies
|
218
|
+
@properties['policies']
|
219
|
+
end
|
220
|
+
|
221
|
+
##
|
222
|
+
# @return [Hash]
|
223
|
+
def module_info
|
224
|
+
@properties['module_info']
|
225
|
+
end
|
226
|
+
|
227
|
+
##
|
228
|
+
# @return [Hash]
|
229
|
+
def documentation
|
230
|
+
@properties['documentation']
|
231
|
+
end
|
232
|
+
|
233
|
+
##
|
234
|
+
# Fetch the ModuleDataManagementInstance
|
235
|
+
# @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
|
236
|
+
def fetch
|
237
|
+
|
238
|
+
context.fetch
|
239
|
+
end
|
240
|
+
|
241
|
+
##
|
242
|
+
# Update the ModuleDataManagementInstance
|
243
|
+
# @param [String] module_info
|
244
|
+
# @param [String] description
|
245
|
+
# @param [String] documentation
|
246
|
+
# @param [String] policies
|
247
|
+
# @param [String] support
|
248
|
+
# @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
|
249
|
+
def update(
|
250
|
+
module_info: :unset,
|
251
|
+
description: :unset,
|
252
|
+
documentation: :unset,
|
253
|
+
policies: :unset,
|
254
|
+
support: :unset
|
255
|
+
)
|
256
|
+
|
257
|
+
context.update(
|
258
|
+
module_info: module_info,
|
259
|
+
description: description,
|
260
|
+
documentation: documentation,
|
261
|
+
policies: policies,
|
262
|
+
support: support,
|
263
|
+
)
|
264
|
+
end
|
265
|
+
|
266
|
+
##
|
267
|
+
# Provide a user friendly representation
|
268
|
+
def to_s
|
269
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
270
|
+
"<Twilio.Marketplace.V1.ModuleDataManagementInstance #{values}>"
|
271
|
+
end
|
272
|
+
|
273
|
+
##
|
274
|
+
# Provide a detailed, user friendly representation
|
275
|
+
def inspect
|
276
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
277
|
+
"<Twilio.Marketplace.V1.ModuleDataManagementInstance #{values}>"
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|
284
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Marketplace
|
8
|
+
# This is the public Twilio REST API.
|
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 Marketplace
|
18
|
+
class V1 < Version
|
19
|
+
##
|
20
|
+
# Initialize the V1 version of Marketplace
|
21
|
+
def initialize(domain)
|
22
|
+
super
|
23
|
+
@version = 'v1'
|
24
|
+
@available_add_ons = nil
|
25
|
+
@installed_add_ons = nil
|
26
|
+
@module_data_management = nil
|
27
|
+
end
|
28
|
+
|
29
|
+
##
|
30
|
+
# @param [String] sid The SID of the AvailableAddOn resource to fetch.
|
31
|
+
# @return [Twilio::REST::Marketplace::V1::AvailableAddOnContext] if sid was passed.
|
32
|
+
# @return [Twilio::REST::Marketplace::V1::AvailableAddOnList]
|
33
|
+
def available_add_ons(sid=:unset)
|
34
|
+
if sid.nil?
|
35
|
+
raise ArgumentError, 'sid cannot be nil'
|
36
|
+
end
|
37
|
+
if sid == :unset
|
38
|
+
@available_add_ons ||= AvailableAddOnList.new self
|
39
|
+
else
|
40
|
+
AvailableAddOnContext.new(self, sid)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
##
|
44
|
+
# @param [String] sid The SID of the InstalledAddOn resource to fetch.
|
45
|
+
# @return [Twilio::REST::Marketplace::V1::InstalledAddOnContext] if sid was passed.
|
46
|
+
# @return [Twilio::REST::Marketplace::V1::InstalledAddOnList]
|
47
|
+
def installed_add_ons(sid=:unset)
|
48
|
+
if sid.nil?
|
49
|
+
raise ArgumentError, 'sid cannot be nil'
|
50
|
+
end
|
51
|
+
if sid == :unset
|
52
|
+
@installed_add_ons ||= InstalledAddOnList.new self
|
53
|
+
else
|
54
|
+
InstalledAddOnContext.new(self, sid)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
##
|
58
|
+
# @param [String] sid
|
59
|
+
# @return [Twilio::REST::Marketplace::V1::ModuleDataManagementContext] if sid was passed.
|
60
|
+
# @return [Twilio::REST::Marketplace::V1::ModuleDataManagementList]
|
61
|
+
def module_data_management(sid=:unset)
|
62
|
+
if sid.nil?
|
63
|
+
raise ArgumentError, 'sid cannot be nil'
|
64
|
+
end
|
65
|
+
if sid == :unset
|
66
|
+
@module_data_management ||= ModuleDataManagementList.new self
|
67
|
+
else
|
68
|
+
ModuleDataManagementContext.new(self, sid)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
##
|
72
|
+
# Provide a user friendly representation
|
73
|
+
def to_s
|
74
|
+
'<Twilio::REST::Marketplace::V1>';
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
8
|
+
# https://openapi-generator.tech
|
9
|
+
# Do not edit the class manually.
|
10
|
+
# frozen_string_literal: true
|
11
|
+
module Twilio
|
12
|
+
module REST
|
13
|
+
class MarketplaceBase < Domain
|
14
|
+
##
|
15
|
+
# Initialize marketplace domain
|
16
|
+
#
|
17
|
+
# @param twilio - The twilio client
|
18
|
+
#
|
19
|
+
def initialize(twilio)
|
20
|
+
super(twilio)
|
21
|
+
@base_url = "https://marketplace.twilio.com"
|
22
|
+
@host = "marketplace.twilio.com"
|
23
|
+
@port = 443
|
24
|
+
@v1 = nil
|
25
|
+
end
|
26
|
+
|
27
|
+
def v1
|
28
|
+
@v1 ||= Marketplace::V1.new self
|
29
|
+
end
|
30
|
+
|
31
|
+
##
|
32
|
+
# Provide a user friendly representation
|
33
|
+
def to_s
|
34
|
+
'<Twilio::REST::Marketplace::V1>';
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -37,8 +37,9 @@ module Twilio
|
|
37
37
|
# @return [BrandRegistrationOtpInstance] Created BrandRegistrationOtpInstance
|
38
38
|
def create
|
39
39
|
|
40
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
40
41
|
|
41
|
-
payload = @version.create('POST', @uri)
|
42
|
+
payload = @version.create('POST', @uri, headers: headers)
|
42
43
|
BrandRegistrationOtpInstance.new(
|
43
44
|
@version,
|
44
45
|
payload,
|
@@ -47,8 +47,9 @@ module Twilio
|
|
47
47
|
'VettingId' => vetting_id,
|
48
48
|
})
|
49
49
|
|
50
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
50
51
|
|
51
|
-
payload = @version.create('POST', @uri, data: data)
|
52
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
52
53
|
BrandVettingInstance.new(
|
53
54
|
@version,
|
54
55
|
payload,
|
@@ -177,8 +178,9 @@ module Twilio
|
|
177
178
|
# @return [BrandVettingInstance] Fetched BrandVettingInstance
|
178
179
|
def fetch
|
179
180
|
|
181
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
180
182
|
|
181
|
-
payload = @version.fetch('GET', @uri)
|
183
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
182
184
|
BrandVettingInstance.new(
|
183
185
|
@version,
|
184
186
|
payload,
|
@@ -54,8 +54,9 @@ module Twilio
|
|
54
54
|
'SkipAutomaticSecVet' => skip_automatic_sec_vet,
|
55
55
|
})
|
56
56
|
|
57
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
57
58
|
|
58
|
-
payload = @version.create('POST', @uri, data: data)
|
59
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
59
60
|
BrandRegistrationInstance.new(
|
60
61
|
@version,
|
61
62
|
payload,
|
@@ -178,8 +179,9 @@ module Twilio
|
|
178
179
|
# @return [BrandRegistrationInstance] Fetched BrandRegistrationInstance
|
179
180
|
def fetch
|
180
181
|
|
182
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
181
183
|
|
182
|
-
payload = @version.fetch('GET', @uri)
|
184
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
183
185
|
BrandRegistrationInstance.new(
|
184
186
|
@version,
|
185
187
|
payload,
|
@@ -192,8 +194,9 @@ module Twilio
|
|
192
194
|
# @return [BrandRegistrationInstance] Updated BrandRegistrationInstance
|
193
195
|
def update
|
194
196
|
|
197
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
195
198
|
|
196
|
-
payload = @version.update('POST', @uri)
|
199
|
+
payload = @version.update('POST', @uri, headers: headers)
|
197
200
|
BrandRegistrationInstance.new(
|
198
201
|
@version,
|
199
202
|
payload,
|
@@ -65,8 +65,9 @@ module Twilio
|
|
65
65
|
params = Twilio::Values.of({
|
66
66
|
'Date' => Twilio.serialize_iso8601_date(date),
|
67
67
|
})
|
68
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
68
69
|
|
69
|
-
payload = @version.fetch('GET', @uri, params: params)
|
70
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
70
71
|
DeactivationsInstance.new(
|
71
72
|
@version,
|
72
73
|
payload,
|
@@ -60,8 +60,9 @@ module Twilio
|
|
60
60
|
# @return [Boolean] True if delete succeeds, false otherwise
|
61
61
|
def delete
|
62
62
|
|
63
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
63
64
|
|
64
|
-
@version.delete('DELETE', @uri)
|
65
|
+
@version.delete('DELETE', @uri, headers: headers)
|
65
66
|
end
|
66
67
|
|
67
68
|
##
|
@@ -69,8 +70,9 @@ module Twilio
|
|
69
70
|
# @return [DomainCertsInstance] Fetched DomainCertsInstance
|
70
71
|
def fetch
|
71
72
|
|
73
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
72
74
|
|
73
|
-
payload = @version.fetch('GET', @uri)
|
75
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
74
76
|
DomainCertsInstance.new(
|
75
77
|
@version,
|
76
78
|
payload,
|
@@ -90,8 +92,9 @@ module Twilio
|
|
90
92
|
'TlsCert' => tls_cert,
|
91
93
|
})
|
92
94
|
|
95
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
93
96
|
|
94
|
-
payload = @version.update('POST', @uri, data: data)
|
97
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
95
98
|
DomainCertsInstance.new(
|
96
99
|
@version,
|
97
100
|
payload,
|
@@ -60,8 +60,9 @@ module Twilio
|
|
60
60
|
# @return [DomainConfigInstance] Fetched DomainConfigInstance
|
61
61
|
def fetch
|
62
62
|
|
63
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
63
64
|
|
64
|
-
payload = @version.fetch('GET', @uri)
|
65
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
65
66
|
DomainConfigInstance.new(
|
66
67
|
@version,
|
67
68
|
payload,
|
@@ -90,8 +91,9 @@ module Twilio
|
|
90
91
|
'DisableHttps' => disable_https,
|
91
92
|
})
|
92
93
|
|
94
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
93
95
|
|
94
|
-
payload = @version.update('POST', @uri, data: data)
|
96
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
95
97
|
DomainConfigInstance.new(
|
96
98
|
@version,
|
97
99
|
payload,
|
@@ -60,8 +60,9 @@ module Twilio
|
|
60
60
|
# @return [DomainConfigMessagingServiceInstance] Fetched DomainConfigMessagingServiceInstance
|
61
61
|
def fetch
|
62
62
|
|
63
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
63
64
|
|
64
|
-
payload = @version.fetch('GET', @uri)
|
65
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
65
66
|
DomainConfigMessagingServiceInstance.new(
|
66
67
|
@version,
|
67
68
|
payload,
|
@@ -45,8 +45,9 @@ module Twilio
|
|
45
45
|
'MessagingServiceSid' => messaging_service_sid,
|
46
46
|
})
|
47
47
|
|
48
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
48
49
|
|
49
|
-
payload = @version.create('POST', @uri, data: data)
|
50
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
50
51
|
ExternalCampaignInstance.new(
|
51
52
|
@version,
|
52
53
|
payload,
|
@@ -61,8 +61,9 @@ module Twilio
|
|
61
61
|
# @return [LinkshorteningMessagingServiceInstance] Created LinkshorteningMessagingServiceInstance
|
62
62
|
def create
|
63
63
|
|
64
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
64
65
|
|
65
|
-
payload = @version.create('POST', @uri)
|
66
|
+
payload = @version.create('POST', @uri, headers: headers)
|
66
67
|
LinkshorteningMessagingServiceInstance.new(
|
67
68
|
@version,
|
68
69
|
payload,
|
@@ -76,8 +77,9 @@ module Twilio
|
|
76
77
|
# @return [Boolean] True if delete succeeds, false otherwise
|
77
78
|
def delete
|
78
79
|
|
80
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
79
81
|
|
80
|
-
@version.delete('DELETE', @uri)
|
82
|
+
@version.delete('DELETE', @uri, headers: headers)
|
81
83
|
end
|
82
84
|
|
83
85
|
|
data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb
CHANGED
@@ -60,8 +60,9 @@ module Twilio
|
|
60
60
|
# @return [LinkshorteningMessagingServiceDomainAssociationInstance] Fetched LinkshorteningMessagingServiceDomainAssociationInstance
|
61
61
|
def fetch
|
62
62
|
|
63
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
63
64
|
|
64
|
-
payload = @version.fetch('GET', @uri)
|
65
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
65
66
|
LinkshorteningMessagingServiceDomainAssociationInstance.new(
|
66
67
|
@version,
|
67
68
|
payload,
|
@@ -44,8 +44,9 @@ module Twilio
|
|
44
44
|
'AlphaSender' => alpha_sender,
|
45
45
|
})
|
46
46
|
|
47
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
47
48
|
|
48
|
-
payload = @version.create('POST', @uri, data: data)
|
49
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
49
50
|
AlphaSenderInstance.new(
|
50
51
|
@version,
|
51
52
|
payload,
|
@@ -168,8 +169,9 @@ module Twilio
|
|
168
169
|
# @return [Boolean] True if delete succeeds, false otherwise
|
169
170
|
def delete
|
170
171
|
|
172
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
171
173
|
|
172
|
-
@version.delete('DELETE', @uri)
|
174
|
+
@version.delete('DELETE', @uri, headers: headers)
|
173
175
|
end
|
174
176
|
|
175
177
|
##
|
@@ -177,8 +179,9 @@ module Twilio
|
|
177
179
|
# @return [AlphaSenderInstance] Fetched AlphaSenderInstance
|
178
180
|
def fetch
|
179
181
|
|
182
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
180
183
|
|
181
|
-
payload = @version.fetch('GET', @uri)
|
184
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
182
185
|
AlphaSenderInstance.new(
|
183
186
|
@version,
|
184
187
|
payload,
|
@@ -147,8 +147,9 @@ module Twilio
|
|
147
147
|
# @return [ChannelSenderInstance] Fetched ChannelSenderInstance
|
148
148
|
def fetch
|
149
149
|
|
150
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
150
151
|
|
151
|
-
payload = @version.fetch('GET', @uri)
|
152
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
152
153
|
ChannelSenderInstance.new(
|
153
154
|
@version,
|
154
155
|
payload,
|