From 4998854ffd054ac12962bda17ca3789daf477463 Mon Sep 17 00:00:00 2001 From: Twilio Date: Thu, 12 Dec 2024 17:07:41 +0000 Subject: [PATCH] [Librarian] Regenerated @ ca4a5892d2b6a6161860845fe1152af07920bc07 403073118470eabf87311669c7fea876d35ced04 --- CHANGES.md | 6 + .../rest/accounts/v1/auth_token_promotion.rb | 4 + .../rest/accounts/v1/bulk_consents.rb | 4 + .../rest/accounts/v1/bulk_contacts.rb | 4 + .../rest/accounts/v1/credential/aws.rb | 19 +- .../rest/accounts/v1/credential/public_key.rb | 19 +- lib/twilio-ruby/rest/accounts/v1/safelist.rb | 10 + .../rest/accounts/v1/secondary_auth_token.rb | 6 + lib/twilio-ruby/rest/api/v2010/account.rb | 17 +- .../rest/api/v2010/account/address.rb | 19 +- .../account/address/dependent_phone_number.rb | 5 +- .../rest/api/v2010/account/application.rb | 19 +- .../v2010/account/authorized_connect_app.rb | 9 +- .../account/available_phone_number_country.rb | 9 +- .../available_phone_number_country/local.rb | 5 +- .../machine_to_machine.rb | 5 +- .../available_phone_number_country/mobile.rb | 5 +- .../national.rb | 5 +- .../shared_cost.rb | 5 +- .../toll_free.rb | 5 +- .../available_phone_number_country/voip.rb | 5 +- .../rest/api/v2010/account/balance.rb | 4 + .../rest/api/v2010/account/call.rb | 19 +- .../rest/api/v2010/account/call/event.rb | 5 +- .../api/v2010/account/call/notification.rb | 9 +- .../rest/api/v2010/account/call/payment.rb | 8 + .../rest/api/v2010/account/call/recording.rb | 19 +- .../rest/api/v2010/account/call/siprec.rb | 8 + .../rest/api/v2010/account/call/stream.rb | 8 + .../api/v2010/account/call/transcription.rb | 8 + .../account/call/user_defined_message.rb | 4 + .../call/user_defined_message_subscription.rb | 6 + .../rest/api/v2010/account/conference.rb | 13 +- .../v2010/account/conference/participant.rb | 19 +- .../api/v2010/account/conference/recording.rb | 15 +- .../rest/api/v2010/account/connect_app.rb | 15 +- .../v2010/account/incoming_phone_number.rb | 19 +- .../incoming_phone_number/assigned_add_on.rb | 15 +- .../assigned_add_on_extension.rb | 9 +- .../account/incoming_phone_number/local.rb | 9 +- .../account/incoming_phone_number/mobile.rb | 9 +- .../incoming_phone_number/toll_free.rb | 9 +- lib/twilio-ruby/rest/api/v2010/account/key.rb | 15 +- .../rest/api/v2010/account/message.rb | 19 +- .../api/v2010/account/message/feedback.rb | 4 + .../rest/api/v2010/account/message/media.rb | 11 +- .../rest/api/v2010/account/new_key.rb | 4 + .../rest/api/v2010/account/new_signing_key.rb | 4 + .../rest/api/v2010/account/notification.rb | 9 +- .../api/v2010/account/outgoing_caller_id.rb | 15 +- .../rest/api/v2010/account/queue.rb | 19 +- .../rest/api/v2010/account/queue/member.rb | 13 +- .../rest/api/v2010/account/recording.rb | 11 +- .../v2010/account/recording/add_on_result.rb | 11 +- .../recording/add_on_result/payload.rb | 11 +- .../recording/add_on_result/payload/data.rb | 4 + .../v2010/account/recording/transcription.rb | 11 +- .../rest/api/v2010/account/short_code.rb | 13 +- .../rest/api/v2010/account/signing_key.rb | 15 +- .../api/v2010/account/sip/credential_list.rb | 19 +- .../account/sip/credential_list/credential.rb | 19 +- .../rest/api/v2010/account/sip/domain.rb | 19 +- .../auth_calls_credential_list_mapping.rb | 15 +- ...th_calls_ip_access_control_list_mapping.rb | 15 +- ...h_registrations_credential_list_mapping.rb | 15 +- .../sip/domain/credential_list_mapping.rb | 15 +- .../domain/ip_access_control_list_mapping.rb | 15 +- .../account/sip/ip_access_control_list.rb | 19 +- .../sip/ip_access_control_list/ip_address.rb | 19 +- .../rest/api/v2010/account/token.rb | 4 + .../rest/api/v2010/account/transcription.rb | 11 +- .../rest/api/v2010/account/usage/record.rb | 5 +- .../v2010/account/usage/record/all_time.rb | 5 +- .../api/v2010/account/usage/record/daily.rb | 5 +- .../v2010/account/usage/record/last_month.rb | 5 +- .../api/v2010/account/usage/record/monthly.rb | 5 +- .../v2010/account/usage/record/this_month.rb | 5 +- .../api/v2010/account/usage/record/today.rb | 5 +- .../api/v2010/account/usage/record/yearly.rb | 5 +- .../v2010/account/usage/record/yesterday.rb | 5 +- .../rest/api/v2010/account/usage/trigger.rb | 19 +- .../api/v2010/account/validation_request.rb | 4 + .../rest/assistants/v1/assistant.rb | 81 ++++--- .../v1/assistant/assistants_knowledge.rb | 11 +- .../v1/assistant/assistants_tool.rb | 11 +- .../rest/assistants/v1/assistant/feedback.rb | 18 +- .../rest/assistants/v1/assistant/message.rb | 15 +- .../rest/assistants/v1/knowledge.rb | 85 ++++--- .../rest/assistants/v1/knowledge/chunk.rb | 5 +- .../v1/knowledge/knowledge_status.rb | 4 + lib/twilio-ruby/rest/assistants/v1/policy.rb | 5 +- lib/twilio-ruby/rest/assistants/v1/session.rb | 9 +- .../rest/assistants/v1/session/message.rb | 5 +- lib/twilio-ruby/rest/assistants/v1/tool.rb | 97 ++++---- lib/twilio-ruby/rest/bulkexports/v1/export.rb | 4 + .../rest/bulkexports/v1/export/day.rb | 9 +- .../v1/export/export_custom_job.rb | 9 +- .../rest/bulkexports/v1/export/job.rb | 6 + .../bulkexports/v1/export_configuration.rb | 8 + lib/twilio-ruby/rest/chat/v1/credential.rb | 19 +- lib/twilio-ruby/rest/chat/v1/service.rb | 19 +- .../rest/chat/v1/service/channel.rb | 19 +- .../rest/chat/v1/service/channel/invite.rb | 15 +- .../rest/chat/v1/service/channel/member.rb | 19 +- .../rest/chat/v1/service/channel/message.rb | 19 +- lib/twilio-ruby/rest/chat/v1/service/role.rb | 19 +- lib/twilio-ruby/rest/chat/v1/service/user.rb | 19 +- .../rest/chat/v1/service/user/user_channel.rb | 5 +- lib/twilio-ruby/rest/chat/v2/credential.rb | 19 +- lib/twilio-ruby/rest/chat/v2/service.rb | 19 +- .../rest/chat/v2/service/binding.rb | 11 +- .../rest/chat/v2/service/channel.rb | 19 +- .../rest/chat/v2/service/channel/invite.rb | 15 +- .../rest/chat/v2/service/channel/member.rb | 19 +- .../rest/chat/v2/service/channel/message.rb | 19 +- .../rest/chat/v2/service/channel/webhook.rb | 19 +- lib/twilio-ruby/rest/chat/v2/service/role.rb | 19 +- lib/twilio-ruby/rest/chat/v2/service/user.rb | 19 +- .../rest/chat/v2/service/user/user_binding.rb | 11 +- .../rest/chat/v2/service/user/user_channel.rb | 15 +- lib/twilio-ruby/rest/chat/v3/channel.rb | 4 + lib/twilio-ruby/rest/client.rb | 23 +- lib/twilio-ruby/rest/content/v1/content.rb | 216 ++++++++++-------- .../content/v1/content/approval_create.rb | 9 +- .../rest/content/v1/content/approval_fetch.rb | 4 + .../rest/content/v1/content_and_approvals.rb | 5 +- .../rest/content/v1/legacy_content.rb | 5 +- lib/twilio-ruby/rest/content/v2/content.rb | 5 +- .../rest/content/v2/content_and_approvals.rb | 5 +- .../conversations/v1/address_configuration.rb | 19 +- .../rest/conversations/v1/configuration.rb | 8 + .../conversations/v1/configuration/webhook.rb | 8 + .../rest/conversations/v1/conversation.rb | 19 +- .../conversations/v1/conversation/message.rb | 19 +- .../conversation/message/delivery_receipt.rb | 9 +- .../v1/conversation/participant.rb | 19 +- .../conversations/v1/conversation/webhook.rb | 19 +- .../v1/conversation_with_participants.rb | 4 + .../rest/conversations/v1/credential.rb | 19 +- .../v1/participant_conversation.rb | 5 +- lib/twilio-ruby/rest/conversations/v1/role.rb | 19 +- .../rest/conversations/v1/service.rb | 15 +- .../rest/conversations/v1/service/binding.rb | 11 +- .../conversations/v1/service/configuration.rb | 8 + .../v1/service/configuration/notification.rb | 8 + .../v1/service/configuration/webhook.rb | 8 + .../conversations/v1/service/conversation.rb | 19 +- .../v1/service/conversation/message.rb | 19 +- .../conversation/message/delivery_receipt.rb | 9 +- .../v1/service/conversation/participant.rb | 19 +- .../v1/service/conversation/webhook.rb | 19 +- .../service/conversation_with_participants.rb | 4 + .../v1/service/participant_conversation.rb | 5 +- .../rest/conversations/v1/service/role.rb | 19 +- .../rest/conversations/v1/service/user.rb | 19 +- .../v1/service/user/user_conversation.rb | 15 +- lib/twilio-ruby/rest/conversations/v1/user.rb | 19 +- .../v1/user/user_conversation.rb | 15 +- lib/twilio-ruby/rest/events/v1/event_type.rb | 9 +- lib/twilio-ruby/rest/events/v1/schema.rb | 4 + .../rest/events/v1/schema/schema_version.rb | 9 +- lib/twilio-ruby/rest/events/v1/sink.rb | 19 +- .../rest/events/v1/sink/sink_test.rb | 4 + .../rest/events/v1/sink/sink_validate.rb | 4 + .../rest/events/v1/subscription.rb | 19 +- .../v1/subscription/subscribed_event.rb | 19 +- .../rest/flex_api/v1/assessments.rb | 13 +- lib/twilio-ruby/rest/flex_api/v1/channel.rb | 15 +- .../rest/flex_api/v1/configuration.rb | 8 + lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb | 19 +- .../v1/insights_assessments_comment.rb | 9 +- .../flex_api/v1/insights_conversations.rb | 5 +- .../flex_api/v1/insights_questionnaires.rb | 19 +- .../v1/insights_questionnaires_category.rb | 15 +- .../v1/insights_questionnaires_question.rb | 15 +- .../rest/flex_api/v1/insights_segments.rb | 5 +- .../rest/flex_api/v1/insights_session.rb | 4 + .../v1/insights_settings_answer_sets.rb | 4 + .../flex_api/v1/insights_settings_comment.rb | 4 + .../rest/flex_api/v1/insights_user_roles.rb | 4 + .../rest/flex_api/v1/interaction.rb | 8 + .../v1/interaction/interaction_channel.rb | 13 +- .../interaction_channel_invite.rb | 9 +- .../interaction_channel_participant.rb | 13 +- lib/twilio-ruby/rest/flex_api/v1/plugin.rb | 17 +- .../flex_api/v1/plugin/plugin_versions.rb | 13 +- .../rest/flex_api/v1/plugin_archive.rb | 4 + .../rest/flex_api/v1/plugin_configuration.rb | 13 +- .../plugin_configuration/configured_plugin.rb | 9 +- .../v1/plugin_configuration_archive.rb | 4 + .../rest/flex_api/v1/plugin_release.rb | 13 +- .../flex_api/v1/plugin_version_archive.rb | 4 + .../rest/flex_api/v1/provisioning_status.rb | 4 + .../rest/flex_api/v1/web_channel.rb | 19 +- lib/twilio-ruby/rest/flex_api/v2/flex_user.rb | 8 + .../rest/flex_api/v2/web_channels.rb | 4 + lib/twilio-ruby/rest/frontline_api/v1/user.rb | 8 + lib/twilio-ruby/rest/iam/v1.rb | 8 +- lib/twilio-ruby/rest/iam/v1/api_key.rb | 10 + lib/twilio-ruby/rest/iam/v1/get_api_keys.rb | 5 +- .../rest/iam/v1/{key.rb => new_api_key.rb} | 44 ++-- lib/twilio-ruby/rest/insights/v1/call.rb | 4 + .../rest/insights/v1/call/annotation.rb | 8 + .../rest/insights/v1/call/call_summary.rb | 4 + .../rest/insights/v1/call/event.rb | 5 +- .../rest/insights/v1/call/metric.rb | 5 +- .../rest/insights/v1/call_summaries.rb | 5 +- .../rest/insights/v1/conference.rb | 9 +- .../v1/conference/conference_participant.rb | 9 +- lib/twilio-ruby/rest/insights/v1/room.rb | 9 +- .../rest/insights/v1/room/participant.rb | 9 +- lib/twilio-ruby/rest/insights/v1/setting.rb | 8 + .../rest/intelligence/v2/custom_operator.rb | 19 +- .../rest/intelligence/v2/operator.rb | 9 +- .../intelligence/v2/operator_attachment.rb | 6 + .../intelligence/v2/operator_attachments.rb | 4 + .../rest/intelligence/v2/operator_type.rb | 9 +- .../rest/intelligence/v2/prebuilt_operator.rb | 9 +- .../rest/intelligence/v2/service.rb | 19 +- .../rest/intelligence/v2/transcript.rb | 15 +- .../rest/intelligence/v2/transcript/media.rb | 4 + .../v2/transcript/operator_result.rb | 9 +- .../intelligence/v2/transcript/sentence.rb | 5 +- .../rest/ip_messaging/v1/credential.rb | 19 +- .../rest/ip_messaging/v1/service.rb | 19 +- .../rest/ip_messaging/v1/service/channel.rb | 19 +- .../ip_messaging/v1/service/channel/invite.rb | 15 +- .../ip_messaging/v1/service/channel/member.rb | 19 +- .../v1/service/channel/message.rb | 19 +- .../rest/ip_messaging/v1/service/role.rb | 19 +- .../rest/ip_messaging/v1/service/user.rb | 19 +- .../v1/service/user/user_channel.rb | 5 +- .../rest/ip_messaging/v2/credential.rb | 19 +- .../rest/ip_messaging/v2/service.rb | 19 +- .../rest/ip_messaging/v2/service/binding.rb | 11 +- .../rest/ip_messaging/v2/service/channel.rb | 19 +- .../ip_messaging/v2/service/channel/invite.rb | 15 +- .../ip_messaging/v2/service/channel/member.rb | 19 +- .../v2/service/channel/message.rb | 19 +- .../v2/service/channel/webhook.rb | 19 +- .../rest/ip_messaging/v2/service/role.rb | 19 +- .../rest/ip_messaging/v2/service/user.rb | 19 +- .../v2/service/user/user_binding.rb | 11 +- .../v2/service/user/user_channel.rb | 15 +- .../rest/lookups/v1/phone_number.rb | 4 + .../rest/lookups/v2/phone_number.rb | 4 + .../rest/marketplace/v1/available_add_on.rb | 9 +- .../available_add_on_extension.rb | 9 +- .../rest/marketplace/v1/installed_add_on.rb | 19 +- .../installed_add_on_extension.rb | 13 +- .../installed_add_on_usage.rb | 9 +- .../marketplace/v1/module_data_management.rb | 8 + .../marketplace/v1/referral_conversion.rb | 7 +- .../rest/messaging/v1/brand_registration.rb | 17 +- .../brand_registration_otp.rb | 4 + .../v1/brand_registration/brand_vetting.rb | 13 +- .../rest/messaging/v1/deactivations.rb | 4 + .../rest/messaging/v1/domain_certs.rb | 10 + .../rest/messaging/v1/domain_config.rb | 8 + .../v1/domain_config_messaging_service.rb | 4 + .../rest/messaging/v1/external_campaign.rb | 4 + .../v1/linkshortening_messaging_service.rb | 6 + ...ng_messaging_service_domain_association.rb | 4 + .../rest/messaging/v1/request_managed_cert.rb | 4 + lib/twilio-ruby/rest/messaging/v1/service.rb | 19 +- .../rest/messaging/v1/service/alpha_sender.rb | 15 +- .../messaging/v1/service/channel_sender.rb | 15 +- .../rest/messaging/v1/service/phone_number.rb | 15 +- .../rest/messaging/v1/service/short_code.rb | 15 +- .../messaging/v1/service/us_app_to_person.rb | 19 +- .../v1/service/us_app_to_person_usecase.rb | 4 + .../messaging/v1/tollfree_verification.rb | 19 +- lib/twilio-ruby/rest/messaging/v1/usecase.rb | 4 + .../rest/microvisor/v1/account_config.rb | 19 +- .../rest/microvisor/v1/account_secret.rb | 19 +- lib/twilio-ruby/rest/microvisor/v1/app.rb | 11 +- .../rest/microvisor/v1/app/app_manifest.rb | 4 + lib/twilio-ruby/rest/microvisor/v1/device.rb | 13 +- .../microvisor/v1/device/device_config.rb | 19 +- .../microvisor/v1/device/device_secret.rb | 19 +- lib/twilio-ruby/rest/monitor/v1/alert.rb | 9 +- lib/twilio-ruby/rest/monitor/v1/event.rb | 9 +- lib/twilio-ruby/rest/notify/v1/credential.rb | 19 +- lib/twilio-ruby/rest/notify/v1/service.rb | 19 +- .../rest/notify/v1/service/binding.rb | 15 +- .../rest/notify/v1/service/notification.rb | 4 + lib/twilio-ruby/rest/numbers/v1.rb | 12 +- .../rest/numbers/v1/bulk_eligibility.rb | 8 + .../rest/numbers/v1/eligibility.rb | 4 + .../rest/numbers/v1/porting_port_in.rb | 10 + .../v1/porting_port_in_phone_number.rb | 6 + .../rest/numbers/v1/porting_portability.rb | 4 + .../v1/porting_webhook_configuration.rb | 4 + .../porting_webhook_configuration_delete.rb | 2 + .../v1/signing_request_configuration.rb | 9 +- ...hook_configuration_fetch.rb => webhook.rb} | 44 ++-- .../rest/numbers/v2/authorization_document.rb | 15 +- .../dependent_hosted_number_order.rb | 5 +- .../numbers/v2/bulk_hosted_number_order.rb | 8 + .../rest/numbers/v2/bundle_clone.rb | 4 + .../rest/numbers/v2/hosted_number_order.rb | 19 +- .../v2/regulatory_compliance/bundle.rb | 19 +- .../bundle/bundle_copy.rb | 9 +- .../bundle/evaluation.rb | 13 +- .../bundle/item_assignment.rb | 15 +- .../bundle/replace_items.rb | 4 + .../v2/regulatory_compliance/end_user.rb | 19 +- .../v2/regulatory_compliance/end_user_type.rb | 9 +- .../v2/regulatory_compliance/regulation.rb | 9 +- .../supporting_document.rb | 19 +- .../supporting_document_type.rb | 9 +- lib/twilio-ruby/rest/oauth/v1/authorize.rb | 4 + lib/twilio-ruby/rest/oauth/v1/token.rb | 4 + .../hosted_numbers/authorization_document.rb | 17 +- .../dependent_hosted_number_order.rb | 5 +- .../hosted_numbers/hosted_number_order.rb | 19 +- .../preview/marketplace/available_add_on.rb | 9 +- .../available_add_on_extension.rb | 9 +- .../preview/marketplace/installed_add_on.rb | 19 +- .../installed_add_on_extension.rb | 13 +- lib/twilio-ruby/rest/preview/sync/service.rb | 19 +- .../rest/preview/sync/service/document.rb | 19 +- .../service/document/document_permission.rb | 15 +- .../rest/preview/sync/service/sync_list.rb | 15 +- .../sync/service/sync_list/sync_list_item.rb | 19 +- .../service/sync_list/sync_list_permission.rb | 15 +- .../rest/preview/sync/service/sync_map.rb | 15 +- .../sync/service/sync_map/sync_map_item.rb | 19 +- .../service/sync_map/sync_map_permission.rb | 15 +- .../rest/preview/wireless/command.rb | 13 +- .../rest/preview/wireless/rate_plan.rb | 19 +- lib/twilio-ruby/rest/preview/wireless/sim.rb | 13 +- .../rest/preview/wireless/sim/usage.rb | 4 + .../rest/preview_iam/v1/authorize.rb | 4 + lib/twilio-ruby/rest/preview_iam/v1/token.rb | 4 + lib/twilio-ruby/rest/preview_iam_base.rb | 25 +- .../rest/pricing/v1/messaging/country.rb | 9 +- .../rest/pricing/v1/phone_number/country.rb | 9 +- .../rest/pricing/v1/voice/country.rb | 9 +- .../rest/pricing/v1/voice/number.rb | 4 + lib/twilio-ruby/rest/pricing/v2/country.rb | 9 +- lib/twilio-ruby/rest/pricing/v2/number.rb | 4 + .../rest/pricing/v2/voice/country.rb | 9 +- .../rest/pricing/v2/voice/number.rb | 4 + lib/twilio-ruby/rest/proxy/v1/service.rb | 19 +- .../rest/proxy/v1/service/phone_number.rb | 19 +- .../rest/proxy/v1/service/session.rb | 19 +- .../proxy/v1/service/session/interaction.rb | 11 +- .../proxy/v1/service/session/participant.rb | 15 +- .../participant/message_interaction.rb | 13 +- .../rest/proxy/v1/service/short_code.rb | 19 +- .../rest/routes/v2/phone_number.rb | 8 + lib/twilio-ruby/rest/routes/v2/sip_domain.rb | 8 + lib/twilio-ruby/rest/routes/v2/trunk.rb | 8 + lib/twilio-ruby/rest/serverless/v1/service.rb | 19 +- .../rest/serverless/v1/service/asset.rb | 19 +- .../v1/service/asset/asset_version.rb | 9 +- .../rest/serverless/v1/service/build.rb | 15 +- .../v1/service/build/build_status.rb | 4 + .../rest/serverless/v1/service/environment.rb | 15 +- .../v1/service/environment/deployment.rb | 13 +- .../serverless/v1/service/environment/log.rb | 9 +- .../v1/service/environment/variable.rb | 19 +- .../rest/serverless/v1/service/function.rb | 19 +- .../v1/service/function/function_version.rb | 9 +- .../function_version_content.rb | 4 + lib/twilio-ruby/rest/studio/v1/flow.rb | 11 +- .../rest/studio/v1/flow/engagement.rb | 15 +- .../v1/flow/engagement/engagement_context.rb | 4 + .../rest/studio/v1/flow/engagement/step.rb | 9 +- .../v1/flow/engagement/step/step_context.rb | 4 + .../rest/studio/v1/flow/execution.rb | 19 +- .../v1/flow/execution/execution_context.rb | 4 + .../v1/flow/execution/execution_step.rb | 9 +- .../execution_step/execution_step_context.rb | 4 + lib/twilio-ruby/rest/studio/v2/flow.rb | 19 +- .../rest/studio/v2/flow/execution.rb | 19 +- .../v2/flow/execution/execution_context.rb | 4 + .../v2/flow/execution/execution_step.rb | 9 +- .../execution_step/execution_step_context.rb | 4 + .../rest/studio/v2/flow/flow_revision.rb | 9 +- .../rest/studio/v2/flow/flow_test_user.rb | 8 + .../rest/studio/v2/flow_validate.rb | 4 + .../rest/supersim/v1/esim_profile.rb | 13 +- lib/twilio-ruby/rest/supersim/v1/fleet.rb | 17 +- .../rest/supersim/v1/ip_command.rb | 13 +- lib/twilio-ruby/rest/supersim/v1/network.rb | 9 +- .../supersim/v1/network_access_profile.rb | 17 +- .../network_access_profile_network.rb | 15 +- .../rest/supersim/v1/settings_update.rb | 5 +- lib/twilio-ruby/rest/supersim/v1/sim.rb | 17 +- .../rest/supersim/v1/sim/billing_period.rb | 5 +- .../rest/supersim/v1/sim/sim_ip_address.rb | 5 +- .../rest/supersim/v1/sms_command.rb | 13 +- .../rest/supersim/v1/usage_record.rb | 5 +- lib/twilio-ruby/rest/sync/v1/service.rb | 19 +- .../rest/sync/v1/service/document.rb | 19 +- .../service/document/document_permission.rb | 15 +- .../rest/sync/v1/service/sync_list.rb | 19 +- .../v1/service/sync_list/sync_list_item.rb | 19 +- .../service/sync_list/sync_list_permission.rb | 15 +- .../rest/sync/v1/service/sync_map.rb | 19 +- .../sync/v1/service/sync_map/sync_map_item.rb | 19 +- .../service/sync_map/sync_map_permission.rb | 15 +- .../rest/sync/v1/service/sync_stream.rb | 19 +- .../v1/service/sync_stream/stream_message.rb | 4 + .../rest/taskrouter/v1/workspace.rb | 19 +- .../rest/taskrouter/v1/workspace/activity.rb | 19 +- .../rest/taskrouter/v1/workspace/event.rb | 9 +- .../rest/taskrouter/v1/workspace/task.rb | 19 +- .../v1/workspace/task/reservation.rb | 13 +- .../taskrouter/v1/workspace/task_channel.rb | 19 +- .../taskrouter/v1/workspace/task_queue.rb | 19 +- .../task_queue_bulk_real_time_statistics.rb | 4 + .../task_queue_cumulative_statistics.rb | 4 + .../task_queue_real_time_statistics.rb | 4 + .../task_queue/task_queue_statistics.rb | 4 + .../task_queue/task_queues_statistics.rb | 5 +- .../rest/taskrouter/v1/workspace/worker.rb | 19 +- .../v1/workspace/worker/reservation.rb | 13 +- .../v1/workspace/worker/worker_channel.rb | 13 +- .../v1/workspace/worker/worker_statistics.rb | 4 + .../worker/workers_cumulative_statistics.rb | 4 + .../worker/workers_real_time_statistics.rb | 4 + .../v1/workspace/worker/workers_statistics.rb | 4 + .../rest/taskrouter/v1/workspace/workflow.rb | 19 +- .../workflow_cumulative_statistics.rb | 4 + .../workflow/workflow_real_time_statistics.rb | 4 + .../workspace/workflow/workflow_statistics.rb | 4 + .../workspace_cumulative_statistics.rb | 4 + .../workspace_real_time_statistics.rb | 4 + .../v1/workspace/workspace_statistics.rb | 4 + lib/twilio-ruby/rest/trunking/v1/trunk.rb | 19 +- .../rest/trunking/v1/trunk/credential_list.rb | 15 +- .../v1/trunk/ip_access_control_list.rb | 15 +- .../rest/trunking/v1/trunk/origination_url.rb | 19 +- .../rest/trunking/v1/trunk/phone_number.rb | 15 +- .../rest/trunking/v1/trunk/recording.rb | 8 + .../rest/trusthub/v1/compliance_inquiries.rb | 8 + .../v1/compliance_registration_inquiries.rb | 8 + .../v1/compliance_tollfree_inquiries.rb | 4 + .../rest/trusthub/v1/customer_profiles.rb | 19 +- ...er_profiles_channel_endpoint_assignment.rb | 15 +- .../customer_profiles_entity_assignments.rb | 15 +- .../customer_profiles_evaluations.rb | 13 +- lib/twilio-ruby/rest/trusthub/v1/end_user.rb | 19 +- .../rest/trusthub/v1/end_user_type.rb | 9 +- lib/twilio-ruby/rest/trusthub/v1/policies.rb | 9 +- .../rest/trusthub/v1/supporting_document.rb | 19 +- .../trusthub/v1/supporting_document_type.rb | 9 +- .../rest/trusthub/v1/trust_products.rb | 19 +- ...st_products_channel_endpoint_assignment.rb | 15 +- .../trust_products_entity_assignments.rb | 15 +- .../trust_products_evaluations.rb | 13 +- lib/twilio-ruby/rest/verify/v2/form.rb | 4 + lib/twilio-ruby/rest/verify/v2/safelist.rb | 10 + lib/twilio-ruby/rest/verify/v2/service.rb | 19 +- .../rest/verify/v2/service/access_token.rb | 8 + .../rest/verify/v2/service/entity.rb | 15 +- .../verify/v2/service/entity/challenge.rb | 17 +- .../service/entity/challenge/notification.rb | 4 + .../rest/verify/v2/service/entity/factor.rb | 15 +- .../verify/v2/service/entity/new_factor.rb | 4 + .../v2/service/messaging_configuration.rb | 19 +- .../rest/verify/v2/service/rate_limit.rb | 19 +- .../verify/v2/service/rate_limit/bucket.rb | 19 +- .../rest/verify/v2/service/verification.rb | 12 + .../verify/v2/service/verification_check.rb | 4 + .../rest/verify/v2/service/webhook.rb | 19 +- lib/twilio-ruby/rest/verify/v2/template.rb | 5 +- .../rest/verify/v2/verification_attempt.rb | 9 +- .../v2/verification_attempts_summary.rb | 4 + lib/twilio-ruby/rest/video/v1/composition.rb | 15 +- .../rest/video/v1/composition_hook.rb | 19 +- .../rest/video/v1/composition_settings.rb | 8 + lib/twilio-ruby/rest/video/v1/recording.rb | 11 +- .../rest/video/v1/recording_settings.rb | 8 + lib/twilio-ruby/rest/video/v1/room.rb | 17 +- .../rest/video/v1/room/participant.rb | 13 +- .../video/v1/room/participant/anonymize.rb | 4 + .../v1/room/participant/published_track.rb | 9 +- .../v1/room/participant/subscribe_rules.rb | 8 + .../v1/room/participant/subscribed_track.rb | 9 +- .../rest/video/v1/room/recording_rules.rb | 8 + .../rest/video/v1/room/room_recording.rb | 11 +- .../rest/voice/v1/archived_call.rb | 2 + lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb | 19 +- .../rest/voice/v1/connection_policy.rb | 19 +- .../connection_policy_target.rb | 19 +- .../bulk_country_update.rb | 4 + .../voice/v1/dialing_permissions/country.rb | 9 +- .../country/highrisk_special_prefix.rb | 5 +- .../voice/v1/dialing_permissions/settings.rb | 8 + lib/twilio-ruby/rest/voice/v1/ip_record.rb | 19 +- .../rest/voice/v1/source_ip_mapping.rb | 19 +- lib/twilio-ruby/rest/wireless/v1/command.rb | 15 +- lib/twilio-ruby/rest/wireless/v1/rate_plan.rb | 19 +- lib/twilio-ruby/rest/wireless/v1/sim.rb | 15 +- .../rest/wireless/v1/sim/data_session.rb | 5 +- .../rest/wireless/v1/sim/usage_record.rb | 5 +- .../rest/wireless/v1/usage_record.rb | 5 +- 501 files changed, 5595 insertions(+), 642 deletions(-) rename lib/twilio-ruby/rest/iam/v1/{key.rb => new_api_key.rb} (84%) rename lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb => webhook.rb} (77%) diff --git a/CHANGES.md b/CHANGES.md index 245364a13..9c8bf090c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,12 @@ twilio-ruby changelog ===================== +[2024-12-12] Version 7.4.0 +-------------------------- +**Library - Feature** +- [PR #735](https://github.com/twilio/twilio-ruby/pull/735): public oauth. Thanks to [@manisha1997](https://github.com/manisha1997)! + + [2024-12-05] Version 7.3.7 -------------------------- **Api** diff --git a/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb b/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb index a4962482d..aaf785c66 100644 --- a/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +++ b/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb @@ -61,6 +61,10 @@ def update headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, headers: headers) AuthTokenPromotionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb b/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb index 07a45cfa4..1d4410f2e 100644 --- a/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +++ b/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BulkConsentsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb b/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb index 09b1b8685..d7bda89ff 100644 --- a/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +++ b/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BulkContactsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb b/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb index ec706c50b..497e5f45b 100644 --- a/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +++ b/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AwsInstance.new( @version, @@ -125,8 +129,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AwsPage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AwsInstance.new( @version, @@ -207,6 +220,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) AwsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb b/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb index a2079df93..68ced229f 100644 --- a/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +++ b/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) PublicKeyInstance.new( @version, @@ -125,8 +129,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PublicKeyPage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PublicKeyInstance.new( @version, @@ -207,6 +220,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) PublicKeyInstance.new( @version, diff --git a/lib/twilio-ruby/rest/accounts/v1/safelist.rb b/lib/twilio-ruby/rest/accounts/v1/safelist.rb index 3ba9710c7..e97a87250 100644 --- a/lib/twilio-ruby/rest/accounts/v1/safelist.rb +++ b/lib/twilio-ruby/rest/accounts/v1/safelist.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SafelistInstance.new( @version, @@ -64,6 +68,8 @@ def delete( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, params: params, headers: headers) end @@ -80,6 +86,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) SafelistInstance.new( @version, diff --git a/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb b/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb index 71e97d0a5..6806e1528 100644 --- a/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +++ b/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb @@ -61,6 +61,10 @@ def create headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, headers: headers) SecondaryAuthTokenInstance.new( @version, @@ -75,6 +79,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end diff --git a/lib/twilio-ruby/rest/api/v2010/account.rb b/lib/twilio-ruby/rest/api/v2010/account.rb index f393e5b69..1be3e297f 100644 --- a/lib/twilio-ruby/rest/api/v2010/account.rb +++ b/lib/twilio-ruby/rest/api/v2010/account.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AccountInstance.new( @version, @@ -129,8 +133,11 @@ def page(friendly_name: :unset, status: :unset, page_token: :unset, page_number: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AccountPage.new(@version, response, @solution) end @@ -203,6 +210,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AccountInstance.new( @version, @@ -228,6 +239,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) AccountInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/address.rb b/lib/twilio-ruby/rest/api/v2010/account/address.rb index dbd672298..cf7fd5c0f 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/address.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/address.rb @@ -73,6 +73,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AddressInstance.new( @version, @@ -165,8 +169,11 @@ def page(customer_name: :unset, friendly_name: :unset, iso_country: :unset, page 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AddressPage.new(@version, response, @solution) end @@ -217,6 +224,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -227,6 +236,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AddressInstance.new( @version, @@ -274,6 +287,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) AddressInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb b/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb index 49a40e772..f9df31755 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DependentPhoneNumberPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/application.rb b/lib/twilio-ruby/rest/api/v2010/account/application.rb index bcb5d6bc1..cdb754d16 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/application.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/application.rb @@ -91,6 +91,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ApplicationInstance.new( @version, @@ -171,8 +175,11 @@ def page(friendly_name: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ApplicationPage.new(@version, response, @solution) end @@ -222,6 +229,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -232,6 +241,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ApplicationInstance.new( @version, @@ -300,6 +313,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ApplicationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb b/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb index f414787e3..9e243dd7b 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AuthorizedConnectAppPage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AuthorizedConnectAppInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb index 446e189d5..16e95d19b 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AvailablePhoneNumberCountryPage.new(@version, response, @solution) end @@ -156,6 +159,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AvailablePhoneNumberCountryInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb index 28810c352..c9ab71c49 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb @@ -207,8 +207,11 @@ def page(area_code: :unset, contains: :unset, sms_enabled: :unset, mms_enabled: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) LocalPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb index 4660302c1..b8259351b 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb @@ -207,8 +207,11 @@ def page(area_code: :unset, contains: :unset, sms_enabled: :unset, mms_enabled: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MachineToMachinePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb index 37e3742f9..b67f3fe3e 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb @@ -207,8 +207,11 @@ def page(area_code: :unset, contains: :unset, sms_enabled: :unset, mms_enabled: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MobilePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb index bea840ee1..f2a01a7e6 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb @@ -207,8 +207,11 @@ def page(area_code: :unset, contains: :unset, sms_enabled: :unset, mms_enabled: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) NationalPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb index 5121267ab..4bc04f1eb 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb @@ -207,8 +207,11 @@ def page(area_code: :unset, contains: :unset, sms_enabled: :unset, mms_enabled: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SharedCostPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb index b03a16f02..cf37f458d 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb @@ -207,8 +207,11 @@ def page(area_code: :unset, contains: :unset, sms_enabled: :unset, mms_enabled: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TollFreePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb index 33019110c..1b731b450 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb @@ -207,8 +207,11 @@ def page(area_code: :unset, contains: :unset, sms_enabled: :unset, mms_enabled: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) VoipPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/balance.rb b/lib/twilio-ruby/rest/api/v2010/account/balance.rb index e2d839f5f..61c274e4c 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/balance.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/balance.rb @@ -39,6 +39,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BalanceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/call.rb b/lib/twilio-ruby/rest/api/v2010/account/call.rb index 2d8117673..a3167ffa8 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call.rb @@ -148,6 +148,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CallInstance.new( @version, @@ -282,8 +286,11 @@ def page(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, star 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CallPage.new(@version, response, @solution) end @@ -342,6 +349,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -352,6 +361,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CallInstance.new( @version, @@ -399,6 +412,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CallInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/event.rb b/lib/twilio-ruby/rest/api/v2010/account/call/event.rb index 8b4813d62..b542390c4 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call/event.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EventPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb b/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb index 151310b6a..386248e4b 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb @@ -123,8 +123,11 @@ def page(log: :unset, message_date: :unset, message_date_before: :unset, message 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) NotificationPage.new(@version, response, @solution) end @@ -175,6 +178,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) NotificationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb b/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb index 19f47424a..d3fcd0e94 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb @@ -92,6 +92,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) PaymentInstance.new( @version, @@ -151,6 +155,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) PaymentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb b/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb index 89e17943a..9eabd6a2f 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RecordingInstance.new( @version, @@ -155,8 +159,11 @@ def page(date_created: :unset, date_created_before: :unset, date_created_after: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RecordingPage.new(@version, response, @solution) end @@ -207,6 +214,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -217,6 +226,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RecordingInstance.new( @version, @@ -244,6 +257,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RecordingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb b/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb index b1df4c6a1..7201cc2bc 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb @@ -653,6 +653,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SiprecInstance.new( @version, @@ -703,6 +707,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SiprecInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb b/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb index 3cd3147a5..23232a6c7 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb @@ -653,6 +653,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) StreamInstance.new( @version, @@ -703,6 +707,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) StreamInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb b/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb index 1359c7d1b..3b0d68af3 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb @@ -86,6 +86,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TranscriptionInstance.new( @version, @@ -136,6 +140,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) TranscriptionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb b/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb index 3757e0bd0..45a806f96 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) UserDefinedMessageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb b/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb index 9c1ceb841..043005a5f 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) UserDefinedMessageSubscriptionInstance.new( @version, @@ -96,6 +100,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/conference.rb b/lib/twilio-ruby/rest/api/v2010/account/conference.rb index 8134cee54..9b11398e2 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/conference.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/conference.rb @@ -146,8 +146,11 @@ def page(date_created: :unset, date_created_before: :unset, date_created_after: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ConferencePage.new(@version, response, @solution) end @@ -199,6 +202,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ConferenceInstance.new( @version, @@ -228,6 +235,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ConferenceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb b/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb index 4fa5e62fb..0b0950627 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb @@ -188,6 +188,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ParticipantInstance.new( @version, @@ -281,8 +285,11 @@ def page(muted: :unset, hold: :unset, coaching: :unset, page_token: :unset, page 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ParticipantPage.new(@version, response, @solution) end @@ -333,6 +340,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -343,6 +352,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ParticipantInstance.new( @version, @@ -400,6 +413,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ParticipantInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb b/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb index c01d865bb..9adad397f 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb @@ -117,8 +117,11 @@ def page(date_created: :unset, date_created_before: :unset, date_created_after: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RecordingPage.new(@version, response, @solution) end @@ -169,6 +172,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -179,6 +184,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RecordingInstance.new( @version, @@ -206,6 +215,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RecordingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb b/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb index f43bc4586..e8c69093f 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ConnectAppPage.new(@version, response, @solution) end @@ -149,6 +152,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -159,6 +164,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ConnectAppInstance.new( @version, @@ -203,6 +212,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ConnectAppInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb index b6d0b6f31..56cb676b8 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb @@ -118,6 +118,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) IncomingPhoneNumberInstance.new( @version, @@ -216,8 +220,11 @@ def page(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) IncomingPhoneNumberPage.new(@version, response, @solution) end @@ -289,6 +296,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -299,6 +308,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) IncomingPhoneNumberInstance.new( @version, @@ -388,6 +401,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) IncomingPhoneNumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb index 9a36d2f7d..fb6e1ca46 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AssignedAddOnInstance.new( @version, @@ -122,8 +126,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AssignedAddOnPage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AssignedAddOnInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb index 34bfc69dc..2f1e9c8b9 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb @@ -100,8 +100,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AssignedAddOnExtensionPage.new(@version, response, @solution) end @@ -153,6 +156,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AssignedAddOnExtensionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb index 44aa59c48..36851b267 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb @@ -113,6 +113,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) LocalInstance.new( @version, @@ -211,8 +215,11 @@ def page(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) LocalPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb index 6bbedea08..9b4e90770 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb @@ -113,6 +113,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MobileInstance.new( @version, @@ -211,8 +215,11 @@ def page(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MobilePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb index ac31bb0a6..a032fadf3 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb @@ -113,6 +113,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TollFreeInstance.new( @version, @@ -211,8 +215,11 @@ def page(beta: :unset, friendly_name: :unset, phone_number: :unset, origin: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TollFreePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/key.rb b/lib/twilio-ruby/rest/api/v2010/account/key.rb index 8060805bb..6e3f1037a 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/key.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/key.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) KeyPage.new(@version, response, @solution) end @@ -149,6 +152,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -159,6 +164,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) KeyInstance.new( @version, @@ -182,6 +191,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) KeyInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/message.rb b/lib/twilio-ruby/rest/api/v2010/account/message.rb index 5ad3b621b..f971e9cb0 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/message.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/message.rb @@ -112,6 +112,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, @@ -216,8 +220,11 @@ def page(to: :unset, from: :unset, date_sent: :unset, date_sent_before: :unset, 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MessagePage.new(@version, response, @solution) end @@ -269,6 +276,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -279,6 +288,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MessageInstance.new( @version, @@ -305,6 +318,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb b/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb index 21051a65c..cf9689596 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) FeedbackInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/message/media.rb b/lib/twilio-ruby/rest/api/v2010/account/message/media.rb index 8cb821dff..2c61dd88d 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/message/media.rb @@ -117,8 +117,11 @@ def page(date_created: :unset, date_created_before: :unset, date_created_after: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MediaPage.new(@version, response, @solution) end @@ -169,6 +172,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -179,6 +184,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MediaInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/new_key.rb b/lib/twilio-ruby/rest/api/v2010/account/new_key.rb index 0e71c1140..7344f26bf 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/new_key.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) NewKeyInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb b/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb index d589a67cd..a652e55a5 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) NewSigningKeyInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/notification.rb b/lib/twilio-ruby/rest/api/v2010/account/notification.rb index 44756ad70..a1143d59c 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/notification.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/notification.rb @@ -122,8 +122,11 @@ def page(log: :unset, message_date: :unset, message_date_before: :unset, message 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) NotificationPage.new(@version, response, @solution) end @@ -173,6 +176,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) NotificationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb b/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb index a45039132..0a03300ef 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb @@ -110,8 +110,11 @@ def page(phone_number: :unset, friendly_name: :unset, page_token: :unset, page_n 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) OutgoingCallerIdPage.new(@version, response, @solution) end @@ -161,6 +164,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -171,6 +176,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) OutgoingCallerIdInstance.new( @version, @@ -194,6 +203,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) OutgoingCallerIdInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/queue.rb b/lib/twilio-ruby/rest/api/v2010/account/queue.rb index b790c390e..4683116a7 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/queue.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/queue.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) QueueInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) QueuePage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) QueueInstance.new( @version, @@ -211,6 +224,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) QueueInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb b/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb index 6e3c517df..33b3cc9cb 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MemberPage.new(@version, response, @solution) end @@ -151,6 +154,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MemberInstance.new( @version, @@ -178,6 +185,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MemberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/recording.rb b/lib/twilio-ruby/rest/api/v2010/account/recording.rb index fa9f78007..7aba99535 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/recording.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/recording.rb @@ -134,8 +134,11 @@ def page(date_created: :unset, date_created_before: :unset, date_created_after: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RecordingPage.new(@version, response, @solution) end @@ -187,6 +190,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -203,6 +208,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) RecordingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb b/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb index af1a55f6d..a28a9f579 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AddOnResultPage.new(@version, response, @solution) end @@ -152,6 +155,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -162,6 +167,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AddOnResultInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb b/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb index 55b239929..3df65038e 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb @@ -100,8 +100,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PayloadPage.new(@version, response, @solution) end @@ -154,6 +157,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -164,6 +169,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PayloadInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb b/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb index 0fb3b0e4d..7f17cb499 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb @@ -70,6 +70,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DataInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb b/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb index ee2d86dfe..67c6d0259 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TranscriptionPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TranscriptionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/short_code.rb b/lib/twilio-ruby/rest/api/v2010/account/short_code.rb index 566c38ce9..75cc557aa 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/short_code.rb @@ -110,8 +110,11 @@ def page(friendly_name: :unset, short_code: :unset, page_token: :unset, page_num 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ShortCodePage.new(@version, response, @solution) end @@ -161,6 +164,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ShortCodeInstance.new( @version, @@ -199,6 +206,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ShortCodeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb b/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb index 04ead670d..580c69f1f 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SigningKeyPage.new(@version, response, @solution) end @@ -149,6 +152,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -159,6 +164,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SigningKeyInstance.new( @version, @@ -182,6 +191,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SigningKeyInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb b/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb index 631b9ec1f..2212f5d86 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CredentialListInstance.new( @version, @@ -121,8 +125,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CredentialListPage.new(@version, response, @solution) end @@ -173,6 +180,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -183,6 +192,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CredentialListInstance.new( @version, @@ -206,6 +219,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CredentialListInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb b/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb index 4ba195b2f..61e85fabf 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb @@ -51,6 +51,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CredentialPage.new(@version, response, @solution) end @@ -178,6 +185,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -188,6 +197,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CredentialInstance.new( @version, @@ -212,6 +225,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb b/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb index c0cfe7c00..72732d04c 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb @@ -83,6 +83,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) DomainInstance.new( @version, @@ -157,8 +161,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DomainPage.new(@version, response, @solution) end @@ -211,6 +218,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -221,6 +230,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DomainInstance.new( @version, @@ -280,6 +293,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) DomainInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb b/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb index 506001e4d..2308a142c 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AuthCallsCredentialListMappingInstance.new( @version, @@ -125,8 +129,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AuthCallsCredentialListMappingPage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AuthCallsCredentialListMappingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb b/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb index 7bebd7e1d..28a6a499a 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AuthCallsIpAccessControlListMappingInstance.new( @version, @@ -125,8 +129,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AuthCallsIpAccessControlListMappingPage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AuthCallsIpAccessControlListMappingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb b/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb index 1f9b18bb9..dc74e662f 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AuthRegistrationsCredentialListMappingInstance.new( @version, @@ -125,8 +129,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AuthRegistrationsCredentialListMappingPage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AuthRegistrationsCredentialListMappingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb b/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb index 7526e0dd2..ea286cc78 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb @@ -48,6 +48,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CredentialListMappingInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CredentialListMappingPage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CredentialListMappingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb b/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb index 7c0048a24..7646e97cf 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb @@ -48,6 +48,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) IpAccessControlListMappingInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) IpAccessControlListMappingPage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) IpAccessControlListMappingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb b/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb index eb58ff697..127614a23 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) IpAccessControlListInstance.new( @version, @@ -121,8 +125,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) IpAccessControlListPage.new(@version, response, @solution) end @@ -173,6 +180,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -183,6 +192,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) IpAccessControlListInstance.new( @version, @@ -206,6 +219,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) IpAccessControlListInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb b/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb index db3e82187..869cb1225 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb @@ -54,6 +54,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) IpAddressInstance.new( @version, @@ -129,8 +133,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) IpAddressPage.new(@version, response, @solution) end @@ -181,6 +188,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -191,6 +200,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) IpAddressInstance.new( @version, @@ -221,6 +234,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) IpAddressInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/token.rb b/lib/twilio-ruby/rest/api/v2010/account/token.rb index c0bd8c00f..464249e14 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/token.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/token.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TokenInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/transcription.rb b/lib/twilio-ruby/rest/api/v2010/account/transcription.rb index 56151c95f..30c2bba4b 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/transcription.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TranscriptionPage.new(@version, response, @solution) end @@ -149,6 +152,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -159,6 +164,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TranscriptionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb b/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb index e53c33f48..1a838c0c8 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb @@ -131,8 +131,11 @@ def page(category: :unset, start_date: :unset, end_date: :unset, include_subacco 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RecordPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb b/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb index 167fc6fc3..178095e1c 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb @@ -124,8 +124,11 @@ def page(category: :unset, start_date: :unset, end_date: :unset, include_subacco 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AllTimePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb b/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb index e6beb69c9..c547ad4b2 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb @@ -124,8 +124,11 @@ def page(category: :unset, start_date: :unset, end_date: :unset, include_subacco 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DailyPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb b/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb index 73b5ff456..0fb8630c3 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb @@ -124,8 +124,11 @@ def page(category: :unset, start_date: :unset, end_date: :unset, include_subacco 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) LastMonthPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb b/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb index 3ee8014e7..498f3eb0c 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb @@ -124,8 +124,11 @@ def page(category: :unset, start_date: :unset, end_date: :unset, include_subacco 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MonthlyPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb b/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb index 0e05b6b09..e6d148825 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb @@ -124,8 +124,11 @@ def page(category: :unset, start_date: :unset, end_date: :unset, include_subacco 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ThisMonthPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb b/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb index e6849248b..485e38831 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb @@ -124,8 +124,11 @@ def page(category: :unset, start_date: :unset, end_date: :unset, include_subacco 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TodayPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb b/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb index 40450f717..8ef0bf3c4 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb @@ -124,8 +124,11 @@ def page(category: :unset, start_date: :unset, end_date: :unset, include_subacco 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) YearlyPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb b/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb index 10090a47e..7fe0b8295 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb @@ -124,8 +124,11 @@ def page(category: :unset, start_date: :unset, end_date: :unset, include_subacco 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) YesterdayPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb b/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb index 9b7665df0..0a19dc3a1 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb @@ -65,6 +65,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TriggerInstance.new( @version, @@ -157,8 +161,11 @@ def page(recurring: :unset, trigger_by: :unset, usage_category: :unset, page_tok 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TriggerPage.new(@version, response, @solution) end @@ -208,6 +215,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -218,6 +227,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TriggerInstance.new( @version, @@ -247,6 +260,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) TriggerInstance.new( @version, diff --git a/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb b/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb index 075ebcfd0..f2784f1cc 100644 --- a/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +++ b/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb @@ -61,6 +61,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ValidationRequestInstance.new( @version, diff --git a/lib/twilio-ruby/rest/assistants/v1/assistant.rb b/lib/twilio-ruby/rest/assistants/v1/assistant.rb index 070c0d04a..944523dcc 100644 --- a/lib/twilio-ruby/rest/assistants/v1/assistant.rb +++ b/lib/twilio-ruby/rest/assistants/v1/assistant.rb @@ -35,11 +35,11 @@ def initialize(payload) end def to_json(options = {}) { - customer_ai: @customer_ai, - name: @name, - owner: @owner, - personality_prompt: @personality_prompt, - segment_credential: @segment_credential, + "customer_ai": @customer_ai, + "name": @name, + "owner": @owner, + "personality_prompt": @personality_prompt, + "segment_credential": @segment_credential, }.to_json(options) end end @@ -54,8 +54,8 @@ def initialize(payload) end def to_json(options = {}) { - perception_engine_enabled: @perception_engine_enabled, - personalization_engine_enabled: @personalization_engine_enabled, + "perception_engine_enabled": @perception_engine_enabled, + "personalization_engine_enabled": @personalization_engine_enabled, }.to_json(options) end end @@ -72,9 +72,9 @@ def initialize(payload) end def to_json(options = {}) { - profile_api_key: @profile_api_key, - space_id: @space_id, - write_key: @write_key, + "profile_api_key": @profile_api_key, + "space_id": @space_id, + "write_key": @write_key, }.to_json(options) end end @@ -95,15 +95,16 @@ def initialize(payload) end def to_json(options = {}) { - customer_ai: @customer_ai, - name: @name, - owner: @owner, - personality_prompt: @personality_prompt, - segment_credential: @segment_credential, + "customer_ai": @customer_ai, + "name": @name, + "owner": @owner, + "personality_prompt": @personality_prompt, + "segment_credential": @segment_credential, }.to_json(options) end end + class AssistantsV1ServiceCreateAssistantRequest # @param [customer_ai]: [AssistantList.AssistantsV1ServiceCustomerAi] # @param [name]: [String] The name of the assistant. @@ -120,11 +121,11 @@ def initialize(payload) end def to_json(options = {}) { - customer_ai: @customer_ai, - name: @name, - owner: @owner, - personality_prompt: @personality_prompt, - segment_credential: @segment_credential, + "customer_ai": @customer_ai, + "name": @name, + "owner": @owner, + "personality_prompt": @personality_prompt, + "segment_credential": @segment_credential, }.to_json(options) end end @@ -139,8 +140,8 @@ def initialize(payload) end def to_json(options = {}) { - perception_engine_enabled: @perception_engine_enabled, - personalization_engine_enabled: @personalization_engine_enabled, + "perception_engine_enabled": @perception_engine_enabled, + "personalization_engine_enabled": @personalization_engine_enabled, }.to_json(options) end end @@ -157,9 +158,9 @@ def initialize(payload) end def to_json(options = {}) { - profile_api_key: @profile_api_key, - space_id: @space_id, - write_key: @write_key, + "profile_api_key": @profile_api_key, + "space_id": @space_id, + "write_key": @write_key, }.to_json(options) end end @@ -180,15 +181,16 @@ def initialize(payload) end def to_json(options = {}) { - customer_ai: @customer_ai, - name: @name, - owner: @owner, - personality_prompt: @personality_prompt, - segment_credential: @segment_credential, + "customer_ai": @customer_ai, + "name": @name, + "owner": @owner, + "personality_prompt": @personality_prompt, + "segment_credential": @segment_credential, }.to_json(options) end end + ## # Initialize the AssistantList # @param [Version] version Version that contains the resource @@ -209,6 +211,10 @@ def create(assistants_v1_service_create_assistant_request: nil headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: assistants_v1_service_create_assistant_request.to_json) AssistantInstance.new( @version, @@ -282,8 +288,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AssistantPage.new(@version, response, @solution) end @@ -336,6 +345,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -346,6 +357,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AssistantInstance.new( @version, @@ -363,6 +378,10 @@ def update(assistants_v1_service_update_assistant_request: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.update('PUT', @uri, headers: headers, data: assistants_v1_service_update_assistant_request.to_json) AssistantInstance.new( @version, diff --git a/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb b/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb index 9e4aa4ff1..3223ccaf8 100644 --- a/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +++ b/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AssistantsKnowledgePage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def create headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, headers: headers) AssistantsKnowledgeInstance.new( @version, @@ -165,6 +172,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end diff --git a/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb b/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb index 8d128104b..a14ce9767 100644 --- a/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +++ b/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AssistantsToolPage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def create headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, headers: headers) AssistantsToolInstance.new( @version, @@ -165,6 +172,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end diff --git a/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb b/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb index cc1283afb..a82336a68 100644 --- a/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +++ b/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb @@ -35,14 +35,15 @@ def initialize(payload) end def to_json(options = {}) { - message_id: @message_id, - score: @score, - session_id: @session_id, - text: @text, + "message_id": @message_id, + "score": @score, + "session_id": @session_id, + "text": @text, }.to_json(options) end end + ## # Initialize the FeedbackList # @param [Version] version Version that contains the resource @@ -63,6 +64,10 @@ def create(assistants_v1_service_create_feedback_request: nil headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: assistants_v1_service_create_feedback_request.to_json) FeedbackInstance.new( @version, @@ -137,8 +142,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) FeedbackPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb b/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb index 86e51be85..246d17b02 100644 --- a/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +++ b/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb @@ -37,15 +37,16 @@ def initialize(payload) end def to_json(options = {}) { - identity: @identity, - session_id: @session_id, - body: @body, - webhook: @webhook, - mode: @mode, + "identity": @identity, + "session_id": @session_id, + "body": @body, + "webhook": @webhook, + "mode": @mode, }.to_json(options) end end + ## # Initialize the MessageList # @param [Version] version Version that contains the resource @@ -66,6 +67,10 @@ def create(assistants_v1_service_assistant_send_message_request: nil headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: assistants_v1_service_assistant_send_message_request.to_json) MessageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/assistants/v1/knowledge.rb b/lib/twilio-ruby/rest/assistants/v1/knowledge.rb index 8af5a51b5..64bf36d86 100644 --- a/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +++ b/lib/twilio-ruby/rest/assistants/v1/knowledge.rb @@ -37,12 +37,12 @@ def initialize(payload) end def to_json(options = {}) { - assistant_id: @assistant_id, - description: @description, - knowledge_source_details: @knowledge_source_details, - name: @name, - policy: @policy, - type: @type, + "assistant_id": @assistant_id, + "description": @description, + "knowledge_source_details": @knowledge_source_details, + "name": @name, + "policy": @policy, + "type": @type, }.to_json(options) end end @@ -63,11 +63,11 @@ def initialize(payload) end def to_json(options = {}) { - description: @description, - id: @id, - name: @name, - policy_details: @policy_details, - type: @type, + "description": @description, + "id": @id, + "name": @name, + "policy_details": @policy_details, + "type": @type, }.to_json(options) end end @@ -88,15 +88,16 @@ def initialize(payload) end def to_json(options = {}) { - description: @description, - knowledge_source_details: @knowledge_source_details, - name: @name, - policy: @policy, - type: @type, + "description": @description, + "knowledge_source_details": @knowledge_source_details, + "name": @name, + "policy": @policy, + "type": @type, }.to_json(options) end end + class AssistantsV1ServiceCreateKnowledgeRequest # @param [assistant_id]: [String] The Assistant ID. # @param [description]: [String] The description of the knowledge source. @@ -115,12 +116,12 @@ def initialize(payload) end def to_json(options = {}) { - assistant_id: @assistant_id, - description: @description, - knowledge_source_details: @knowledge_source_details, - name: @name, - policy: @policy, - type: @type, + "assistant_id": @assistant_id, + "description": @description, + "knowledge_source_details": @knowledge_source_details, + "name": @name, + "policy": @policy, + "type": @type, }.to_json(options) end end @@ -141,11 +142,11 @@ def initialize(payload) end def to_json(options = {}) { - description: @description, - id: @id, - name: @name, - policy_details: @policy_details, - type: @type, + "description": @description, + "id": @id, + "name": @name, + "policy_details": @policy_details, + "type": @type, }.to_json(options) end end @@ -166,15 +167,16 @@ def initialize(payload) end def to_json(options = {}) { - description: @description, - knowledge_source_details: @knowledge_source_details, - name: @name, - policy: @policy, - type: @type, + "description": @description, + "knowledge_source_details": @knowledge_source_details, + "name": @name, + "policy": @policy, + "type": @type, }.to_json(options) end end + ## # Initialize the KnowledgeList # @param [Version] version Version that contains the resource @@ -195,6 +197,10 @@ def create(assistants_v1_service_create_knowledge_request: nil headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: assistants_v1_service_create_knowledge_request.to_json) KnowledgeInstance.new( @version, @@ -274,8 +280,11 @@ def page(assistant_id: :unset, page_token: :unset, page_number: :unset, page_siz 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) KnowledgePage.new(@version, response, @solution) end @@ -326,6 +335,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -336,6 +347,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) KnowledgeInstance.new( @version, @@ -353,6 +368,10 @@ def update(assistants_v1_service_update_knowledge_request: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.update('PUT', @uri, headers: headers, data: assistants_v1_service_update_knowledge_request.to_json) KnowledgeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb b/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb index c8bd2ef9a..41928b85e 100644 --- a/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +++ b/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ChunkPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb b/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb index 958fcffb8..29fbef3b2 100644 --- a/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +++ b/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb @@ -64,6 +64,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) KnowledgeStatusInstance.new( @version, diff --git a/lib/twilio-ruby/rest/assistants/v1/policy.rb b/lib/twilio-ruby/rest/assistants/v1/policy.rb index 47cddaa4d..bc34511da 100644 --- a/lib/twilio-ruby/rest/assistants/v1/policy.rb +++ b/lib/twilio-ruby/rest/assistants/v1/policy.rb @@ -108,8 +108,11 @@ def page(tool_id: :unset, knowledge_id: :unset, page_token: :unset, page_number: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PolicyPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/assistants/v1/session.rb b/lib/twilio-ruby/rest/assistants/v1/session.rb index db55a5309..26a3c10f3 100644 --- a/lib/twilio-ruby/rest/assistants/v1/session.rb +++ b/lib/twilio-ruby/rest/assistants/v1/session.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SessionPage.new(@version, response, @solution) end @@ -147,6 +150,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SessionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/assistants/v1/session/message.rb b/lib/twilio-ruby/rest/assistants/v1/session/message.rb index 3ef30ba36..8d2ae4a61 100644 --- a/lib/twilio-ruby/rest/assistants/v1/session/message.rb +++ b/lib/twilio-ruby/rest/assistants/v1/session/message.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MessagePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/assistants/v1/tool.rb b/lib/twilio-ruby/rest/assistants/v1/tool.rb index cf9016939..08abb53c5 100644 --- a/lib/twilio-ruby/rest/assistants/v1/tool.rb +++ b/lib/twilio-ruby/rest/assistants/v1/tool.rb @@ -35,11 +35,11 @@ def initialize(payload) end def to_json(options = {}) { - description: @description, - id: @id, - name: @name, - policy_details: @policy_details, - type: @type, + "description": @description, + "id": @id, + "name": @name, + "policy_details": @policy_details, + "type": @type, }.to_json(options) end end @@ -64,13 +64,13 @@ def initialize(payload) end def to_json(options = {}) { - assistant_id: @assistant_id, - description: @description, - enabled: @enabled, - meta: @meta, - name: @name, - policy: @policy, - type: @type, + "assistant_id": @assistant_id, + "description": @description, + "enabled": @enabled, + "meta": @meta, + "name": @name, + "policy": @policy, + "type": @type, }.to_json(options) end end @@ -95,17 +95,18 @@ def initialize(payload) end def to_json(options = {}) { - assistant_id: @assistant_id, - description: @description, - enabled: @enabled, - meta: @meta, - name: @name, - policy: @policy, - type: @type, + "assistant_id": @assistant_id, + "description": @description, + "enabled": @enabled, + "meta": @meta, + "name": @name, + "policy": @policy, + "type": @type, }.to_json(options) end end + class AssistantsV1ServiceCreatePolicyRequest # @param [description]: [String] The description of the policy. # @param [id]: [String] The Policy ID. @@ -122,11 +123,11 @@ def initialize(payload) end def to_json(options = {}) { - description: @description, - id: @id, - name: @name, - policy_details: @policy_details, - type: @type, + "description": @description, + "id": @id, + "name": @name, + "policy_details": @policy_details, + "type": @type, }.to_json(options) end end @@ -151,13 +152,13 @@ def initialize(payload) end def to_json(options = {}) { - assistant_id: @assistant_id, - description: @description, - enabled: @enabled, - meta: @meta, - name: @name, - policy: @policy, - type: @type, + "assistant_id": @assistant_id, + "description": @description, + "enabled": @enabled, + "meta": @meta, + "name": @name, + "policy": @policy, + "type": @type, }.to_json(options) end end @@ -182,17 +183,18 @@ def initialize(payload) end def to_json(options = {}) { - assistant_id: @assistant_id, - description: @description, - enabled: @enabled, - meta: @meta, - name: @name, - policy: @policy, - type: @type, + "assistant_id": @assistant_id, + "description": @description, + "enabled": @enabled, + "meta": @meta, + "name": @name, + "policy": @policy, + "type": @type, }.to_json(options) end end + ## # Initialize the ToolList # @param [Version] version Version that contains the resource @@ -213,6 +215,10 @@ def create(assistants_v1_service_create_tool_request: nil headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: assistants_v1_service_create_tool_request.to_json) ToolInstance.new( @version, @@ -292,8 +298,11 @@ def page(assistant_id: :unset, page_token: :unset, page_number: :unset, page_siz 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ToolPage.new(@version, response, @solution) end @@ -342,6 +351,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -352,6 +363,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ToolInstance.new( @version, @@ -369,6 +384,10 @@ def update(assistants_v1_service_update_tool_request: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.update('PUT', @uri, headers: headers, data: assistants_v1_service_update_tool_request.to_json) ToolInstance.new( @version, diff --git a/lib/twilio-ruby/rest/bulkexports/v1/export.rb b/lib/twilio-ruby/rest/bulkexports/v1/export.rb index 8f10cd9c3..eb29cf793 100644 --- a/lib/twilio-ruby/rest/bulkexports/v1/export.rb +++ b/lib/twilio-ruby/rest/bulkexports/v1/export.rb @@ -78,6 +78,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ExportInstance.new( @version, diff --git a/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb b/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb index b311a6bba..6691c9544 100644 --- a/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +++ b/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DayPage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DayInstance.new( @version, diff --git a/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb b/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb index 341ec89f3..8b7bf3dd2 100644 --- a/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +++ b/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb @@ -61,6 +61,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ExportCustomJobInstance.new( @version, @@ -135,8 +139,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ExportCustomJobPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb b/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb index ec2d4de01..c05869a85 100644 --- a/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +++ b/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb @@ -64,6 +64,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -74,6 +76,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) JobInstance.new( @version, diff --git a/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb b/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb index d405e1b66..b9e36c2c0 100644 --- a/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +++ b/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ExportConfigurationInstance.new( @version, @@ -90,6 +94,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ExportConfigurationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v1/credential.rb b/lib/twilio-ruby/rest/chat/v1/credential.rb index 161cd6bac..1a3bf255c 100644 --- a/lib/twilio-ruby/rest/chat/v1/credential.rb +++ b/lib/twilio-ruby/rest/chat/v1/credential.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, @@ -135,8 +139,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CredentialPage.new(@version, response, @solution) end @@ -185,6 +192,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -195,6 +204,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CredentialInstance.new( @version, @@ -232,6 +245,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v1/service.rb b/lib/twilio-ruby/rest/chat/v1/service.rb index 0446fc68f..f359a48d7 100644 --- a/lib/twilio-ruby/rest/chat/v1/service.rb +++ b/lib/twilio-ruby/rest/chat/v1/service.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -117,8 +121,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -170,6 +177,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -180,6 +189,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -361,6 +374,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v1/service/channel.rb b/lib/twilio-ruby/rest/chat/v1/service/channel.rb index e9fb8fbb0..22ef609f3 100644 --- a/lib/twilio-ruby/rest/chat/v1/service/channel.rb +++ b/lib/twilio-ruby/rest/chat/v1/service/channel.rb @@ -55,6 +55,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ChannelInstance.new( @version, @@ -136,8 +140,11 @@ def page(type: :unset, page_token: :unset, page_number: :unset, page_size: :unse 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ChannelPage.new(@version, response, @solution) end @@ -190,6 +197,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -200,6 +209,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ChannelInstance.new( @version, @@ -229,6 +242,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb b/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb index ab23e551c..bb4549a4e 100644 --- a/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +++ b/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InviteInstance.new( @version, @@ -132,8 +136,11 @@ def page(identity: :unset, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InvitePage.new(@version, response, @solution) end @@ -184,6 +191,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -194,6 +203,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InviteInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb b/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb index 82e26f54f..d1dfe8e76 100644 --- a/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +++ b/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MemberInstance.new( @version, @@ -132,8 +136,11 @@ def page(identity: :unset, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MemberPage.new(@version, response, @solution) end @@ -184,6 +191,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -194,6 +203,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MemberInstance.new( @version, @@ -221,6 +234,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MemberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb b/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb index 743644897..c0f374088 100644 --- a/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +++ b/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, @@ -134,8 +138,11 @@ def page(order: :unset, page_token: :unset, page_number: :unset, page_size: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MessagePage.new(@version, response, @solution) end @@ -186,6 +193,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -196,6 +205,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MessageInstance.new( @version, @@ -223,6 +236,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v1/service/role.rb b/lib/twilio-ruby/rest/chat/v1/service/role.rb index 088390c99..1efd0b322 100644 --- a/lib/twilio-ruby/rest/chat/v1/service/role.rb +++ b/lib/twilio-ruby/rest/chat/v1/service/role.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RolePage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RoleInstance.new( @version, @@ -210,6 +223,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v1/service/user.rb b/lib/twilio-ruby/rest/chat/v1/service/user.rb index 046cfa39e..69587aab3 100644 --- a/lib/twilio-ruby/rest/chat/v1/service/user.rb +++ b/lib/twilio-ruby/rest/chat/v1/service/user.rb @@ -55,6 +55,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) UserInstance.new( @version, @@ -129,8 +133,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserPage.new(@version, response, @solution) end @@ -181,6 +188,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -191,6 +200,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserInstance.new( @version, @@ -220,6 +233,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb b/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb index 057bc88ab..c7449a8d3 100644 --- a/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +++ b/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserChannelPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/chat/v2/credential.rb b/lib/twilio-ruby/rest/chat/v2/credential.rb index a9b1f6242..e8553ce67 100644 --- a/lib/twilio-ruby/rest/chat/v2/credential.rb +++ b/lib/twilio-ruby/rest/chat/v2/credential.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, @@ -135,8 +139,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CredentialPage.new(@version, response, @solution) end @@ -185,6 +192,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -195,6 +204,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CredentialInstance.new( @version, @@ -232,6 +245,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service.rb b/lib/twilio-ruby/rest/chat/v2/service.rb index 7af34df3f..0825df558 100644 --- a/lib/twilio-ruby/rest/chat/v2/service.rb +++ b/lib/twilio-ruby/rest/chat/v2/service.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -117,8 +121,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -293,6 +306,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service/binding.rb b/lib/twilio-ruby/rest/chat/v2/service/binding.rb index 50f7b7e0c..5c5264d15 100644 --- a/lib/twilio-ruby/rest/chat/v2/service/binding.rb +++ b/lib/twilio-ruby/rest/chat/v2/service/binding.rb @@ -112,8 +112,11 @@ def page(binding_type: :unset, identity: :unset, page_token: :unset, page_number 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BindingPage.new(@version, response, @solution) end @@ -163,6 +166,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -173,6 +178,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BindingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service/channel.rb b/lib/twilio-ruby/rest/chat/v2/service/channel.rb index 742b73d1f..50f4ba5bb 100644 --- a/lib/twilio-ruby/rest/chat/v2/service/channel.rb +++ b/lib/twilio-ruby/rest/chat/v2/service/channel.rb @@ -66,6 +66,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ChannelInstance.new( @version, @@ -147,8 +151,11 @@ def page(type: :unset, page_token: :unset, page_number: :unset, page_size: :unse 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ChannelPage.new(@version, response, @solution) end @@ -205,6 +212,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -215,6 +224,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ChannelInstance.new( @version, @@ -255,6 +268,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb b/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb index 5645daeaa..6257a10bd 100644 --- a/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +++ b/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InviteInstance.new( @version, @@ -132,8 +136,11 @@ def page(identity: :unset, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InvitePage.new(@version, response, @solution) end @@ -184,6 +191,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -194,6 +203,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InviteInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb b/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb index 19a387be0..635875916 100644 --- a/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +++ b/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb @@ -67,6 +67,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MemberInstance.new( @version, @@ -149,8 +153,11 @@ def page(identity: :unset, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MemberPage.new(@version, response, @solution) end @@ -204,6 +211,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -214,6 +223,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MemberInstance.new( @version, @@ -255,6 +268,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MemberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb b/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb index dd2e26a56..019462b11 100644 --- a/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +++ b/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb @@ -67,6 +67,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, @@ -148,8 +152,11 @@ def page(order: :unset, page_token: :unset, page_number: :unset, page_size: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MessagePage.new(@version, response, @solution) end @@ -203,6 +210,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -213,6 +222,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MessageInstance.new( @version, @@ -254,6 +267,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb b/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb index 2de2c6701..b72fae2e2 100644 --- a/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +++ b/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb @@ -65,6 +65,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, @@ -140,8 +144,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) WebhookPage.new(@version, response, @solution) end @@ -192,6 +199,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -202,6 +211,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WebhookInstance.new( @version, @@ -241,6 +254,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service/role.rb b/lib/twilio-ruby/rest/chat/v2/service/role.rb index 6995e5a6d..a59ee0e6b 100644 --- a/lib/twilio-ruby/rest/chat/v2/service/role.rb +++ b/lib/twilio-ruby/rest/chat/v2/service/role.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RolePage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RoleInstance.new( @version, @@ -210,6 +223,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service/user.rb b/lib/twilio-ruby/rest/chat/v2/service/user.rb index 67447c117..a6086e396 100644 --- a/lib/twilio-ruby/rest/chat/v2/service/user.rb +++ b/lib/twilio-ruby/rest/chat/v2/service/user.rb @@ -57,6 +57,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) UserInstance.new( @version, @@ -131,8 +135,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserPage.new(@version, response, @solution) end @@ -184,6 +191,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -194,6 +203,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserInstance.new( @version, @@ -225,6 +238,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb b/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb index c6d47d6f1..c4ec0aaa6 100644 --- a/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +++ b/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb @@ -106,8 +106,11 @@ def page(binding_type: :unset, page_token: :unset, page_number: :unset, page_siz 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserBindingPage.new(@version, response, @solution) end @@ -158,6 +161,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -168,6 +173,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserBindingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb b/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb index 1d6c83390..2793cee74 100644 --- a/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +++ b/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserChannelPage.new(@version, response, @solution) end @@ -154,6 +157,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -164,6 +169,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserChannelInstance.new( @version, @@ -194,6 +203,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/chat/v3/channel.rb b/lib/twilio-ruby/rest/chat/v3/channel.rb index 894f4d487..83fa0b72b 100644 --- a/lib/twilio-ruby/rest/chat/v3/channel.rb +++ b/lib/twilio-ruby/rest/chat/v3/channel.rb @@ -75,6 +75,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/client.rb b/lib/twilio-ruby/rest/client.rb index 96d38ec1a..86f030498 100644 --- a/lib/twilio-ruby/rest/client.rb +++ b/lib/twilio-ruby/rest/client.rb @@ -67,6 +67,11 @@ def frontline_api @frontline_api ||= FrontlineApi.new self end ## + # Access the PreviewIam Twilio Domain + def preview_iam + @preview_iam ||= PreviewIam.new self + end + ## # Access the Iam Twilio Domain def iam @iam ||= Iam.new self @@ -132,10 +137,6 @@ def preview @preview ||= Preview.new self end ## - # Access the Preview Iam Twilio Domain - def preview_iam - @preview_iam ||=PreviewIam.new self - end # Access the Pricing Twilio Domain def pricing @pricing ||= Pricing.new self @@ -238,7 +239,7 @@ def authorized_connect_apps(connectAppSid=:unset) def available_phone_numbers(countryCode=:unset) self.api.v2010.account.available_phone_numbers(countryCode) end - + ## # @param [string] sid The SID of the Call resource to fetch. @@ -287,8 +288,8 @@ def keys(sid=:unset) def messages(sid=:unset) self.api.v2010.account.messages(sid) end - - + + ## # @param [string] sid The Twilio-provided string that uniquely identifies the Notification resource to fetch. @@ -336,8 +337,8 @@ def short_codes(sid=:unset) def signing_keys(sid=:unset) self.api.v2010.account.signing_keys(sid) end - - + + ## # @param [string] sid The Twilio-provided string that uniquely identifies the Transcription resource to fetch. @@ -346,8 +347,8 @@ def signing_keys(sid=:unset) def transcriptions(sid=:unset) self.api.v2010.account.transcriptions(sid) end - - + + ## # Provide a user friendly representation diff --git a/lib/twilio-ruby/rest/content/v1/content.rb b/lib/twilio-ruby/rest/content/v1/content.rb index 93574f962..11cb95401 100644 --- a/lib/twilio-ruby/rest/content/v1/content.rb +++ b/lib/twilio-ruby/rest/content/v1/content.rb @@ -29,8 +29,8 @@ def initialize(payload) end def to_json(options = {}) { - type: @type, - copy_code_text: @copy_code_text, + "type": @type, + "copy_code_text": @copy_code_text, }.to_json(options) end end @@ -51,11 +51,11 @@ def initialize(payload) end def to_json(options = {}) { - type: @type, - title: @title, - url: @url, - phone: @phone, - code: @code, + "type": @type, + "title": @title, + "url": @url, + "phone": @phone, + "code": @code, }.to_json(options) end end @@ -78,12 +78,12 @@ def initialize(payload) end def to_json(options = {}) { - type: @type, - title: @title, - url: @url, - phone: @phone, - id: @id, - code: @code, + "type": @type, + "title": @title, + "url": @url, + "phone": @phone, + "id": @id, + "code": @code, }.to_json(options) end end @@ -104,11 +104,11 @@ def initialize(payload) end def to_json(options = {}) { - type: @type, - title: @title, - url: @url, - phone: @phone, - id: @id, + "type": @type, + "title": @title, + "url": @url, + "phone": @phone, + "id": @id, }.to_json(options) end end @@ -127,10 +127,10 @@ def initialize(payload) end def to_json(options = {}) { - title: @title, - body: @body, - media: @media, - actions: @actions, + "title": @title, + "body": @body, + "media": @media, + "actions": @actions, }.to_json(options) end end @@ -153,12 +153,12 @@ def initialize(payload) end def to_json(options = {}) { - id: @id, - section_title: @section_title, - name: @name, - media_url: @media_url, - price: @price, - description: @description, + "id": @id, + "section_title": @section_title, + "name": @name, + "media_url": @media_url, + "price": @price, + "description": @description, }.to_json(options) end end @@ -177,10 +177,10 @@ def initialize(payload) end def to_json(options = {}) { - friendly_name: @friendly_name, - variables: @variables, - language: @language, - types: @types, + "friendly_name": @friendly_name, + "variables": @variables, + "language": @language, + "types": @types, }.to_json(options) end end @@ -201,11 +201,11 @@ def initialize(payload) end def to_json(options = {}) { - id: @id, - next_page_id: @next_page_id, - title: @title, - subtitle: @subtitle, - layout: @layout, + "id": @id, + "next_page_id": @next_page_id, + "title": @title, + "subtitle": @subtitle, + "layout": @layout, }.to_json(options) end end @@ -224,10 +224,10 @@ def initialize(payload) end def to_json(options = {}) { - label: @label, - type: @type, - text: @text, - options: @options, + "label": @label, + "type": @type, + "text": @text, + "options": @options, }.to_json(options) end end @@ -242,8 +242,8 @@ def initialize(payload) end def to_json(options = {}) { - id: @id, - title: @title, + "id": @id, + "title": @title, }.to_json(options) end end @@ -260,9 +260,9 @@ def initialize(payload) end def to_json(options = {}) { - id: @id, - item: @item, - description: @description, + "id": @id, + "item": @item, + "description": @description, }.to_json(options) end end @@ -279,9 +279,9 @@ def initialize(payload) end def to_json(options = {}) { - type: @type, - title: @title, - id: @id, + "type": @type, + "title": @title, + "id": @id, }.to_json(options) end end @@ -296,8 +296,8 @@ def initialize(payload) end def to_json(options = {}) { - body: @body, - actions: @actions, + "body": @body, + "actions": @actions, }.to_json(options) end end @@ -316,10 +316,10 @@ def initialize(payload) end def to_json(options = {}) { - title: @title, - subtitle: @subtitle, - media: @media, - actions: @actions, + "title": @title, + "subtitle": @subtitle, + "media": @media, + "actions": @actions, }.to_json(options) end end @@ -334,8 +334,8 @@ def initialize(payload) end def to_json(options = {}) { - body: @body, - cards: @cards, + "body": @body, + "cards": @cards, }.to_json(options) end end @@ -358,12 +358,12 @@ def initialize(payload) end def to_json(options = {}) { - title: @title, - body: @body, - subtitle: @subtitle, - id: @id, - items: @items, - dynamic_items: @dynamic_items, + "title": @title, + "body": @body, + "subtitle": @subtitle, + "id": @id, + "items": @items, + "dynamic_items": @dynamic_items, }.to_json(options) end end @@ -386,12 +386,12 @@ def initialize(payload) end def to_json(options = {}) { - body: @body, - button_text: @button_text, - subtitle: @subtitle, - media_url: @media_url, - pages: @pages, - type: @type, + "body": @body, + "button_text": @button_text, + "subtitle": @subtitle, + "media_url": @media_url, + "pages": @pages, + "type": @type, }.to_json(options) end end @@ -408,9 +408,9 @@ def initialize(payload) end def to_json(options = {}) { - body: @body, - button: @button, - items: @items, + "body": @body, + "button": @button, + "items": @items, }.to_json(options) end end @@ -427,9 +427,9 @@ def initialize(payload) end def to_json(options = {}) { - latitude: @latitude, - longitude: @longitude, - label: @label, + "latitude": @latitude, + "longitude": @longitude, + "label": @label, }.to_json(options) end end @@ -444,8 +444,8 @@ def initialize(payload) end def to_json(options = {}) { - body: @body, - media: @media, + "body": @body, + "media": @media, }.to_json(options) end end @@ -460,8 +460,8 @@ def initialize(payload) end def to_json(options = {}) { - body: @body, - actions: @actions, + "body": @body, + "actions": @actions, }.to_json(options) end end @@ -474,7 +474,7 @@ def initialize(payload) end def to_json(options = {}) { - body: @body, + "body": @body, }.to_json(options) end end @@ -509,18 +509,18 @@ def initialize(payload) end def to_json(options = {}) { - twilio_text: @twilio_text, - twilio_media: @twilio_media, - twilio_location: @twilio_location, - twilio_list_picker: @twilio_list_picker, - twilio_call_to_action: @twilio_call_to_action, - twilio_quick_reply: @twilio_quick_reply, - twilio_card: @twilio_card, - twilio_catalog: @twilio_catalog, - twilio_carousel: @twilio_carousel, - twilio_flows: @twilio_flows, - whatsapp_card: @whatsapp_card, - whatsapp_authentication: @whatsapp_authentication, + "twilio/text": @twilio_text, + "twilio/media": @twilio_media, + "twilio/location": @twilio_location, + "twilio/list-picker": @twilio_list_picker, + "twilio/call-to-action": @twilio_call_to_action, + "twilio/quick-reply": @twilio_quick_reply, + "twilio/card": @twilio_card, + "twilio/catalog": @twilio_catalog, + "twilio/carousel": @twilio_carousel, + "twilio/flows": @twilio_flows, + "whatsapp/card": @whatsapp_card, + "whatsapp/authentication": @whatsapp_authentication, }.to_json(options) end end @@ -537,9 +537,9 @@ def initialize(payload) end def to_json(options = {}) { - add_security_recommendation: @add_security_recommendation, - code_expiration_minutes: @code_expiration_minutes, - actions: @actions, + "add_security_recommendation": @add_security_recommendation, + "code_expiration_minutes": @code_expiration_minutes, + "actions": @actions, }.to_json(options) end end @@ -560,15 +560,16 @@ def initialize(payload) end def to_json(options = {}) { - body: @body, - footer: @footer, - media: @media, - header_text: @header_text, - actions: @actions, + "body": @body, + "footer": @footer, + "media": @media, + "header_text": @header_text, + "actions": @actions, }.to_json(options) end end + ## # Initialize the ContentList # @param [Version] version Version that contains the resource @@ -589,6 +590,10 @@ def create(content_create_request: nil headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: content_create_request.to_json) ContentInstance.new( @version, @@ -662,8 +667,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ContentPage.new(@version, response, @solution) end @@ -714,6 +722,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -724,6 +734,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ContentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/content/v1/content/approval_create.rb b/lib/twilio-ruby/rest/content/v1/content/approval_create.rb index 92495e189..8adc2fa31 100644 --- a/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +++ b/lib/twilio-ruby/rest/content/v1/content/approval_create.rb @@ -31,12 +31,13 @@ def initialize(payload) end def to_json(options = {}) { - name: @name, - category: @category, + "name": @name, + "category": @category, }.to_json(options) end end + ## # Initialize the ApprovalCreateList # @param [Version] version Version that contains the resource @@ -57,6 +58,10 @@ def create(content_approval_request: nil headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: content_approval_request.to_json) ApprovalCreateInstance.new( @version, diff --git a/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb b/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb index d09d6aff6..19637a146 100644 --- a/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +++ b/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb @@ -64,6 +64,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ApprovalFetchInstance.new( @version, diff --git a/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb b/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb index c0b9fa732..913230435 100644 --- a/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +++ b/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ContentAndApprovalsPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/content/v1/legacy_content.rb b/lib/twilio-ruby/rest/content/v1/legacy_content.rb index 7008c58d8..003448d02 100644 --- a/lib/twilio-ruby/rest/content/v1/legacy_content.rb +++ b/lib/twilio-ruby/rest/content/v1/legacy_content.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) LegacyContentPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/content/v2/content.rb b/lib/twilio-ruby/rest/content/v2/content.rb index 28c607277..e871f51a6 100644 --- a/lib/twilio-ruby/rest/content/v2/content.rb +++ b/lib/twilio-ruby/rest/content/v2/content.rb @@ -153,8 +153,11 @@ def page(sort_by_date: :unset, sort_by_content_name: :unset, date_created_after: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ContentPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb b/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb index 8a654e2f7..cb01cf049 100644 --- a/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +++ b/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb @@ -153,8 +153,11 @@ def page(sort_by_date: :unset, sort_by_content_name: :unset, date_created_after: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ContentAndApprovalsPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb b/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb index abb7ab2b7..1293b2d4a 100644 --- a/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +++ b/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb @@ -77,6 +77,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AddressConfigurationInstance.new( @version, @@ -156,8 +160,11 @@ def page(type: :unset, page_token: :unset, page_number: :unset, page_size: :unse 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AddressConfigurationPage.new(@version, response, @solution) end @@ -206,6 +213,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -216,6 +225,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AddressConfigurationInstance.new( @version, @@ -262,6 +275,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) AddressConfigurationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/configuration.rb b/lib/twilio-ruby/rest/conversations/v1/configuration.rb index 9e2fcb2dd..cb38f9f22 100644 --- a/lib/twilio-ruby/rest/conversations/v1/configuration.rb +++ b/lib/twilio-ruby/rest/conversations/v1/configuration.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ConfigurationInstance.new( @version, @@ -92,6 +96,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ConfigurationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb b/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb index 0ef08a3d5..baae4003c 100644 --- a/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +++ b/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb @@ -63,6 +63,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WebhookInstance.new( @version, @@ -96,6 +100,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/conversation.rb b/lib/twilio-ruby/rest/conversations/v1/conversation.rb index a57e2189a..e8511ce32 100644 --- a/lib/twilio-ruby/rest/conversations/v1/conversation.rb +++ b/lib/twilio-ruby/rest/conversations/v1/conversation.rb @@ -76,6 +76,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ConversationInstance.new( @version, @@ -167,8 +171,11 @@ def page(start_date: :unset, end_date: :unset, state: :unset, page_token: :unset 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ConversationPage.new(@version, response, @solution) end @@ -223,6 +230,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -233,6 +242,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ConversationInstance.new( @version, @@ -287,6 +300,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ConversationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb b/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb index 5ef740026..c777949f9 100644 --- a/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +++ b/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb @@ -72,6 +72,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, @@ -152,8 +156,11 @@ def page(order: :unset, page_token: :unset, page_number: :unset, page_size: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MessagePage.new(@version, response, @solution) end @@ -207,6 +214,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -217,6 +226,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MessageInstance.new( @version, @@ -257,6 +270,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb b/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb index 8c89d4c2d..200e98fb6 100644 --- a/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +++ b/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DeliveryReceiptPage.new(@version, response, @solution) end @@ -151,6 +154,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DeliveryReceiptInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb b/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb index 002e3140e..6ce5207f0 100644 --- a/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +++ b/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb @@ -69,6 +69,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ParticipantInstance.new( @version, @@ -143,8 +147,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ParticipantPage.new(@version, response, @solution) end @@ -197,6 +204,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -207,6 +216,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ParticipantInstance.new( @version, @@ -256,6 +269,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ParticipantInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb b/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb index e29aa185d..b3167cf2f 100644 --- a/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +++ b/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb @@ -64,6 +64,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, @@ -138,8 +142,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) WebhookPage.new(@version, response, @solution) end @@ -189,6 +196,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -199,6 +208,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WebhookInstance.new( @version, @@ -234,6 +247,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb b/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb index f27f95011..da314288b 100644 --- a/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +++ b/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb @@ -79,6 +79,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ConversationWithParticipantsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/credential.rb b/lib/twilio-ruby/rest/conversations/v1/credential.rb index a6acd5322..58e6eab49 100644 --- a/lib/twilio-ruby/rest/conversations/v1/credential.rb +++ b/lib/twilio-ruby/rest/conversations/v1/credential.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, @@ -135,8 +139,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CredentialPage.new(@version, response, @solution) end @@ -185,6 +192,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -195,6 +204,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CredentialInstance.new( @version, @@ -235,6 +248,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb b/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb index 12f6d6fba..bf0360ba5 100644 --- a/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +++ b/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb @@ -108,8 +108,11 @@ def page(identity: :unset, address: :unset, page_token: :unset, page_number: :un 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ParticipantConversationPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/conversations/v1/role.rb b/lib/twilio-ruby/rest/conversations/v1/role.rb index 85e966722..5e62c34dc 100644 --- a/lib/twilio-ruby/rest/conversations/v1/role.rb +++ b/lib/twilio-ruby/rest/conversations/v1/role.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RolePage.new(@version, response, @solution) end @@ -173,6 +180,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -183,6 +192,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RoleInstance.new( @version, @@ -205,6 +218,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service.rb b/lib/twilio-ruby/rest/conversations/v1/service.rb index b84488a4f..9aafa83c0 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -117,8 +121,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -174,6 +181,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -184,6 +193,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/binding.rb b/lib/twilio-ruby/rest/conversations/v1/service/binding.rb index c4159b62b..4ca3d736b 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/binding.rb @@ -112,8 +112,11 @@ def page(binding_type: :unset, identity: :unset, page_token: :unset, page_number 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BindingPage.new(@version, response, @solution) end @@ -163,6 +166,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -173,6 +178,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BindingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb b/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb index 7c6bcff3c..67fb7ee92 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb @@ -66,6 +66,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ConfigurationInstance.new( @version, @@ -97,6 +101,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ConfigurationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb b/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb index 1eeae7ce0..b99fefc15 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb @@ -65,6 +65,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) NotificationInstance.new( @version, @@ -123,6 +127,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) NotificationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb b/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb index da0feadc7..c18d573f9 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb @@ -65,6 +65,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WebhookInstance.new( @version, @@ -96,6 +100,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb b/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb index 9b64da5d1..d9e7bc7d0 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb @@ -78,6 +78,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ConversationInstance.new( @version, @@ -170,8 +174,11 @@ def page(start_date: :unset, end_date: :unset, state: :unset, page_token: :unset 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ConversationPage.new(@version, response, @solution) end @@ -227,6 +234,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -237,6 +246,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ConversationInstance.new( @version, @@ -292,6 +305,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ConversationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb b/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb index a9d5baf69..11eaeb49a 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb @@ -73,6 +73,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, @@ -154,8 +158,11 @@ def page(order: :unset, page_token: :unset, page_number: :unset, page_size: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MessagePage.new(@version, response, @solution) end @@ -210,6 +217,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -220,6 +229,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MessageInstance.new( @version, @@ -261,6 +274,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb b/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb index b0bc460b2..9bb5899ae 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb @@ -100,8 +100,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DeliveryReceiptPage.new(@version, response, @solution) end @@ -153,6 +156,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DeliveryReceiptInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb b/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb index 8e0056185..e0066b59d 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb @@ -70,6 +70,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ParticipantInstance.new( @version, @@ -145,8 +149,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ParticipantPage.new(@version, response, @solution) end @@ -200,6 +207,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -210,6 +219,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ParticipantInstance.new( @version, @@ -260,6 +273,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ParticipantInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb b/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb index 980763778..1009364c9 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb @@ -65,6 +65,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, @@ -140,8 +144,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) WebhookPage.new(@version, response, @solution) end @@ -192,6 +199,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -202,6 +211,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WebhookInstance.new( @version, @@ -238,6 +251,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb b/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb index 2769e1e34..d3373bc6d 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb @@ -81,6 +81,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ConversationWithParticipantsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb b/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb index 1abcc7e82..3571a10e4 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb @@ -110,8 +110,11 @@ def page(identity: :unset, address: :unset, page_token: :unset, page_number: :un 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ParticipantConversationPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/conversations/v1/service/role.rb b/lib/twilio-ruby/rest/conversations/v1/service/role.rb index ef8220d0f..467a3c12f 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/role.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/role.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RolePage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RoleInstance.new( @version, @@ -210,6 +223,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/user.rb b/lib/twilio-ruby/rest/conversations/v1/service/user.rb index bee4a10ce..aba5c09b7 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/user.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/user.rb @@ -57,6 +57,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) UserInstance.new( @version, @@ -131,8 +135,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserPage.new(@version, response, @solution) end @@ -186,6 +193,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -196,6 +205,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserInstance.new( @version, @@ -227,6 +240,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb b/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb index 001949d6d..2ab7dbfa6 100644 --- a/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +++ b/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserConversationPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserConversationInstance.new( @version, @@ -191,6 +200,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserConversationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/user.rb b/lib/twilio-ruby/rest/conversations/v1/user.rb index 4efce5cbe..d455907de 100644 --- a/lib/twilio-ruby/rest/conversations/v1/user.rb +++ b/lib/twilio-ruby/rest/conversations/v1/user.rb @@ -55,6 +55,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) UserInstance.new( @version, @@ -128,8 +132,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserPage.new(@version, response, @solution) end @@ -182,6 +189,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -192,6 +201,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserInstance.new( @version, @@ -222,6 +235,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb b/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb index 95d1116c4..47c37cd68 100644 --- a/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +++ b/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserConversationPage.new(@version, response, @solution) end @@ -149,6 +152,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -159,6 +164,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserConversationInstance.new( @version, @@ -188,6 +197,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserConversationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/events/v1/event_type.rb b/lib/twilio-ruby/rest/events/v1/event_type.rb index 57211f7d7..c75f8d1b6 100644 --- a/lib/twilio-ruby/rest/events/v1/event_type.rb +++ b/lib/twilio-ruby/rest/events/v1/event_type.rb @@ -102,8 +102,11 @@ def page(schema_id: :unset, page_token: :unset, page_number: :unset, page_size: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EventTypePage.new(@version, response, @solution) end @@ -152,6 +155,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EventTypeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/events/v1/schema.rb b/lib/twilio-ruby/rest/events/v1/schema.rb index d7257b6ee..1f5f7c1ae 100644 --- a/lib/twilio-ruby/rest/events/v1/schema.rb +++ b/lib/twilio-ruby/rest/events/v1/schema.rb @@ -63,6 +63,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SchemaInstance.new( @version, diff --git a/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb b/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb index 6520e37b0..a27236897 100644 --- a/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +++ b/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SchemaVersionPage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SchemaVersionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/events/v1/sink.rb b/lib/twilio-ruby/rest/events/v1/sink.rb index d3e7d2a65..ac5f66622 100644 --- a/lib/twilio-ruby/rest/events/v1/sink.rb +++ b/lib/twilio-ruby/rest/events/v1/sink.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SinkInstance.new( @version, @@ -135,8 +139,11 @@ def page(in_use: :unset, status: :unset, page_token: :unset, page_number: :unset 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SinkPage.new(@version, response, @solution) end @@ -187,6 +194,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -197,6 +206,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SinkInstance.new( @version, @@ -219,6 +232,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SinkInstance.new( @version, diff --git a/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb b/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb index efbc9d562..861bba7d4 100644 --- a/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +++ b/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb @@ -39,6 +39,10 @@ def create headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, headers: headers) SinkTestInstance.new( @version, diff --git a/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb b/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb index 37e99a342..1cfdecfd7 100644 --- a/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +++ b/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SinkValidateInstance.new( @version, diff --git a/lib/twilio-ruby/rest/events/v1/subscription.rb b/lib/twilio-ruby/rest/events/v1/subscription.rb index f93958ab8..eb2be1213 100644 --- a/lib/twilio-ruby/rest/events/v1/subscription.rb +++ b/lib/twilio-ruby/rest/events/v1/subscription.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SubscriptionInstance.new( @version, @@ -129,8 +133,11 @@ def page(sink_sid: :unset, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SubscriptionPage.new(@version, response, @solution) end @@ -180,6 +187,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -190,6 +199,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SubscriptionInstance.new( @version, @@ -215,6 +228,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SubscriptionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb b/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb index cc8ea7cc3..43a2c49c5 100644 --- a/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +++ b/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SubscribedEventInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SubscribedEventPage.new(@version, response, @solution) end @@ -174,6 +181,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -184,6 +193,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SubscribedEventInstance.new( @version, @@ -207,6 +220,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SubscribedEventInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/assessments.rb b/lib/twilio-ruby/rest/flex_api/v1/assessments.rb index 9d51ae15a..4d8d72e14 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/assessments.rb @@ -73,6 +73,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AssessmentsInstance.new( @version, @@ -158,8 +162,11 @@ def page(authorization: :unset, segment_id: :unset, page_token: :unset, page_num 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AssessmentsPage.new(@version, response, @solution) end @@ -223,6 +230,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) AssessmentsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/channel.rb b/lib/twilio-ruby/rest/flex_api/v1/channel.rb index 0c5193203..67655157e 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/channel.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/channel.rb @@ -71,6 +71,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ChannelInstance.new( @version, @@ -144,8 +148,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ChannelPage.new(@version, response, @solution) end @@ -194,6 +201,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -204,6 +213,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/configuration.rb b/lib/twilio-ruby/rest/flex_api/v1/configuration.rb index 86668f4c6..89b963600 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/configuration.rb @@ -67,6 +67,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) ConfigurationInstance.new( @version, @@ -83,6 +87,10 @@ def update(body: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.update('POST', @uri, headers: headers, data: body.to_json) ConfigurationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb b/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb index 13e95e222..e2b4dbc8c 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb @@ -92,6 +92,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) FlexFlowInstance.new( @version, @@ -171,8 +175,11 @@ def page(friendly_name: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) FlexFlowPage.new(@version, response, @solution) end @@ -221,6 +228,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -231,6 +240,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FlexFlowInstance.new( @version, @@ -301,6 +314,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) FlexFlowInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb index 52d265f40..b4ac78ab8 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb @@ -61,6 +61,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InsightsAssessmentsCommentInstance.new( @version, @@ -152,8 +156,11 @@ def page(authorization: :unset, segment_id: :unset, agent_id: :unset, page_token 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InsightsAssessmentsCommentPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb index 4985fcf8a..2e872f6c9 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb @@ -108,8 +108,11 @@ def page(authorization: :unset, segment_id: :unset, page_token: :unset, page_num 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InsightsConversationsPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb index 776fe5a86..1560eb75e 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb @@ -55,6 +55,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InsightsQuestionnairesInstance.new( @version, @@ -140,8 +144,11 @@ def page(authorization: :unset, include_inactive: :unset, page_token: :unset, pa 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InsightsQuestionnairesPage.new(@version, response, @solution) end @@ -193,6 +200,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -206,6 +215,10 @@ def fetch( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InsightsQuestionnairesInstance.new( @version, @@ -239,6 +252,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) InsightsQuestionnairesInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb index 5a944ad11..b00ec179c 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InsightsQuestionnairesCategoryInstance.new( @version, @@ -125,8 +129,11 @@ def page(authorization: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InsightsQuestionnairesCategoryPage.new(@version, response, @solution) end @@ -178,6 +185,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -197,6 +206,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) InsightsQuestionnairesCategoryInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb index efecac38c..688b0f41c 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb @@ -58,6 +58,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InsightsQuestionnairesQuestionInstance.new( @version, @@ -144,8 +148,11 @@ def page(authorization: :unset, category_sid: :unset, page_token: :unset, page_n 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InsightsQuestionnairesQuestionPage.new(@version, response, @solution) end @@ -197,6 +204,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -228,6 +237,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) InsightsQuestionnairesQuestionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb index 8470eadaf..987913c9a 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb @@ -115,8 +115,11 @@ def page(authorization: :unset, segment_id: :unset, reservation_id: :unset, page 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InsightsSegmentsPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb index f0d36dca2..0073e93ea 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb @@ -64,6 +64,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.create('POST', @uri, headers: headers) InsightsSessionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb index b89f8640a..304e74cb7 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb @@ -40,6 +40,10 @@ def fetch( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InsightsSettingsAnswerSetsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb index add6f82f1..b50537b9c 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb @@ -40,6 +40,10 @@ def fetch( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InsightsSettingsCommentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb b/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb index 56fb61a06..0f63be201 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb @@ -64,6 +64,10 @@ def fetch( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InsightsUserRolesInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/interaction.rb b/lib/twilio-ruby/rest/flex_api/v1/interaction.rb index 5cb46006b..11f5bcf21 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/interaction.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InteractionInstance.new( @version, @@ -90,6 +94,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InteractionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb b/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb index 00bb00e47..8a3c64754 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InteractionChannelPage.new(@version, response, @solution) end @@ -151,6 +154,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InteractionChannelInstance.new( @version, @@ -177,6 +184,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) InteractionChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb b/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb index 553174945..5dbc4b921 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InteractionChannelInviteInstance.new( @version, @@ -122,8 +126,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InteractionChannelInvitePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb b/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb index ac08fc510..5729b3a0f 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InteractionChannelParticipantInstance.new( @version, @@ -128,8 +132,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InteractionChannelParticipantPage.new(@version, response, @solution) end @@ -187,6 +194,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) InteractionChannelParticipantInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/plugin.rb b/lib/twilio-ruby/rest/flex_api/v1/plugin.rb index 296dd3d11..e8564dc26 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/plugin.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) PluginInstance.new( @version, @@ -131,8 +135,11 @@ def page(flex_metadata: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PluginPage.new(@version, response, @solution) end @@ -185,6 +192,10 @@ def fetch( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PluginInstance.new( @version, @@ -212,6 +223,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) PluginInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb b/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb index ce07b6682..da0f44b0d 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb @@ -63,6 +63,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) PluginVersionsInstance.new( @version, @@ -143,8 +147,11 @@ def page(flex_metadata: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PluginVersionsPage.new(@version, response, @solution) end @@ -197,6 +204,10 @@ def fetch( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PluginVersionsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb b/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb index f140679a9..d5401eab0 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb @@ -65,6 +65,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.update('POST', @uri, headers: headers) PluginArchiveInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb b/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb index 5174a0769..e7d7e25d9 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) PluginConfigurationInstance.new( @version, @@ -131,8 +135,11 @@ def page(flex_metadata: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PluginConfigurationPage.new(@version, response, @solution) end @@ -185,6 +192,10 @@ def fetch( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PluginConfigurationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb b/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb index 6abd9e4fc..072ed2f12 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb @@ -104,8 +104,11 @@ def page(flex_metadata: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ConfiguredPluginPage.new(@version, response, @solution) end @@ -158,6 +161,10 @@ def fetch( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ConfiguredPluginInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb b/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb index f2b8a78f6..3a51ebaf2 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb @@ -65,6 +65,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.update('POST', @uri, headers: headers) PluginConfigurationArchiveInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb b/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb index 41ebbc747..d43c1fac0 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) PluginReleaseInstance.new( @version, @@ -125,8 +129,11 @@ def page(flex_metadata: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PluginReleasePage.new(@version, response, @solution) end @@ -178,6 +185,10 @@ def fetch( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PluginReleaseInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb b/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb index 991d4f1df..3973e5d86 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb @@ -66,6 +66,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Flex-Metadata' => flex_metadata, }) + + + + payload = @version.update('POST', @uri, headers: headers) PluginVersionArchiveInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb b/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb index 93c895e48..d3e72fcc7 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb @@ -61,6 +61,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ProvisioningStatusInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb b/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb index cb24ea1cf..1280a36e2 100644 --- a/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +++ b/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb @@ -59,6 +59,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) WebChannelInstance.new( @version, @@ -132,8 +136,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) WebChannelPage.new(@version, response, @solution) end @@ -182,6 +189,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -192,6 +201,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WebChannelInstance.new( @version, @@ -217,6 +230,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WebChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb b/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb index 9616dea12..8e5fd78df 100644 --- a/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +++ b/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb @@ -63,6 +63,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FlexUserInstance.new( @version, @@ -101,6 +105,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) FlexUserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb b/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb index 24ebd0bc1..6eb8c439a 100644 --- a/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +++ b/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb @@ -55,6 +55,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Ui-Version' => ui_version, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) WebChannelsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/frontline_api/v1/user.rb b/lib/twilio-ruby/rest/frontline_api/v1/user.rb index 7ac787b9f..9f577d117 100644 --- a/lib/twilio-ruby/rest/frontline_api/v1/user.rb +++ b/lib/twilio-ruby/rest/frontline_api/v1/user.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserInstance.new( @version, @@ -93,6 +97,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/iam/v1.rb b/lib/twilio-ruby/rest/iam/v1.rb index 7f37c9e19..3ac6fc8fe 100644 --- a/lib/twilio-ruby/rest/iam/v1.rb +++ b/lib/twilio-ruby/rest/iam/v1.rb @@ -23,7 +23,7 @@ def initialize(domain) @version = 'v1' @api_key = nil @get_api_keys = nil - @keys = nil + @new_api_key = nil end ## @@ -46,9 +46,9 @@ def get_api_keys @get_api_keys ||= GetApiKeysList.new self end ## - # @return [Twilio::REST::Iam::V1::KeyList] - def keys - @keys ||= KeyList.new self + # @return [Twilio::REST::Iam::V1::NewApiKeyList] + def new_api_key + @new_api_key ||= NewApiKeyList.new self end ## # Provide a user friendly representation diff --git a/lib/twilio-ruby/rest/iam/v1/api_key.rb b/lib/twilio-ruby/rest/iam/v1/api_key.rb index e74493e25..52e157432 100644 --- a/lib/twilio-ruby/rest/iam/v1/api_key.rb +++ b/lib/twilio-ruby/rest/iam/v1/api_key.rb @@ -62,6 +62,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -72,6 +74,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ApiKeyInstance.new( @version, @@ -97,6 +103,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ApiKeyInstance.new( @version, diff --git a/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb b/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb index 4d8f20a19..9083159a6 100644 --- a/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +++ b/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb @@ -102,8 +102,11 @@ def page(account_sid: nil, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) GetApiKeysPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/iam/v1/key.rb b/lib/twilio-ruby/rest/iam/v1/new_api_key.rb similarity index 84% rename from lib/twilio-ruby/rest/iam/v1/key.rb rename to lib/twilio-ruby/rest/iam/v1/new_api_key.rb index 83668eb48..b5f962c3a 100644 --- a/lib/twilio-ruby/rest/iam/v1/key.rb +++ b/lib/twilio-ruby/rest/iam/v1/new_api_key.rb @@ -17,12 +17,12 @@ module Twilio module REST class Iam < IamBase class V1 < Version - class KeyList < ListResource + class NewApiKeyList < ListResource ## - # Initialize the KeyList + # Initialize the NewApiKeyList # @param [Version] version Version that contains the resource - # @return [KeyList] KeyList + # @return [NewApiKeyList] NewApiKeyList def initialize(version) super(version) # Path Solution @@ -31,12 +31,12 @@ def initialize(version) end ## - # Create the KeyInstance + # Create the NewApiKeyInstance # @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. # @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long. # @param [Keytype] key_type # @param [Object] policy The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys). - # @return [KeyInstance] Created KeyInstance + # @return [NewApiKeyInstance] Created NewApiKeyInstance def create( account_sid: nil, friendly_name: :unset, @@ -53,8 +53,12 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) - KeyInstance.new( + NewApiKeyInstance.new( @version, payload, ) @@ -65,17 +69,17 @@ def create( # Provide a user friendly representation def to_s - '#' + '#' end end - class KeyPage < Page + class NewApiKeyPage < Page ## - # Initialize the KeyPage + # Initialize the NewApiKeyPage # @param [Version] version Version that contains the resource # @param [Response] response Response from the API # @param [Hash] solution Path solution for the resource - # @return [KeyPage] KeyPage + # @return [NewApiKeyPage] NewApiKeyPage def initialize(version, response, solution) super(version, response) @@ -84,29 +88,29 @@ def initialize(version, response, solution) end ## - # Build an instance of KeyInstance + # Build an instance of NewApiKeyInstance # @param [Hash] payload Payload response from the API - # @return [KeyInstance] KeyInstance + # @return [NewApiKeyInstance] NewApiKeyInstance def get_instance(payload) - KeyInstance.new(@version, payload) + NewApiKeyInstance.new(@version, payload) end ## # Provide a user friendly representation def to_s - '' + '' end end - class KeyInstance < InstanceResource + class NewApiKeyInstance < InstanceResource ## - # Initialize the KeyInstance + # Initialize the NewApiKeyInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio # @param [String] account_sid The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Key + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this NewApiKey # resource. # @param [String] sid The SID of the Call resource to fetch. - # @return [KeyInstance] KeyInstance + # @return [NewApiKeyInstance] NewApiKeyInstance def initialize(version, payload ) super(version) @@ -161,13 +165,13 @@ def policy ## # Provide a user friendly representation def to_s - "" + "" end ## # Provide a detailed, user friendly representation def inspect - "" + "" end end diff --git a/lib/twilio-ruby/rest/insights/v1/call.rb b/lib/twilio-ruby/rest/insights/v1/call.rb index 6e374e32d..58b250785 100644 --- a/lib/twilio-ruby/rest/insights/v1/call.rb +++ b/lib/twilio-ruby/rest/insights/v1/call.rb @@ -66,6 +66,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CallInstance.new( @version, diff --git a/lib/twilio-ruby/rest/insights/v1/call/annotation.rb b/lib/twilio-ruby/rest/insights/v1/call/annotation.rb index f3405a3a3..6b7d72394 100644 --- a/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +++ b/lib/twilio-ruby/rest/insights/v1/call/annotation.rb @@ -64,6 +64,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AnnotationInstance.new( @version, @@ -104,6 +108,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) AnnotationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb b/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb index 49704bf6d..17533b7d5 100644 --- a/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +++ b/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb @@ -70,6 +70,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) CallSummaryInstance.new( @version, diff --git a/lib/twilio-ruby/rest/insights/v1/call/event.rb b/lib/twilio-ruby/rest/insights/v1/call/event.rb index 79ef4705a..a11c50be9 100644 --- a/lib/twilio-ruby/rest/insights/v1/call/event.rb +++ b/lib/twilio-ruby/rest/insights/v1/call/event.rb @@ -104,8 +104,11 @@ def page(edge: :unset, page_token: :unset, page_number: :unset, page_size: :unse 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EventPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/insights/v1/call/metric.rb b/lib/twilio-ruby/rest/insights/v1/call/metric.rb index 34a32254d..df17f262e 100644 --- a/lib/twilio-ruby/rest/insights/v1/call/metric.rb +++ b/lib/twilio-ruby/rest/insights/v1/call/metric.rb @@ -110,8 +110,11 @@ def page(edge: :unset, direction: :unset, page_token: :unset, page_number: :unse 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MetricPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/insights/v1/call_summaries.rb b/lib/twilio-ruby/rest/insights/v1/call_summaries.rb index 1f6c5006d..53e545fa8 100644 --- a/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +++ b/lib/twilio-ruby/rest/insights/v1/call_summaries.rb @@ -288,8 +288,11 @@ def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, fro 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CallSummariesPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/insights/v1/conference.rb b/lib/twilio-ruby/rest/insights/v1/conference.rb index 6c11c85cc..e577a95f7 100644 --- a/lib/twilio-ruby/rest/insights/v1/conference.rb +++ b/lib/twilio-ruby/rest/insights/v1/conference.rb @@ -156,8 +156,11 @@ def page(conference_sid: :unset, friendly_name: :unset, status: :unset, created_ 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ConferencePage.new(@version, response, @solution) end @@ -207,6 +210,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ConferenceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb b/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb index 5d4714447..778dcae15 100644 --- a/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +++ b/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb @@ -116,8 +116,11 @@ def page(participant_sid: :unset, label: :unset, events: :unset, page_token: :un 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ConferenceParticipantPage.new(@version, response, @solution) end @@ -176,6 +179,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) ConferenceParticipantInstance.new( @version, diff --git a/lib/twilio-ruby/rest/insights/v1/room.rb b/lib/twilio-ruby/rest/insights/v1/room.rb index 9f0e7923b..39f89a337 100644 --- a/lib/twilio-ruby/rest/insights/v1/room.rb +++ b/lib/twilio-ruby/rest/insights/v1/room.rb @@ -128,8 +128,11 @@ def page(room_type: :unset, codec: :unset, room_name: :unset, created_after: :un 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RoomPage.new(@version, response, @solution) end @@ -179,6 +182,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RoomInstance.new( @version, diff --git a/lib/twilio-ruby/rest/insights/v1/room/participant.rb b/lib/twilio-ruby/rest/insights/v1/room/participant.rb index bd79e5840..22178fb3b 100644 --- a/lib/twilio-ruby/rest/insights/v1/room/participant.rb +++ b/lib/twilio-ruby/rest/insights/v1/room/participant.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ParticipantPage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ParticipantInstance.new( @version, diff --git a/lib/twilio-ruby/rest/insights/v1/setting.rb b/lib/twilio-ruby/rest/insights/v1/setting.rb index 97b6659e4..89b027ceb 100644 --- a/lib/twilio-ruby/rest/insights/v1/setting.rb +++ b/lib/twilio-ruby/rest/insights/v1/setting.rb @@ -67,6 +67,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) SettingInstance.new( @version, @@ -94,6 +98,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SettingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb b/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb index eede04fec..3a7ded6c6 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CustomOperatorInstance.new( @version, @@ -135,8 +139,11 @@ def page(availability: :unset, language_code: :unset, page_token: :unset, page_n 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CustomOperatorPage.new(@version, response, @solution) end @@ -185,6 +192,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -195,6 +204,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CustomOperatorInstance.new( @version, @@ -222,6 +235,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CustomOperatorInstance.new( @version, diff --git a/lib/twilio-ruby/rest/intelligence/v2/operator.rb b/lib/twilio-ruby/rest/intelligence/v2/operator.rb index 5722702b2..118319bb1 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/operator.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/operator.rb @@ -108,8 +108,11 @@ def page(availability: :unset, language_code: :unset, page_token: :unset, page_n 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) OperatorPage.new(@version, response, @solution) end @@ -158,6 +161,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) OperatorInstance.new( @version, diff --git a/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb b/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb index ac5483c64..6bf03cb3e 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb @@ -63,6 +63,10 @@ def create headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, headers: headers) OperatorAttachmentInstance.new( @version, @@ -79,6 +83,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end diff --git a/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb b/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb index 4ddde23a6..bb55bf615 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) OperatorAttachmentsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb b/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb index 06c4eda30..6d2d9991f 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) OperatorTypePage.new(@version, response, @solution) end @@ -146,6 +149,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) OperatorTypeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb b/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb index bdc5d0a68..1a66e8871 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb @@ -108,8 +108,11 @@ def page(availability: :unset, language_code: :unset, page_token: :unset, page_n 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PrebuiltOperatorPage.new(@version, response, @solution) end @@ -158,6 +161,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PrebuiltOperatorInstance.new( @version, diff --git a/lib/twilio-ruby/rest/intelligence/v2/service.rb b/lib/twilio-ruby/rest/intelligence/v2/service.rb index db64b82f0..8de608fc3 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/service.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/service.rb @@ -68,6 +68,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -141,8 +145,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -191,6 +198,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -201,6 +210,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -246,6 +259,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/intelligence/v2/transcript.rb b/lib/twilio-ruby/rest/intelligence/v2/transcript.rb index e547ed8f1..dd3bab931 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/transcript.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TranscriptInstance.new( @version, @@ -174,8 +178,11 @@ def page(service_sid: :unset, before_start_time: :unset, after_start_time: :unse 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TranscriptPage.new(@version, response, @solution) end @@ -227,6 +234,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -237,6 +246,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TranscriptInstance.new( @version, diff --git a/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb b/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb index fcdfa3845..ef183d4a7 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb @@ -70,6 +70,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) MediaInstance.new( @version, diff --git a/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb b/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb index 245958d81..5f5a72404 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb @@ -104,8 +104,11 @@ def page(redacted: :unset, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) OperatorResultPage.new(@version, response, @solution) end @@ -161,6 +164,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) OperatorResultInstance.new( @version, diff --git a/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb b/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb index fcfb6bd45..6d2384e4e 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb @@ -110,8 +110,11 @@ def page(redacted: :unset, word_timestamps: :unset, page_token: :unset, page_num 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SentencePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb b/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb index c4879a67b..a2c248926 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, @@ -135,8 +139,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CredentialPage.new(@version, response, @solution) end @@ -185,6 +192,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -195,6 +204,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CredentialInstance.new( @version, @@ -232,6 +245,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v1/service.rb b/lib/twilio-ruby/rest/ip_messaging/v1/service.rb index 6bf7d6c44..735e99834 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v1/service.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -117,8 +121,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -170,6 +177,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -180,6 +189,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -361,6 +374,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb b/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb index a17895776..009ce0e44 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb @@ -55,6 +55,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ChannelInstance.new( @version, @@ -136,8 +140,11 @@ def page(type: :unset, page_token: :unset, page_number: :unset, page_size: :unse 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ChannelPage.new(@version, response, @solution) end @@ -190,6 +197,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -200,6 +209,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ChannelInstance.new( @version, @@ -229,6 +242,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb b/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb index cc5a8eaa9..311964bb5 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InviteInstance.new( @version, @@ -132,8 +136,11 @@ def page(identity: :unset, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InvitePage.new(@version, response, @solution) end @@ -184,6 +191,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -194,6 +203,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InviteInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb b/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb index 52dfd24e7..7625fa6ba 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MemberInstance.new( @version, @@ -132,8 +136,11 @@ def page(identity: :unset, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MemberPage.new(@version, response, @solution) end @@ -184,6 +191,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -194,6 +203,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MemberInstance.new( @version, @@ -221,6 +234,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MemberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb b/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb index f51184351..abc701c61 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, @@ -134,8 +138,11 @@ def page(order: :unset, page_token: :unset, page_number: :unset, page_size: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MessagePage.new(@version, response, @solution) end @@ -186,6 +193,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -196,6 +205,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MessageInstance.new( @version, @@ -223,6 +236,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb b/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb index e6e9b1bf6..cc65bff52 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RolePage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RoleInstance.new( @version, @@ -210,6 +223,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb b/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb index 6449d7e14..9c34e7247 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb @@ -55,6 +55,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) UserInstance.new( @version, @@ -129,8 +133,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserPage.new(@version, response, @solution) end @@ -181,6 +188,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -191,6 +200,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserInstance.new( @version, @@ -220,6 +233,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb b/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb index e1b830aee..11bb2003e 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserChannelPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb b/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb index 3a3c08f5e..da37ac58d 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, @@ -135,8 +139,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CredentialPage.new(@version, response, @solution) end @@ -185,6 +192,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -195,6 +204,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CredentialInstance.new( @version, @@ -232,6 +245,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service.rb index 0d2b430ae..19ea98205 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -117,8 +121,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -293,6 +306,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb index 3afab4ba2..87dab868f 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb @@ -112,8 +112,11 @@ def page(binding_type: :unset, identity: :unset, page_token: :unset, page_number 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BindingPage.new(@version, response, @solution) end @@ -163,6 +166,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -173,6 +178,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BindingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb index c07940048..be409654e 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb @@ -66,6 +66,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ChannelInstance.new( @version, @@ -147,8 +151,11 @@ def page(type: :unset, page_token: :unset, page_number: :unset, page_size: :unse 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ChannelPage.new(@version, response, @solution) end @@ -205,6 +212,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -215,6 +224,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ChannelInstance.new( @version, @@ -255,6 +268,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb index 518b17184..f29af4b01 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InviteInstance.new( @version, @@ -132,8 +136,11 @@ def page(identity: :unset, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InvitePage.new(@version, response, @solution) end @@ -184,6 +191,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -194,6 +203,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InviteInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb index 610213494..72cd22cc6 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb @@ -67,6 +67,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MemberInstance.new( @version, @@ -149,8 +153,11 @@ def page(identity: :unset, page_token: :unset, page_number: :unset, page_size: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MemberPage.new(@version, response, @solution) end @@ -204,6 +211,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -214,6 +223,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MemberInstance.new( @version, @@ -255,6 +268,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MemberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb index 6a7f7a632..5448a83fc 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb @@ -67,6 +67,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, @@ -148,8 +152,11 @@ def page(order: :unset, page_token: :unset, page_number: :unset, page_size: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MessagePage.new(@version, response, @solution) end @@ -203,6 +210,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -213,6 +222,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MessageInstance.new( @version, @@ -254,6 +267,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MessageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb index 332a41335..ad938eaba 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb @@ -65,6 +65,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, @@ -140,8 +144,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) WebhookPage.new(@version, response, @solution) end @@ -192,6 +199,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -202,6 +211,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WebhookInstance.new( @version, @@ -241,6 +254,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb index 83fc4f989..d27348f92 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RolePage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RoleInstance.new( @version, @@ -210,6 +223,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RoleInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb index 13a3eb2f8..24060a0ef 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb @@ -57,6 +57,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) UserInstance.new( @version, @@ -131,8 +135,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserPage.new(@version, response, @solution) end @@ -184,6 +191,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -194,6 +203,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserInstance.new( @version, @@ -225,6 +238,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb index a00c1bf51..be357ce2c 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb @@ -106,8 +106,11 @@ def page(binding_type: :unset, page_token: :unset, page_number: :unset, page_siz 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserBindingPage.new(@version, response, @solution) end @@ -158,6 +161,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -168,6 +173,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserBindingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb b/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb index 5a309f191..c9ddfbdef 100644 --- a/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +++ b/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UserChannelPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UserChannelInstance.new( @version, @@ -191,6 +200,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UserChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/lookups/v1/phone_number.rb b/lib/twilio-ruby/rest/lookups/v1/phone_number.rb index 8a7d9cca4..bf37e765d 100644 --- a/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +++ b/lib/twilio-ruby/rest/lookups/v1/phone_number.rb @@ -77,6 +77,10 @@ def fetch( params.merge!(Twilio.prefixed_collapsible_map(add_ons_data, 'AddOns')) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) PhoneNumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/lookups/v2/phone_number.rb b/lib/twilio-ruby/rest/lookups/v2/phone_number.rb index dd3aebdbf..5ce47b7f2 100644 --- a/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +++ b/lib/twilio-ruby/rest/lookups/v2/phone_number.rb @@ -107,6 +107,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) PhoneNumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb b/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb index 1fa1c45b1..ce86935f8 100644 --- a/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +++ b/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AvailableAddOnPage.new(@version, response, @solution) end @@ -147,6 +150,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AvailableAddOnInstance.new( @version, diff --git a/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb b/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb index a10405714..e47fe11d7 100644 --- a/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +++ b/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AvailableAddOnExtensionPage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AvailableAddOnExtensionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb b/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb index 5101424dc..30ce6d930 100644 --- a/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +++ b/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InstalledAddOnInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InstalledAddOnPage.new(@version, response, @solution) end @@ -178,6 +185,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -188,6 +197,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InstalledAddOnInstance.new( @version, @@ -213,6 +226,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) InstalledAddOnInstance.new( @version, diff --git a/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb b/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb index d09c3f309..34f97768e 100644 --- a/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +++ b/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InstalledAddOnExtensionPage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InstalledAddOnExtensionInstance.new( @version, @@ -172,6 +179,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) InstalledAddOnExtensionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb b/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb index 6775aa26b..c0bf952df 100644 --- a/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +++ b/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb @@ -31,12 +31,13 @@ def initialize(payload) end def to_json(options = {}) { - total_submitted: @total_submitted, - billable_items: @billable_items, + "total_submitted": @total_submitted, + "billable_items": @billable_items, }.to_json(options) end end + ## # Initialize the InstalledAddOnUsageList # @param [Version] version Version that contains the resource @@ -57,6 +58,10 @@ def create(marketplace_v1_installed_add_on_installed_add_on_usage: nil headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: marketplace_v1_installed_add_on_installed_add_on_usage.to_json) InstalledAddOnUsageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb b/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb index e4da29ad4..aa1a1791b 100644 --- a/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +++ b/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ModuleDataManagementInstance.new( @version, @@ -102,6 +106,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ModuleDataManagementInstance.new( @version, diff --git a/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb b/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb index 599119fa3..64d60ca76 100644 --- a/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +++ b/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb @@ -27,11 +27,12 @@ def initialize(payload) end def to_json(options = {}) { - referral_account_sid: @referral_account_sid, + "referral_account_sid": @referral_account_sid, }.to_json(options) end end + ## # Initialize the ReferralConversionList # @param [Version] version Version that contains the resource @@ -52,6 +53,10 @@ def create(create_referral_conversion_request: nil headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: create_referral_conversion_request.to_json) ReferralConversionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb b/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb index 7e3420b27..1367ffcf8 100644 --- a/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +++ b/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb @@ -56,6 +56,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BrandRegistrationInstance.new( @version, @@ -129,8 +133,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BrandRegistrationPage.new(@version, response, @solution) end @@ -181,6 +188,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BrandRegistrationInstance.new( @version, @@ -196,6 +207,10 @@ def update headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, headers: headers) BrandRegistrationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb b/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb index 01b93fcc3..0d6f015e7 100644 --- a/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +++ b/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb @@ -39,6 +39,10 @@ def create headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, headers: headers) BrandRegistrationOtpInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb b/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb index 798fd56c8..7ac798ee0 100644 --- a/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +++ b/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BrandVettingInstance.new( @version, @@ -129,8 +133,11 @@ def page(vetting_provider: :unset, page_token: :unset, page_number: :unset, page 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BrandVettingPage.new(@version, response, @solution) end @@ -180,6 +187,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BrandVettingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/deactivations.rb b/lib/twilio-ruby/rest/messaging/v1/deactivations.rb index 2134b34ee..e2a13b3be 100644 --- a/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +++ b/lib/twilio-ruby/rest/messaging/v1/deactivations.rb @@ -67,6 +67,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) DeactivationsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb b/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb index 8717f14fa..a17214308 100644 --- a/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +++ b/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb @@ -62,6 +62,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -72,6 +74,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DomainCertsInstance.new( @version, @@ -94,6 +100,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) DomainCertsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/domain_config.rb b/lib/twilio-ruby/rest/messaging/v1/domain_config.rb index 77b59d040..aa18ddd22 100644 --- a/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +++ b/lib/twilio-ruby/rest/messaging/v1/domain_config.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DomainConfigInstance.new( @version, @@ -93,6 +97,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) DomainConfigInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb b/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb index 8cd83068c..27b732b18 100644 --- a/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +++ b/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DomainConfigMessagingServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb b/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb index 34e6023b9..6f9e75c09 100644 --- a/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +++ b/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ExternalCampaignInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb b/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb index c73c64816..bfb3d25ab 100644 --- a/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +++ b/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb @@ -63,6 +63,10 @@ def create headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, headers: headers) LinkshorteningMessagingServiceInstance.new( @version, @@ -79,6 +83,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end diff --git a/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb b/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb index 1ac30d8e2..be3f859f7 100644 --- a/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +++ b/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) LinkshorteningMessagingServiceDomainAssociationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb b/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb index dee040df8..b32d9a004 100644 --- a/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +++ b/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb @@ -62,6 +62,10 @@ def update headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, headers: headers) RequestManagedCertInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/service.rb b/lib/twilio-ruby/rest/messaging/v1/service.rb index e1f1cba3c..2cc67addc 100644 --- a/lib/twilio-ruby/rest/messaging/v1/service.rb +++ b/lib/twilio-ruby/rest/messaging/v1/service.rb @@ -89,6 +89,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -162,8 +166,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -218,6 +225,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -228,6 +237,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -295,6 +308,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb b/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb index ad5ae7226..4dd867386 100644 --- a/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +++ b/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AlphaSenderInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AlphaSenderPage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AlphaSenderInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb b/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb index 027ba44be..7ba3fffcc 100644 --- a/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +++ b/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ChannelSenderInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ChannelSenderPage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ChannelSenderInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb b/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb index 29773f7c4..05af628d0 100644 --- a/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +++ b/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) PhoneNumberInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PhoneNumberPage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PhoneNumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb b/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb index 1b47aa86c..f2236ae7e 100644 --- a/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +++ b/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ShortCodeInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ShortCodePage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ShortCodeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb b/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb index c65a49242..ebbc15609 100644 --- a/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +++ b/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb @@ -91,6 +91,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) UsAppToPersonInstance.new( @version, @@ -165,8 +169,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UsAppToPersonPage.new(@version, response, @solution) end @@ -216,6 +223,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -226,6 +235,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UsAppToPersonInstance.new( @version, @@ -267,6 +280,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) UsAppToPersonInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb b/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb index 633bf98b5..cbd03c47e 100644 --- a/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +++ b/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb @@ -45,6 +45,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) UsAppToPersonUsecaseInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb b/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb index 7b05aa5a4..56ab74ce7 100644 --- a/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +++ b/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb @@ -110,6 +110,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TollfreeVerificationInstance.new( @version, @@ -207,8 +211,11 @@ def page(tollfree_phone_number_sid: :unset, status: :unset, external_reference_i 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TollfreeVerificationPage.new(@version, response, @solution) end @@ -257,6 +264,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -267,6 +276,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TollfreeVerificationInstance.new( @version, @@ -349,6 +362,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) TollfreeVerificationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/messaging/v1/usecase.rb b/lib/twilio-ruby/rest/messaging/v1/usecase.rb index 897503cff..4cb15f01d 100644 --- a/lib/twilio-ruby/rest/messaging/v1/usecase.rb +++ b/lib/twilio-ruby/rest/messaging/v1/usecase.rb @@ -37,6 +37,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) UsecaseInstance.new( @version, diff --git a/lib/twilio-ruby/rest/microvisor/v1/account_config.rb b/lib/twilio-ruby/rest/microvisor/v1/account_config.rb index c34f836ec..97c1cec7d 100644 --- a/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +++ b/lib/twilio-ruby/rest/microvisor/v1/account_config.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AccountConfigInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AccountConfigPage.new(@version, response, @solution) end @@ -170,6 +177,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -180,6 +189,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AccountConfigInstance.new( @version, @@ -202,6 +215,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) AccountConfigInstance.new( @version, diff --git a/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb b/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb index 8264a47a0..90472c4ec 100644 --- a/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +++ b/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AccountSecretInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AccountSecretPage.new(@version, response, @solution) end @@ -170,6 +177,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -180,6 +189,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AccountSecretInstance.new( @version, @@ -202,6 +215,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) AccountSecretInstance.new( @version, diff --git a/lib/twilio-ruby/rest/microvisor/v1/app.rb b/lib/twilio-ruby/rest/microvisor/v1/app.rb index 5e2e29304..6c212493b 100644 --- a/lib/twilio-ruby/rest/microvisor/v1/app.rb +++ b/lib/twilio-ruby/rest/microvisor/v1/app.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AppPage.new(@version, response, @solution) end @@ -147,6 +150,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -157,6 +162,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AppInstance.new( @version, diff --git a/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb b/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb index ec3652081..81a6418d9 100644 --- a/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +++ b/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb @@ -64,6 +64,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AppManifestInstance.new( @version, diff --git a/lib/twilio-ruby/rest/microvisor/v1/device.rb b/lib/twilio-ruby/rest/microvisor/v1/device.rb index 307c65fa6..e616ad19b 100644 --- a/lib/twilio-ruby/rest/microvisor/v1/device.rb +++ b/lib/twilio-ruby/rest/microvisor/v1/device.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DevicePage.new(@version, response, @solution) end @@ -148,6 +151,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DeviceInstance.new( @version, @@ -179,6 +186,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) DeviceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb b/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb index e92556827..4241620a9 100644 --- a/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +++ b/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) DeviceConfigInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DeviceConfigPage.new(@version, response, @solution) end @@ -174,6 +181,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -184,6 +193,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DeviceConfigInstance.new( @version, @@ -207,6 +220,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) DeviceConfigInstance.new( @version, diff --git a/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb b/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb index 972f715f3..1efbf0fec 100644 --- a/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +++ b/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) DeviceSecretInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DeviceSecretPage.new(@version, response, @solution) end @@ -174,6 +181,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -184,6 +193,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DeviceSecretInstance.new( @version, @@ -207,6 +220,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) DeviceSecretInstance.new( @version, diff --git a/lib/twilio-ruby/rest/monitor/v1/alert.rb b/lib/twilio-ruby/rest/monitor/v1/alert.rb index 0eebf44c9..13a2440c6 100644 --- a/lib/twilio-ruby/rest/monitor/v1/alert.rb +++ b/lib/twilio-ruby/rest/monitor/v1/alert.rb @@ -114,8 +114,11 @@ def page(log_level: :unset, start_date: :unset, end_date: :unset, page_token: :u 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AlertPage.new(@version, response, @solution) end @@ -164,6 +167,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AlertInstance.new( @version, diff --git a/lib/twilio-ruby/rest/monitor/v1/event.rb b/lib/twilio-ruby/rest/monitor/v1/event.rb index 777b1b398..2b794cb46 100644 --- a/lib/twilio-ruby/rest/monitor/v1/event.rb +++ b/lib/twilio-ruby/rest/monitor/v1/event.rb @@ -132,8 +132,11 @@ def page(actor_sid: :unset, event_type: :unset, resource_sid: :unset, source_ip_ 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EventPage.new(@version, response, @solution) end @@ -182,6 +185,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EventInstance.new( @version, diff --git a/lib/twilio-ruby/rest/notify/v1/credential.rb b/lib/twilio-ruby/rest/notify/v1/credential.rb index 0d74de71f..12cdfb85b 100644 --- a/lib/twilio-ruby/rest/notify/v1/credential.rb +++ b/lib/twilio-ruby/rest/notify/v1/credential.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, @@ -135,8 +139,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CredentialPage.new(@version, response, @solution) end @@ -185,6 +192,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -195,6 +204,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CredentialInstance.new( @version, @@ -232,6 +245,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CredentialInstance.new( @version, diff --git a/lib/twilio-ruby/rest/notify/v1/service.rb b/lib/twilio-ruby/rest/notify/v1/service.rb index 156fa3bc1..d017720ef 100644 --- a/lib/twilio-ruby/rest/notify/v1/service.rb +++ b/lib/twilio-ruby/rest/notify/v1/service.rb @@ -83,6 +83,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -162,8 +166,11 @@ def page(friendly_name: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -214,6 +221,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -224,6 +233,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -285,6 +298,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/notify/v1/service/binding.rb b/lib/twilio-ruby/rest/notify/v1/service/binding.rb index 8de9634dd..7d8ac055b 100644 --- a/lib/twilio-ruby/rest/notify/v1/service/binding.rb +++ b/lib/twilio-ruby/rest/notify/v1/service/binding.rb @@ -64,6 +64,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BindingInstance.new( @version, @@ -164,8 +168,11 @@ def page(start_date: :unset, end_date: :unset, identity: :unset, tag: :unset, pa 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BindingPage.new(@version, response, @solution) end @@ -215,6 +222,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -225,6 +234,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BindingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/notify/v1/service/notification.rb b/lib/twilio-ruby/rest/notify/v1/service/notification.rb index 17a545975..00d7bfa2d 100644 --- a/lib/twilio-ruby/rest/notify/v1/service/notification.rb +++ b/lib/twilio-ruby/rest/notify/v1/service/notification.rb @@ -97,6 +97,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) NotificationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v1.rb b/lib/twilio-ruby/rest/numbers/v1.rb index b2bc9d3fe..feb87fe09 100644 --- a/lib/twilio-ruby/rest/numbers/v1.rb +++ b/lib/twilio-ruby/rest/numbers/v1.rb @@ -28,8 +28,8 @@ def initialize(domain) @porting_portabilities = nil @porting_webhook_configurations = nil @porting_webhook_configurations_delete = nil - @porting_webhook_configuration_fetch = nil @signing_request_configurations = nil + @webhook = nil end ## @@ -135,16 +135,16 @@ def porting_webhook_configurations_delete(webhook_type=:unset) end end ## - # @return [Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList] - def porting_webhook_configuration_fetch - @porting_webhook_configuration_fetch ||= PortingWebhookConfigurationFetchList.new self - end - ## # @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList] def signing_request_configurations @signing_request_configurations ||= SigningRequestConfigurationList.new self end ## + # @return [Twilio::REST::Numbers::V1::WebhookList] + def webhook + @webhook ||= WebhookList.new self + end + ## # Provide a user friendly representation def to_s ''; diff --git a/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb b/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb index 6d7f3c754..c0a78014a 100644 --- a/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +++ b/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb @@ -39,6 +39,10 @@ def create(body: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: body.to_json) BulkEligibilityInstance.new( @version, @@ -78,6 +82,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BulkEligibilityInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v1/eligibility.rb b/lib/twilio-ruby/rest/numbers/v1/eligibility.rb index d98757cb4..184574257 100644 --- a/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +++ b/lib/twilio-ruby/rest/numbers/v1/eligibility.rb @@ -39,6 +39,10 @@ def create(body: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: body.to_json) EligibilityInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb b/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb index cb6256cb8..776832ae8 100644 --- a/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +++ b/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb @@ -39,6 +39,10 @@ def create(body: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: body.to_json) PortingPortInInstance.new( @version, @@ -78,6 +82,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -88,6 +94,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PortingPortInInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb b/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb index aea725e54..b36b20d56 100644 --- a/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +++ b/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb @@ -63,6 +63,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -73,6 +75,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PortingPortInPhoneNumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb b/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb index 41556d859..6255b8163 100644 --- a/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +++ b/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb @@ -71,6 +71,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) PortingPortabilityInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb b/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb index 49a2aaea5..94df5d1bb 100644 --- a/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +++ b/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb @@ -39,6 +39,10 @@ def create(body: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: body.to_json) PortingWebhookConfigurationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb b/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb index 2bcc94c11..30fd27836 100644 --- a/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +++ b/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb @@ -62,6 +62,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end diff --git a/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb b/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb index 139326889..ee33d7dd7 100644 --- a/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +++ b/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb @@ -39,6 +39,10 @@ def create(body: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: body.to_json) SigningRequestConfigurationInstance.new( @version, @@ -124,8 +128,11 @@ def page(country: :unset, product: :unset, page_token: :unset, page_number: :uns 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SigningRequestConfigurationPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb b/lib/twilio-ruby/rest/numbers/v1/webhook.rb similarity index 77% rename from lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb rename to lib/twilio-ruby/rest/numbers/v1/webhook.rb index f7828065b..16aa57d57 100644 --- a/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb +++ b/lib/twilio-ruby/rest/numbers/v1/webhook.rb @@ -17,12 +17,12 @@ module Twilio module REST class Numbers < NumbersBase class V1 < Version - class PortingWebhookConfigurationFetchList < ListResource + class WebhookList < ListResource ## - # Initialize the PortingWebhookConfigurationFetchList + # Initialize the WebhookList # @param [Version] version Version that contains the resource - # @return [PortingWebhookConfigurationFetchList] PortingWebhookConfigurationFetchList + # @return [WebhookList] WebhookList def initialize(version) super(version) # Path Solution @@ -31,14 +31,18 @@ def initialize(version) end ## - # Fetch the PortingWebhookConfigurationFetchInstance - # @return [PortingWebhookConfigurationFetchInstance] Fetched PortingWebhookConfigurationFetchInstance + # Fetch the WebhookInstance + # @return [WebhookInstance] Fetched WebhookInstance def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) - PortingWebhookConfigurationFetchInstance.new( + WebhookInstance.new( @version, payload, ) @@ -49,17 +53,17 @@ def fetch # Provide a user friendly representation def to_s - '#' + '#' end end - class PortingWebhookConfigurationFetchPage < Page + class WebhookPage < Page ## - # Initialize the PortingWebhookConfigurationFetchPage + # Initialize the WebhookPage # @param [Version] version Version that contains the resource # @param [Response] response Response from the API # @param [Hash] solution Path solution for the resource - # @return [PortingWebhookConfigurationFetchPage] PortingWebhookConfigurationFetchPage + # @return [WebhookPage] WebhookPage def initialize(version, response, solution) super(version, response) @@ -68,29 +72,29 @@ def initialize(version, response, solution) end ## - # Build an instance of PortingWebhookConfigurationFetchInstance + # Build an instance of WebhookInstance # @param [Hash] payload Payload response from the API - # @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance + # @return [WebhookInstance] WebhookInstance def get_instance(payload) - PortingWebhookConfigurationFetchInstance.new(@version, payload) + WebhookInstance.new(@version, payload) end ## # Provide a user friendly representation def to_s - '' + '' end end - class PortingWebhookConfigurationFetchInstance < InstanceResource + class WebhookInstance < InstanceResource ## - # Initialize the PortingWebhookConfigurationFetchInstance + # Initialize the WebhookInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio # @param [String] account_sid The SID of the - # {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingWebhookConfigurationFetch + # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Webhook # resource. # @param [String] sid The SID of the Call resource to fetch. - # @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance + # @return [WebhookInstance] WebhookInstance def initialize(version, payload ) super(version) @@ -145,13 +149,13 @@ def port_out_target_date_created ## # Provide a user friendly representation def to_s - "" + "" end ## # Provide a detailed, user friendly representation def inspect - "" + "" end end diff --git a/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb b/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb index 141ab23b1..0f1c078cb 100644 --- a/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +++ b/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb @@ -59,6 +59,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AuthorizationDocumentInstance.new( @version, @@ -144,8 +148,11 @@ def page(email: :unset, status: :unset, page_token: :unset, page_number: :unset, 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AuthorizationDocumentPage.new(@version, response, @solution) end @@ -195,6 +202,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -205,6 +214,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AuthorizationDocumentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb b/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb index acfeae0b8..ad2cbbb4d 100644 --- a/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +++ b/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb @@ -122,8 +122,11 @@ def page(status: :unset, phone_number: :unset, incoming_phone_number_sid: :unset 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DependentHostedNumberOrderPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb b/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb index 17cdfae61..2d08b4acc 100644 --- a/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +++ b/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb @@ -39,6 +39,10 @@ def create(body: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: body.to_json) BulkHostedNumberOrderInstance.new( @version, @@ -84,6 +88,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) BulkHostedNumberOrderInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb b/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb index d70a041b3..8ebb378f9 100644 --- a/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +++ b/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb @@ -75,6 +75,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BundleCloneInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb b/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb index 1949ba785..5604f70d8 100644 --- a/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +++ b/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb @@ -89,6 +89,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) HostedNumberOrderInstance.new( @version, @@ -192,8 +196,11 @@ def page(status: :unset, sms_capability: :unset, phone_number: :unset, incoming_ 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) HostedNumberOrderPage.new(@version, response, @solution) end @@ -242,6 +249,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -252,6 +261,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) HostedNumberOrderInstance.new( @version, @@ -280,6 +293,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) HostedNumberOrderInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb index dd2364ff4..35bd10128 100644 --- a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +++ b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb @@ -67,6 +67,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BundleInstance.new( @version, @@ -206,8 +210,11 @@ def page(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_coun 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BundlePage.new(@version, response, @solution) end @@ -260,6 +267,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -270,6 +279,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BundleInstance.new( @version, @@ -301,6 +314,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) BundleInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb index c42538c46..d29fb6e9a 100644 --- a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +++ b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BundleCopyInstance.new( @version, @@ -121,8 +125,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BundleCopyPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb index 75c4f4385..fd6ab00b7 100644 --- a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +++ b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb @@ -40,6 +40,10 @@ def create headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, headers: headers) EvaluationInstance.new( @version, @@ -114,8 +118,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EvaluationPage.new(@version, response, @solution) end @@ -165,6 +172,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EvaluationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb index fc4953bf9..2f7ae5c68 100644 --- a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +++ b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ItemAssignmentInstance.new( @version, @@ -121,8 +125,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ItemAssignmentPage.new(@version, response, @solution) end @@ -172,6 +179,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -182,6 +191,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ItemAssignmentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb index 637c4f6a2..e93e3aabc 100644 --- a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +++ b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ReplaceItemsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb index dcd4b52cc..3141be118 100644 --- a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +++ b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) EndUserInstance.new( @version, @@ -125,8 +129,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EndUserPage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EndUserInstance.new( @version, @@ -210,6 +223,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) EndUserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb index 77ba6b2a9..5ce75e3a0 100644 --- a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +++ b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EndUserTypePage.new(@version, response, @solution) end @@ -148,6 +151,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EndUserTypeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb index db6492713..f5fbea14f 100644 --- a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +++ b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb @@ -122,8 +122,11 @@ def page(end_user_type: :unset, iso_country: :unset, number_type: :unset, includ 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RegulationPage.new(@version, response, @solution) end @@ -178,6 +181,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) RegulationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb index 426e7310f..6ff569b0e 100644 --- a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +++ b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SupportingDocumentInstance.new( @version, @@ -125,8 +129,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SupportingDocumentPage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SupportingDocumentInstance.new( @version, @@ -210,6 +223,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SupportingDocumentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb index f0d448ca0..fcbe50679 100644 --- a/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +++ b/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SupportingDocumentTypePage.new(@version, response, @solution) end @@ -148,6 +151,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SupportingDocumentTypeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/oauth/v1/authorize.rb b/lib/twilio-ruby/rest/oauth/v1/authorize.rb index ade5c9aec..72650acc2 100644 --- a/lib/twilio-ruby/rest/oauth/v1/authorize.rb +++ b/lib/twilio-ruby/rest/oauth/v1/authorize.rb @@ -55,6 +55,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) AuthorizeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/oauth/v1/token.rb b/lib/twilio-ruby/rest/oauth/v1/token.rb index 58d468fd3..87a507808 100644 --- a/lib/twilio-ruby/rest/oauth/v1/token.rb +++ b/lib/twilio-ruby/rest/oauth/v1/token.rb @@ -65,6 +65,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TokenInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb b/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb index 95d07479a..d74e57f6a 100644 --- a/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +++ b/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb @@ -59,6 +59,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AuthorizationDocumentInstance.new( @version, @@ -144,8 +148,11 @@ def page(email: :unset, status: :unset, page_token: :unset, page_number: :unset, 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AuthorizationDocumentPage.new(@version, response, @solution) end @@ -195,6 +202,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AuthorizationDocumentInstance.new( @version, @@ -235,6 +246,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) AuthorizationDocumentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb b/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb index e59ac4362..1513db87d 100644 --- a/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +++ b/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb @@ -128,8 +128,11 @@ def page(status: :unset, phone_number: :unset, incoming_phone_number_sid: :unset 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DependentHostedNumberOrderPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb b/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb index 2fe389b78..886341983 100644 --- a/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +++ b/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb @@ -92,6 +92,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) HostedNumberOrderInstance.new( @version, @@ -195,8 +199,11 @@ def page(status: :unset, phone_number: :unset, incoming_phone_number_sid: :unset 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) HostedNumberOrderPage.new(@version, response, @solution) end @@ -245,6 +252,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -255,6 +264,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) HostedNumberOrderInstance.new( @version, @@ -304,6 +317,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) HostedNumberOrderInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb b/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb index b763fcb35..246d97cbc 100644 --- a/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +++ b/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AvailableAddOnPage.new(@version, response, @solution) end @@ -147,6 +150,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AvailableAddOnInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb b/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb index 7f9ba1515..e0526f470 100644 --- a/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +++ b/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AvailableAddOnExtensionPage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AvailableAddOnExtensionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb b/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb index 014902d60..8442d0bd0 100644 --- a/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +++ b/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) InstalledAddOnInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InstalledAddOnPage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InstalledAddOnInstance.new( @version, @@ -212,6 +225,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) InstalledAddOnInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb b/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb index 433cce9aa..cad1a974a 100644 --- a/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +++ b/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InstalledAddOnExtensionPage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InstalledAddOnExtensionInstance.new( @version, @@ -172,6 +179,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) InstalledAddOnExtensionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/sync/service.rb b/lib/twilio-ruby/rest/preview/sync/service.rb index 601ed1bae..9144c4e4b 100644 --- a/lib/twilio-ruby/rest/preview/sync/service.rb +++ b/lib/twilio-ruby/rest/preview/sync/service.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -179,6 +186,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -189,6 +198,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -220,6 +233,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/sync/service/document.rb b/lib/twilio-ruby/rest/preview/sync/service/document.rb index 38b080e73..7da8b3156 100644 --- a/lib/twilio-ruby/rest/preview/sync/service/document.rb +++ b/lib/twilio-ruby/rest/preview/sync/service/document.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) DocumentInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DocumentPage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DocumentInstance.new( @version, @@ -210,6 +223,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) DocumentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb b/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb index 870297d1a..a5f5b7d84 100644 --- a/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +++ b/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DocumentPermissionPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DocumentPermissionInstance.new( @version, @@ -191,6 +200,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) DocumentPermissionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb b/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb index 49c18ba64..9b434742f 100644 --- a/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +++ b/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SyncListInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncListPage.new(@version, response, @solution) end @@ -173,6 +180,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -183,6 +192,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncListInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb b/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb index aa23eadff..d8aa94930 100644 --- a/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +++ b/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SyncListItemInstance.new( @version, @@ -140,8 +144,11 @@ def page(order: :unset, from: :unset, bounds: :unset, page_token: :unset, page_n 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncListItemPage.new(@version, response, @solution) end @@ -195,6 +202,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -205,6 +214,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncListItemInstance.new( @version, @@ -231,6 +244,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncListItemInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb b/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb index 5a79557ef..e248802a5 100644 --- a/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +++ b/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncListPermissionPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncListPermissionInstance.new( @version, @@ -191,6 +200,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncListPermissionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb b/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb index ed51084ce..b04d8a65a 100644 --- a/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +++ b/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SyncMapInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncMapPage.new(@version, response, @solution) end @@ -173,6 +180,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -183,6 +192,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncMapInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb b/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb index 84ed3eae5..80ba55415 100644 --- a/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +++ b/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SyncMapItemInstance.new( @version, @@ -143,8 +147,11 @@ def page(order: :unset, from: :unset, bounds: :unset, page_token: :unset, page_n 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncMapItemPage.new(@version, response, @solution) end @@ -198,6 +205,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -208,6 +217,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncMapItemInstance.new( @version, @@ -234,6 +247,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncMapItemInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb b/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb index 259360acd..cf896b610 100644 --- a/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +++ b/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncMapPermissionPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncMapPermissionInstance.new( @version, @@ -191,6 +200,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncMapPermissionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/wireless/command.rb b/lib/twilio-ruby/rest/preview/wireless/command.rb index 55b0908ba..31f6c36d9 100644 --- a/lib/twilio-ruby/rest/preview/wireless/command.rb +++ b/lib/twilio-ruby/rest/preview/wireless/command.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CommandInstance.new( @version, @@ -159,8 +163,11 @@ def page(device: :unset, sim: :unset, status: :unset, direction: :unset, page_to 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CommandPage.new(@version, response, @solution) end @@ -209,6 +216,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CommandInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb b/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb index 075a4e972..87c49cc63 100644 --- a/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +++ b/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb @@ -71,6 +71,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RatePlanInstance.new( @version, @@ -144,8 +148,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RatePlanPage.new(@version, response, @solution) end @@ -194,6 +201,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -204,6 +213,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RatePlanInstance.new( @version, @@ -229,6 +242,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RatePlanInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/wireless/sim.rb b/lib/twilio-ruby/rest/preview/wireless/sim.rb index 94563c3f9..6ea65cf36 100644 --- a/lib/twilio-ruby/rest/preview/wireless/sim.rb +++ b/lib/twilio-ruby/rest/preview/wireless/sim.rb @@ -126,8 +126,11 @@ def page(status: :unset, iccid: :unset, rate_plan: :unset, e_id: :unset, sim_reg 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SimPage.new(@version, response, @solution) end @@ -177,6 +180,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SimInstance.new( @version, @@ -244,6 +251,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SimInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb b/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb index 9533c9cf7..3628f6a90 100644 --- a/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +++ b/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb @@ -73,6 +73,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) UsageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb b/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb index 0bc768d0d..e7e7b11bd 100644 --- a/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +++ b/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb @@ -55,6 +55,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) AuthorizeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview_iam/v1/token.rb b/lib/twilio-ruby/rest/preview_iam/v1/token.rb index 443b56e80..703cddd93 100644 --- a/lib/twilio-ruby/rest/preview_iam/v1/token.rb +++ b/lib/twilio-ruby/rest/preview_iam/v1/token.rb @@ -65,6 +65,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TokenInstance.new( @version, diff --git a/lib/twilio-ruby/rest/preview_iam_base.rb b/lib/twilio-ruby/rest/preview_iam_base.rb index 13ed9a669..749a666ca 100644 --- a/lib/twilio-ruby/rest/preview_iam_base.rb +++ b/lib/twilio-ruby/rest/preview_iam_base.rb @@ -1,20 +1,18 @@ -# frozen_string_literal: true - ## -# This code was generated by -# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ -# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ -# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ -# -# NOTE: This class is auto generated by OpenAPI Generator. -# https://openapi-generator.tech -# Do not edit the class manually. + # This code was generated by + # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + # + # NOTE: This class is auto generated by OpenAPI Generator. + # https://openapi-generator.tech + # Do not edit the class manually. # frozen_string_literal: true module Twilio module REST class PreviewIamBase < Domain ## - # Initialize preview domain + # Initialize previewIam domain # # @param twilio - The twilio client # @@ -23,18 +21,17 @@ def initialize(twilio) @base_url = "https://preview-iam.twilio.com" @host = "preview-iam.twilio.com" @port = 443 - @organizations = nil @v1 = nil end def v1 - @v1 ||= PreviewIam::V1.new(self) + @v1 ||= PreviewIam::V1.new self end ## # Provide a user friendly representation def to_s - ''; + ''; end end end diff --git a/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb b/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb index 58e5c9cdd..6e8c62ca1 100644 --- a/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +++ b/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CountryPage.new(@version, response, @solution) end @@ -148,6 +151,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CountryInstance.new( @version, diff --git a/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb b/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb index 14c5d02f5..91b3f8510 100644 --- a/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +++ b/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CountryPage.new(@version, response, @solution) end @@ -148,6 +151,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CountryInstance.new( @version, diff --git a/lib/twilio-ruby/rest/pricing/v1/voice/country.rb b/lib/twilio-ruby/rest/pricing/v1/voice/country.rb index 791064db2..93a53f80d 100644 --- a/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +++ b/lib/twilio-ruby/rest/pricing/v1/voice/country.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CountryPage.new(@version, response, @solution) end @@ -148,6 +151,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CountryInstance.new( @version, diff --git a/lib/twilio-ruby/rest/pricing/v1/voice/number.rb b/lib/twilio-ruby/rest/pricing/v1/voice/number.rb index 9a6991984..e73b3bd21 100644 --- a/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +++ b/lib/twilio-ruby/rest/pricing/v1/voice/number.rb @@ -64,6 +64,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) NumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/pricing/v2/country.rb b/lib/twilio-ruby/rest/pricing/v2/country.rb index b26ab087a..8970589e6 100644 --- a/lib/twilio-ruby/rest/pricing/v2/country.rb +++ b/lib/twilio-ruby/rest/pricing/v2/country.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CountryPage.new(@version, response, @solution) end @@ -146,6 +149,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CountryInstance.new( @version, diff --git a/lib/twilio-ruby/rest/pricing/v2/number.rb b/lib/twilio-ruby/rest/pricing/v2/number.rb index a3d42d327..2583c5a72 100644 --- a/lib/twilio-ruby/rest/pricing/v2/number.rb +++ b/lib/twilio-ruby/rest/pricing/v2/number.rb @@ -68,6 +68,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) NumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/pricing/v2/voice/country.rb b/lib/twilio-ruby/rest/pricing/v2/voice/country.rb index dd62be9ec..fa541d200 100644 --- a/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +++ b/lib/twilio-ruby/rest/pricing/v2/voice/country.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CountryPage.new(@version, response, @solution) end @@ -148,6 +151,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CountryInstance.new( @version, diff --git a/lib/twilio-ruby/rest/pricing/v2/voice/number.rb b/lib/twilio-ruby/rest/pricing/v2/voice/number.rb index 03e7cf2ef..8dd48ddcb 100644 --- a/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +++ b/lib/twilio-ruby/rest/pricing/v2/voice/number.rb @@ -70,6 +70,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) NumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/proxy/v1/service.rb b/lib/twilio-ruby/rest/proxy/v1/service.rb index 184aa2e42..34bb2f39f 100644 --- a/lib/twilio-ruby/rest/proxy/v1/service.rb +++ b/lib/twilio-ruby/rest/proxy/v1/service.rb @@ -65,6 +65,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -138,8 +142,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -191,6 +198,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -201,6 +210,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -244,6 +257,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb b/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb index fb9006317..9c46b978e 100644 --- a/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +++ b/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) PhoneNumberInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PhoneNumberPage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PhoneNumberInstance.new( @version, @@ -210,6 +223,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) PhoneNumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/proxy/v1/service/session.rb b/lib/twilio-ruby/rest/proxy/v1/service/session.rb index 2c71ef651..575f7c911 100644 --- a/lib/twilio-ruby/rest/proxy/v1/service/session.rb +++ b/lib/twilio-ruby/rest/proxy/v1/service/session.rb @@ -61,6 +61,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SessionInstance.new( @version, @@ -135,8 +139,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SessionPage.new(@version, response, @solution) end @@ -188,6 +195,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -198,6 +207,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SessionInstance.new( @version, @@ -227,6 +240,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SessionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb b/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb index a5c682f46..b032028b6 100644 --- a/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +++ b/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) InteractionPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) InteractionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb b/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb index bd2ac9671..5ca8ecfa1 100644 --- a/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +++ b/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb @@ -56,6 +56,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ParticipantInstance.new( @version, @@ -131,8 +135,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ParticipantPage.new(@version, response, @solution) end @@ -184,6 +191,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -194,6 +203,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ParticipantInstance.new( @version, diff --git a/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb b/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb index a53b978e1..7d560a3ab 100644 --- a/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +++ b/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb @@ -51,6 +51,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MessageInteractionInstance.new( @version, @@ -127,8 +131,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MessageInteractionPage.new(@version, response, @solution) end @@ -180,6 +187,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MessageInteractionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb b/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb index 1cbb83820..3e3938095 100644 --- a/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +++ b/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ShortCodeInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ShortCodePage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ShortCodeInstance.new( @version, @@ -204,6 +217,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ShortCodeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/routes/v2/phone_number.rb b/lib/twilio-ruby/rest/routes/v2/phone_number.rb index 79083a928..6e34e5ffb 100644 --- a/lib/twilio-ruby/rest/routes/v2/phone_number.rb +++ b/lib/twilio-ruby/rest/routes/v2/phone_number.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PhoneNumberInstance.new( @version, @@ -87,6 +91,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) PhoneNumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/routes/v2/sip_domain.rb b/lib/twilio-ruby/rest/routes/v2/sip_domain.rb index f4984774d..1c4ad8ce4 100644 --- a/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +++ b/lib/twilio-ruby/rest/routes/v2/sip_domain.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SipDomainInstance.new( @version, @@ -87,6 +91,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SipDomainInstance.new( @version, diff --git a/lib/twilio-ruby/rest/routes/v2/trunk.rb b/lib/twilio-ruby/rest/routes/v2/trunk.rb index 6f66e80b6..1b0b189df 100644 --- a/lib/twilio-ruby/rest/routes/v2/trunk.rb +++ b/lib/twilio-ruby/rest/routes/v2/trunk.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TrunkInstance.new( @version, @@ -87,6 +91,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) TrunkInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service.rb b/lib/twilio-ruby/rest/serverless/v1/service.rb index 45b5b9dc6..5c29b7ef6 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -180,6 +187,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -190,6 +199,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -218,6 +231,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/asset.rb b/lib/twilio-ruby/rest/serverless/v1/service/asset.rb index 1c1a9c67c..7cbe7609b 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/asset.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AssetInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AssetPage.new(@version, response, @solution) end @@ -172,6 +179,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -182,6 +191,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AssetInstance.new( @version, @@ -205,6 +218,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) AssetInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb b/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb index f17e1891e..433c0ecf7 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) AssetVersionPage.new(@version, response, @solution) end @@ -151,6 +154,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AssetVersionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/build.rb b/lib/twilio-ruby/rest/serverless/v1/service/build.rb index d7993a30e..a74623187 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/build.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/build.rb @@ -55,6 +55,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BuildInstance.new( @version, @@ -129,8 +133,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BuildPage.new(@version, response, @solution) end @@ -181,6 +188,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -191,6 +200,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BuildInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb b/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb index 99d4f6f7e..f9b485ea3 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb @@ -66,6 +66,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BuildStatusInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/environment.rb b/lib/twilio-ruby/rest/serverless/v1/service/environment.rb index 56460573c..466283875 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/environment.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) EnvironmentInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EnvironmentPage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EnvironmentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb b/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb index fe4b52abb..b38382e38 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) DeploymentInstance.new( @version, @@ -125,8 +129,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DeploymentPage.new(@version, response, @solution) end @@ -177,6 +184,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DeploymentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb b/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb index 86e94f460..8791c0ead 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb @@ -117,8 +117,11 @@ def page(function_sid: :unset, start_date: :unset, end_date: :unset, page_token: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) LogPage.new(@version, response, @solution) end @@ -169,6 +172,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) LogInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb b/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb index 7307d4fb5..97665a1c6 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) VariableInstance.new( @version, @@ -125,8 +129,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) VariablePage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) VariableInstance.new( @version, @@ -214,6 +227,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) VariableInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/function.rb b/lib/twilio-ruby/rest/serverless/v1/service/function.rb index 4df7fe879..f71f2e6e2 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/function.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/function.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) FunctionInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) FunctionPage.new(@version, response, @solution) end @@ -172,6 +179,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -182,6 +191,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FunctionInstance.new( @version, @@ -205,6 +218,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) FunctionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb b/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb index 418f1c56e..dd868a462 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) FunctionVersionPage.new(@version, response, @solution) end @@ -152,6 +155,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FunctionVersionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb b/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb index 7b64c5585..8b9d7b9e7 100644 --- a/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +++ b/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb @@ -68,6 +68,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FunctionVersionContentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v1/flow.rb b/lib/twilio-ruby/rest/studio/v1/flow.rb index b5a9bcb76..8c5b0cb74 100644 --- a/lib/twilio-ruby/rest/studio/v1/flow.rb +++ b/lib/twilio-ruby/rest/studio/v1/flow.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) FlowPage.new(@version, response, @solution) end @@ -148,6 +151,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -158,6 +163,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FlowInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb b/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb index b6b315859..3fc184c3e 100644 --- a/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +++ b/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) EngagementInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EngagementPage.new(@version, response, @solution) end @@ -179,6 +186,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -189,6 +198,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EngagementInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb b/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb index bcf1404a5..1f8a40f02 100644 --- a/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +++ b/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb @@ -66,6 +66,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EngagementContextInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb b/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb index e0878a16b..f918da008 100644 --- a/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +++ b/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) StepPage.new(@version, response, @solution) end @@ -152,6 +155,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) StepInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb b/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb index 57de8fdbd..d36ee246c 100644 --- a/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +++ b/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb @@ -68,6 +68,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) StepContextInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v1/flow/execution.rb b/lib/twilio-ruby/rest/studio/v1/flow/execution.rb index 1715ddef9..0fba117ec 100644 --- a/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +++ b/lib/twilio-ruby/rest/studio/v1/flow/execution.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ExecutionInstance.new( @version, @@ -138,8 +142,11 @@ def page(date_created_from: :unset, date_created_to: :unset, page_token: :unset, 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ExecutionPage.new(@version, response, @solution) end @@ -191,6 +198,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -201,6 +210,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ExecutionInstance.new( @version, @@ -224,6 +237,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ExecutionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb b/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb index 7a063f999..69834575a 100644 --- a/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +++ b/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb @@ -66,6 +66,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ExecutionContextInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb b/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb index 539d8fba5..d6cf5f627 100644 --- a/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +++ b/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ExecutionStepPage.new(@version, response, @solution) end @@ -152,6 +155,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ExecutionStepInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb b/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb index 8be7ad208..6d58ca115 100644 --- a/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +++ b/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb @@ -68,6 +68,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ExecutionStepContextInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v2/flow.rb b/lib/twilio-ruby/rest/studio/v2/flow.rb index 4e01ebeeb..adbfb9860 100644 --- a/lib/twilio-ruby/rest/studio/v2/flow.rb +++ b/lib/twilio-ruby/rest/studio/v2/flow.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) FlowInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) FlowPage.new(@version, response, @solution) end @@ -179,6 +186,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -189,6 +198,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FlowInstance.new( @version, @@ -220,6 +233,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) FlowInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v2/flow/execution.rb b/lib/twilio-ruby/rest/studio/v2/flow/execution.rb index 0192e27a0..fc6afde5e 100644 --- a/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +++ b/lib/twilio-ruby/rest/studio/v2/flow/execution.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ExecutionInstance.new( @version, @@ -138,8 +142,11 @@ def page(date_created_from: :unset, date_created_to: :unset, page_token: :unset, 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ExecutionPage.new(@version, response, @solution) end @@ -191,6 +198,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -201,6 +210,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ExecutionInstance.new( @version, @@ -224,6 +237,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ExecutionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb b/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb index 591ac3942..938717892 100644 --- a/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +++ b/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb @@ -66,6 +66,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ExecutionContextInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb b/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb index e1bbbd7bf..f2019ac34 100644 --- a/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +++ b/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ExecutionStepPage.new(@version, response, @solution) end @@ -152,6 +155,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ExecutionStepInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb b/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb index 97fca88f7..13cd738c3 100644 --- a/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +++ b/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb @@ -68,6 +68,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ExecutionStepContextInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb b/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb index 7281888cb..78afad403 100644 --- a/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +++ b/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) FlowRevisionPage.new(@version, response, @solution) end @@ -149,6 +152,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FlowRevisionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb b/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb index 7e4e6e8ae..253e30ebf 100644 --- a/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +++ b/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb @@ -64,6 +64,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FlowTestUserInstance.new( @version, @@ -86,6 +90,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) FlowTestUserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/studio/v2/flow_validate.rb b/lib/twilio-ruby/rest/studio/v2/flow_validate.rb index e1cc838ce..ad4904eae 100644 --- a/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +++ b/lib/twilio-ruby/rest/studio/v2/flow_validate.rb @@ -53,6 +53,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) FlowValidateInstance.new( @version, diff --git a/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb b/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb index a97d34558..5e8db2e8a 100644 --- a/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +++ b/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) EsimProfileInstance.new( @version, @@ -144,8 +148,11 @@ def page(eid: :unset, sim_sid: :unset, status: :unset, page_token: :unset, page_ 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EsimProfilePage.new(@version, response, @solution) end @@ -194,6 +201,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EsimProfileInstance.new( @version, diff --git a/lib/twilio-ruby/rest/supersim/v1/fleet.rb b/lib/twilio-ruby/rest/supersim/v1/fleet.rb index 556be169d..e2b4496d2 100644 --- a/lib/twilio-ruby/rest/supersim/v1/fleet.rb +++ b/lib/twilio-ruby/rest/supersim/v1/fleet.rb @@ -68,6 +68,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) FleetInstance.new( @version, @@ -147,8 +151,11 @@ def page(network_access_profile: :unset, page_token: :unset, page_number: :unset 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) FleetPage.new(@version, response, @solution) end @@ -197,6 +204,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FleetInstance.new( @version, @@ -237,6 +248,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) FleetInstance.new( @version, diff --git a/lib/twilio-ruby/rest/supersim/v1/ip_command.rb b/lib/twilio-ruby/rest/supersim/v1/ip_command.rb index 647566714..ed3f1a31a 100644 --- a/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +++ b/lib/twilio-ruby/rest/supersim/v1/ip_command.rb @@ -59,6 +59,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) IpCommandInstance.new( @version, @@ -156,8 +160,11 @@ def page(sim: :unset, sim_iccid: :unset, status: :unset, direction: :unset, page 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) IpCommandPage.new(@version, response, @solution) end @@ -206,6 +213,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) IpCommandInstance.new( @version, diff --git a/lib/twilio-ruby/rest/supersim/v1/network.rb b/lib/twilio-ruby/rest/supersim/v1/network.rb index 79397a50b..1a8493aca 100644 --- a/lib/twilio-ruby/rest/supersim/v1/network.rb +++ b/lib/twilio-ruby/rest/supersim/v1/network.rb @@ -114,8 +114,11 @@ def page(iso_country: :unset, mcc: :unset, mnc: :unset, page_token: :unset, page 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) NetworkPage.new(@version, response, @solution) end @@ -164,6 +167,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) NetworkInstance.new( @version, diff --git a/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb b/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb index 7c1aa1377..fa883b0cd 100644 --- a/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +++ b/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) NetworkAccessProfileInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) NetworkAccessProfilePage.new(@version, response, @solution) end @@ -171,6 +178,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) NetworkAccessProfileInstance.new( @version, @@ -193,6 +204,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) NetworkAccessProfileInstance.new( @version, diff --git a/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb b/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb index 32f9a71a8..1ceff4674 100644 --- a/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +++ b/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) NetworkAccessProfileNetworkInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) NetworkAccessProfileNetworkPage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) NetworkAccessProfileNetworkInstance.new( @version, diff --git a/lib/twilio-ruby/rest/supersim/v1/settings_update.rb b/lib/twilio-ruby/rest/supersim/v1/settings_update.rb index 84302a22c..1451283d2 100644 --- a/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +++ b/lib/twilio-ruby/rest/supersim/v1/settings_update.rb @@ -108,8 +108,11 @@ def page(sim: :unset, status: :unset, page_token: :unset, page_number: :unset, p 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SettingsUpdatePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/supersim/v1/sim.rb b/lib/twilio-ruby/rest/supersim/v1/sim.rb index f77242ae6..b7ba11425 100644 --- a/lib/twilio-ruby/rest/supersim/v1/sim.rb +++ b/lib/twilio-ruby/rest/supersim/v1/sim.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SimInstance.new( @version, @@ -138,8 +142,11 @@ def page(status: :unset, fleet: :unset, iccid: :unset, page_token: :unset, page_ 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SimPage.new(@version, response, @solution) end @@ -190,6 +197,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SimInstance.new( @version, @@ -227,6 +238,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SimInstance.new( @version, diff --git a/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb b/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb index f6a4b3822..7690694c0 100644 --- a/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +++ b/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BillingPeriodPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb b/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb index 1fb62a792..33b70172d 100644 --- a/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +++ b/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SimIpAddressPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/supersim/v1/sms_command.rb b/lib/twilio-ruby/rest/supersim/v1/sms_command.rb index 7f92d1c0e..7f1512b66 100644 --- a/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +++ b/lib/twilio-ruby/rest/supersim/v1/sms_command.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SmsCommandInstance.new( @version, @@ -144,8 +148,11 @@ def page(sim: :unset, status: :unset, direction: :unset, page_token: :unset, pag 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SmsCommandPage.new(@version, response, @solution) end @@ -194,6 +201,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SmsCommandInstance.new( @version, diff --git a/lib/twilio-ruby/rest/supersim/v1/usage_record.rb b/lib/twilio-ruby/rest/supersim/v1/usage_record.rb index 1ef6148d6..5026d2eb3 100644 --- a/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +++ b/lib/twilio-ruby/rest/supersim/v1/usage_record.rb @@ -144,8 +144,11 @@ def page(sim: :unset, fleet: :unset, network: :unset, iso_country: :unset, group 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UsageRecordPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/sync/v1/service.rb b/lib/twilio-ruby/rest/sync/v1/service.rb index a57bfbce1..b83490c0e 100644 --- a/lib/twilio-ruby/rest/sync/v1/service.rb +++ b/lib/twilio-ruby/rest/sync/v1/service.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -135,8 +139,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -189,6 +196,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -199,6 +208,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -239,6 +252,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/sync/v1/service/document.rb b/lib/twilio-ruby/rest/sync/v1/service/document.rb index 5e0e2e4c8..af251e2d3 100644 --- a/lib/twilio-ruby/rest/sync/v1/service/document.rb +++ b/lib/twilio-ruby/rest/sync/v1/service/document.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) DocumentInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DocumentPage.new(@version, response, @solution) end @@ -178,6 +185,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -188,6 +197,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DocumentInstance.new( @version, @@ -216,6 +229,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) DocumentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb b/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb index 78a5a9a7d..3436bb43a 100644 --- a/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +++ b/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DocumentPermissionPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) DocumentPermissionInstance.new( @version, @@ -191,6 +200,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) DocumentPermissionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb b/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb index 0e245350b..202ef7ef9 100644 --- a/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +++ b/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SyncListInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncListPage.new(@version, response, @solution) end @@ -179,6 +186,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -189,6 +198,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncListInstance.new( @version, @@ -215,6 +228,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncListInstance.new( @version, diff --git a/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb b/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb index 414314cfc..9d4888bfe 100644 --- a/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +++ b/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb @@ -56,6 +56,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SyncListItemInstance.new( @version, @@ -149,8 +153,11 @@ def page(order: :unset, from: :unset, bounds: :unset, page_token: :unset, page_n 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncListItemPage.new(@version, response, @solution) end @@ -204,6 +211,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -214,6 +223,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncListItemInstance.new( @version, @@ -249,6 +262,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncListItemInstance.new( @version, diff --git a/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb b/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb index f1e9fd6c1..a6d0bdad4 100644 --- a/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +++ b/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncListPermissionPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncListPermissionInstance.new( @version, @@ -191,6 +200,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncListPermissionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb b/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb index 038e209c2..f7fbaf02e 100644 --- a/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +++ b/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SyncMapInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncMapPage.new(@version, response, @solution) end @@ -179,6 +186,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -189,6 +198,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncMapInstance.new( @version, @@ -215,6 +228,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncMapInstance.new( @version, diff --git a/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb b/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb index f71d07104..651d13516 100644 --- a/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +++ b/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb @@ -59,6 +59,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SyncMapItemInstance.new( @version, @@ -152,8 +156,11 @@ def page(order: :unset, from: :unset, bounds: :unset, page_token: :unset, page_n 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncMapItemPage.new(@version, response, @solution) end @@ -207,6 +214,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -217,6 +226,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncMapItemInstance.new( @version, @@ -252,6 +265,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncMapItemInstance.new( @version, diff --git a/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb b/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb index fecc5430d..308e4f527 100644 --- a/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +++ b/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncMapPermissionPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncMapPermissionInstance.new( @version, @@ -191,6 +200,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncMapPermissionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb b/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb index d38aae1a3..9d876c5d6 100644 --- a/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +++ b/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SyncStreamInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SyncStreamPage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SyncStreamInstance.new( @version, @@ -208,6 +221,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SyncStreamInstance.new( @version, diff --git a/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb b/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb index b17dc23f6..c23a647bf 100644 --- a/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +++ b/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) StreamMessageInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb index d16d9fcf8..68a430d3e 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb @@ -59,6 +59,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) WorkspaceInstance.new( @version, @@ -138,8 +142,11 @@ def page(friendly_name: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) WorkspacePage.new(@version, response, @solution) end @@ -198,6 +205,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -208,6 +217,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WorkspaceInstance.new( @version, @@ -248,6 +261,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WorkspaceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb index 9cc2e3ffc..cd828633c 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ActivityInstance.new( @version, @@ -135,8 +139,11 @@ def page(friendly_name: :unset, available: :unset, page_token: :unset, page_numb 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ActivityPage.new(@version, response, @solution) end @@ -186,6 +193,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -196,6 +205,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ActivityInstance.new( @version, @@ -219,6 +232,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ActivityInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb index 6cefb921c..bc5fc4417 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb @@ -164,8 +164,11 @@ def page(end_date: :unset, event_type: :unset, minutes: :unset, reservation_sid: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EventPage.new(@version, response, @solution) end @@ -215,6 +218,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EventInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb index bd28a8c86..ef4f244d4 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb @@ -70,6 +70,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TaskInstance.new( @version, @@ -205,8 +209,11 @@ def page(priority: :unset, assignment_status: :unset, workflow_sid: :unset, work 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TaskPage.new(@version, response, @solution) end @@ -260,6 +267,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -270,6 +279,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TaskInstance.new( @version, @@ -310,6 +323,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) TaskInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb index 09cf6abad..8af0749bf 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb @@ -111,8 +111,11 @@ def page(reservation_status: :unset, worker_sid: :unset, page_token: :unset, pag 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ReservationPage.new(@version, response, @solution) end @@ -163,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ReservationInstance.new( @version, @@ -348,6 +355,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ReservationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb index 0e7e16d0d..5086809c6 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb @@ -52,6 +52,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TaskChannelInstance.new( @version, @@ -126,8 +130,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TaskChannelPage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TaskChannelInstance.new( @version, @@ -213,6 +226,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) TaskChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb index 82eaba0dd..91def387b 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb @@ -63,6 +63,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TaskQueueInstance.new( @version, @@ -161,8 +165,11 @@ def page(friendly_name: :unset, evaluate_worker_attributes: :unset, worker_sid: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TaskQueuePage.new(@version, response, @solution) end @@ -229,6 +236,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -239,6 +248,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TaskQueueInstance.new( @version, @@ -277,6 +290,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) TaskQueueInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb index 25ce75204..58c322f35 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb @@ -42,6 +42,10 @@ def create(body: :unset headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' + + + + payload = @version.create('POST', @uri, headers: headers, data: body.to_json) TaskQueueBulkRealTimeStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb index cfeede521..a6585b804 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb @@ -84,6 +84,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) TaskQueueCumulativeStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb index 80588962e..f7518bf6a 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb @@ -72,6 +72,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) TaskQueueRealTimeStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb index 30614feb5..807e000b7 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb @@ -84,6 +84,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) TaskQueueStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb index 2814c755a..227fbc065 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb @@ -135,8 +135,11 @@ def page(end_date: :unset, friendly_name: :unset, minutes: :unset, start_date: : 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TaskQueuesStatisticsPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb index 95924f9c3..d03cba45f 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) WorkerInstance.new( @version, @@ -175,8 +179,11 @@ def page(activity_name: :unset, activity_sid: :unset, available: :unset, friendl 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) WorkerPage.new(@version, response, @solution) end @@ -240,6 +247,8 @@ def delete( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -250,6 +259,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WorkerInstance.new( @version, @@ -284,6 +297,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WorkerInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb index a3054b5e4..523a4c33a 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb @@ -105,8 +105,11 @@ def page(reservation_status: :unset, page_token: :unset, page_number: :unset, pa 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ReservationPage.new(@version, response, @solution) end @@ -157,6 +160,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ReservationInstance.new( @version, @@ -336,6 +343,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ReservationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb index 2776ec27f..1d8068a25 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) WorkerChannelPage.new(@version, response, @solution) end @@ -151,6 +154,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WorkerChannelInstance.new( @version, @@ -178,6 +185,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WorkerChannelInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb index 56cdf4f1f..ca574a233 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb @@ -81,6 +81,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) WorkerStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb index dc7ccf77e..64c606ab9 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb @@ -80,6 +80,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) WorkersCumulativeStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb index bc1dc4e93..e5104b1c2 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb @@ -71,6 +71,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) WorkersRealTimeStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb index 6797f169e..3a450bb8b 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb @@ -89,6 +89,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) WorkersStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb index cdcf10fb6..932135822 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb @@ -58,6 +58,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) WorkflowInstance.new( @version, @@ -138,8 +142,11 @@ def page(friendly_name: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) WorkflowPage.new(@version, response, @solution) end @@ -192,6 +199,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -202,6 +211,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WorkflowInstance.new( @version, @@ -240,6 +253,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WorkflowInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb index 038a359bc..9f090b016 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb @@ -84,6 +84,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) WorkflowCumulativeStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb index 6db015581..fa0dbddf2 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb @@ -72,6 +72,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) WorkflowRealTimeStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb index 64019d7ff..6e52d3a6e 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb @@ -84,6 +84,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) WorkflowStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb index 3805507c5..833f7d2ef 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb @@ -82,6 +82,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) WorkspaceCumulativeStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb index 25a79ec26..060ab24d9 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb @@ -70,6 +70,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) WorkspaceRealTimeStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb index 1e62fceea..a633fbd52 100644 --- a/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +++ b/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb @@ -82,6 +82,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) WorkspaceStatisticsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trunking/v1/trunk.rb b/lib/twilio-ruby/rest/trunking/v1/trunk.rb index 4ae095ad7..350b5651f 100644 --- a/lib/twilio-ruby/rest/trunking/v1/trunk.rb +++ b/lib/twilio-ruby/rest/trunking/v1/trunk.rb @@ -65,6 +65,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TrunkInstance.new( @version, @@ -138,8 +142,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TrunkPage.new(@version, response, @solution) end @@ -193,6 +200,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -203,6 +212,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TrunkInstance.new( @version, @@ -246,6 +259,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) TrunkInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb b/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb index c72e95ffd..3c34a1336 100644 --- a/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +++ b/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CredentialListInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CredentialListPage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CredentialListInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb b/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb index 3f1ede3d6..41094983a 100644 --- a/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +++ b/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) IpAccessControlListInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) IpAccessControlListPage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) IpAccessControlListInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb b/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb index 793ab3cde..40776154a 100644 --- a/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +++ b/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb @@ -58,6 +58,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) OriginationUrlInstance.new( @version, @@ -132,8 +136,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) OriginationUrlPage.new(@version, response, @solution) end @@ -183,6 +190,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -193,6 +202,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) OriginationUrlInstance.new( @version, @@ -228,6 +241,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) OriginationUrlInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb b/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb index 72880be21..b64dc120b 100644 --- a/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +++ b/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) PhoneNumberInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PhoneNumberPage.new(@version, response, @solution) end @@ -171,6 +178,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -181,6 +190,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PhoneNumberInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb b/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb index 4df5d9234..418bc456e 100644 --- a/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +++ b/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb @@ -64,6 +64,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RecordingInstance.new( @version, @@ -89,6 +93,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RecordingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb b/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb index a464ad046..2613e0c67 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ComplianceInquiriesInstance.new( @version, @@ -99,6 +103,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ComplianceInquiriesInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb b/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb index 0c74ff011..8b9c3fe33 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb @@ -158,6 +158,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ComplianceRegistrationInquiriesInstance.new( @version, @@ -207,6 +211,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ComplianceRegistrationInquiriesInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb b/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb index 07da7ca75..9a3e5407f 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb @@ -110,6 +110,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ComplianceTollfreeInquiriesInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb b/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb index 3ee9e5242..fe79bcc61 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CustomerProfilesInstance.new( @version, @@ -144,8 +148,11 @@ def page(status: :unset, friendly_name: :unset, policy_sid: :unset, page_token: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CustomerProfilesPage.new(@version, response, @solution) end @@ -197,6 +204,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -207,6 +216,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CustomerProfilesInstance.new( @version, @@ -238,6 +251,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CustomerProfilesInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb b/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb index 45bea95cd..29a0d44db 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CustomerProfilesChannelEndpointAssignmentInstance.new( @version, @@ -135,8 +139,11 @@ def page(channel_endpoint_sid: :unset, channel_endpoint_sids: :unset, page_token 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CustomerProfilesChannelEndpointAssignmentPage.new(@version, response, @solution) end @@ -186,6 +193,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -196,6 +205,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CustomerProfilesChannelEndpointAssignmentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb b/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb index 727af6b6b..0efed392d 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CustomerProfilesEntityAssignmentsInstance.new( @version, @@ -126,8 +130,11 @@ def page(object_type: :unset, page_token: :unset, page_number: :unset, page_size 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CustomerProfilesEntityAssignmentsPage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CustomerProfilesEntityAssignmentsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb b/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb index 10e06d6b1..ab5ef43ba 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CustomerProfilesEvaluationsInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CustomerProfilesEvaluationsPage.new(@version, response, @solution) end @@ -171,6 +178,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CustomerProfilesEvaluationsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/end_user.rb b/lib/twilio-ruby/rest/trusthub/v1/end_user.rb index 914a7c912..ae55bd355 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/end_user.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) EndUserInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EndUserPage.new(@version, response, @solution) end @@ -173,6 +180,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -183,6 +192,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EndUserInstance.new( @version, @@ -208,6 +221,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) EndUserInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb b/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb index 12a283c4d..e4995c24e 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EndUserTypePage.new(@version, response, @solution) end @@ -146,6 +149,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EndUserTypeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/policies.rb b/lib/twilio-ruby/rest/trusthub/v1/policies.rb index e67d845f2..2ab455d2b 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/policies.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/policies.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PoliciesPage.new(@version, response, @solution) end @@ -146,6 +149,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PoliciesInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb b/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb index f799e9bb7..c04b8f98a 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SupportingDocumentInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SupportingDocumentPage.new(@version, response, @solution) end @@ -173,6 +180,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -183,6 +192,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SupportingDocumentInstance.new( @version, @@ -208,6 +221,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SupportingDocumentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb b/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb index 7e234be8b..4d5206a3a 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb @@ -96,8 +96,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SupportingDocumentTypePage.new(@version, response, @solution) end @@ -146,6 +149,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SupportingDocumentTypeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb b/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb index 2a9b13b64..a876462a9 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb @@ -53,6 +53,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TrustProductsInstance.new( @version, @@ -144,8 +148,11 @@ def page(status: :unset, friendly_name: :unset, policy_sid: :unset, page_token: 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TrustProductsPage.new(@version, response, @solution) end @@ -197,6 +204,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -207,6 +216,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TrustProductsInstance.new( @version, @@ -238,6 +251,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) TrustProductsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb b/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb index d58004759..29effd9a8 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TrustProductsChannelEndpointAssignmentInstance.new( @version, @@ -135,8 +139,11 @@ def page(channel_endpoint_sid: :unset, channel_endpoint_sids: :unset, page_token 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TrustProductsChannelEndpointAssignmentPage.new(@version, response, @solution) end @@ -186,6 +193,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -196,6 +205,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TrustProductsChannelEndpointAssignmentInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb b/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb index 4457b0c2c..c3cb85a60 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TrustProductsEntityAssignmentsInstance.new( @version, @@ -126,8 +130,11 @@ def page(object_type: :unset, page_token: :unset, page_number: :unset, page_size 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TrustProductsEntityAssignmentsPage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TrustProductsEntityAssignmentsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb b/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb index 394a8c137..f708adf52 100644 --- a/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +++ b/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) TrustProductsEvaluationsInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TrustProductsEvaluationsPage.new(@version, response, @solution) end @@ -171,6 +178,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) TrustProductsEvaluationsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/form.rb b/lib/twilio-ruby/rest/verify/v2/form.rb index 95d8774e8..310a88b14 100644 --- a/lib/twilio-ruby/rest/verify/v2/form.rb +++ b/lib/twilio-ruby/rest/verify/v2/form.rb @@ -62,6 +62,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FormInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/safelist.rb b/lib/twilio-ruby/rest/verify/v2/safelist.rb index ef8b438ce..4dbebfd10 100644 --- a/lib/twilio-ruby/rest/verify/v2/safelist.rb +++ b/lib/twilio-ruby/rest/verify/v2/safelist.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SafelistInstance.new( @version, @@ -83,6 +87,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -93,6 +99,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SafelistInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service.rb b/lib/twilio-ruby/rest/verify/v2/service.rb index 26ae7d606..43c6ba830 100644 --- a/lib/twilio-ruby/rest/verify/v2/service.rb +++ b/lib/twilio-ruby/rest/verify/v2/service.rb @@ -101,6 +101,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, @@ -174,8 +178,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ServicePage.new(@version, response, @solution) end @@ -231,6 +238,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -241,6 +250,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ServiceInstance.new( @version, @@ -320,6 +333,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ServiceInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/access_token.rb b/lib/twilio-ruby/rest/verify/v2/service/access_token.rb index b08e562a8..ca884d406 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/access_token.rb @@ -55,6 +55,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) AccessTokenInstance.new( @version, @@ -96,6 +100,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) AccessTokenInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/entity.rb b/lib/twilio-ruby/rest/verify/v2/service/entity.rb index 22dae7451..46b1d2aea 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/entity.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/entity.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) EntityInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) EntityPage.new(@version, response, @solution) end @@ -174,6 +181,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -184,6 +193,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) EntityInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb b/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb index 666f84258..dd261647b 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ChallengeInstance.new( @version, @@ -155,8 +159,11 @@ def page(factor_sid: :unset, status: :unset, order: :unset, page_token: :unset, 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ChallengePage.new(@version, response, @solution) end @@ -208,6 +215,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ChallengeInstance.new( @version, @@ -235,6 +246,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ChallengeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb b/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb index f23514caf..15127a5c4 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb @@ -48,6 +48,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) NotificationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb b/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb index af250ec17..ee5b6d806 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) FactorPage.new(@version, response, @solution) end @@ -151,6 +154,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -161,6 +166,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) FactorInstance.new( @version, @@ -209,6 +218,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) FactorInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb b/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb index 0878c098c..c9ecf8ae5 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb @@ -86,6 +86,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) NewFactorInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb b/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb index 5fc26b492..73ca74e10 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) MessagingConfigurationInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) MessagingConfigurationPage.new(@version, response, @solution) end @@ -174,6 +181,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -184,6 +193,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) MessagingConfigurationInstance.new( @version, @@ -207,6 +220,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) MessagingConfigurationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb b/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb index 5572c313b..7efdd279b 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb @@ -49,6 +49,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RateLimitInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RateLimitPage.new(@version, response, @solution) end @@ -175,6 +182,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -185,6 +194,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RateLimitInstance.new( @version, @@ -208,6 +221,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RateLimitInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb b/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb index 37de50e3b..604828323 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BucketInstance.new( @version, @@ -125,8 +129,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) BucketPage.new(@version, response, @solution) end @@ -177,6 +184,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -187,6 +196,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) BucketInstance.new( @version, @@ -214,6 +227,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) BucketInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/verification.rb b/lib/twilio-ruby/rest/verify/v2/service/verification.rb index 5efac4426..a78e2a464 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/verification.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/verification.rb @@ -97,6 +97,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) VerificationInstance.new( @version, @@ -138,6 +142,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) VerificationInstance.new( @version, @@ -161,6 +169,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) VerificationInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb b/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb index 5fc72a8d4..f2b40c73e 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb @@ -61,6 +61,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) VerificationCheckInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/service/webhook.rb b/lib/twilio-ruby/rest/verify/v2/service/webhook.rb index f1eb9c047..ff7a511f9 100644 --- a/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +++ b/lib/twilio-ruby/rest/verify/v2/service/webhook.rb @@ -58,6 +58,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, @@ -132,8 +136,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) WebhookPage.new(@version, response, @solution) end @@ -183,6 +190,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -193,6 +202,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) WebhookInstance.new( @version, @@ -228,6 +241,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) WebhookInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/template.rb b/lib/twilio-ruby/rest/verify/v2/template.rb index 47ffb09b1..c06d34c27 100644 --- a/lib/twilio-ruby/rest/verify/v2/template.rb +++ b/lib/twilio-ruby/rest/verify/v2/template.rb @@ -102,8 +102,11 @@ def page(friendly_name: :unset, page_token: :unset, page_number: :unset, page_si 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) TemplatePage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb b/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb index 128cd016d..0fbe8d7a9 100644 --- a/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +++ b/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb @@ -144,8 +144,11 @@ def page(date_created_after: :unset, date_created_before: :unset, channel_data_t 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) VerificationAttemptPage.new(@version, response, @solution) end @@ -194,6 +197,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) VerificationAttemptInstance.new( @version, diff --git a/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb b/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb index 7ad118190..ec9343887 100644 --- a/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +++ b/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb @@ -82,6 +82,10 @@ def fetch( }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, params: params, headers: headers) VerificationAttemptsSummaryInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/composition.rb b/lib/twilio-ruby/rest/video/v1/composition.rb index a895bf889..681711296 100644 --- a/lib/twilio-ruby/rest/video/v1/composition.rb +++ b/lib/twilio-ruby/rest/video/v1/composition.rb @@ -68,6 +68,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CompositionInstance.new( @version, @@ -165,8 +169,11 @@ def page(status: :unset, date_created_after: :unset, date_created_before: :unset 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CompositionPage.new(@version, response, @solution) end @@ -215,6 +222,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -225,6 +234,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CompositionInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/composition_hook.rb b/lib/twilio-ruby/rest/video/v1/composition_hook.rb index ace39408a..1b677d0ba 100644 --- a/lib/twilio-ruby/rest/video/v1/composition_hook.rb +++ b/lib/twilio-ruby/rest/video/v1/composition_hook.rb @@ -71,6 +71,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CompositionHookInstance.new( @version, @@ -168,8 +172,11 @@ def page(enabled: :unset, date_created_after: :unset, date_created_before: :unse 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CompositionHookPage.new(@version, response, @solution) end @@ -218,6 +225,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -228,6 +237,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CompositionHookInstance.new( @version, @@ -277,6 +290,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) CompositionHookInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/composition_settings.rb b/lib/twilio-ruby/rest/video/v1/composition_settings.rb index e1abf4524..4a4c3f2c2 100644 --- a/lib/twilio-ruby/rest/video/v1/composition_settings.rb +++ b/lib/twilio-ruby/rest/video/v1/composition_settings.rb @@ -83,6 +83,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CompositionSettingsInstance.new( @version, @@ -97,6 +101,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CompositionSettingsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/recording.rb b/lib/twilio-ruby/rest/video/v1/recording.rb index c36cfdb1c..7c6ac593d 100644 --- a/lib/twilio-ruby/rest/video/v1/recording.rb +++ b/lib/twilio-ruby/rest/video/v1/recording.rb @@ -133,8 +133,11 @@ def page(status: :unset, source_sid: :unset, grouping_sid: :unset, date_created_ 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RecordingPage.new(@version, response, @solution) end @@ -183,6 +186,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -193,6 +198,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RecordingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/recording_settings.rb b/lib/twilio-ruby/rest/video/v1/recording_settings.rb index 31aa8910b..c29281b40 100644 --- a/lib/twilio-ruby/rest/video/v1/recording_settings.rb +++ b/lib/twilio-ruby/rest/video/v1/recording_settings.rb @@ -83,6 +83,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RecordingSettingsInstance.new( @version, @@ -97,6 +101,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RecordingSettingsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/room.rb b/lib/twilio-ruby/rest/video/v1/room.rb index 2889ed3ce..8862d9ba8 100644 --- a/lib/twilio-ruby/rest/video/v1/room.rb +++ b/lib/twilio-ruby/rest/video/v1/room.rb @@ -86,6 +86,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RoomInstance.new( @version, @@ -183,8 +187,11 @@ def page(status: :unset, unique_name: :unset, date_created_after: :unset, date_c 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RoomPage.new(@version, response, @solution) end @@ -236,6 +243,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RoomInstance.new( @version, @@ -258,6 +269,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RoomInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/room/participant.rb b/lib/twilio-ruby/rest/video/v1/room/participant.rb index 48032b068..80bbf8262 100644 --- a/lib/twilio-ruby/rest/video/v1/room/participant.rb +++ b/lib/twilio-ruby/rest/video/v1/room/participant.rb @@ -122,8 +122,11 @@ def page(status: :unset, identity: :unset, date_created_after: :unset, date_crea 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ParticipantPage.new(@version, response, @solution) end @@ -177,6 +180,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ParticipantInstance.new( @version, @@ -200,6 +207,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ParticipantInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb b/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb index 493ca55d5..ca8fe9d64 100644 --- a/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +++ b/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb @@ -66,6 +66,10 @@ def update headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, headers: headers) AnonymizeInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb b/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb index 6acaea67a..554c16167 100644 --- a/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +++ b/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) PublishedTrackPage.new(@version, response, @solution) end @@ -151,6 +154,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) PublishedTrackInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb b/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb index 94c5e5a7d..c4b2190ed 100644 --- a/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +++ b/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb @@ -40,6 +40,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SubscribeRulesInstance.new( @version, @@ -63,6 +67,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SubscribeRulesInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb b/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb index 2ae15f27a..5f0bedf2c 100644 --- a/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +++ b/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SubscribedTrackPage.new(@version, response, @solution) end @@ -151,6 +154,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SubscribedTrackInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb b/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb index d5784d444..cefc14b59 100644 --- a/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +++ b/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb @@ -39,6 +39,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RecordingRulesInstance.new( @version, @@ -61,6 +65,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RecordingRulesInstance.new( @version, diff --git a/lib/twilio-ruby/rest/video/v1/room/room_recording.rb b/lib/twilio-ruby/rest/video/v1/room/room_recording.rb index 871d11329..64447d88a 100644 --- a/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +++ b/lib/twilio-ruby/rest/video/v1/room/room_recording.rb @@ -122,8 +122,11 @@ def page(status: :unset, source_sid: :unset, date_created_after: :unset, date_cr 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RoomRecordingPage.new(@version, response, @solution) end @@ -173,6 +176,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -183,6 +188,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RoomRecordingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/voice/v1/archived_call.rb b/lib/twilio-ruby/rest/voice/v1/archived_call.rb index 596e78477..cc3897db2 100644 --- a/lib/twilio-ruby/rest/voice/v1/archived_call.rb +++ b/lib/twilio-ruby/rest/voice/v1/archived_call.rb @@ -63,6 +63,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end diff --git a/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb b/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb index a5343b125..1602590db 100644 --- a/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +++ b/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb @@ -71,6 +71,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ByocTrunkInstance.new( @version, @@ -144,8 +148,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ByocTrunkPage.new(@version, response, @solution) end @@ -194,6 +201,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -204,6 +213,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ByocTrunkInstance.new( @version, @@ -253,6 +266,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ByocTrunkInstance.new( @version, diff --git a/lib/twilio-ruby/rest/voice/v1/connection_policy.rb b/lib/twilio-ruby/rest/voice/v1/connection_policy.rb index 86709fe8f..54964de59 100644 --- a/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +++ b/lib/twilio-ruby/rest/voice/v1/connection_policy.rb @@ -44,6 +44,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ConnectionPolicyInstance.new( @version, @@ -117,8 +121,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ConnectionPolicyPage.new(@version, response, @solution) end @@ -168,6 +175,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -178,6 +187,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ConnectionPolicyInstance.new( @version, @@ -200,6 +213,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ConnectionPolicyInstance.new( @version, diff --git a/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb b/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb index 562a2eea9..5c2bc7145 100644 --- a/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +++ b/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb @@ -58,6 +58,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) ConnectionPolicyTargetInstance.new( @version, @@ -132,8 +136,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) ConnectionPolicyTargetPage.new(@version, response, @solution) end @@ -183,6 +190,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -193,6 +202,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) ConnectionPolicyTargetInstance.new( @version, @@ -228,6 +241,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) ConnectionPolicyTargetInstance.new( @version, diff --git a/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb b/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb index 1d89cc872..2c416a38b 100644 --- a/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +++ b/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb @@ -46,6 +46,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) BulkCountryUpdateInstance.new( @version, diff --git a/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb b/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb index 8b7052b69..e3e618fe5 100644 --- a/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +++ b/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb @@ -134,8 +134,11 @@ def page(iso_code: :unset, continent: :unset, country_code: :unset, low_risk_num 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CountryPage.new(@version, response, @solution) end @@ -185,6 +188,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CountryInstance.new( @version, diff --git a/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb b/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb index 52423233a..a29728488 100644 --- a/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +++ b/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb @@ -99,8 +99,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) HighriskSpecialPrefixPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb b/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb index e7378fe2b..3639ac465 100644 --- a/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +++ b/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb @@ -63,6 +63,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SettingsInstance.new( @version, @@ -84,6 +88,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SettingsInstance.new( @version, diff --git a/lib/twilio-ruby/rest/voice/v1/ip_record.rb b/lib/twilio-ruby/rest/voice/v1/ip_record.rb index e6c5aa5df..b955b1903 100644 --- a/lib/twilio-ruby/rest/voice/v1/ip_record.rb +++ b/lib/twilio-ruby/rest/voice/v1/ip_record.rb @@ -50,6 +50,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) IpRecordInstance.new( @version, @@ -123,8 +127,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) IpRecordPage.new(@version, response, @solution) end @@ -173,6 +180,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -183,6 +192,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) IpRecordInstance.new( @version, @@ -205,6 +218,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) IpRecordInstance.new( @version, diff --git a/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb b/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb index 214c3627e..4ea523f6e 100644 --- a/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +++ b/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb @@ -47,6 +47,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) SourceIpMappingInstance.new( @version, @@ -120,8 +124,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SourceIpMappingPage.new(@version, response, @solution) end @@ -170,6 +177,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -180,6 +189,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SourceIpMappingInstance.new( @version, @@ -202,6 +215,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SourceIpMappingInstance.new( @version, diff --git a/lib/twilio-ruby/rest/wireless/v1/command.rb b/lib/twilio-ruby/rest/wireless/v1/command.rb index 40244cf67..106c12575 100644 --- a/lib/twilio-ruby/rest/wireless/v1/command.rb +++ b/lib/twilio-ruby/rest/wireless/v1/command.rb @@ -62,6 +62,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) CommandInstance.new( @version, @@ -159,8 +163,11 @@ def page(sim: :unset, status: :unset, direction: :unset, transport: :unset, page 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) CommandPage.new(@version, response, @solution) end @@ -209,6 +216,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -219,6 +228,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) CommandInstance.new( @version, diff --git a/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb b/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb index c4cd88787..7aa57e354 100644 --- a/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +++ b/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb @@ -74,6 +74,10 @@ def create( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.create('POST', @uri, data: data, headers: headers) RatePlanInstance.new( @version, @@ -147,8 +151,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) RatePlanPage.new(@version, response, @solution) end @@ -197,6 +204,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -207,6 +216,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) RatePlanInstance.new( @version, @@ -232,6 +245,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) RatePlanInstance.new( @version, diff --git a/lib/twilio-ruby/rest/wireless/v1/sim.rb b/lib/twilio-ruby/rest/wireless/v1/sim.rb index 550838db2..2b488561f 100644 --- a/lib/twilio-ruby/rest/wireless/v1/sim.rb +++ b/lib/twilio-ruby/rest/wireless/v1/sim.rb @@ -126,8 +126,11 @@ def page(status: :unset, iccid: :unset, rate_plan: :unset, e_id: :unset, sim_reg 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) SimPage.new(@version, response, @solution) end @@ -178,6 +181,8 @@ def delete headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + @version.delete('DELETE', @uri, headers: headers) end @@ -188,6 +193,10 @@ def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.fetch('GET', @uri, headers: headers) SimInstance.new( @version, @@ -261,6 +270,10 @@ def update( headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + + + + payload = @version.update('POST', @uri, data: data, headers: headers) SimInstance.new( @version, diff --git a/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb b/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb index a07a4bdde..dc998d827 100644 --- a/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +++ b/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb @@ -98,8 +98,11 @@ def page(page_token: :unset, page_number: :unset, page_size: :unset) 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) DataSessionPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb b/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb index bf8db191c..130a63c1a 100644 --- a/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +++ b/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb @@ -116,8 +116,11 @@ def page(end_: :unset, start: :unset, granularity: :unset, page_token: :unset, p 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UsageRecordPage.new(@version, response, @solution) end diff --git a/lib/twilio-ruby/rest/wireless/v1/usage_record.rb b/lib/twilio-ruby/rest/wireless/v1/usage_record.rb index 73e2bbf5d..15852d230 100644 --- a/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +++ b/lib/twilio-ruby/rest/wireless/v1/usage_record.rb @@ -114,8 +114,11 @@ def page(end_: :unset, start: :unset, granularity: :unset, page_token: :unset, p 'Page' => page_number, 'PageSize' => page_size, }) + headers = Twilio::Values.of({}) + + - response = @version.page('GET', @uri, params: params) + response = @version.page('GET', @uri, params: params, headers: headers) UsageRecordPage.new(@version, response, @solution) end