mailslurp_client 15.19.22 → 15.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/mailslurp_client/api/alias_controller_api.rb +10 -10
- data/lib/mailslurp_client/api/attachment_controller_api.rb +22 -6
- data/lib/mailslurp_client/api/bounce_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +5 -5
- data/lib/mailslurp_client/api/connector_controller_api.rb +1250 -122
- data/lib/mailslurp_client/api/consent_controller_api.rb +269 -0
- data/lib/mailslurp_client/api/contact_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/domain_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/email_controller_api.rb +471 -12
- data/lib/mailslurp_client/api/email_verification_controller_api.rb +9 -1
- data/lib/mailslurp_client/api/expired_controller_api.rb +4 -1
- data/lib/mailslurp_client/api/export_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/form_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/group_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/guest_portal_controller_api.rb +569 -0
- data/lib/mailslurp_client/api/imap_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/inbox_controller_api.rb +886 -126
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +13 -11
- data/lib/mailslurp_client/api/inbox_replier_controller_api.rb +82 -1
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/phone_controller_api.rb +675 -1
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/sms_controller_api.rb +494 -44
- data/lib/mailslurp_client/api/sse_controller_api.rb +81 -0
- data/lib/mailslurp_client/api/template_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/tools_controller_api.rb +192 -1
- data/lib/mailslurp_client/api/tracking_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/user_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +1 -1
- data/lib/mailslurp_client/api/webhook_controller_api.rb +274 -12
- data/lib/mailslurp_client/api_client.rb +1 -1
- data/lib/mailslurp_client/api_error.rb +1 -1
- data/lib/mailslurp_client/configuration.rb +1 -1
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +3 -3
- data/lib/mailslurp_client/models/account_bounce_block_dto.rb +16 -2
- data/lib/mailslurp_client/models/alias_dto.rb +1 -1
- data/lib/mailslurp_client/models/alias_projection.rb +20 -20
- data/lib/mailslurp_client/models/{thread_projection.rb → alias_thread_projection.rb} +42 -42
- data/lib/mailslurp_client/models/{attachment_entity.rb → attachment_entity_dto.rb} +26 -14
- data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
- data/lib/mailslurp_client/models/attachment_projection.rb +27 -2
- data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
- data/lib/mailslurp_client/models/bounce_projection.rb +12 -12
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +1 -1
- data/lib/mailslurp_client/models/bounced_email_dto.rb +1 -1
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +1 -1
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +1 -1
- data/lib/mailslurp_client/models/can_send_email_results.rb +1 -1
- data/lib/mailslurp_client/models/check_email_body_feature_support_results.rb +1 -1
- data/lib/mailslurp_client/models/check_email_body_results.rb +1 -1
- data/lib/mailslurp_client/models/check_email_client_support_options.rb +1 -1
- data/lib/mailslurp_client/models/check_email_client_support_results.rb +1 -1
- data/lib/mailslurp_client/models/check_email_features_client_support_options.rb +1 -1
- data/lib/mailslurp_client/models/check_email_features_client_support_results.rb +1 -1
- data/lib/mailslurp_client/models/complaint.rb +1 -1
- data/lib/mailslurp_client/models/condition_option.rb +1 -1
- data/lib/mailslurp_client/models/connector_dto.rb +12 -98
- data/lib/mailslurp_client/models/connector_event_dto.rb +354 -0
- data/lib/mailslurp_client/models/{connector_sync_event_projection.rb → connector_event_projection.rb} +72 -37
- data/lib/mailslurp_client/models/connector_imap_connection_dto.rb +83 -2
- data/lib/mailslurp_client/models/{connector_sync_request_result_exception_cause.rb → connector_imap_connection_test_result.rb} +33 -19
- data/lib/mailslurp_client/models/connector_projection.rb +22 -83
- data/lib/mailslurp_client/models/connector_provider_settings_dto.rb +225 -0
- data/lib/mailslurp_client/models/connector_smtp_connection_dto.rb +96 -2
- data/lib/mailslurp_client/models/{connector_sync_request_result_exception.rb → connector_smtp_connection_test_result.rb} +29 -35
- data/lib/mailslurp_client/models/connector_sync_request_result.rb +2 -2
- data/lib/mailslurp_client/models/connector_sync_result.rb +20 -9
- data/lib/mailslurp_client/models/{connector_sync_event_dto.rb → connector_sync_settings_dto.rb} +50 -53
- data/lib/mailslurp_client/models/consent_status_dto.rb +211 -0
- data/lib/mailslurp_client/models/contact_dto.rb +1 -1
- data/lib/mailslurp_client/models/contact_projection.rb +1 -1
- data/lib/mailslurp_client/models/content_match_options.rb +1 -1
- data/lib/mailslurp_client/models/count_dto.rb +1 -1
- data/lib/mailslurp_client/models/create_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/create_connector_imap_connection_options.rb +93 -7
- data/lib/mailslurp_client/models/create_connector_options.rb +2 -69
- data/lib/mailslurp_client/models/create_connector_smtp_connection_options.rb +94 -5
- data/lib/mailslurp_client/models/create_connector_sync_settings_options.rb +265 -0
- data/lib/mailslurp_client/models/create_connector_with_options.rb +239 -0
- data/lib/mailslurp_client/models/create_contact_options.rb +1 -1
- data/lib/mailslurp_client/models/create_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/create_emergency_address_options.rb +1 -1
- data/lib/mailslurp_client/models/create_group_options.rb +1 -1
- data/lib/mailslurp_client/models/create_inbox_dto.rb +1 -1
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +1 -1
- data/lib/mailslurp_client/models/create_inbox_replier_options.rb +2 -6
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +1 -1
- data/lib/mailslurp_client/models/create_portal_options.rb +233 -0
- data/lib/mailslurp_client/models/create_portal_user_options.rb +251 -0
- data/lib/mailslurp_client/models/create_template_options.rb +1 -1
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +21 -8
- data/lib/mailslurp_client/models/delivery_status_dto.rb +1 -1
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookup_result.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookups_options.rb +1 -1
- data/lib/mailslurp_client/models/domain_dto.rb +1 -1
- data/lib/mailslurp_client/models/domain_group.rb +1 -1
- data/lib/mailslurp_client/models/domain_groups_dto.rb +1 -1
- data/lib/mailslurp_client/models/domain_information.rb +1 -1
- data/lib/mailslurp_client/models/domain_issues_dto.rb +1 -1
- data/lib/mailslurp_client/models/domain_name_record.rb +1 -1
- data/lib/mailslurp_client/models/domain_preview.rb +1 -1
- data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
- data/lib/mailslurp_client/models/email.rb +57 -2
- data/lib/mailslurp_client/models/email_analysis.rb +1 -1
- data/lib/mailslurp_client/models/email_available_result.rb +1 -1
- data/lib/mailslurp_client/models/email_content_match_result.rb +1 -1
- data/lib/mailslurp_client/models/email_content_part_result.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_category_name.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_family_name.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_family_statistics.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_names.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_overview.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_platform_name.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_platform_statistics.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_support_flags.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_support_result.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_support_status_percentage.rb +1 -1
- data/lib/mailslurp_client/models/email_feature_version_statistics.rb +1 -1
- data/lib/mailslurp_client/models/email_html_dto.rb +1 -1
- data/lib/mailslurp_client/models/email_links_result.rb +1 -1
- data/lib/mailslurp_client/models/email_preview.rb +102 -6
- data/lib/mailslurp_client/models/email_preview_urls.rb +1 -1
- data/lib/mailslurp_client/models/email_projection.rb +123 -41
- data/lib/mailslurp_client/models/email_recipients.rb +1 -1
- data/lib/mailslurp_client/models/email_recipients_projection.rb +231 -0
- data/lib/mailslurp_client/models/email_screenshot_result.rb +1 -1
- data/lib/mailslurp_client/models/email_text_lines_result.rb +1 -1
- data/lib/mailslurp_client/models/email_thread_dto.rb +348 -0
- data/lib/mailslurp_client/models/email_thread_item.rb +429 -0
- data/lib/mailslurp_client/models/email_thread_items_dto.rb +213 -0
- data/lib/mailslurp_client/models/email_thread_projection.rb +441 -0
- data/lib/mailslurp_client/models/email_validation_request_dto.rb +1 -1
- data/lib/mailslurp_client/models/email_verification_result.rb +1 -1
- data/lib/mailslurp_client/models/emergency_address.rb +6 -1
- data/lib/mailslurp_client/models/emergency_address_dto.rb +1 -1
- data/lib/mailslurp_client/models/empty_response_dto.rb +1 -1
- data/lib/mailslurp_client/models/expiration_defaults.rb +1 -1
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +1 -1
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +16 -16
- data/lib/mailslurp_client/models/export_link.rb +1 -1
- data/lib/mailslurp_client/models/export_options.rb +1 -1
- data/lib/mailslurp_client/models/fake_email_dto.rb +49 -5
- data/lib/mailslurp_client/models/fake_email_preview.rb +16 -2
- data/lib/mailslurp_client/models/fake_email_result.rb +1 -1
- data/lib/mailslurp_client/models/filter_bounced_recipients_options.rb +1 -1
- data/lib/mailslurp_client/models/filter_bounced_recipients_result.rb +1 -1
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +1 -1
- data/lib/mailslurp_client/models/forward_email_options.rb +1 -1
- data/lib/mailslurp_client/models/generate_bimi_record_options.rb +1 -1
- data/lib/mailslurp_client/models/generate_bimi_record_results.rb +1 -1
- data/lib/mailslurp_client/models/generate_dmarc_record_options.rb +1 -1
- data/lib/mailslurp_client/models/generate_dmarc_record_results.rb +1 -1
- data/lib/mailslurp_client/models/generate_mta_sts_record_options.rb +1 -1
- data/lib/mailslurp_client/models/generate_mta_sts_record_results.rb +1 -1
- data/lib/mailslurp_client/models/generate_tls_reporting_record_options.rb +1 -1
- data/lib/mailslurp_client/models/generate_tls_reporting_record_results.rb +1 -1
- data/lib/mailslurp_client/models/get_email_screenshot_options.rb +1 -1
- data/lib/mailslurp_client/models/gravatar_url.rb +1 -1
- data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -1
- data/lib/mailslurp_client/models/group_dto.rb +1 -1
- data/lib/mailslurp_client/models/group_projection.rb +1 -1
- data/lib/mailslurp_client/models/guest_portal_dto.rb +303 -0
- data/lib/mailslurp_client/models/guest_portal_user_create_dto.rb +225 -0
- data/lib/mailslurp_client/models/guest_portal_user_dto.rb +322 -0
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +309 -0
- data/lib/mailslurp_client/models/html_validation_result.rb +1 -1
- data/lib/mailslurp_client/models/image_issue.rb +1 -1
- data/lib/mailslurp_client/models/imap_access_details.rb +1 -1
- data/lib/mailslurp_client/models/imap_email_projection.rb +1 -1
- data/lib/mailslurp_client/models/imap_flag_operation_options.rb +1 -1
- data/lib/mailslurp_client/models/imap_mailbox_status.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_fetch_item.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_fetch_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_get_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_list_options.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_list_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_mailbox_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_search_options.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_search_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_status_options.rb +1 -1
- data/lib/mailslurp_client/models/imap_server_status_result.rb +1 -1
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +17 -2
- data/lib/mailslurp_client/models/imap_smtp_access_servers.rb +1 -1
- data/lib/mailslurp_client/models/imap_update_flags_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -1
- data/lib/mailslurp_client/models/inbox_by_name_result.rb +1 -1
- data/lib/mailslurp_client/models/inbox_dto.rb +54 -9
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +2 -6
- data/lib/mailslurp_client/models/inbox_forwarder_event_dto.rb +12 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +19 -9
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +1 -1
- data/lib/mailslurp_client/models/inbox_id_item.rb +1 -1
- data/lib/mailslurp_client/models/inbox_ids_result.rb +1 -1
- data/lib/mailslurp_client/models/inbox_preview.rb +54 -9
- data/lib/mailslurp_client/models/inbox_replier_dto.rb +2 -6
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +22 -22
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -1
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +1 -1
- data/lib/mailslurp_client/models/inline_object.rb +2 -12
- data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -1
- data/lib/mailslurp_client/models/link_issue.rb +1 -1
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +1 -1
- data/lib/mailslurp_client/models/lookup_bimi_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/lookup_bimi_domain_results.rb +1 -1
- data/lib/mailslurp_client/models/lookup_dmarc_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/lookup_dmarc_domain_results.rb +1 -1
- data/lib/mailslurp_client/models/lookup_mta_sts_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/lookup_mta_sts_domain_results.rb +1 -1
- data/lib/mailslurp_client/models/lookup_tls_reporting_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/lookup_tls_reporting_domain_results.rb +1 -1
- data/lib/mailslurp_client/models/match_option.rb +1 -1
- data/lib/mailslurp_client/models/match_options.rb +1 -1
- data/lib/mailslurp_client/models/missed_email_dto.rb +1 -1
- data/lib/mailslurp_client/models/missed_email_projection.rb +12 -12
- data/lib/mailslurp_client/models/name_server_record.rb +1 -1
- data/lib/mailslurp_client/models/new_fake_email_address_result.rb +1 -1
- data/lib/mailslurp_client/models/opt_in_consent_options.rb +229 -0
- data/lib/mailslurp_client/models/opt_in_consent_send_result.rb +211 -0
- data/lib/mailslurp_client/models/{connector_sync_request_result_exception_cause_stack_trace.rb → opt_in_identity_projection.rb} +54 -61
- data/lib/mailslurp_client/models/opt_in_sending_consent_dto.rb +239 -0
- data/lib/mailslurp_client/models/optional_connector_dto.rb +220 -0
- data/lib/mailslurp_client/models/optional_connector_imap_connection_dto.rb +220 -0
- data/lib/mailslurp_client/models/optional_connector_smtp_connection_dto.rb +220 -0
- data/lib/mailslurp_client/models/optional_connector_sync_settings_dto.rb +220 -0
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +68 -8
- data/lib/mailslurp_client/models/page_alias.rb +16 -16
- data/lib/mailslurp_client/models/{page_connector_sync_events.rb → page_alias_thread_projection.rb} +21 -21
- data/lib/mailslurp_client/models/page_attachment_entity.rb +16 -16
- data/lib/mailslurp_client/models/page_bounced_email.rb +16 -16
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +16 -16
- data/lib/mailslurp_client/models/page_complaint.rb +16 -16
- data/lib/mailslurp_client/models/page_connector.rb +16 -16
- data/lib/mailslurp_client/models/page_connector_events.rb +309 -0
- data/lib/mailslurp_client/models/page_contact_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_delivery_status.rb +16 -16
- data/lib/mailslurp_client/models/page_email_preview.rb +16 -16
- data/lib/mailslurp_client/models/page_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_email_validation_request.rb +16 -16
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_group_projection.rb +16 -16
- data/lib/mailslurp_client/models/{page_thread_projection.rb → page_guest_portal_users.rb} +21 -21
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +16 -16
- data/lib/mailslurp_client/models/page_inbox_tags.rb +309 -0
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +16 -16
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_sms_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_template_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_webhook_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_webhook_result.rb +16 -16
- data/lib/mailslurp_client/models/pageable_object.rb +20 -20
- data/lib/mailslurp_client/models/phone_number_dto.rb +37 -5
- data/lib/mailslurp_client/models/phone_number_projection.rb +11 -2
- data/lib/mailslurp_client/models/phone_number_validation_dto.rb +254 -0
- data/lib/mailslurp_client/models/phone_plan_availability.rb +213 -0
- data/lib/mailslurp_client/models/phone_plan_availability_item.rb +271 -0
- data/lib/mailslurp_client/models/phone_plan_dto.rb +1 -1
- data/lib/mailslurp_client/models/plus_address_dto.rb +295 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +295 -0
- data/lib/mailslurp_client/models/provider_settings.rb +347 -0
- data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
- data/lib/mailslurp_client/models/recipient.rb +1 -1
- data/lib/mailslurp_client/models/recipient_projection.rb +234 -0
- data/lib/mailslurp_client/models/reply_for_sms.rb +1 -1
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +1 -1
- data/lib/mailslurp_client/models/reply_to_email_options.rb +1 -1
- data/lib/mailslurp_client/models/scheduled_job.rb +1 -1
- data/lib/mailslurp_client/models/scheduled_job_dto.rb +1 -1
- data/lib/mailslurp_client/models/search_emails_options.rb +1 -1
- data/lib/mailslurp_client/models/search_inboxes_options.rb +3 -3
- data/lib/mailslurp_client/models/send_email_body_part.rb +1 -1
- data/lib/mailslurp_client/models/send_email_options.rb +13 -2
- data/lib/mailslurp_client/models/send_opt_in_consent_email_options.rb +234 -0
- data/lib/mailslurp_client/models/send_smtp_envelope_options.rb +1 -1
- data/lib/mailslurp_client/models/send_with_queue_result.rb +1 -1
- data/lib/mailslurp_client/models/sender.rb +1 -1
- data/lib/mailslurp_client/models/sender_projection.rb +235 -0
- data/lib/mailslurp_client/models/sent_email_dto.rb +92 -2
- data/lib/mailslurp_client/models/sent_email_projection.rb +110 -41
- data/lib/mailslurp_client/models/sent_sms_dto.rb +1 -11
- data/lib/mailslurp_client/models/sent_sms_projection.rb +305 -0
- data/lib/mailslurp_client/models/server_endpoints.rb +1 -1
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
- data/lib/mailslurp_client/models/set_phone_favourited_options.rb +213 -0
- data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -1
- data/lib/mailslurp_client/models/sms_dto.rb +25 -2
- data/lib/mailslurp_client/models/sms_match_option.rb +1 -1
- data/lib/mailslurp_client/models/sms_preview.rb +1 -1
- data/lib/mailslurp_client/models/sms_projection.rb +1 -1
- data/lib/mailslurp_client/models/sms_reply_options.rb +1 -1
- data/lib/mailslurp_client/models/sms_send_options.rb +225 -0
- data/lib/mailslurp_client/models/smtp_access_details.rb +1 -1
- data/lib/mailslurp_client/models/sort_object.rb +1 -1
- data/lib/mailslurp_client/models/spelling_issue.rb +1 -1
- data/lib/mailslurp_client/models/template_dto.rb +1 -1
- data/lib/mailslurp_client/models/template_preview.rb +1 -1
- data/lib/mailslurp_client/models/template_projection.rb +1 -1
- data/lib/mailslurp_client/models/template_variable.rb +1 -1
- data/lib/mailslurp_client/models/test_inbox_ruleset_receiving_options.rb +1 -1
- data/lib/mailslurp_client/models/test_inbox_ruleset_receiving_result.rb +1 -1
- data/lib/mailslurp_client/models/test_inbox_ruleset_sending_options.rb +1 -1
- data/lib/mailslurp_client/models/test_inbox_ruleset_sending_result.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
- data/lib/mailslurp_client/models/test_phone_number_options.rb +1 -1
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -1
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +11 -11
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +11 -11
- data/lib/mailslurp_client/models/unread_count.rb +1 -1
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -1
- data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
- data/lib/mailslurp_client/models/update_imap_access_options.rb +1 -1
- data/lib/mailslurp_client/models/update_inbox_options.rb +1 -1
- data/lib/mailslurp_client/models/update_inbox_replier_options.rb +1 -1
- data/lib/mailslurp_client/models/update_phone_number_options.rb +215 -0
- data/lib/mailslurp_client/models/update_smtp_access_options.rb +1 -1
- data/lib/mailslurp_client/models/upload_attachment_options.rb +1 -1
- data/lib/mailslurp_client/models/user_info_dto.rb +1 -1
- data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -1
- data/lib/mailslurp_client/models/validate_email_address_list_result.rb +1 -1
- data/lib/mailslurp_client/models/validate_phone_number_options.rb +211 -0
- data/lib/mailslurp_client/models/validation_dto.rb +1 -1
- data/lib/mailslurp_client/models/validation_message.rb +1 -1
- data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
- data/lib/mailslurp_client/models/verify_webhook_signature_options.rb +1 -1
- data/lib/mailslurp_client/models/verify_webhook_signature_results.rb +1 -1
- data/lib/mailslurp_client/models/wait_for_conditions.rb +1 -1
- data/lib/mailslurp_client/models/wait_for_single_sms_options.rb +1 -1
- data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +1 -1
- data/lib/mailslurp_client/models/webhook_bounce_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_dto.rb +31 -8
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_endpoint_projection.rb +259 -0
- data/lib/mailslurp_client/models/webhook_header_name_value.rb +1 -1
- data/lib/mailslurp_client/models/webhook_headers.rb +1 -1
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_new_sms_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_projection.rb +60 -7
- data/lib/mailslurp_client/models/webhook_redrive_all_result.rb +1 -1
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -1
- data/lib/mailslurp_client/models/webhook_result_dto.rb +3 -3
- data/lib/mailslurp_client/models/webhook_test_request.rb +1 -1
- data/lib/mailslurp_client/models/webhook_test_response.rb +1 -1
- data/lib/mailslurp_client/models/webhook_test_result.rb +1 -1
- data/lib/mailslurp_client/version.rb +2 -2
- data/lib/mailslurp_client.rb +58 -10
- metadata +59 -11
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#MailSlurp API
|
3
3
|
|
4
|
-
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
4
|
+
#MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
7
|
Contact: contact@mailslurp.dev
|
@@ -23,6 +23,7 @@ module MailSlurpClient
|
|
23
23
|
# Sync emails between external mailboxes and MailSlurp inboxes
|
24
24
|
# @param create_connector_options [CreateConnectorOptions]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :inbox_id Optional inbox ID to associate with the connector
|
26
27
|
# @return [ConnectorDto]
|
27
28
|
def create_connector(create_connector_options, opts = {})
|
28
29
|
data, _status_code, _headers = create_connector_with_http_info(create_connector_options, opts)
|
@@ -33,6 +34,7 @@ module MailSlurpClient
|
|
33
34
|
# Sync emails between external mailboxes and MailSlurp inboxes
|
34
35
|
# @param create_connector_options [CreateConnectorOptions]
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :inbox_id Optional inbox ID to associate with the connector
|
36
38
|
# @return [Array<(ConnectorDto, Integer, Hash)>] ConnectorDto data, response status code and response headers
|
37
39
|
def create_connector_with_http_info(create_connector_options, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -47,6 +49,7 @@ module MailSlurpClient
|
|
47
49
|
|
48
50
|
# query parameters
|
49
51
|
query_params = opts[:query_params] || {}
|
52
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
50
53
|
|
51
54
|
# header parameters
|
52
55
|
header_params = opts[:header_params] || {}
|
@@ -223,6 +226,143 @@ module MailSlurpClient
|
|
223
226
|
return data, status_code, headers
|
224
227
|
end
|
225
228
|
|
229
|
+
# Create an inbox connector sync settings
|
230
|
+
# Configure automatic pull or emails from external inboxes using an interval or schedule
|
231
|
+
# @param id [String]
|
232
|
+
# @param create_connector_sync_settings_options [CreateConnectorSyncSettingsOptions]
|
233
|
+
# @param [Hash] opts the optional parameters
|
234
|
+
# @return [ConnectorSyncSettingsDto]
|
235
|
+
def create_connector_sync_settings(id, create_connector_sync_settings_options, opts = {})
|
236
|
+
data, _status_code, _headers = create_connector_sync_settings_with_http_info(id, create_connector_sync_settings_options, opts)
|
237
|
+
data
|
238
|
+
end
|
239
|
+
|
240
|
+
# Create an inbox connector sync settings
|
241
|
+
# Configure automatic pull or emails from external inboxes using an interval or schedule
|
242
|
+
# @param id [String]
|
243
|
+
# @param create_connector_sync_settings_options [CreateConnectorSyncSettingsOptions]
|
244
|
+
# @param [Hash] opts the optional parameters
|
245
|
+
# @return [Array<(ConnectorSyncSettingsDto, Integer, Hash)>] ConnectorSyncSettingsDto data, response status code and response headers
|
246
|
+
def create_connector_sync_settings_with_http_info(id, create_connector_sync_settings_options, opts = {})
|
247
|
+
if @api_client.config.debugging
|
248
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.create_connector_sync_settings ...'
|
249
|
+
end
|
250
|
+
# verify the required parameter 'id' is set
|
251
|
+
if @api_client.config.client_side_validation && id.nil?
|
252
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.create_connector_sync_settings"
|
253
|
+
end
|
254
|
+
# verify the required parameter 'create_connector_sync_settings_options' is set
|
255
|
+
if @api_client.config.client_side_validation && create_connector_sync_settings_options.nil?
|
256
|
+
fail ArgumentError, "Missing the required parameter 'create_connector_sync_settings_options' when calling ConnectorControllerApi.create_connector_sync_settings"
|
257
|
+
end
|
258
|
+
# resource path
|
259
|
+
local_var_path = '/connectors/{id}/sync-settings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
260
|
+
|
261
|
+
# query parameters
|
262
|
+
query_params = opts[:query_params] || {}
|
263
|
+
|
264
|
+
# header parameters
|
265
|
+
header_params = opts[:header_params] || {}
|
266
|
+
# HTTP header 'Accept' (if needed)
|
267
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
268
|
+
# HTTP header 'Content-Type'
|
269
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
270
|
+
|
271
|
+
# form parameters
|
272
|
+
form_params = opts[:form_params] || {}
|
273
|
+
|
274
|
+
# http body (model)
|
275
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_connector_sync_settings_options)
|
276
|
+
|
277
|
+
# return_type
|
278
|
+
return_type = opts[:return_type] || 'ConnectorSyncSettingsDto'
|
279
|
+
|
280
|
+
# auth_names
|
281
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
282
|
+
|
283
|
+
new_options = opts.merge(
|
284
|
+
:header_params => header_params,
|
285
|
+
:query_params => query_params,
|
286
|
+
:form_params => form_params,
|
287
|
+
:body => post_body,
|
288
|
+
:auth_names => auth_names,
|
289
|
+
:return_type => return_type
|
290
|
+
)
|
291
|
+
|
292
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
293
|
+
if @api_client.config.debugging
|
294
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#create_connector_sync_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
295
|
+
end
|
296
|
+
return data, status_code, headers
|
297
|
+
end
|
298
|
+
|
299
|
+
# Create an inbox connector with options
|
300
|
+
# Sync emails between external mailboxes and MailSlurp inboxes
|
301
|
+
# @param create_connector_with_options [CreateConnectorWithOptions]
|
302
|
+
# @param [Hash] opts the optional parameters
|
303
|
+
# @option opts [String] :inbox_id Optional inbox ID to associate with the connector
|
304
|
+
# @return [ConnectorDto]
|
305
|
+
def create_connector_with_options(create_connector_with_options, opts = {})
|
306
|
+
data, _status_code, _headers = create_connector_with_options_with_http_info(create_connector_with_options, opts)
|
307
|
+
data
|
308
|
+
end
|
309
|
+
|
310
|
+
# Create an inbox connector with options
|
311
|
+
# Sync emails between external mailboxes and MailSlurp inboxes
|
312
|
+
# @param create_connector_with_options [CreateConnectorWithOptions]
|
313
|
+
# @param [Hash] opts the optional parameters
|
314
|
+
# @option opts [String] :inbox_id Optional inbox ID to associate with the connector
|
315
|
+
# @return [Array<(ConnectorDto, Integer, Hash)>] ConnectorDto data, response status code and response headers
|
316
|
+
def create_connector_with_options_with_http_info(create_connector_with_options, opts = {})
|
317
|
+
if @api_client.config.debugging
|
318
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.create_connector_with_options ...'
|
319
|
+
end
|
320
|
+
# verify the required parameter 'create_connector_with_options' is set
|
321
|
+
if @api_client.config.client_side_validation && create_connector_with_options.nil?
|
322
|
+
fail ArgumentError, "Missing the required parameter 'create_connector_with_options' when calling ConnectorControllerApi.create_connector_with_options"
|
323
|
+
end
|
324
|
+
# resource path
|
325
|
+
local_var_path = '/connectors/withOptions'
|
326
|
+
|
327
|
+
# query parameters
|
328
|
+
query_params = opts[:query_params] || {}
|
329
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
330
|
+
|
331
|
+
# header parameters
|
332
|
+
header_params = opts[:header_params] || {}
|
333
|
+
# HTTP header 'Accept' (if needed)
|
334
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
335
|
+
# HTTP header 'Content-Type'
|
336
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
337
|
+
|
338
|
+
# form parameters
|
339
|
+
form_params = opts[:form_params] || {}
|
340
|
+
|
341
|
+
# http body (model)
|
342
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_connector_with_options)
|
343
|
+
|
344
|
+
# return_type
|
345
|
+
return_type = opts[:return_type] || 'ConnectorDto'
|
346
|
+
|
347
|
+
# auth_names
|
348
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
349
|
+
|
350
|
+
new_options = opts.merge(
|
351
|
+
:header_params => header_params,
|
352
|
+
:query_params => query_params,
|
353
|
+
:form_params => form_params,
|
354
|
+
:body => post_body,
|
355
|
+
:auth_names => auth_names,
|
356
|
+
:return_type => return_type
|
357
|
+
)
|
358
|
+
|
359
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
360
|
+
if @api_client.config.debugging
|
361
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#create_connector_with_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
362
|
+
end
|
363
|
+
return data, status_code, headers
|
364
|
+
end
|
365
|
+
|
226
366
|
# Delete all inbox connectors
|
227
367
|
# @param [Hash] opts the optional parameters
|
228
368
|
# @return [nil]
|
@@ -453,45 +593,115 @@ module MailSlurpClient
|
|
453
593
|
return data, status_code, headers
|
454
594
|
end
|
455
595
|
|
456
|
-
#
|
596
|
+
# Create an inbox connector sync settings
|
597
|
+
# Configure automatic pull or emails from external inboxes using an interval or schedule
|
598
|
+
# @param id [String]
|
599
|
+
# @param [Hash] opts the optional parameters
|
600
|
+
# @return [nil]
|
601
|
+
def delete_connector_sync_settings(id, opts = {})
|
602
|
+
delete_connector_sync_settings_with_http_info(id, opts)
|
603
|
+
nil
|
604
|
+
end
|
605
|
+
|
606
|
+
# Create an inbox connector sync settings
|
607
|
+
# Configure automatic pull or emails from external inboxes using an interval or schedule
|
608
|
+
# @param id [String]
|
609
|
+
# @param [Hash] opts the optional parameters
|
610
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
611
|
+
def delete_connector_sync_settings_with_http_info(id, opts = {})
|
612
|
+
if @api_client.config.debugging
|
613
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.delete_connector_sync_settings ...'
|
614
|
+
end
|
615
|
+
# verify the required parameter 'id' is set
|
616
|
+
if @api_client.config.client_side_validation && id.nil?
|
617
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.delete_connector_sync_settings"
|
618
|
+
end
|
619
|
+
# resource path
|
620
|
+
local_var_path = '/connectors/{id}/sync-settings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
621
|
+
|
622
|
+
# query parameters
|
623
|
+
query_params = opts[:query_params] || {}
|
624
|
+
|
625
|
+
# header parameters
|
626
|
+
header_params = opts[:header_params] || {}
|
627
|
+
|
628
|
+
# form parameters
|
629
|
+
form_params = opts[:form_params] || {}
|
630
|
+
|
631
|
+
# http body (model)
|
632
|
+
post_body = opts[:body]
|
633
|
+
|
634
|
+
# return_type
|
635
|
+
return_type = opts[:return_type]
|
636
|
+
|
637
|
+
# auth_names
|
638
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
639
|
+
|
640
|
+
new_options = opts.merge(
|
641
|
+
:header_params => header_params,
|
642
|
+
:query_params => query_params,
|
643
|
+
:form_params => form_params,
|
644
|
+
:body => post_body,
|
645
|
+
:auth_names => auth_names,
|
646
|
+
:return_type => return_type
|
647
|
+
)
|
648
|
+
|
649
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
650
|
+
if @api_client.config.debugging
|
651
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#delete_connector_sync_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
652
|
+
end
|
653
|
+
return data, status_code, headers
|
654
|
+
end
|
655
|
+
|
656
|
+
# Get all inbox connector events
|
457
657
|
# @param [Hash] opts the optional parameters
|
658
|
+
# @option opts [String] :id Optional connector ID
|
458
659
|
# @option opts [Integer] :page Optional page index in connector list pagination (default to 0)
|
459
660
|
# @option opts [Integer] :size Optional page size in connector list pagination (default to 20)
|
460
661
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
461
662
|
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
462
663
|
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
463
|
-
# @
|
464
|
-
|
465
|
-
|
664
|
+
# @option opts [String] :event_type Filter by event type
|
665
|
+
# @return [PageConnectorEvents]
|
666
|
+
def get_all_connector_events(opts = {})
|
667
|
+
data, _status_code, _headers = get_all_connector_events_with_http_info(opts)
|
466
668
|
data
|
467
669
|
end
|
468
670
|
|
469
|
-
# Get all inbox connector
|
671
|
+
# Get all inbox connector events
|
470
672
|
# @param [Hash] opts the optional parameters
|
673
|
+
# @option opts [String] :id Optional connector ID
|
471
674
|
# @option opts [Integer] :page Optional page index in connector list pagination
|
472
675
|
# @option opts [Integer] :size Optional page size in connector list pagination
|
473
676
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
474
677
|
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
475
678
|
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
476
|
-
# @
|
477
|
-
|
679
|
+
# @option opts [String] :event_type Filter by event type
|
680
|
+
# @return [Array<(PageConnectorEvents, Integer, Hash)>] PageConnectorEvents data, response status code and response headers
|
681
|
+
def get_all_connector_events_with_http_info(opts = {})
|
478
682
|
if @api_client.config.debugging
|
479
|
-
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.
|
683
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_all_connector_events ...'
|
480
684
|
end
|
481
685
|
allowable_values = ["ASC", "DESC"]
|
482
686
|
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
483
687
|
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
484
688
|
end
|
689
|
+
allowable_values = ["SEND", "SYNC"]
|
690
|
+
if @api_client.config.client_side_validation && opts[:'event_type'] && !allowable_values.include?(opts[:'event_type'])
|
691
|
+
fail ArgumentError, "invalid value for \"event_type\", must be one of #{allowable_values}"
|
692
|
+
end
|
485
693
|
# resource path
|
486
694
|
local_var_path = '/connectors/events'
|
487
695
|
|
488
696
|
# query parameters
|
489
697
|
query_params = opts[:query_params] || {}
|
698
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
490
699
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
491
700
|
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
492
701
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
493
702
|
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
494
703
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
704
|
+
query_params[:'eventType'] = opts[:'event_type'] if !opts[:'event_type'].nil?
|
495
705
|
|
496
706
|
# header parameters
|
497
707
|
header_params = opts[:header_params] || {}
|
@@ -505,7 +715,7 @@ module MailSlurpClient
|
|
505
715
|
post_body = opts[:body]
|
506
716
|
|
507
717
|
# return_type
|
508
|
-
return_type = opts[:return_type] || '
|
718
|
+
return_type = opts[:return_type] || 'PageConnectorEvents'
|
509
719
|
|
510
720
|
# auth_names
|
511
721
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -521,7 +731,7 @@ module MailSlurpClient
|
|
521
731
|
|
522
732
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
523
733
|
if @api_client.config.debugging
|
524
|
-
@api_client.config.logger.debug "API called: ConnectorControllerApi#
|
734
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_all_connector_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
525
735
|
end
|
526
736
|
return data, status_code, headers
|
527
737
|
end
|
@@ -586,32 +796,35 @@ module MailSlurpClient
|
|
586
796
|
return data, status_code, headers
|
587
797
|
end
|
588
798
|
|
589
|
-
# Get
|
590
|
-
#
|
799
|
+
# Get connector by email address
|
800
|
+
# Find an inbox connector by email address
|
801
|
+
# @param email_address [String] Email address to search for connector by
|
591
802
|
# @param [Hash] opts the optional parameters
|
592
|
-
# @return [
|
593
|
-
def
|
594
|
-
data, _status_code, _headers =
|
803
|
+
# @return [OptionalConnectorDto]
|
804
|
+
def get_connector_by_email_address(email_address, opts = {})
|
805
|
+
data, _status_code, _headers = get_connector_by_email_address_with_http_info(email_address, opts)
|
595
806
|
data
|
596
807
|
end
|
597
808
|
|
598
|
-
# Get
|
599
|
-
#
|
809
|
+
# Get connector by email address
|
810
|
+
# Find an inbox connector by email address
|
811
|
+
# @param email_address [String] Email address to search for connector by
|
600
812
|
# @param [Hash] opts the optional parameters
|
601
|
-
# @return [Array<(
|
602
|
-
def
|
813
|
+
# @return [Array<(OptionalConnectorDto, Integer, Hash)>] OptionalConnectorDto data, response status code and response headers
|
814
|
+
def get_connector_by_email_address_with_http_info(email_address, opts = {})
|
603
815
|
if @api_client.config.debugging
|
604
|
-
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.
|
816
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_connector_by_email_address ...'
|
605
817
|
end
|
606
|
-
# verify the required parameter '
|
607
|
-
if @api_client.config.client_side_validation &&
|
608
|
-
fail ArgumentError, "Missing the required parameter '
|
818
|
+
# verify the required parameter 'email_address' is set
|
819
|
+
if @api_client.config.client_side_validation && email_address.nil?
|
820
|
+
fail ArgumentError, "Missing the required parameter 'email_address' when calling ConnectorControllerApi.get_connector_by_email_address"
|
609
821
|
end
|
610
822
|
# resource path
|
611
|
-
local_var_path = '/connectors/
|
823
|
+
local_var_path = '/connectors/by-email-address'
|
612
824
|
|
613
825
|
# query parameters
|
614
826
|
query_params = opts[:query_params] || {}
|
827
|
+
query_params[:'emailAddress'] = email_address
|
615
828
|
|
616
829
|
# header parameters
|
617
830
|
header_params = opts[:header_params] || {}
|
@@ -625,7 +838,7 @@ module MailSlurpClient
|
|
625
838
|
post_body = opts[:body]
|
626
839
|
|
627
840
|
# return_type
|
628
|
-
return_type = opts[:return_type] || '
|
841
|
+
return_type = opts[:return_type] || 'OptionalConnectorDto'
|
629
842
|
|
630
843
|
# auth_names
|
631
844
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -641,56 +854,40 @@ module MailSlurpClient
|
|
641
854
|
|
642
855
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
643
856
|
if @api_client.config.debugging
|
644
|
-
@api_client.config.logger.debug "API called: ConnectorControllerApi#
|
857
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_connector_by_email_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
645
858
|
end
|
646
859
|
return data, status_code, headers
|
647
860
|
end
|
648
861
|
|
649
|
-
# Get
|
650
|
-
#
|
862
|
+
# Get connector by inbox ID
|
863
|
+
# Find an inbox connector by inbox ID
|
864
|
+
# @param inbox_id [String] Inbox ID to search for connector by
|
651
865
|
# @param [Hash] opts the optional parameters
|
652
|
-
# @
|
653
|
-
|
654
|
-
|
655
|
-
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
656
|
-
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
657
|
-
# @return [PageConnectorSyncEvents]
|
658
|
-
def get_connector_sync_events(id, opts = {})
|
659
|
-
data, _status_code, _headers = get_connector_sync_events_with_http_info(id, opts)
|
866
|
+
# @return [OptionalConnectorDto]
|
867
|
+
def get_connector_by_inbox_id(inbox_id, opts = {})
|
868
|
+
data, _status_code, _headers = get_connector_by_inbox_id_with_http_info(inbox_id, opts)
|
660
869
|
data
|
661
870
|
end
|
662
871
|
|
663
|
-
# Get
|
664
|
-
#
|
872
|
+
# Get connector by inbox ID
|
873
|
+
# Find an inbox connector by inbox ID
|
874
|
+
# @param inbox_id [String] Inbox ID to search for connector by
|
665
875
|
# @param [Hash] opts the optional parameters
|
666
|
-
# @
|
667
|
-
|
668
|
-
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
669
|
-
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
670
|
-
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
671
|
-
# @return [Array<(PageConnectorSyncEvents, Integer, Hash)>] PageConnectorSyncEvents data, response status code and response headers
|
672
|
-
def get_connector_sync_events_with_http_info(id, opts = {})
|
876
|
+
# @return [Array<(OptionalConnectorDto, Integer, Hash)>] OptionalConnectorDto data, response status code and response headers
|
877
|
+
def get_connector_by_inbox_id_with_http_info(inbox_id, opts = {})
|
673
878
|
if @api_client.config.debugging
|
674
|
-
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.
|
675
|
-
end
|
676
|
-
# verify the required parameter 'id' is set
|
677
|
-
if @api_client.config.client_side_validation && id.nil?
|
678
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.get_connector_sync_events"
|
879
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_connector_by_inbox_id ...'
|
679
880
|
end
|
680
|
-
|
681
|
-
if @api_client.config.client_side_validation &&
|
682
|
-
fail ArgumentError, "
|
881
|
+
# verify the required parameter 'inbox_id' is set
|
882
|
+
if @api_client.config.client_side_validation && inbox_id.nil?
|
883
|
+
fail ArgumentError, "Missing the required parameter 'inbox_id' when calling ConnectorControllerApi.get_connector_by_inbox_id"
|
683
884
|
end
|
684
885
|
# resource path
|
685
|
-
local_var_path = '/connectors/
|
886
|
+
local_var_path = '/connectors/by-inbox-id'
|
686
887
|
|
687
888
|
# query parameters
|
688
889
|
query_params = opts[:query_params] || {}
|
689
|
-
query_params[:'
|
690
|
-
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
691
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
692
|
-
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
693
|
-
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
890
|
+
query_params[:'inboxId'] = inbox_id
|
694
891
|
|
695
892
|
# header parameters
|
696
893
|
header_params = opts[:header_params] || {}
|
@@ -704,7 +901,7 @@ module MailSlurpClient
|
|
704
901
|
post_body = opts[:body]
|
705
902
|
|
706
903
|
# return_type
|
707
|
-
return_type = opts[:return_type] || '
|
904
|
+
return_type = opts[:return_type] || 'OptionalConnectorDto'
|
708
905
|
|
709
906
|
# auth_names
|
710
907
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -720,52 +917,40 @@ module MailSlurpClient
|
|
720
917
|
|
721
918
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
722
919
|
if @api_client.config.debugging
|
723
|
-
@api_client.config.logger.debug "API called: ConnectorControllerApi#
|
920
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_connector_by_inbox_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
724
921
|
end
|
725
922
|
return data, status_code, headers
|
726
923
|
end
|
727
924
|
|
728
|
-
# Get
|
729
|
-
#
|
925
|
+
# Get connector by name
|
926
|
+
# Find an inbox connector by name
|
927
|
+
# @param name [String] Name to search for connector by
|
730
928
|
# @param [Hash] opts the optional parameters
|
731
|
-
# @
|
732
|
-
|
733
|
-
|
734
|
-
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
735
|
-
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
736
|
-
# @return [PageConnector]
|
737
|
-
def get_connectors(opts = {})
|
738
|
-
data, _status_code, _headers = get_connectors_with_http_info(opts)
|
929
|
+
# @return [OptionalConnectorDto]
|
930
|
+
def get_connector_by_name(name, opts = {})
|
931
|
+
data, _status_code, _headers = get_connector_by_name_with_http_info(name, opts)
|
739
932
|
data
|
740
933
|
end
|
741
934
|
|
742
|
-
# Get
|
743
|
-
#
|
935
|
+
# Get connector by name
|
936
|
+
# Find an inbox connector by name
|
937
|
+
# @param name [String] Name to search for connector by
|
744
938
|
# @param [Hash] opts the optional parameters
|
745
|
-
# @
|
746
|
-
|
747
|
-
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
748
|
-
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
749
|
-
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
750
|
-
# @return [Array<(PageConnector, Integer, Hash)>] PageConnector data, response status code and response headers
|
751
|
-
def get_connectors_with_http_info(opts = {})
|
939
|
+
# @return [Array<(OptionalConnectorDto, Integer, Hash)>] OptionalConnectorDto data, response status code and response headers
|
940
|
+
def get_connector_by_name_with_http_info(name, opts = {})
|
752
941
|
if @api_client.config.debugging
|
753
|
-
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.
|
942
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_connector_by_name ...'
|
754
943
|
end
|
755
|
-
|
756
|
-
if @api_client.config.client_side_validation &&
|
757
|
-
fail ArgumentError, "
|
944
|
+
# verify the required parameter 'name' is set
|
945
|
+
if @api_client.config.client_side_validation && name.nil?
|
946
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ConnectorControllerApi.get_connector_by_name"
|
758
947
|
end
|
759
948
|
# resource path
|
760
|
-
local_var_path = '/connectors'
|
949
|
+
local_var_path = '/connectors/by-name'
|
761
950
|
|
762
951
|
# query parameters
|
763
952
|
query_params = opts[:query_params] || {}
|
764
|
-
query_params[:'
|
765
|
-
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
766
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
767
|
-
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
768
|
-
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
953
|
+
query_params[:'name'] = name
|
769
954
|
|
770
955
|
# header parameters
|
771
956
|
header_params = opts[:header_params] || {}
|
@@ -779,7 +964,7 @@ module MailSlurpClient
|
|
779
964
|
post_body = opts[:body]
|
780
965
|
|
781
966
|
# return_type
|
782
|
-
return_type = opts[:return_type] || '
|
967
|
+
return_type = opts[:return_type] || 'OptionalConnectorDto'
|
783
968
|
|
784
969
|
# auth_names
|
785
970
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -795,34 +980,34 @@ module MailSlurpClient
|
|
795
980
|
|
796
981
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
797
982
|
if @api_client.config.debugging
|
798
|
-
@api_client.config.logger.debug "API called: ConnectorControllerApi#
|
983
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_connector_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
799
984
|
end
|
800
985
|
return data, status_code, headers
|
801
986
|
end
|
802
987
|
|
803
|
-
#
|
988
|
+
# Get an inbox connector event
|
804
989
|
# @param id [String]
|
805
990
|
# @param [Hash] opts the optional parameters
|
806
|
-
# @return [
|
807
|
-
def
|
808
|
-
data, _status_code, _headers =
|
991
|
+
# @return [ConnectorEventDto]
|
992
|
+
def get_connector_event(id, opts = {})
|
993
|
+
data, _status_code, _headers = get_connector_event_with_http_info(id, opts)
|
809
994
|
data
|
810
995
|
end
|
811
996
|
|
812
|
-
#
|
997
|
+
# Get an inbox connector event
|
813
998
|
# @param id [String]
|
814
999
|
# @param [Hash] opts the optional parameters
|
815
|
-
# @return [Array<(
|
816
|
-
def
|
1000
|
+
# @return [Array<(ConnectorEventDto, Integer, Hash)>] ConnectorEventDto data, response status code and response headers
|
1001
|
+
def get_connector_event_with_http_info(id, opts = {})
|
817
1002
|
if @api_client.config.debugging
|
818
|
-
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.
|
1003
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_connector_event ...'
|
819
1004
|
end
|
820
1005
|
# verify the required parameter 'id' is set
|
821
1006
|
if @api_client.config.client_side_validation && id.nil?
|
822
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.
|
1007
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.get_connector_event"
|
823
1008
|
end
|
824
1009
|
# resource path
|
825
|
-
local_var_path = '/connectors/{id}
|
1010
|
+
local_var_path = '/connectors/events/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
826
1011
|
|
827
1012
|
# query parameters
|
828
1013
|
query_params = opts[:query_params] || {}
|
@@ -839,7 +1024,7 @@ module MailSlurpClient
|
|
839
1024
|
post_body = opts[:body]
|
840
1025
|
|
841
1026
|
# return_type
|
842
|
-
return_type = opts[:return_type] || '
|
1027
|
+
return_type = opts[:return_type] || 'ConnectorEventDto'
|
843
1028
|
|
844
1029
|
# auth_names
|
845
1030
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -853,46 +1038,849 @@ module MailSlurpClient
|
|
853
1038
|
:return_type => return_type
|
854
1039
|
)
|
855
1040
|
|
856
|
-
data, status_code, headers = @api_client.call_api(:
|
1041
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
857
1042
|
if @api_client.config.debugging
|
858
|
-
@api_client.config.logger.debug "API called: ConnectorControllerApi#
|
1043
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_connector_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
859
1044
|
end
|
860
1045
|
return data, status_code, headers
|
861
1046
|
end
|
862
1047
|
|
863
|
-
#
|
1048
|
+
# Get an inbox connector events
|
864
1049
|
# @param id [String]
|
865
|
-
# @param create_connector_options [CreateConnectorOptions]
|
866
1050
|
# @param [Hash] opts the optional parameters
|
867
|
-
# @
|
868
|
-
|
869
|
-
|
1051
|
+
# @option opts [Integer] :page Optional page index in connector list pagination (default to 0)
|
1052
|
+
# @option opts [Integer] :size Optional page size in connector list pagination (default to 20)
|
1053
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
1054
|
+
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
1055
|
+
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
1056
|
+
# @option opts [String] :event_type Filter by event type
|
1057
|
+
# @return [PageConnectorEvents]
|
1058
|
+
def get_connector_events(id, opts = {})
|
1059
|
+
data, _status_code, _headers = get_connector_events_with_http_info(id, opts)
|
870
1060
|
data
|
871
1061
|
end
|
872
1062
|
|
873
|
-
#
|
1063
|
+
# Get an inbox connector events
|
874
1064
|
# @param id [String]
|
875
|
-
# @param create_connector_options [CreateConnectorOptions]
|
876
1065
|
# @param [Hash] opts the optional parameters
|
877
|
-
# @
|
878
|
-
|
1066
|
+
# @option opts [Integer] :page Optional page index in connector list pagination
|
1067
|
+
# @option opts [Integer] :size Optional page size in connector list pagination
|
1068
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
1069
|
+
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
1070
|
+
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
1071
|
+
# @option opts [String] :event_type Filter by event type
|
1072
|
+
# @return [Array<(PageConnectorEvents, Integer, Hash)>] PageConnectorEvents data, response status code and response headers
|
1073
|
+
def get_connector_events_with_http_info(id, opts = {})
|
879
1074
|
if @api_client.config.debugging
|
880
|
-
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.
|
1075
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_connector_events ...'
|
881
1076
|
end
|
882
1077
|
# verify the required parameter 'id' is set
|
883
1078
|
if @api_client.config.client_side_validation && id.nil?
|
884
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.
|
1079
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.get_connector_events"
|
885
1080
|
end
|
886
|
-
|
887
|
-
if @api_client.config.client_side_validation &&
|
888
|
-
fail ArgumentError, "
|
1081
|
+
allowable_values = ["ASC", "DESC"]
|
1082
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
1083
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
1084
|
+
end
|
1085
|
+
allowable_values = ["SEND", "SYNC"]
|
1086
|
+
if @api_client.config.client_side_validation && opts[:'event_type'] && !allowable_values.include?(opts[:'event_type'])
|
1087
|
+
fail ArgumentError, "invalid value for \"event_type\", must be one of #{allowable_values}"
|
889
1088
|
end
|
890
1089
|
# resource path
|
891
|
-
local_var_path = '/connectors/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1090
|
+
local_var_path = '/connectors/{id}/events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
892
1091
|
|
893
1092
|
# query parameters
|
894
1093
|
query_params = opts[:query_params] || {}
|
895
|
-
|
1094
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1095
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
1096
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
1097
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
1098
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
1099
|
+
query_params[:'eventType'] = opts[:'event_type'] if !opts[:'event_type'].nil?
|
1100
|
+
|
1101
|
+
# header parameters
|
1102
|
+
header_params = opts[:header_params] || {}
|
1103
|
+
# HTTP header 'Accept' (if needed)
|
1104
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1105
|
+
|
1106
|
+
# form parameters
|
1107
|
+
form_params = opts[:form_params] || {}
|
1108
|
+
|
1109
|
+
# http body (model)
|
1110
|
+
post_body = opts[:body]
|
1111
|
+
|
1112
|
+
# return_type
|
1113
|
+
return_type = opts[:return_type] || 'PageConnectorEvents'
|
1114
|
+
|
1115
|
+
# auth_names
|
1116
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1117
|
+
|
1118
|
+
new_options = opts.merge(
|
1119
|
+
:header_params => header_params,
|
1120
|
+
:query_params => query_params,
|
1121
|
+
:form_params => form_params,
|
1122
|
+
:body => post_body,
|
1123
|
+
:auth_names => auth_names,
|
1124
|
+
:return_type => return_type
|
1125
|
+
)
|
1126
|
+
|
1127
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1128
|
+
if @api_client.config.debugging
|
1129
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_connector_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1130
|
+
end
|
1131
|
+
return data, status_code, headers
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
# Get an inbox connector IMAP connection
|
1135
|
+
# Get IMAP connection for external inbox
|
1136
|
+
# @param id [String]
|
1137
|
+
# @param [Hash] opts the optional parameters
|
1138
|
+
# @return [OptionalConnectorImapConnectionDto]
|
1139
|
+
def get_connector_imap_connection(id, opts = {})
|
1140
|
+
data, _status_code, _headers = get_connector_imap_connection_with_http_info(id, opts)
|
1141
|
+
data
|
1142
|
+
end
|
1143
|
+
|
1144
|
+
# Get an inbox connector IMAP connection
|
1145
|
+
# Get IMAP connection for external inbox
|
1146
|
+
# @param id [String]
|
1147
|
+
# @param [Hash] opts the optional parameters
|
1148
|
+
# @return [Array<(OptionalConnectorImapConnectionDto, Integer, Hash)>] OptionalConnectorImapConnectionDto data, response status code and response headers
|
1149
|
+
def get_connector_imap_connection_with_http_info(id, opts = {})
|
1150
|
+
if @api_client.config.debugging
|
1151
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_connector_imap_connection ...'
|
1152
|
+
end
|
1153
|
+
# verify the required parameter 'id' is set
|
1154
|
+
if @api_client.config.client_side_validation && id.nil?
|
1155
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.get_connector_imap_connection"
|
1156
|
+
end
|
1157
|
+
# resource path
|
1158
|
+
local_var_path = '/connectors/{id}/imap'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1159
|
+
|
1160
|
+
# query parameters
|
1161
|
+
query_params = opts[:query_params] || {}
|
1162
|
+
|
1163
|
+
# header parameters
|
1164
|
+
header_params = opts[:header_params] || {}
|
1165
|
+
# HTTP header 'Accept' (if needed)
|
1166
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1167
|
+
|
1168
|
+
# form parameters
|
1169
|
+
form_params = opts[:form_params] || {}
|
1170
|
+
|
1171
|
+
# http body (model)
|
1172
|
+
post_body = opts[:body]
|
1173
|
+
|
1174
|
+
# return_type
|
1175
|
+
return_type = opts[:return_type] || 'OptionalConnectorImapConnectionDto'
|
1176
|
+
|
1177
|
+
# auth_names
|
1178
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1179
|
+
|
1180
|
+
new_options = opts.merge(
|
1181
|
+
:header_params => header_params,
|
1182
|
+
:query_params => query_params,
|
1183
|
+
:form_params => form_params,
|
1184
|
+
:body => post_body,
|
1185
|
+
:auth_names => auth_names,
|
1186
|
+
:return_type => return_type
|
1187
|
+
)
|
1188
|
+
|
1189
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1190
|
+
if @api_client.config.debugging
|
1191
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_connector_imap_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1192
|
+
end
|
1193
|
+
return data, status_code, headers
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
# Get SMTP and IMAP connection settings for common mail providers
|
1197
|
+
# Get common mail provider SMTP and IMAP connection settings
|
1198
|
+
# @param [Hash] opts the optional parameters
|
1199
|
+
# @return [ConnectorProviderSettingsDto]
|
1200
|
+
def get_connector_provider_settings(opts = {})
|
1201
|
+
data, _status_code, _headers = get_connector_provider_settings_with_http_info(opts)
|
1202
|
+
data
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
# Get SMTP and IMAP connection settings for common mail providers
|
1206
|
+
# Get common mail provider SMTP and IMAP connection settings
|
1207
|
+
# @param [Hash] opts the optional parameters
|
1208
|
+
# @return [Array<(ConnectorProviderSettingsDto, Integer, Hash)>] ConnectorProviderSettingsDto data, response status code and response headers
|
1209
|
+
def get_connector_provider_settings_with_http_info(opts = {})
|
1210
|
+
if @api_client.config.debugging
|
1211
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_connector_provider_settings ...'
|
1212
|
+
end
|
1213
|
+
# resource path
|
1214
|
+
local_var_path = '/connectors/provider-settings'
|
1215
|
+
|
1216
|
+
# query parameters
|
1217
|
+
query_params = opts[:query_params] || {}
|
1218
|
+
|
1219
|
+
# header parameters
|
1220
|
+
header_params = opts[:header_params] || {}
|
1221
|
+
# HTTP header 'Accept' (if needed)
|
1222
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1223
|
+
|
1224
|
+
# form parameters
|
1225
|
+
form_params = opts[:form_params] || {}
|
1226
|
+
|
1227
|
+
# http body (model)
|
1228
|
+
post_body = opts[:body]
|
1229
|
+
|
1230
|
+
# return_type
|
1231
|
+
return_type = opts[:return_type] || 'ConnectorProviderSettingsDto'
|
1232
|
+
|
1233
|
+
# auth_names
|
1234
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1235
|
+
|
1236
|
+
new_options = opts.merge(
|
1237
|
+
:header_params => header_params,
|
1238
|
+
:query_params => query_params,
|
1239
|
+
:form_params => form_params,
|
1240
|
+
:body => post_body,
|
1241
|
+
:auth_names => auth_names,
|
1242
|
+
:return_type => return_type
|
1243
|
+
)
|
1244
|
+
|
1245
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1246
|
+
if @api_client.config.debugging
|
1247
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_connector_provider_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1248
|
+
end
|
1249
|
+
return data, status_code, headers
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
# Get an inbox connector SMTP connection
|
1253
|
+
# Get SMTP connection for external inbox
|
1254
|
+
# @param id [String]
|
1255
|
+
# @param [Hash] opts the optional parameters
|
1256
|
+
# @return [OptionalConnectorSmtpConnectionDto]
|
1257
|
+
def get_connector_smtp_connection(id, opts = {})
|
1258
|
+
data, _status_code, _headers = get_connector_smtp_connection_with_http_info(id, opts)
|
1259
|
+
data
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
# Get an inbox connector SMTP connection
|
1263
|
+
# Get SMTP connection for external inbox
|
1264
|
+
# @param id [String]
|
1265
|
+
# @param [Hash] opts the optional parameters
|
1266
|
+
# @return [Array<(OptionalConnectorSmtpConnectionDto, Integer, Hash)>] OptionalConnectorSmtpConnectionDto data, response status code and response headers
|
1267
|
+
def get_connector_smtp_connection_with_http_info(id, opts = {})
|
1268
|
+
if @api_client.config.debugging
|
1269
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_connector_smtp_connection ...'
|
1270
|
+
end
|
1271
|
+
# verify the required parameter 'id' is set
|
1272
|
+
if @api_client.config.client_side_validation && id.nil?
|
1273
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.get_connector_smtp_connection"
|
1274
|
+
end
|
1275
|
+
# resource path
|
1276
|
+
local_var_path = '/connectors/{id}/smtp'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1277
|
+
|
1278
|
+
# query parameters
|
1279
|
+
query_params = opts[:query_params] || {}
|
1280
|
+
|
1281
|
+
# header parameters
|
1282
|
+
header_params = opts[:header_params] || {}
|
1283
|
+
# HTTP header 'Accept' (if needed)
|
1284
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1285
|
+
|
1286
|
+
# form parameters
|
1287
|
+
form_params = opts[:form_params] || {}
|
1288
|
+
|
1289
|
+
# http body (model)
|
1290
|
+
post_body = opts[:body]
|
1291
|
+
|
1292
|
+
# return_type
|
1293
|
+
return_type = opts[:return_type] || 'OptionalConnectorSmtpConnectionDto'
|
1294
|
+
|
1295
|
+
# auth_names
|
1296
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1297
|
+
|
1298
|
+
new_options = opts.merge(
|
1299
|
+
:header_params => header_params,
|
1300
|
+
:query_params => query_params,
|
1301
|
+
:form_params => form_params,
|
1302
|
+
:body => post_body,
|
1303
|
+
:auth_names => auth_names,
|
1304
|
+
:return_type => return_type
|
1305
|
+
)
|
1306
|
+
|
1307
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1308
|
+
if @api_client.config.debugging
|
1309
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_connector_smtp_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1310
|
+
end
|
1311
|
+
return data, status_code, headers
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
# Get an inbox connector sync settings
|
1315
|
+
# Get sync settings for connection with external inbox
|
1316
|
+
# @param id [String]
|
1317
|
+
# @param [Hash] opts the optional parameters
|
1318
|
+
# @return [OptionalConnectorSyncSettingsDto]
|
1319
|
+
def get_connector_sync_settings(id, opts = {})
|
1320
|
+
data, _status_code, _headers = get_connector_sync_settings_with_http_info(id, opts)
|
1321
|
+
data
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
# Get an inbox connector sync settings
|
1325
|
+
# Get sync settings for connection with external inbox
|
1326
|
+
# @param id [String]
|
1327
|
+
# @param [Hash] opts the optional parameters
|
1328
|
+
# @return [Array<(OptionalConnectorSyncSettingsDto, Integer, Hash)>] OptionalConnectorSyncSettingsDto data, response status code and response headers
|
1329
|
+
def get_connector_sync_settings_with_http_info(id, opts = {})
|
1330
|
+
if @api_client.config.debugging
|
1331
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_connector_sync_settings ...'
|
1332
|
+
end
|
1333
|
+
# verify the required parameter 'id' is set
|
1334
|
+
if @api_client.config.client_side_validation && id.nil?
|
1335
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.get_connector_sync_settings"
|
1336
|
+
end
|
1337
|
+
# resource path
|
1338
|
+
local_var_path = '/connectors/{id}/sync-settings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1339
|
+
|
1340
|
+
# query parameters
|
1341
|
+
query_params = opts[:query_params] || {}
|
1342
|
+
|
1343
|
+
# header parameters
|
1344
|
+
header_params = opts[:header_params] || {}
|
1345
|
+
# HTTP header 'Accept' (if needed)
|
1346
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1347
|
+
|
1348
|
+
# form parameters
|
1349
|
+
form_params = opts[:form_params] || {}
|
1350
|
+
|
1351
|
+
# http body (model)
|
1352
|
+
post_body = opts[:body]
|
1353
|
+
|
1354
|
+
# return_type
|
1355
|
+
return_type = opts[:return_type] || 'OptionalConnectorSyncSettingsDto'
|
1356
|
+
|
1357
|
+
# auth_names
|
1358
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1359
|
+
|
1360
|
+
new_options = opts.merge(
|
1361
|
+
:header_params => header_params,
|
1362
|
+
:query_params => query_params,
|
1363
|
+
:form_params => form_params,
|
1364
|
+
:body => post_body,
|
1365
|
+
:auth_names => auth_names,
|
1366
|
+
:return_type => return_type
|
1367
|
+
)
|
1368
|
+
|
1369
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1370
|
+
if @api_client.config.debugging
|
1371
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_connector_sync_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1372
|
+
end
|
1373
|
+
return data, status_code, headers
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
# Get inbox connectors
|
1377
|
+
# List inbox connectors that sync external emails to MailSlurp inboxes
|
1378
|
+
# @param [Hash] opts the optional parameters
|
1379
|
+
# @option opts [Integer] :page Optional page index in connector list pagination (default to 0)
|
1380
|
+
# @option opts [Integer] :size Optional page size in connector list pagination (default to 20)
|
1381
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
1382
|
+
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
1383
|
+
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
1384
|
+
# @return [PageConnector]
|
1385
|
+
def get_connectors(opts = {})
|
1386
|
+
data, _status_code, _headers = get_connectors_with_http_info(opts)
|
1387
|
+
data
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
# Get inbox connectors
|
1391
|
+
# List inbox connectors that sync external emails to MailSlurp inboxes
|
1392
|
+
# @param [Hash] opts the optional parameters
|
1393
|
+
# @option opts [Integer] :page Optional page index in connector list pagination
|
1394
|
+
# @option opts [Integer] :size Optional page size in connector list pagination
|
1395
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
1396
|
+
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
1397
|
+
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
1398
|
+
# @return [Array<(PageConnector, Integer, Hash)>] PageConnector data, response status code and response headers
|
1399
|
+
def get_connectors_with_http_info(opts = {})
|
1400
|
+
if @api_client.config.debugging
|
1401
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.get_connectors ...'
|
1402
|
+
end
|
1403
|
+
allowable_values = ["ASC", "DESC"]
|
1404
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
1405
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
1406
|
+
end
|
1407
|
+
# resource path
|
1408
|
+
local_var_path = '/connectors'
|
1409
|
+
|
1410
|
+
# query parameters
|
1411
|
+
query_params = opts[:query_params] || {}
|
1412
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1413
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
1414
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
1415
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
1416
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
1417
|
+
|
1418
|
+
# header parameters
|
1419
|
+
header_params = opts[:header_params] || {}
|
1420
|
+
# HTTP header 'Accept' (if needed)
|
1421
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1422
|
+
|
1423
|
+
# form parameters
|
1424
|
+
form_params = opts[:form_params] || {}
|
1425
|
+
|
1426
|
+
# http body (model)
|
1427
|
+
post_body = opts[:body]
|
1428
|
+
|
1429
|
+
# return_type
|
1430
|
+
return_type = opts[:return_type] || 'PageConnector'
|
1431
|
+
|
1432
|
+
# auth_names
|
1433
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1434
|
+
|
1435
|
+
new_options = opts.merge(
|
1436
|
+
:header_params => header_params,
|
1437
|
+
:query_params => query_params,
|
1438
|
+
:form_params => form_params,
|
1439
|
+
:body => post_body,
|
1440
|
+
:auth_names => auth_names,
|
1441
|
+
:return_type => return_type
|
1442
|
+
)
|
1443
|
+
|
1444
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1445
|
+
if @api_client.config.debugging
|
1446
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#get_connectors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1447
|
+
end
|
1448
|
+
return data, status_code, headers
|
1449
|
+
end
|
1450
|
+
|
1451
|
+
# Send from an inbox connector
|
1452
|
+
# @param id [String]
|
1453
|
+
# @param send_email_options [SendEmailOptions]
|
1454
|
+
# @param [Hash] opts the optional parameters
|
1455
|
+
# @option opts [Boolean] :use_fallback
|
1456
|
+
# @return [SentEmailDto]
|
1457
|
+
def send_email_from_connector(id, send_email_options, opts = {})
|
1458
|
+
data, _status_code, _headers = send_email_from_connector_with_http_info(id, send_email_options, opts)
|
1459
|
+
data
|
1460
|
+
end
|
1461
|
+
|
1462
|
+
# Send from an inbox connector
|
1463
|
+
# @param id [String]
|
1464
|
+
# @param send_email_options [SendEmailOptions]
|
1465
|
+
# @param [Hash] opts the optional parameters
|
1466
|
+
# @option opts [Boolean] :use_fallback
|
1467
|
+
# @return [Array<(SentEmailDto, Integer, Hash)>] SentEmailDto data, response status code and response headers
|
1468
|
+
def send_email_from_connector_with_http_info(id, send_email_options, opts = {})
|
1469
|
+
if @api_client.config.debugging
|
1470
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.send_email_from_connector ...'
|
1471
|
+
end
|
1472
|
+
# verify the required parameter 'id' is set
|
1473
|
+
if @api_client.config.client_side_validation && id.nil?
|
1474
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.send_email_from_connector"
|
1475
|
+
end
|
1476
|
+
# verify the required parameter 'send_email_options' is set
|
1477
|
+
if @api_client.config.client_side_validation && send_email_options.nil?
|
1478
|
+
fail ArgumentError, "Missing the required parameter 'send_email_options' when calling ConnectorControllerApi.send_email_from_connector"
|
1479
|
+
end
|
1480
|
+
# resource path
|
1481
|
+
local_var_path = '/connectors/{id}/send'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1482
|
+
|
1483
|
+
# query parameters
|
1484
|
+
query_params = opts[:query_params] || {}
|
1485
|
+
query_params[:'useFallback'] = opts[:'use_fallback'] if !opts[:'use_fallback'].nil?
|
1486
|
+
|
1487
|
+
# header parameters
|
1488
|
+
header_params = opts[:header_params] || {}
|
1489
|
+
# HTTP header 'Accept' (if needed)
|
1490
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1491
|
+
# HTTP header 'Content-Type'
|
1492
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1493
|
+
|
1494
|
+
# form parameters
|
1495
|
+
form_params = opts[:form_params] || {}
|
1496
|
+
|
1497
|
+
# http body (model)
|
1498
|
+
post_body = opts[:body] || @api_client.object_to_http_body(send_email_options)
|
1499
|
+
|
1500
|
+
# return_type
|
1501
|
+
return_type = opts[:return_type] || 'SentEmailDto'
|
1502
|
+
|
1503
|
+
# auth_names
|
1504
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1505
|
+
|
1506
|
+
new_options = opts.merge(
|
1507
|
+
:header_params => header_params,
|
1508
|
+
:query_params => query_params,
|
1509
|
+
:form_params => form_params,
|
1510
|
+
:body => post_body,
|
1511
|
+
:auth_names => auth_names,
|
1512
|
+
:return_type => return_type
|
1513
|
+
)
|
1514
|
+
|
1515
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1516
|
+
if @api_client.config.debugging
|
1517
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#send_email_from_connector\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1518
|
+
end
|
1519
|
+
return data, status_code, headers
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
# Sync an inbox connector
|
1523
|
+
# @param id [String]
|
1524
|
+
# @param [Hash] opts the optional parameters
|
1525
|
+
# @option opts [DateTime] :since Date to request emails since
|
1526
|
+
# @option opts [String] :folder Which folder to sync emails with
|
1527
|
+
# @option opts [Boolean] :logging Enable or disable logging for the sync operation
|
1528
|
+
# @return [ConnectorSyncRequestResult]
|
1529
|
+
def sync_connector(id, opts = {})
|
1530
|
+
data, _status_code, _headers = sync_connector_with_http_info(id, opts)
|
1531
|
+
data
|
1532
|
+
end
|
1533
|
+
|
1534
|
+
# Sync an inbox connector
|
1535
|
+
# @param id [String]
|
1536
|
+
# @param [Hash] opts the optional parameters
|
1537
|
+
# @option opts [DateTime] :since Date to request emails since
|
1538
|
+
# @option opts [String] :folder Which folder to sync emails with
|
1539
|
+
# @option opts [Boolean] :logging Enable or disable logging for the sync operation
|
1540
|
+
# @return [Array<(ConnectorSyncRequestResult, Integer, Hash)>] ConnectorSyncRequestResult data, response status code and response headers
|
1541
|
+
def sync_connector_with_http_info(id, opts = {})
|
1542
|
+
if @api_client.config.debugging
|
1543
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.sync_connector ...'
|
1544
|
+
end
|
1545
|
+
# verify the required parameter 'id' is set
|
1546
|
+
if @api_client.config.client_side_validation && id.nil?
|
1547
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.sync_connector"
|
1548
|
+
end
|
1549
|
+
# resource path
|
1550
|
+
local_var_path = '/connectors/{id}/sync'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1551
|
+
|
1552
|
+
# query parameters
|
1553
|
+
query_params = opts[:query_params] || {}
|
1554
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
1555
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
1556
|
+
query_params[:'logging'] = opts[:'logging'] if !opts[:'logging'].nil?
|
1557
|
+
|
1558
|
+
# header parameters
|
1559
|
+
header_params = opts[:header_params] || {}
|
1560
|
+
# HTTP header 'Accept' (if needed)
|
1561
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1562
|
+
|
1563
|
+
# form parameters
|
1564
|
+
form_params = opts[:form_params] || {}
|
1565
|
+
|
1566
|
+
# http body (model)
|
1567
|
+
post_body = opts[:body]
|
1568
|
+
|
1569
|
+
# return_type
|
1570
|
+
return_type = opts[:return_type] || 'ConnectorSyncRequestResult'
|
1571
|
+
|
1572
|
+
# auth_names
|
1573
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1574
|
+
|
1575
|
+
new_options = opts.merge(
|
1576
|
+
:header_params => header_params,
|
1577
|
+
:query_params => query_params,
|
1578
|
+
:form_params => form_params,
|
1579
|
+
:body => post_body,
|
1580
|
+
:auth_names => auth_names,
|
1581
|
+
:return_type => return_type
|
1582
|
+
)
|
1583
|
+
|
1584
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1585
|
+
if @api_client.config.debugging
|
1586
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#sync_connector\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1587
|
+
end
|
1588
|
+
return data, status_code, headers
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
# Test an inbox connector IMAP connection
|
1592
|
+
# Test the IMAP connection for a connector
|
1593
|
+
# @param id [String]
|
1594
|
+
# @param [Hash] opts the optional parameters
|
1595
|
+
# @option opts [CreateConnectorImapConnectionOptions] :create_connector_imap_connection_options
|
1596
|
+
# @return [ConnectorImapConnectionTestResult]
|
1597
|
+
def test_connector_imap_connection(id, opts = {})
|
1598
|
+
data, _status_code, _headers = test_connector_imap_connection_with_http_info(id, opts)
|
1599
|
+
data
|
1600
|
+
end
|
1601
|
+
|
1602
|
+
# Test an inbox connector IMAP connection
|
1603
|
+
# Test the IMAP connection for a connector
|
1604
|
+
# @param id [String]
|
1605
|
+
# @param [Hash] opts the optional parameters
|
1606
|
+
# @option opts [CreateConnectorImapConnectionOptions] :create_connector_imap_connection_options
|
1607
|
+
# @return [Array<(ConnectorImapConnectionTestResult, Integer, Hash)>] ConnectorImapConnectionTestResult data, response status code and response headers
|
1608
|
+
def test_connector_imap_connection_with_http_info(id, opts = {})
|
1609
|
+
if @api_client.config.debugging
|
1610
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.test_connector_imap_connection ...'
|
1611
|
+
end
|
1612
|
+
# verify the required parameter 'id' is set
|
1613
|
+
if @api_client.config.client_side_validation && id.nil?
|
1614
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.test_connector_imap_connection"
|
1615
|
+
end
|
1616
|
+
# resource path
|
1617
|
+
local_var_path = '/connectors/{id}/imap/test'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1618
|
+
|
1619
|
+
# query parameters
|
1620
|
+
query_params = opts[:query_params] || {}
|
1621
|
+
|
1622
|
+
# header parameters
|
1623
|
+
header_params = opts[:header_params] || {}
|
1624
|
+
# HTTP header 'Accept' (if needed)
|
1625
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1626
|
+
# HTTP header 'Content-Type'
|
1627
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1628
|
+
|
1629
|
+
# form parameters
|
1630
|
+
form_params = opts[:form_params] || {}
|
1631
|
+
|
1632
|
+
# http body (model)
|
1633
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'create_connector_imap_connection_options'])
|
1634
|
+
|
1635
|
+
# return_type
|
1636
|
+
return_type = opts[:return_type] || 'ConnectorImapConnectionTestResult'
|
1637
|
+
|
1638
|
+
# auth_names
|
1639
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1640
|
+
|
1641
|
+
new_options = opts.merge(
|
1642
|
+
:header_params => header_params,
|
1643
|
+
:query_params => query_params,
|
1644
|
+
:form_params => form_params,
|
1645
|
+
:body => post_body,
|
1646
|
+
:auth_names => auth_names,
|
1647
|
+
:return_type => return_type
|
1648
|
+
)
|
1649
|
+
|
1650
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1651
|
+
if @api_client.config.debugging
|
1652
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#test_connector_imap_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1653
|
+
end
|
1654
|
+
return data, status_code, headers
|
1655
|
+
end
|
1656
|
+
|
1657
|
+
# Test an inbox connector IMAP connection options
|
1658
|
+
# Test the IMAP connection options for a connector
|
1659
|
+
# @param create_connector_imap_connection_options [CreateConnectorImapConnectionOptions]
|
1660
|
+
# @param [Hash] opts the optional parameters
|
1661
|
+
# @return [ConnectorImapConnectionTestResult]
|
1662
|
+
def test_connector_imap_connection_options(create_connector_imap_connection_options, opts = {})
|
1663
|
+
data, _status_code, _headers = test_connector_imap_connection_options_with_http_info(create_connector_imap_connection_options, opts)
|
1664
|
+
data
|
1665
|
+
end
|
1666
|
+
|
1667
|
+
# Test an inbox connector IMAP connection options
|
1668
|
+
# Test the IMAP connection options for a connector
|
1669
|
+
# @param create_connector_imap_connection_options [CreateConnectorImapConnectionOptions]
|
1670
|
+
# @param [Hash] opts the optional parameters
|
1671
|
+
# @return [Array<(ConnectorImapConnectionTestResult, Integer, Hash)>] ConnectorImapConnectionTestResult data, response status code and response headers
|
1672
|
+
def test_connector_imap_connection_options_with_http_info(create_connector_imap_connection_options, opts = {})
|
1673
|
+
if @api_client.config.debugging
|
1674
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.test_connector_imap_connection_options ...'
|
1675
|
+
end
|
1676
|
+
# verify the required parameter 'create_connector_imap_connection_options' is set
|
1677
|
+
if @api_client.config.client_side_validation && create_connector_imap_connection_options.nil?
|
1678
|
+
fail ArgumentError, "Missing the required parameter 'create_connector_imap_connection_options' when calling ConnectorControllerApi.test_connector_imap_connection_options"
|
1679
|
+
end
|
1680
|
+
# resource path
|
1681
|
+
local_var_path = '/connectors/connections/imap/test'
|
1682
|
+
|
1683
|
+
# query parameters
|
1684
|
+
query_params = opts[:query_params] || {}
|
1685
|
+
|
1686
|
+
# header parameters
|
1687
|
+
header_params = opts[:header_params] || {}
|
1688
|
+
# HTTP header 'Accept' (if needed)
|
1689
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1690
|
+
# HTTP header 'Content-Type'
|
1691
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1692
|
+
|
1693
|
+
# form parameters
|
1694
|
+
form_params = opts[:form_params] || {}
|
1695
|
+
|
1696
|
+
# http body (model)
|
1697
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_connector_imap_connection_options)
|
1698
|
+
|
1699
|
+
# return_type
|
1700
|
+
return_type = opts[:return_type] || 'ConnectorImapConnectionTestResult'
|
1701
|
+
|
1702
|
+
# auth_names
|
1703
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1704
|
+
|
1705
|
+
new_options = opts.merge(
|
1706
|
+
:header_params => header_params,
|
1707
|
+
:query_params => query_params,
|
1708
|
+
:form_params => form_params,
|
1709
|
+
:body => post_body,
|
1710
|
+
:auth_names => auth_names,
|
1711
|
+
:return_type => return_type
|
1712
|
+
)
|
1713
|
+
|
1714
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1715
|
+
if @api_client.config.debugging
|
1716
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#test_connector_imap_connection_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1717
|
+
end
|
1718
|
+
return data, status_code, headers
|
1719
|
+
end
|
1720
|
+
|
1721
|
+
# Test an inbox connector SMTP connection
|
1722
|
+
# Test the SMTP connection for a connector
|
1723
|
+
# @param id [String]
|
1724
|
+
# @param [Hash] opts the optional parameters
|
1725
|
+
# @option opts [CreateConnectorSmtpConnectionOptions] :create_connector_smtp_connection_options
|
1726
|
+
# @return [ConnectorSmtpConnectionTestResult]
|
1727
|
+
def test_connector_smtp_connection(id, opts = {})
|
1728
|
+
data, _status_code, _headers = test_connector_smtp_connection_with_http_info(id, opts)
|
1729
|
+
data
|
1730
|
+
end
|
1731
|
+
|
1732
|
+
# Test an inbox connector SMTP connection
|
1733
|
+
# Test the SMTP connection for a connector
|
1734
|
+
# @param id [String]
|
1735
|
+
# @param [Hash] opts the optional parameters
|
1736
|
+
# @option opts [CreateConnectorSmtpConnectionOptions] :create_connector_smtp_connection_options
|
1737
|
+
# @return [Array<(ConnectorSmtpConnectionTestResult, Integer, Hash)>] ConnectorSmtpConnectionTestResult data, response status code and response headers
|
1738
|
+
def test_connector_smtp_connection_with_http_info(id, opts = {})
|
1739
|
+
if @api_client.config.debugging
|
1740
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.test_connector_smtp_connection ...'
|
1741
|
+
end
|
1742
|
+
# verify the required parameter 'id' is set
|
1743
|
+
if @api_client.config.client_side_validation && id.nil?
|
1744
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.test_connector_smtp_connection"
|
1745
|
+
end
|
1746
|
+
# resource path
|
1747
|
+
local_var_path = '/connectors/{id}/smtp/test'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1748
|
+
|
1749
|
+
# query parameters
|
1750
|
+
query_params = opts[:query_params] || {}
|
1751
|
+
|
1752
|
+
# header parameters
|
1753
|
+
header_params = opts[:header_params] || {}
|
1754
|
+
# HTTP header 'Accept' (if needed)
|
1755
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1756
|
+
# HTTP header 'Content-Type'
|
1757
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1758
|
+
|
1759
|
+
# form parameters
|
1760
|
+
form_params = opts[:form_params] || {}
|
1761
|
+
|
1762
|
+
# http body (model)
|
1763
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'create_connector_smtp_connection_options'])
|
1764
|
+
|
1765
|
+
# return_type
|
1766
|
+
return_type = opts[:return_type] || 'ConnectorSmtpConnectionTestResult'
|
1767
|
+
|
1768
|
+
# auth_names
|
1769
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1770
|
+
|
1771
|
+
new_options = opts.merge(
|
1772
|
+
:header_params => header_params,
|
1773
|
+
:query_params => query_params,
|
1774
|
+
:form_params => form_params,
|
1775
|
+
:body => post_body,
|
1776
|
+
:auth_names => auth_names,
|
1777
|
+
:return_type => return_type
|
1778
|
+
)
|
1779
|
+
|
1780
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1781
|
+
if @api_client.config.debugging
|
1782
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#test_connector_smtp_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1783
|
+
end
|
1784
|
+
return data, status_code, headers
|
1785
|
+
end
|
1786
|
+
|
1787
|
+
# Test an inbox connector SMTP connection options
|
1788
|
+
# Test the SMTP connection options for a connector
|
1789
|
+
# @param create_connector_smtp_connection_options [CreateConnectorSmtpConnectionOptions]
|
1790
|
+
# @param [Hash] opts the optional parameters
|
1791
|
+
# @return [ConnectorSmtpConnectionTestResult]
|
1792
|
+
def test_connector_smtp_connection_options(create_connector_smtp_connection_options, opts = {})
|
1793
|
+
data, _status_code, _headers = test_connector_smtp_connection_options_with_http_info(create_connector_smtp_connection_options, opts)
|
1794
|
+
data
|
1795
|
+
end
|
1796
|
+
|
1797
|
+
# Test an inbox connector SMTP connection options
|
1798
|
+
# Test the SMTP connection options for a connector
|
1799
|
+
# @param create_connector_smtp_connection_options [CreateConnectorSmtpConnectionOptions]
|
1800
|
+
# @param [Hash] opts the optional parameters
|
1801
|
+
# @return [Array<(ConnectorSmtpConnectionTestResult, Integer, Hash)>] ConnectorSmtpConnectionTestResult data, response status code and response headers
|
1802
|
+
def test_connector_smtp_connection_options_with_http_info(create_connector_smtp_connection_options, opts = {})
|
1803
|
+
if @api_client.config.debugging
|
1804
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.test_connector_smtp_connection_options ...'
|
1805
|
+
end
|
1806
|
+
# verify the required parameter 'create_connector_smtp_connection_options' is set
|
1807
|
+
if @api_client.config.client_side_validation && create_connector_smtp_connection_options.nil?
|
1808
|
+
fail ArgumentError, "Missing the required parameter 'create_connector_smtp_connection_options' when calling ConnectorControllerApi.test_connector_smtp_connection_options"
|
1809
|
+
end
|
1810
|
+
# resource path
|
1811
|
+
local_var_path = '/connectors/connections/smtp/test'
|
1812
|
+
|
1813
|
+
# query parameters
|
1814
|
+
query_params = opts[:query_params] || {}
|
1815
|
+
|
1816
|
+
# header parameters
|
1817
|
+
header_params = opts[:header_params] || {}
|
1818
|
+
# HTTP header 'Accept' (if needed)
|
1819
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1820
|
+
# HTTP header 'Content-Type'
|
1821
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1822
|
+
|
1823
|
+
# form parameters
|
1824
|
+
form_params = opts[:form_params] || {}
|
1825
|
+
|
1826
|
+
# http body (model)
|
1827
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_connector_smtp_connection_options)
|
1828
|
+
|
1829
|
+
# return_type
|
1830
|
+
return_type = opts[:return_type] || 'ConnectorSmtpConnectionTestResult'
|
1831
|
+
|
1832
|
+
# auth_names
|
1833
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1834
|
+
|
1835
|
+
new_options = opts.merge(
|
1836
|
+
:header_params => header_params,
|
1837
|
+
:query_params => query_params,
|
1838
|
+
:form_params => form_params,
|
1839
|
+
:body => post_body,
|
1840
|
+
:auth_names => auth_names,
|
1841
|
+
:return_type => return_type
|
1842
|
+
)
|
1843
|
+
|
1844
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1845
|
+
if @api_client.config.debugging
|
1846
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#test_connector_smtp_connection_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1847
|
+
end
|
1848
|
+
return data, status_code, headers
|
1849
|
+
end
|
1850
|
+
|
1851
|
+
# Update an inbox connector
|
1852
|
+
# @param id [String]
|
1853
|
+
# @param create_connector_options [CreateConnectorOptions]
|
1854
|
+
# @param [Hash] opts the optional parameters
|
1855
|
+
# @return [ConnectorDto]
|
1856
|
+
def update_connector(id, create_connector_options, opts = {})
|
1857
|
+
data, _status_code, _headers = update_connector_with_http_info(id, create_connector_options, opts)
|
1858
|
+
data
|
1859
|
+
end
|
1860
|
+
|
1861
|
+
# Update an inbox connector
|
1862
|
+
# @param id [String]
|
1863
|
+
# @param create_connector_options [CreateConnectorOptions]
|
1864
|
+
# @param [Hash] opts the optional parameters
|
1865
|
+
# @return [Array<(ConnectorDto, Integer, Hash)>] ConnectorDto data, response status code and response headers
|
1866
|
+
def update_connector_with_http_info(id, create_connector_options, opts = {})
|
1867
|
+
if @api_client.config.debugging
|
1868
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.update_connector ...'
|
1869
|
+
end
|
1870
|
+
# verify the required parameter 'id' is set
|
1871
|
+
if @api_client.config.client_side_validation && id.nil?
|
1872
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.update_connector"
|
1873
|
+
end
|
1874
|
+
# verify the required parameter 'create_connector_options' is set
|
1875
|
+
if @api_client.config.client_side_validation && create_connector_options.nil?
|
1876
|
+
fail ArgumentError, "Missing the required parameter 'create_connector_options' when calling ConnectorControllerApi.update_connector"
|
1877
|
+
end
|
1878
|
+
# resource path
|
1879
|
+
local_var_path = '/connectors/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1880
|
+
|
1881
|
+
# query parameters
|
1882
|
+
query_params = opts[:query_params] || {}
|
1883
|
+
|
896
1884
|
# header parameters
|
897
1885
|
header_params = opts[:header_params] || {}
|
898
1886
|
# HTTP header 'Accept' (if needed)
|
@@ -927,5 +1915,145 @@ module MailSlurpClient
|
|
927
1915
|
end
|
928
1916
|
return data, status_code, headers
|
929
1917
|
end
|
1918
|
+
|
1919
|
+
# Update an inbox connector IMAP connection
|
1920
|
+
# Update IMAP connection for external inbox
|
1921
|
+
# @param id [String]
|
1922
|
+
# @param create_connector_imap_connection_options [CreateConnectorImapConnectionOptions]
|
1923
|
+
# @param [Hash] opts the optional parameters
|
1924
|
+
# @return [ConnectorImapConnectionDto]
|
1925
|
+
def update_connector_imap_connection(id, create_connector_imap_connection_options, opts = {})
|
1926
|
+
data, _status_code, _headers = update_connector_imap_connection_with_http_info(id, create_connector_imap_connection_options, opts)
|
1927
|
+
data
|
1928
|
+
end
|
1929
|
+
|
1930
|
+
# Update an inbox connector IMAP connection
|
1931
|
+
# Update IMAP connection for external inbox
|
1932
|
+
# @param id [String]
|
1933
|
+
# @param create_connector_imap_connection_options [CreateConnectorImapConnectionOptions]
|
1934
|
+
# @param [Hash] opts the optional parameters
|
1935
|
+
# @return [Array<(ConnectorImapConnectionDto, Integer, Hash)>] ConnectorImapConnectionDto data, response status code and response headers
|
1936
|
+
def update_connector_imap_connection_with_http_info(id, create_connector_imap_connection_options, opts = {})
|
1937
|
+
if @api_client.config.debugging
|
1938
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.update_connector_imap_connection ...'
|
1939
|
+
end
|
1940
|
+
# verify the required parameter 'id' is set
|
1941
|
+
if @api_client.config.client_side_validation && id.nil?
|
1942
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.update_connector_imap_connection"
|
1943
|
+
end
|
1944
|
+
# verify the required parameter 'create_connector_imap_connection_options' is set
|
1945
|
+
if @api_client.config.client_side_validation && create_connector_imap_connection_options.nil?
|
1946
|
+
fail ArgumentError, "Missing the required parameter 'create_connector_imap_connection_options' when calling ConnectorControllerApi.update_connector_imap_connection"
|
1947
|
+
end
|
1948
|
+
# resource path
|
1949
|
+
local_var_path = '/connectors/{id}/imap'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1950
|
+
|
1951
|
+
# query parameters
|
1952
|
+
query_params = opts[:query_params] || {}
|
1953
|
+
|
1954
|
+
# header parameters
|
1955
|
+
header_params = opts[:header_params] || {}
|
1956
|
+
# HTTP header 'Accept' (if needed)
|
1957
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1958
|
+
# HTTP header 'Content-Type'
|
1959
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1960
|
+
|
1961
|
+
# form parameters
|
1962
|
+
form_params = opts[:form_params] || {}
|
1963
|
+
|
1964
|
+
# http body (model)
|
1965
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_connector_imap_connection_options)
|
1966
|
+
|
1967
|
+
# return_type
|
1968
|
+
return_type = opts[:return_type] || 'ConnectorImapConnectionDto'
|
1969
|
+
|
1970
|
+
# auth_names
|
1971
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1972
|
+
|
1973
|
+
new_options = opts.merge(
|
1974
|
+
:header_params => header_params,
|
1975
|
+
:query_params => query_params,
|
1976
|
+
:form_params => form_params,
|
1977
|
+
:body => post_body,
|
1978
|
+
:auth_names => auth_names,
|
1979
|
+
:return_type => return_type
|
1980
|
+
)
|
1981
|
+
|
1982
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1983
|
+
if @api_client.config.debugging
|
1984
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#update_connector_imap_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1985
|
+
end
|
1986
|
+
return data, status_code, headers
|
1987
|
+
end
|
1988
|
+
|
1989
|
+
# Update an inbox connector SMTP connection
|
1990
|
+
# Update SMTP connection for external inbox
|
1991
|
+
# @param id [String]
|
1992
|
+
# @param create_connector_smtp_connection_options [CreateConnectorSmtpConnectionOptions]
|
1993
|
+
# @param [Hash] opts the optional parameters
|
1994
|
+
# @return [ConnectorSmtpConnectionDto]
|
1995
|
+
def update_connector_smtp_connection(id, create_connector_smtp_connection_options, opts = {})
|
1996
|
+
data, _status_code, _headers = update_connector_smtp_connection_with_http_info(id, create_connector_smtp_connection_options, opts)
|
1997
|
+
data
|
1998
|
+
end
|
1999
|
+
|
2000
|
+
# Update an inbox connector SMTP connection
|
2001
|
+
# Update SMTP connection for external inbox
|
2002
|
+
# @param id [String]
|
2003
|
+
# @param create_connector_smtp_connection_options [CreateConnectorSmtpConnectionOptions]
|
2004
|
+
# @param [Hash] opts the optional parameters
|
2005
|
+
# @return [Array<(ConnectorSmtpConnectionDto, Integer, Hash)>] ConnectorSmtpConnectionDto data, response status code and response headers
|
2006
|
+
def update_connector_smtp_connection_with_http_info(id, create_connector_smtp_connection_options, opts = {})
|
2007
|
+
if @api_client.config.debugging
|
2008
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.update_connector_smtp_connection ...'
|
2009
|
+
end
|
2010
|
+
# verify the required parameter 'id' is set
|
2011
|
+
if @api_client.config.client_side_validation && id.nil?
|
2012
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConnectorControllerApi.update_connector_smtp_connection"
|
2013
|
+
end
|
2014
|
+
# verify the required parameter 'create_connector_smtp_connection_options' is set
|
2015
|
+
if @api_client.config.client_side_validation && create_connector_smtp_connection_options.nil?
|
2016
|
+
fail ArgumentError, "Missing the required parameter 'create_connector_smtp_connection_options' when calling ConnectorControllerApi.update_connector_smtp_connection"
|
2017
|
+
end
|
2018
|
+
# resource path
|
2019
|
+
local_var_path = '/connectors/{id}/smtp'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
2020
|
+
|
2021
|
+
# query parameters
|
2022
|
+
query_params = opts[:query_params] || {}
|
2023
|
+
|
2024
|
+
# header parameters
|
2025
|
+
header_params = opts[:header_params] || {}
|
2026
|
+
# HTTP header 'Accept' (if needed)
|
2027
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
2028
|
+
# HTTP header 'Content-Type'
|
2029
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2030
|
+
|
2031
|
+
# form parameters
|
2032
|
+
form_params = opts[:form_params] || {}
|
2033
|
+
|
2034
|
+
# http body (model)
|
2035
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_connector_smtp_connection_options)
|
2036
|
+
|
2037
|
+
# return_type
|
2038
|
+
return_type = opts[:return_type] || 'ConnectorSmtpConnectionDto'
|
2039
|
+
|
2040
|
+
# auth_names
|
2041
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
2042
|
+
|
2043
|
+
new_options = opts.merge(
|
2044
|
+
:header_params => header_params,
|
2045
|
+
:query_params => query_params,
|
2046
|
+
:form_params => form_params,
|
2047
|
+
:body => post_body,
|
2048
|
+
:auth_names => auth_names,
|
2049
|
+
:return_type => return_type
|
2050
|
+
)
|
2051
|
+
|
2052
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2053
|
+
if @api_client.config.debugging
|
2054
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#update_connector_smtp_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2055
|
+
end
|
2056
|
+
return data, status_code, headers
|
2057
|
+
end
|
930
2058
|
end
|
931
2059
|
end
|