mailslurp_client 17.1.0 → 17.3.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/lib/mailslurp_client/api/api_audit_log_controller_api.rb +237 -0
- data/lib/mailslurp_client/api/attachment_controller_api.rb +66 -0
- data/lib/mailslurp_client/api/bounce_controller_api.rb +126 -0
- data/lib/mailslurp_client/api/campaign_probe_controller_api.rb +802 -0
- data/lib/mailslurp_client/api/deliverability_test_controller_api.rb +1496 -0
- data/lib/mailslurp_client/api/device_previews_controller_api.rb +1012 -0
- data/lib/mailslurp_client/api/domain_controller_api.rb +63 -0
- data/lib/mailslurp_client/api/domain_monitor_controller_api.rb +1112 -0
- data/lib/mailslurp_client/api/email_audit_controller_api.rb +334 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +394 -138
- data/lib/mailslurp_client/api/inbox_controller_api.rb +144 -4
- data/lib/mailslurp_client/api/missed_sms_controller_api.rb +221 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +1314 -83
- data/lib/mailslurp_client/api/sms_controller_api.rb +191 -0
- data/lib/mailslurp_client/api/tools_controller_api.rb +806 -0
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
- data/lib/mailslurp_client/models/acquire_phone_pool_lease_options.rb +233 -0
- data/lib/mailslurp_client/models/add_phone_pool_numbers_options.rb +213 -0
- data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +39 -39
- data/lib/mailslurp_client/models/ai_transform_projection.rb +28 -28
- data/lib/mailslurp_client/models/alias_projection.rb +48 -48
- data/lib/mailslurp_client/models/alias_thread_projection.rb +44 -44
- data/lib/mailslurp_client/models/analyze_dmarc_report_options.rb +248 -0
- data/lib/mailslurp_client/models/analyze_dmarc_report_results.rb +386 -0
- data/lib/mailslurp_client/models/analyze_email_headers_options.rb +240 -0
- data/lib/mailslurp_client/models/analyze_email_headers_results.rb +275 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +50 -50
- data/lib/mailslurp_client/models/audit_log_event_dto.rb +343 -0
- data/lib/mailslurp_client/models/audit_log_page_dto.rb +222 -0
- data/lib/mailslurp_client/models/audit_log_search_options.rb +323 -0
- data/lib/mailslurp_client/models/available_phone_number_dto.rb +325 -0
- data/lib/mailslurp_client/models/available_phone_numbers_result.rb +236 -0
- data/lib/mailslurp_client/models/bounce_projection.rb +14 -14
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/campaign_probe_dto.rb +411 -0
- data/lib/mailslurp_client/models/campaign_probe_insights_dto.rb +408 -0
- data/lib/mailslurp_client/models/campaign_probe_run_comparison_dto.rb +397 -0
- data/lib/mailslurp_client/models/campaign_probe_run_dto.rb +644 -0
- data/lib/mailslurp_client/models/campaign_probe_run_due_result.rb +315 -0
- data/lib/mailslurp_client/models/campaign_probe_run_now_result.rb +225 -0
- data/lib/mailslurp_client/models/campaign_probe_series_dto.rb +303 -0
- data/lib/mailslurp_client/models/campaign_probe_series_point_dto.rb +295 -0
- data/lib/mailslurp_client/models/cancel_device_preview_run_options.rb +206 -0
- data/lib/mailslurp_client/models/cancel_device_preview_run_result.rb +248 -0
- data/lib/mailslurp_client/models/check_campaign_probe_options.rb +371 -0
- data/lib/mailslurp_client/models/check_campaign_probe_results.rb +482 -0
- data/lib/mailslurp_client/models/check_dns_propagation_options.rb +297 -0
- data/lib/mailslurp_client/models/check_dns_propagation_results.rb +361 -0
- data/lib/mailslurp_client/models/check_domain_monitor_options.rb +243 -0
- data/lib/mailslurp_client/models/check_domain_monitor_results.rb +398 -0
- data/lib/mailslurp_client/models/check_email_audit_options.rb +405 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_options.rb +248 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_results.rb +462 -0
- data/lib/mailslurp_client/models/check_email_blacklist_options.rb +241 -0
- data/lib/mailslurp_client/models/check_email_blacklist_results.rb +366 -0
- data/lib/mailslurp_client/models/code_candidate.rb +303 -0
- data/lib/mailslurp_client/models/connector_event_projection.rb +33 -33
- data/lib/mailslurp_client/models/connector_projection.rb +42 -42
- data/lib/mailslurp_client/models/contact_projection.rb +24 -24
- data/lib/mailslurp_client/models/create_campaign_probe_options.rb +290 -0
- data/lib/mailslurp_client/models/create_campaign_probe_run_options.rb +264 -0
- data/lib/mailslurp_client/models/create_deliverability_simulation_job_options.rb +345 -0
- data/lib/mailslurp_client/models/create_deliverability_test_options.rb +372 -0
- data/lib/mailslurp_client/models/create_device_preview_feedback_options.rb +405 -0
- data/lib/mailslurp_client/models/create_device_preview_options.rb +241 -0
- data/lib/mailslurp_client/models/create_device_preview_run_result.rb +225 -0
- data/lib/mailslurp_client/models/create_domain_monitor_alert_sink_options.rb +308 -0
- data/lib/mailslurp_client/models/create_domain_monitor_options.rb +299 -0
- data/lib/mailslurp_client/models/create_email_audit_options.rb +394 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +25 -4
- data/lib/mailslurp_client/models/create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_item_options.rb +256 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_options.rb +284 -0
- data/lib/mailslurp_client/models/delete_device_preview_run_result.rb +253 -0
- data/lib/mailslurp_client/models/delete_result.rb +245 -0
- data/lib/mailslurp_client/models/deliverability_analytics_run_dto.rb +426 -0
- data/lib/mailslurp_client/models/deliverability_analytics_series_dto.rb +342 -0
- data/lib/mailslurp_client/models/deliverability_analytics_series_point_dto.rb +240 -0
- data/lib/mailslurp_client/models/deliverability_analytics_summary_dto.rb +380 -0
- data/lib/mailslurp_client/models/deliverability_entity_result_dto.rb +360 -0
- data/lib/mailslurp_client/models/deliverability_entity_result_page_dto.rb +318 -0
- data/lib/mailslurp_client/models/deliverability_expectation.rb +276 -0
- data/lib/mailslurp_client/models/deliverability_expectation_result_dto.rb +294 -0
- data/lib/mailslurp_client/models/deliverability_failure_entity_hotspot_dto.rb +360 -0
- data/lib/mailslurp_client/models/deliverability_failure_hotspots_dto.rb +302 -0
- data/lib/mailslurp_client/models/deliverability_failure_phone_dimension_hotspot_dto.rb +306 -0
- data/lib/mailslurp_client/models/deliverability_poll_status_result_dto.rb +250 -0
- data/lib/mailslurp_client/models/deliverability_selector_options.rb +307 -0
- data/lib/mailslurp_client/models/deliverability_simulation_email_options.rb +231 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_config_dto.rb +300 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_dto.rb +494 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_error_summary_dto.rb +224 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_event_dto.rb +344 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_event_page_dto.rb +284 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_top_error_dto.rb +226 -0
- data/lib/mailslurp_client/models/deliverability_simulation_sms_options.rb +209 -0
- data/lib/mailslurp_client/models/deliverability_test_dto.rb +558 -0
- data/lib/mailslurp_client/models/deliverability_test_page_dto.rb +270 -0
- data/lib/mailslurp_client/models/device_preview_feedback_dto.rb +456 -0
- data/lib/mailslurp_client/models/device_preview_feedback_list_dto.rb +255 -0
- data/lib/mailslurp_client/models/device_preview_provider_progress_dto.rb +387 -0
- data/lib/mailslurp_client/models/device_preview_run_dto.rb +382 -0
- data/lib/mailslurp_client/models/device_preview_run_results_dto.rb +243 -0
- data/lib/mailslurp_client/models/device_preview_screenshot_dto.rb +389 -0
- data/lib/mailslurp_client/models/device_preview_target_dto.rb +368 -0
- data/lib/mailslurp_client/models/dmarc_report_metadata.rb +308 -0
- data/lib/mailslurp_client/models/dmarc_report_source_summary.rb +274 -0
- data/lib/mailslurp_client/models/dns_propagation_resolver_result.rb +252 -0
- data/lib/mailslurp_client/models/domain_monitor_alert_sink_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_dto.rb +383 -0
- data/lib/mailslurp_client/models/domain_monitor_insights_dto.rb +422 -0
- data/lib/mailslurp_client/models/domain_monitor_run_comparison_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_run_dto.rb +492 -0
- data/lib/mailslurp_client/models/domain_monitor_run_due_result.rb +287 -0
- data/lib/mailslurp_client/models/domain_monitor_run_now_result.rb +225 -0
- data/lib/mailslurp_client/models/domain_monitor_series_dto.rb +303 -0
- data/lib/mailslurp_client/models/domain_monitor_series_point_dto.rb +309 -0
- data/lib/mailslurp_client/models/domain_monitor_summary_dto.rb +248 -0
- data/lib/mailslurp_client/models/domain_region_group.rb +261 -0
- data/lib/mailslurp_client/models/domain_region_groups_dto.rb +214 -0
- data/lib/mailslurp_client/models/domain_region_information.rb +338 -0
- data/lib/mailslurp_client/models/email_audit_analysis_result.rb +620 -0
- data/lib/mailslurp_client/models/email_audit_comparison_dto.rb +411 -0
- data/lib/mailslurp_client/models/email_audit_dto.rb +308 -0
- data/lib/mailslurp_client/models/email_audit_spelling_issue.rb +276 -0
- data/lib/mailslurp_client/models/email_audit_url_issue.rb +236 -0
- data/lib/mailslurp_client/models/email_blacklist_ip_result.rb +242 -0
- data/lib/mailslurp_client/models/email_blacklist_listing_result.rb +258 -0
- data/lib/mailslurp_client/models/email_header_analysis_summary.rb +242 -0
- data/lib/mailslurp_client/models/email_header_received_hop.rb +242 -0
- data/lib/mailslurp_client/models/email_projection.rb +66 -66
- data/lib/mailslurp_client/models/email_signature.rb +254 -0
- data/lib/mailslurp_client/models/email_signature_parse_result.rb +223 -0
- data/lib/mailslurp_client/models/email_thread_projection.rb +78 -78
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +27 -27
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +45 -45
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +29 -29
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +27 -27
- data/lib/mailslurp_client/models/extract_attachment_text_options.rb +268 -0
- data/lib/mailslurp_client/models/extract_attachment_text_result.rb +297 -0
- data/lib/mailslurp_client/models/extract_codes_options.rb +304 -0
- data/lib/mailslurp_client/models/extract_codes_result.rb +303 -0
- data/lib/mailslurp_client/models/generate_spf_record_options.rb +357 -0
- data/lib/mailslurp_client/models/generate_spf_record_results.rb +318 -0
- data/lib/mailslurp_client/models/get_or_create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/group_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +50 -50
- data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +21 -21
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +33 -33
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +19 -19
- data/lib/mailslurp_client/models/lookup_dkim_domain_options.rb +275 -0
- data/lib/mailslurp_client/models/lookup_dkim_domain_results.rb +304 -0
- data/lib/mailslurp_client/models/lookup_ptr_options.rb +241 -0
- data/lib/mailslurp_client/models/lookup_ptr_results.rb +305 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_options.rb +240 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_results.rb +305 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +28 -28
- data/lib/mailslurp_client/models/missed_sms_dto.rb +320 -0
- data/lib/mailslurp_client/models/missed_sms_projection.rb +282 -0
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +24 -24
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_complaint.rb +19 -19
- data/lib/mailslurp_client/models/page_connector.rb +19 -19
- data/lib/mailslurp_client/models/page_connector_events.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_event_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_tags.rb +19 -19
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_reputation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- data/lib/mailslurp_client/models/pageable_object.rb +22 -22
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +18 -18
- data/lib/mailslurp_client/models/phone_number_dto.rb +49 -4
- data/lib/mailslurp_client/models/phone_number_line_type_intelligence_dto.rb +242 -0
- data/lib/mailslurp_client/models/phone_number_line_type_lookup_dto.rb +286 -0
- data/lib/mailslurp_client/models/phone_number_projection.rb +81 -36
- data/lib/mailslurp_client/models/phone_number_release_projection.rb +39 -39
- data/lib/mailslurp_client/models/phone_pool_detail_dto.rb +334 -0
- data/lib/mailslurp_client/models/phone_pool_dto.rb +318 -0
- data/lib/mailslurp_client/models/phone_pool_lease_dto.rb +351 -0
- data/lib/mailslurp_client/models/phone_pool_member_dto.rb +333 -0
- data/lib/mailslurp_client/models/phone_provider_capabilities_result.rb +284 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_dto.rb +434 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_item_dto.rb +336 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credit_dto.rb +340 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credits_dto.rb +241 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +32 -32
- data/lib/mailslurp_client/models/recipient_projection.rb +13 -13
- data/lib/mailslurp_client/models/reputation_item_projection.rb +41 -41
- data/lib/mailslurp_client/models/search_available_phone_numbers_options.rb +377 -0
- data/lib/mailslurp_client/models/search_inboxes_options.rb +1 -1
- data/lib/mailslurp_client/models/sender_projection.rb +13 -13
- data/lib/mailslurp_client/models/sent_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/sent_sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/smtp_auth_diagnostic_result.rb +235 -0
- data/lib/mailslurp_client/models/smtp_diagnostic_step.rb +236 -0
- data/lib/mailslurp_client/models/smtp_tls_diagnostic_result.rb +245 -0
- data/lib/mailslurp_client/models/sort_object.rb +10 -10
- data/lib/mailslurp_client/models/spf_mechanism_result.rb +229 -0
- data/lib/mailslurp_client/models/template_projection.rb +41 -41
- data/lib/mailslurp_client/models/tenant_reputation_finding_dto.rb +322 -0
- data/lib/mailslurp_client/models/tenant_reputation_findings_dto.rb +241 -0
- data/lib/mailslurp_client/models/tenant_reputation_status_row_dto.rb +372 -0
- data/lib/mailslurp_client/models/tenant_reputation_status_summary_dto.rb +241 -0
- data/lib/mailslurp_client/models/test_smtp_server_options.rb +337 -0
- data/lib/mailslurp_client/models/test_smtp_server_results.rb +297 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +27 -27
- data/lib/mailslurp_client/models/update_campaign_probe_options.rb +290 -0
- data/lib/mailslurp_client/models/update_deliverability_test_options.rb +327 -0
- data/lib/mailslurp_client/models/update_device_preview_feedback_options.rb +314 -0
- data/lib/mailslurp_client/models/update_domain_monitor_options.rb +266 -0
- data/lib/mailslurp_client/models/update_phone_pool_options.rb +215 -0
- data/lib/mailslurp_client/models/validation_dto.rb +1 -5
- data/lib/mailslurp_client/models/webhook_projection.rb +39 -39
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +156 -0
- metadata +158 -2
|
@@ -0,0 +1,1496 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#MailSlurp API
|
|
3
|
+
|
|
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
|
+
|
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
|
7
|
+
Contact: contact@mailslurp.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module MailSlurpClient
|
|
16
|
+
class DeliverabilityTestControllerApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Cancel deliverability simulation job
|
|
23
|
+
# Cancel a running or paused simulation job.
|
|
24
|
+
# @param test_id [String]
|
|
25
|
+
# @param job_id [String]
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [DeliverabilitySimulationJobDto]
|
|
28
|
+
def cancel_deliverability_simulation_job(test_id, job_id, opts = {})
|
|
29
|
+
data, _status_code, _headers = cancel_deliverability_simulation_job_with_http_info(test_id, job_id, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Cancel deliverability simulation job
|
|
34
|
+
# Cancel a running or paused simulation job.
|
|
35
|
+
# @param test_id [String]
|
|
36
|
+
# @param job_id [String]
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(DeliverabilitySimulationJobDto, Integer, Hash)>] DeliverabilitySimulationJobDto data, response status code and response headers
|
|
39
|
+
def cancel_deliverability_simulation_job_with_http_info(test_id, job_id, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.cancel_deliverability_simulation_job ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'test_id' is set
|
|
44
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.cancel_deliverability_simulation_job"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'job_id' is set
|
|
48
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling DeliverabilityTestControllerApi.cancel_deliverability_simulation_job"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/test/deliverability/{testId}/simulation-jobs/{jobId}/cancel'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s)).sub('{' + 'jobId' + '}', CGI.escape(job_id.to_s))
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = opts[:header_params] || {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
61
|
+
|
|
62
|
+
# form parameters
|
|
63
|
+
form_params = opts[:form_params] || {}
|
|
64
|
+
|
|
65
|
+
# http body (model)
|
|
66
|
+
post_body = opts[:body]
|
|
67
|
+
|
|
68
|
+
# return_type
|
|
69
|
+
return_type = opts[:return_type] || 'DeliverabilitySimulationJobDto'
|
|
70
|
+
|
|
71
|
+
# auth_names
|
|
72
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
73
|
+
|
|
74
|
+
new_options = opts.merge(
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#cancel_deliverability_simulation_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Create deliverability simulation job
|
|
91
|
+
# Create and start a simulation job for a running deliverability test. Only one active simulation job is allowed per user.
|
|
92
|
+
# @param test_id [String]
|
|
93
|
+
# @param create_deliverability_simulation_job_options [CreateDeliverabilitySimulationJobOptions]
|
|
94
|
+
# @param [Hash] opts the optional parameters
|
|
95
|
+
# @return [DeliverabilitySimulationJobDto]
|
|
96
|
+
def create_deliverability_simulation_job(test_id, create_deliverability_simulation_job_options, opts = {})
|
|
97
|
+
data, _status_code, _headers = create_deliverability_simulation_job_with_http_info(test_id, create_deliverability_simulation_job_options, opts)
|
|
98
|
+
data
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Create deliverability simulation job
|
|
102
|
+
# Create and start a simulation job for a running deliverability test. Only one active simulation job is allowed per user.
|
|
103
|
+
# @param test_id [String]
|
|
104
|
+
# @param create_deliverability_simulation_job_options [CreateDeliverabilitySimulationJobOptions]
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @return [Array<(DeliverabilitySimulationJobDto, Integer, Hash)>] DeliverabilitySimulationJobDto data, response status code and response headers
|
|
107
|
+
def create_deliverability_simulation_job_with_http_info(test_id, create_deliverability_simulation_job_options, opts = {})
|
|
108
|
+
if @api_client.config.debugging
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.create_deliverability_simulation_job ...'
|
|
110
|
+
end
|
|
111
|
+
# verify the required parameter 'test_id' is set
|
|
112
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.create_deliverability_simulation_job"
|
|
114
|
+
end
|
|
115
|
+
# verify the required parameter 'create_deliverability_simulation_job_options' is set
|
|
116
|
+
if @api_client.config.client_side_validation && create_deliverability_simulation_job_options.nil?
|
|
117
|
+
fail ArgumentError, "Missing the required parameter 'create_deliverability_simulation_job_options' when calling DeliverabilityTestControllerApi.create_deliverability_simulation_job"
|
|
118
|
+
end
|
|
119
|
+
# resource path
|
|
120
|
+
local_var_path = '/test/deliverability/{testId}/simulation-jobs'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
121
|
+
|
|
122
|
+
# query parameters
|
|
123
|
+
query_params = opts[:query_params] || {}
|
|
124
|
+
|
|
125
|
+
# header parameters
|
|
126
|
+
header_params = opts[:header_params] || {}
|
|
127
|
+
# HTTP header 'Accept' (if needed)
|
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
129
|
+
# HTTP header 'Content-Type'
|
|
130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
131
|
+
|
|
132
|
+
# form parameters
|
|
133
|
+
form_params = opts[:form_params] || {}
|
|
134
|
+
|
|
135
|
+
# http body (model)
|
|
136
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_deliverability_simulation_job_options)
|
|
137
|
+
|
|
138
|
+
# return_type
|
|
139
|
+
return_type = opts[:return_type] || 'DeliverabilitySimulationJobDto'
|
|
140
|
+
|
|
141
|
+
# auth_names
|
|
142
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
143
|
+
|
|
144
|
+
new_options = opts.merge(
|
|
145
|
+
:header_params => header_params,
|
|
146
|
+
:query_params => query_params,
|
|
147
|
+
:form_params => form_params,
|
|
148
|
+
:body => post_body,
|
|
149
|
+
:auth_names => auth_names,
|
|
150
|
+
:return_type => return_type
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
154
|
+
if @api_client.config.debugging
|
|
155
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#create_deliverability_simulation_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
156
|
+
end
|
|
157
|
+
return data, status_code, headers
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Create deliverability/load test
|
|
161
|
+
# Create a deliverability test for inboxes or phone numbers using ALL, PATTERN, or EXPLICIT selector scope.
|
|
162
|
+
# @param create_deliverability_test_options [CreateDeliverabilityTestOptions]
|
|
163
|
+
# @param [Hash] opts the optional parameters
|
|
164
|
+
# @return [DeliverabilityTestDto]
|
|
165
|
+
def create_deliverability_test(create_deliverability_test_options, opts = {})
|
|
166
|
+
data, _status_code, _headers = create_deliverability_test_with_http_info(create_deliverability_test_options, opts)
|
|
167
|
+
data
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Create deliverability/load test
|
|
171
|
+
# Create a deliverability test for inboxes or phone numbers using ALL, PATTERN, or EXPLICIT selector scope.
|
|
172
|
+
# @param create_deliverability_test_options [CreateDeliverabilityTestOptions]
|
|
173
|
+
# @param [Hash] opts the optional parameters
|
|
174
|
+
# @return [Array<(DeliverabilityTestDto, Integer, Hash)>] DeliverabilityTestDto data, response status code and response headers
|
|
175
|
+
def create_deliverability_test_with_http_info(create_deliverability_test_options, opts = {})
|
|
176
|
+
if @api_client.config.debugging
|
|
177
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.create_deliverability_test ...'
|
|
178
|
+
end
|
|
179
|
+
# verify the required parameter 'create_deliverability_test_options' is set
|
|
180
|
+
if @api_client.config.client_side_validation && create_deliverability_test_options.nil?
|
|
181
|
+
fail ArgumentError, "Missing the required parameter 'create_deliverability_test_options' when calling DeliverabilityTestControllerApi.create_deliverability_test"
|
|
182
|
+
end
|
|
183
|
+
# resource path
|
|
184
|
+
local_var_path = '/test/deliverability'
|
|
185
|
+
|
|
186
|
+
# query parameters
|
|
187
|
+
query_params = opts[:query_params] || {}
|
|
188
|
+
|
|
189
|
+
# header parameters
|
|
190
|
+
header_params = opts[:header_params] || {}
|
|
191
|
+
# HTTP header 'Accept' (if needed)
|
|
192
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
193
|
+
# HTTP header 'Content-Type'
|
|
194
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
195
|
+
|
|
196
|
+
# form parameters
|
|
197
|
+
form_params = opts[:form_params] || {}
|
|
198
|
+
|
|
199
|
+
# http body (model)
|
|
200
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_deliverability_test_options)
|
|
201
|
+
|
|
202
|
+
# return_type
|
|
203
|
+
return_type = opts[:return_type] || 'DeliverabilityTestDto'
|
|
204
|
+
|
|
205
|
+
# auth_names
|
|
206
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
207
|
+
|
|
208
|
+
new_options = opts.merge(
|
|
209
|
+
:header_params => header_params,
|
|
210
|
+
:query_params => query_params,
|
|
211
|
+
:form_params => form_params,
|
|
212
|
+
:body => post_body,
|
|
213
|
+
:auth_names => auth_names,
|
|
214
|
+
:return_type => return_type
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
218
|
+
if @api_client.config.debugging
|
|
219
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#create_deliverability_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
220
|
+
end
|
|
221
|
+
return data, status_code, headers
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Delete deliverability/load test
|
|
225
|
+
# Delete test and all persisted entity-level results.
|
|
226
|
+
# @param test_id [String]
|
|
227
|
+
# @param [Hash] opts the optional parameters
|
|
228
|
+
# @return [DeleteResult]
|
|
229
|
+
def delete_deliverability_test(test_id, opts = {})
|
|
230
|
+
data, _status_code, _headers = delete_deliverability_test_with_http_info(test_id, opts)
|
|
231
|
+
data
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Delete deliverability/load test
|
|
235
|
+
# Delete test and all persisted entity-level results.
|
|
236
|
+
# @param test_id [String]
|
|
237
|
+
# @param [Hash] opts the optional parameters
|
|
238
|
+
# @return [Array<(DeleteResult, Integer, Hash)>] DeleteResult data, response status code and response headers
|
|
239
|
+
def delete_deliverability_test_with_http_info(test_id, opts = {})
|
|
240
|
+
if @api_client.config.debugging
|
|
241
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.delete_deliverability_test ...'
|
|
242
|
+
end
|
|
243
|
+
# verify the required parameter 'test_id' is set
|
|
244
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
245
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.delete_deliverability_test"
|
|
246
|
+
end
|
|
247
|
+
# resource path
|
|
248
|
+
local_var_path = '/test/deliverability/{testId}'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
249
|
+
|
|
250
|
+
# query parameters
|
|
251
|
+
query_params = opts[:query_params] || {}
|
|
252
|
+
|
|
253
|
+
# header parameters
|
|
254
|
+
header_params = opts[:header_params] || {}
|
|
255
|
+
# HTTP header 'Accept' (if needed)
|
|
256
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
257
|
+
|
|
258
|
+
# form parameters
|
|
259
|
+
form_params = opts[:form_params] || {}
|
|
260
|
+
|
|
261
|
+
# http body (model)
|
|
262
|
+
post_body = opts[:body]
|
|
263
|
+
|
|
264
|
+
# return_type
|
|
265
|
+
return_type = opts[:return_type] || 'DeleteResult'
|
|
266
|
+
|
|
267
|
+
# auth_names
|
|
268
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
269
|
+
|
|
270
|
+
new_options = opts.merge(
|
|
271
|
+
:header_params => header_params,
|
|
272
|
+
:query_params => query_params,
|
|
273
|
+
:form_params => form_params,
|
|
274
|
+
:body => post_body,
|
|
275
|
+
:auth_names => auth_names,
|
|
276
|
+
:return_type => return_type
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
280
|
+
if @api_client.config.debugging
|
|
281
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#delete_deliverability_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
282
|
+
end
|
|
283
|
+
return data, status_code, headers
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Duplicate deliverability/load test
|
|
287
|
+
# Create a fresh deliverability test using an existing test configuration, including selector scope, exclusions, and expectations.
|
|
288
|
+
# @param test_id [String]
|
|
289
|
+
# @param [Hash] opts the optional parameters
|
|
290
|
+
# @return [DeliverabilityTestDto]
|
|
291
|
+
def duplicate_deliverability_test(test_id, opts = {})
|
|
292
|
+
data, _status_code, _headers = duplicate_deliverability_test_with_http_info(test_id, opts)
|
|
293
|
+
data
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Duplicate deliverability/load test
|
|
297
|
+
# Create a fresh deliverability test using an existing test configuration, including selector scope, exclusions, and expectations.
|
|
298
|
+
# @param test_id [String]
|
|
299
|
+
# @param [Hash] opts the optional parameters
|
|
300
|
+
# @return [Array<(DeliverabilityTestDto, Integer, Hash)>] DeliverabilityTestDto data, response status code and response headers
|
|
301
|
+
def duplicate_deliverability_test_with_http_info(test_id, opts = {})
|
|
302
|
+
if @api_client.config.debugging
|
|
303
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.duplicate_deliverability_test ...'
|
|
304
|
+
end
|
|
305
|
+
# verify the required parameter 'test_id' is set
|
|
306
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
307
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.duplicate_deliverability_test"
|
|
308
|
+
end
|
|
309
|
+
# resource path
|
|
310
|
+
local_var_path = '/test/deliverability/{testId}/duplicate'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
311
|
+
|
|
312
|
+
# query parameters
|
|
313
|
+
query_params = opts[:query_params] || {}
|
|
314
|
+
|
|
315
|
+
# header parameters
|
|
316
|
+
header_params = opts[:header_params] || {}
|
|
317
|
+
# HTTP header 'Accept' (if needed)
|
|
318
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
319
|
+
|
|
320
|
+
# form parameters
|
|
321
|
+
form_params = opts[:form_params] || {}
|
|
322
|
+
|
|
323
|
+
# http body (model)
|
|
324
|
+
post_body = opts[:body]
|
|
325
|
+
|
|
326
|
+
# return_type
|
|
327
|
+
return_type = opts[:return_type] || 'DeliverabilityTestDto'
|
|
328
|
+
|
|
329
|
+
# auth_names
|
|
330
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
331
|
+
|
|
332
|
+
new_options = opts.merge(
|
|
333
|
+
:header_params => header_params,
|
|
334
|
+
:query_params => query_params,
|
|
335
|
+
:form_params => form_params,
|
|
336
|
+
:body => post_body,
|
|
337
|
+
:auth_names => auth_names,
|
|
338
|
+
:return_type => return_type
|
|
339
|
+
)
|
|
340
|
+
|
|
341
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
342
|
+
if @api_client.config.debugging
|
|
343
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#duplicate_deliverability_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
344
|
+
end
|
|
345
|
+
return data, status_code, headers
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
# Export deliverability/load test report as PDF
|
|
349
|
+
# Export a PDF report for a terminal deliverability test (COMPLETE, FAILED, or STOPPED), including configuration, summary outcomes, and detailed entity-level results.
|
|
350
|
+
# @param test_id [String]
|
|
351
|
+
# @param [Hash] opts the optional parameters
|
|
352
|
+
# @return [nil]
|
|
353
|
+
def export_deliverability_test_report(test_id, opts = {})
|
|
354
|
+
export_deliverability_test_report_with_http_info(test_id, opts)
|
|
355
|
+
nil
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Export deliverability/load test report as PDF
|
|
359
|
+
# Export a PDF report for a terminal deliverability test (COMPLETE, FAILED, or STOPPED), including configuration, summary outcomes, and detailed entity-level results.
|
|
360
|
+
# @param test_id [String]
|
|
361
|
+
# @param [Hash] opts the optional parameters
|
|
362
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
363
|
+
def export_deliverability_test_report_with_http_info(test_id, opts = {})
|
|
364
|
+
if @api_client.config.debugging
|
|
365
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.export_deliverability_test_report ...'
|
|
366
|
+
end
|
|
367
|
+
# verify the required parameter 'test_id' is set
|
|
368
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
369
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.export_deliverability_test_report"
|
|
370
|
+
end
|
|
371
|
+
# resource path
|
|
372
|
+
local_var_path = '/test/deliverability/{testId}/report/export'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
373
|
+
|
|
374
|
+
# query parameters
|
|
375
|
+
query_params = opts[:query_params] || {}
|
|
376
|
+
|
|
377
|
+
# header parameters
|
|
378
|
+
header_params = opts[:header_params] || {}
|
|
379
|
+
|
|
380
|
+
# form parameters
|
|
381
|
+
form_params = opts[:form_params] || {}
|
|
382
|
+
|
|
383
|
+
# http body (model)
|
|
384
|
+
post_body = opts[:body]
|
|
385
|
+
|
|
386
|
+
# return_type
|
|
387
|
+
return_type = opts[:return_type]
|
|
388
|
+
|
|
389
|
+
# auth_names
|
|
390
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
391
|
+
|
|
392
|
+
new_options = opts.merge(
|
|
393
|
+
:header_params => header_params,
|
|
394
|
+
:query_params => query_params,
|
|
395
|
+
:form_params => form_params,
|
|
396
|
+
:body => post_body,
|
|
397
|
+
:auth_names => auth_names,
|
|
398
|
+
:return_type => return_type
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
402
|
+
if @api_client.config.debugging
|
|
403
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#export_deliverability_test_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
404
|
+
end
|
|
405
|
+
return data, status_code, headers
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# Export deliverability/load test entity results as CSV
|
|
409
|
+
# Export per-entity deliverability results including expectation-level pass/fail counts. The latest status is evaluated with the same polling safeguards before export.
|
|
410
|
+
# @param test_id [String]
|
|
411
|
+
# @param [Hash] opts the optional parameters
|
|
412
|
+
# @option opts [Boolean] :matched
|
|
413
|
+
# @return [nil]
|
|
414
|
+
def export_deliverability_test_results(test_id, opts = {})
|
|
415
|
+
export_deliverability_test_results_with_http_info(test_id, opts)
|
|
416
|
+
nil
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Export deliverability/load test entity results as CSV
|
|
420
|
+
# Export per-entity deliverability results including expectation-level pass/fail counts. The latest status is evaluated with the same polling safeguards before export.
|
|
421
|
+
# @param test_id [String]
|
|
422
|
+
# @param [Hash] opts the optional parameters
|
|
423
|
+
# @option opts [Boolean] :matched
|
|
424
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
425
|
+
def export_deliverability_test_results_with_http_info(test_id, opts = {})
|
|
426
|
+
if @api_client.config.debugging
|
|
427
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.export_deliverability_test_results ...'
|
|
428
|
+
end
|
|
429
|
+
# verify the required parameter 'test_id' is set
|
|
430
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
431
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.export_deliverability_test_results"
|
|
432
|
+
end
|
|
433
|
+
# resource path
|
|
434
|
+
local_var_path = '/test/deliverability/{testId}/results/export'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
435
|
+
|
|
436
|
+
# query parameters
|
|
437
|
+
query_params = opts[:query_params] || {}
|
|
438
|
+
query_params[:'matched'] = opts[:'matched'] if !opts[:'matched'].nil?
|
|
439
|
+
|
|
440
|
+
# header parameters
|
|
441
|
+
header_params = opts[:header_params] || {}
|
|
442
|
+
|
|
443
|
+
# form parameters
|
|
444
|
+
form_params = opts[:form_params] || {}
|
|
445
|
+
|
|
446
|
+
# http body (model)
|
|
447
|
+
post_body = opts[:body]
|
|
448
|
+
|
|
449
|
+
# return_type
|
|
450
|
+
return_type = opts[:return_type]
|
|
451
|
+
|
|
452
|
+
# auth_names
|
|
453
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
454
|
+
|
|
455
|
+
new_options = opts.merge(
|
|
456
|
+
:header_params => header_params,
|
|
457
|
+
:query_params => query_params,
|
|
458
|
+
:form_params => form_params,
|
|
459
|
+
:body => post_body,
|
|
460
|
+
:auth_names => auth_names,
|
|
461
|
+
:return_type => return_type
|
|
462
|
+
)
|
|
463
|
+
|
|
464
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
465
|
+
if @api_client.config.debugging
|
|
466
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#export_deliverability_test_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
467
|
+
end
|
|
468
|
+
return data, status_code, headers
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# Get deliverability analytics time series
|
|
472
|
+
# Compare deliverability runs over a time range with bucketed chart metrics and run-level rows for table views.
|
|
473
|
+
# @param [Hash] opts the optional parameters
|
|
474
|
+
# @option opts [DateTime] :since
|
|
475
|
+
# @option opts [DateTime] :before
|
|
476
|
+
# @option opts [String] :scope
|
|
477
|
+
# @option opts [String] :bucket (default to 'DAY')
|
|
478
|
+
# @option opts [Integer] :run_limit
|
|
479
|
+
# @return [DeliverabilityAnalyticsSeriesDto]
|
|
480
|
+
def get_deliverability_analytics_series(opts = {})
|
|
481
|
+
data, _status_code, _headers = get_deliverability_analytics_series_with_http_info(opts)
|
|
482
|
+
data
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
# Get deliverability analytics time series
|
|
486
|
+
# Compare deliverability runs over a time range with bucketed chart metrics and run-level rows for table views.
|
|
487
|
+
# @param [Hash] opts the optional parameters
|
|
488
|
+
# @option opts [DateTime] :since
|
|
489
|
+
# @option opts [DateTime] :before
|
|
490
|
+
# @option opts [String] :scope
|
|
491
|
+
# @option opts [String] :bucket
|
|
492
|
+
# @option opts [Integer] :run_limit
|
|
493
|
+
# @return [Array<(DeliverabilityAnalyticsSeriesDto, Integer, Hash)>] DeliverabilityAnalyticsSeriesDto data, response status code and response headers
|
|
494
|
+
def get_deliverability_analytics_series_with_http_info(opts = {})
|
|
495
|
+
if @api_client.config.debugging
|
|
496
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.get_deliverability_analytics_series ...'
|
|
497
|
+
end
|
|
498
|
+
allowable_values = ["INBOX", "PHONE"]
|
|
499
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
500
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
501
|
+
end
|
|
502
|
+
allowable_values = ["HOUR", "DAY"]
|
|
503
|
+
if @api_client.config.client_side_validation && opts[:'bucket'] && !allowable_values.include?(opts[:'bucket'])
|
|
504
|
+
fail ArgumentError, "invalid value for \"bucket\", must be one of #{allowable_values}"
|
|
505
|
+
end
|
|
506
|
+
# resource path
|
|
507
|
+
local_var_path = '/test/deliverability/analytics/series'
|
|
508
|
+
|
|
509
|
+
# query parameters
|
|
510
|
+
query_params = opts[:query_params] || {}
|
|
511
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
|
512
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
513
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
514
|
+
query_params[:'bucket'] = opts[:'bucket'] if !opts[:'bucket'].nil?
|
|
515
|
+
query_params[:'runLimit'] = opts[:'run_limit'] if !opts[:'run_limit'].nil?
|
|
516
|
+
|
|
517
|
+
# header parameters
|
|
518
|
+
header_params = opts[:header_params] || {}
|
|
519
|
+
# HTTP header 'Accept' (if needed)
|
|
520
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
521
|
+
|
|
522
|
+
# form parameters
|
|
523
|
+
form_params = opts[:form_params] || {}
|
|
524
|
+
|
|
525
|
+
# http body (model)
|
|
526
|
+
post_body = opts[:body]
|
|
527
|
+
|
|
528
|
+
# return_type
|
|
529
|
+
return_type = opts[:return_type] || 'DeliverabilityAnalyticsSeriesDto'
|
|
530
|
+
|
|
531
|
+
# auth_names
|
|
532
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
533
|
+
|
|
534
|
+
new_options = opts.merge(
|
|
535
|
+
:header_params => header_params,
|
|
536
|
+
:query_params => query_params,
|
|
537
|
+
:form_params => form_params,
|
|
538
|
+
:body => post_body,
|
|
539
|
+
:auth_names => auth_names,
|
|
540
|
+
:return_type => return_type
|
|
541
|
+
)
|
|
542
|
+
|
|
543
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
544
|
+
if @api_client.config.debugging
|
|
545
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#get_deliverability_analytics_series\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
546
|
+
end
|
|
547
|
+
return data, status_code, headers
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# Get deliverability failure hotspots
|
|
551
|
+
# Find commonly failing entities and phone country/variant dimensions across deliverability runs in a time range.
|
|
552
|
+
# @param [Hash] opts the optional parameters
|
|
553
|
+
# @option opts [DateTime] :since
|
|
554
|
+
# @option opts [DateTime] :before
|
|
555
|
+
# @option opts [String] :scope
|
|
556
|
+
# @option opts [Integer] :limit
|
|
557
|
+
# @return [DeliverabilityFailureHotspotsDto]
|
|
558
|
+
def get_deliverability_failure_hotspots(opts = {})
|
|
559
|
+
data, _status_code, _headers = get_deliverability_failure_hotspots_with_http_info(opts)
|
|
560
|
+
data
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
# Get deliverability failure hotspots
|
|
564
|
+
# Find commonly failing entities and phone country/variant dimensions across deliverability runs in a time range.
|
|
565
|
+
# @param [Hash] opts the optional parameters
|
|
566
|
+
# @option opts [DateTime] :since
|
|
567
|
+
# @option opts [DateTime] :before
|
|
568
|
+
# @option opts [String] :scope
|
|
569
|
+
# @option opts [Integer] :limit
|
|
570
|
+
# @return [Array<(DeliverabilityFailureHotspotsDto, Integer, Hash)>] DeliverabilityFailureHotspotsDto data, response status code and response headers
|
|
571
|
+
def get_deliverability_failure_hotspots_with_http_info(opts = {})
|
|
572
|
+
if @api_client.config.debugging
|
|
573
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.get_deliverability_failure_hotspots ...'
|
|
574
|
+
end
|
|
575
|
+
allowable_values = ["INBOX", "PHONE"]
|
|
576
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
577
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
578
|
+
end
|
|
579
|
+
# resource path
|
|
580
|
+
local_var_path = '/test/deliverability/analytics/hotspots'
|
|
581
|
+
|
|
582
|
+
# query parameters
|
|
583
|
+
query_params = opts[:query_params] || {}
|
|
584
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
|
585
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
586
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
587
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
588
|
+
|
|
589
|
+
# header parameters
|
|
590
|
+
header_params = opts[:header_params] || {}
|
|
591
|
+
# HTTP header 'Accept' (if needed)
|
|
592
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
593
|
+
|
|
594
|
+
# form parameters
|
|
595
|
+
form_params = opts[:form_params] || {}
|
|
596
|
+
|
|
597
|
+
# http body (model)
|
|
598
|
+
post_body = opts[:body]
|
|
599
|
+
|
|
600
|
+
# return_type
|
|
601
|
+
return_type = opts[:return_type] || 'DeliverabilityFailureHotspotsDto'
|
|
602
|
+
|
|
603
|
+
# auth_names
|
|
604
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
605
|
+
|
|
606
|
+
new_options = opts.merge(
|
|
607
|
+
:header_params => header_params,
|
|
608
|
+
:query_params => query_params,
|
|
609
|
+
:form_params => form_params,
|
|
610
|
+
:body => post_body,
|
|
611
|
+
:auth_names => auth_names,
|
|
612
|
+
:return_type => return_type
|
|
613
|
+
)
|
|
614
|
+
|
|
615
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
616
|
+
if @api_client.config.debugging
|
|
617
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#get_deliverability_failure_hotspots\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
618
|
+
end
|
|
619
|
+
return data, status_code, headers
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
# Get deliverability simulation job
|
|
623
|
+
# Get simulation job status and progress counters.
|
|
624
|
+
# @param test_id [String]
|
|
625
|
+
# @param job_id [String]
|
|
626
|
+
# @param [Hash] opts the optional parameters
|
|
627
|
+
# @return [DeliverabilitySimulationJobDto]
|
|
628
|
+
def get_deliverability_simulation_job(test_id, job_id, opts = {})
|
|
629
|
+
data, _status_code, _headers = get_deliverability_simulation_job_with_http_info(test_id, job_id, opts)
|
|
630
|
+
data
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
# Get deliverability simulation job
|
|
634
|
+
# Get simulation job status and progress counters.
|
|
635
|
+
# @param test_id [String]
|
|
636
|
+
# @param job_id [String]
|
|
637
|
+
# @param [Hash] opts the optional parameters
|
|
638
|
+
# @return [Array<(DeliverabilitySimulationJobDto, Integer, Hash)>] DeliverabilitySimulationJobDto data, response status code and response headers
|
|
639
|
+
def get_deliverability_simulation_job_with_http_info(test_id, job_id, opts = {})
|
|
640
|
+
if @api_client.config.debugging
|
|
641
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.get_deliverability_simulation_job ...'
|
|
642
|
+
end
|
|
643
|
+
# verify the required parameter 'test_id' is set
|
|
644
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
645
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.get_deliverability_simulation_job"
|
|
646
|
+
end
|
|
647
|
+
# verify the required parameter 'job_id' is set
|
|
648
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
|
649
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling DeliverabilityTestControllerApi.get_deliverability_simulation_job"
|
|
650
|
+
end
|
|
651
|
+
# resource path
|
|
652
|
+
local_var_path = '/test/deliverability/{testId}/simulation-jobs/{jobId}'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s)).sub('{' + 'jobId' + '}', CGI.escape(job_id.to_s))
|
|
653
|
+
|
|
654
|
+
# query parameters
|
|
655
|
+
query_params = opts[:query_params] || {}
|
|
656
|
+
|
|
657
|
+
# header parameters
|
|
658
|
+
header_params = opts[:header_params] || {}
|
|
659
|
+
# HTTP header 'Accept' (if needed)
|
|
660
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
661
|
+
|
|
662
|
+
# form parameters
|
|
663
|
+
form_params = opts[:form_params] || {}
|
|
664
|
+
|
|
665
|
+
# http body (model)
|
|
666
|
+
post_body = opts[:body]
|
|
667
|
+
|
|
668
|
+
# return_type
|
|
669
|
+
return_type = opts[:return_type] || 'DeliverabilitySimulationJobDto'
|
|
670
|
+
|
|
671
|
+
# auth_names
|
|
672
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
673
|
+
|
|
674
|
+
new_options = opts.merge(
|
|
675
|
+
:header_params => header_params,
|
|
676
|
+
:query_params => query_params,
|
|
677
|
+
:form_params => form_params,
|
|
678
|
+
:body => post_body,
|
|
679
|
+
:auth_names => auth_names,
|
|
680
|
+
:return_type => return_type
|
|
681
|
+
)
|
|
682
|
+
|
|
683
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
684
|
+
if @api_client.config.debugging
|
|
685
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#get_deliverability_simulation_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
686
|
+
end
|
|
687
|
+
return data, status_code, headers
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
# Get deliverability simulation job events
|
|
691
|
+
# Get paged simulation events including send successes and failures.
|
|
692
|
+
# @param test_id [String]
|
|
693
|
+
# @param job_id [String]
|
|
694
|
+
# @param [Hash] opts the optional parameters
|
|
695
|
+
# @option opts [Integer] :page (default to 0)
|
|
696
|
+
# @option opts [Integer] :size (default to 20)
|
|
697
|
+
# @option opts [String] :sort (default to 'DESC')
|
|
698
|
+
# @return [DeliverabilitySimulationJobEventPageDto]
|
|
699
|
+
def get_deliverability_simulation_job_events(test_id, job_id, opts = {})
|
|
700
|
+
data, _status_code, _headers = get_deliverability_simulation_job_events_with_http_info(test_id, job_id, opts)
|
|
701
|
+
data
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
# Get deliverability simulation job events
|
|
705
|
+
# Get paged simulation events including send successes and failures.
|
|
706
|
+
# @param test_id [String]
|
|
707
|
+
# @param job_id [String]
|
|
708
|
+
# @param [Hash] opts the optional parameters
|
|
709
|
+
# @option opts [Integer] :page
|
|
710
|
+
# @option opts [Integer] :size
|
|
711
|
+
# @option opts [String] :sort
|
|
712
|
+
# @return [Array<(DeliverabilitySimulationJobEventPageDto, Integer, Hash)>] DeliverabilitySimulationJobEventPageDto data, response status code and response headers
|
|
713
|
+
def get_deliverability_simulation_job_events_with_http_info(test_id, job_id, opts = {})
|
|
714
|
+
if @api_client.config.debugging
|
|
715
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.get_deliverability_simulation_job_events ...'
|
|
716
|
+
end
|
|
717
|
+
# verify the required parameter 'test_id' is set
|
|
718
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
719
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.get_deliverability_simulation_job_events"
|
|
720
|
+
end
|
|
721
|
+
# verify the required parameter 'job_id' is set
|
|
722
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
|
723
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling DeliverabilityTestControllerApi.get_deliverability_simulation_job_events"
|
|
724
|
+
end
|
|
725
|
+
allowable_values = ["ASC", "DESC"]
|
|
726
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
727
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
728
|
+
end
|
|
729
|
+
# resource path
|
|
730
|
+
local_var_path = '/test/deliverability/{testId}/simulation-jobs/{jobId}/events'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s)).sub('{' + 'jobId' + '}', CGI.escape(job_id.to_s))
|
|
731
|
+
|
|
732
|
+
# query parameters
|
|
733
|
+
query_params = opts[:query_params] || {}
|
|
734
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
735
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
736
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
737
|
+
|
|
738
|
+
# header parameters
|
|
739
|
+
header_params = opts[:header_params] || {}
|
|
740
|
+
# HTTP header 'Accept' (if needed)
|
|
741
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
742
|
+
|
|
743
|
+
# form parameters
|
|
744
|
+
form_params = opts[:form_params] || {}
|
|
745
|
+
|
|
746
|
+
# http body (model)
|
|
747
|
+
post_body = opts[:body]
|
|
748
|
+
|
|
749
|
+
# return_type
|
|
750
|
+
return_type = opts[:return_type] || 'DeliverabilitySimulationJobEventPageDto'
|
|
751
|
+
|
|
752
|
+
# auth_names
|
|
753
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
754
|
+
|
|
755
|
+
new_options = opts.merge(
|
|
756
|
+
:header_params => header_params,
|
|
757
|
+
:query_params => query_params,
|
|
758
|
+
:form_params => form_params,
|
|
759
|
+
:body => post_body,
|
|
760
|
+
:auth_names => auth_names,
|
|
761
|
+
:return_type => return_type
|
|
762
|
+
)
|
|
763
|
+
|
|
764
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
765
|
+
if @api_client.config.debugging
|
|
766
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#get_deliverability_simulation_job_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
767
|
+
end
|
|
768
|
+
return data, status_code, headers
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# Get deliverability/load test
|
|
772
|
+
# Get deliverability test configuration and latest progress counters.
|
|
773
|
+
# @param test_id [String]
|
|
774
|
+
# @param [Hash] opts the optional parameters
|
|
775
|
+
# @return [DeliverabilityTestDto]
|
|
776
|
+
def get_deliverability_test(test_id, opts = {})
|
|
777
|
+
data, _status_code, _headers = get_deliverability_test_with_http_info(test_id, opts)
|
|
778
|
+
data
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
# Get deliverability/load test
|
|
782
|
+
# Get deliverability test configuration and latest progress counters.
|
|
783
|
+
# @param test_id [String]
|
|
784
|
+
# @param [Hash] opts the optional parameters
|
|
785
|
+
# @return [Array<(DeliverabilityTestDto, Integer, Hash)>] DeliverabilityTestDto data, response status code and response headers
|
|
786
|
+
def get_deliverability_test_with_http_info(test_id, opts = {})
|
|
787
|
+
if @api_client.config.debugging
|
|
788
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.get_deliverability_test ...'
|
|
789
|
+
end
|
|
790
|
+
# verify the required parameter 'test_id' is set
|
|
791
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
792
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.get_deliverability_test"
|
|
793
|
+
end
|
|
794
|
+
# resource path
|
|
795
|
+
local_var_path = '/test/deliverability/{testId}'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
796
|
+
|
|
797
|
+
# query parameters
|
|
798
|
+
query_params = opts[:query_params] || {}
|
|
799
|
+
|
|
800
|
+
# header parameters
|
|
801
|
+
header_params = opts[:header_params] || {}
|
|
802
|
+
# HTTP header 'Accept' (if needed)
|
|
803
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
804
|
+
|
|
805
|
+
# form parameters
|
|
806
|
+
form_params = opts[:form_params] || {}
|
|
807
|
+
|
|
808
|
+
# http body (model)
|
|
809
|
+
post_body = opts[:body]
|
|
810
|
+
|
|
811
|
+
# return_type
|
|
812
|
+
return_type = opts[:return_type] || 'DeliverabilityTestDto'
|
|
813
|
+
|
|
814
|
+
# auth_names
|
|
815
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
816
|
+
|
|
817
|
+
new_options = opts.merge(
|
|
818
|
+
:header_params => header_params,
|
|
819
|
+
:query_params => query_params,
|
|
820
|
+
:form_params => form_params,
|
|
821
|
+
:body => post_body,
|
|
822
|
+
:auth_names => auth_names,
|
|
823
|
+
:return_type => return_type
|
|
824
|
+
)
|
|
825
|
+
|
|
826
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
827
|
+
if @api_client.config.debugging
|
|
828
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#get_deliverability_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
829
|
+
end
|
|
830
|
+
return data, status_code, headers
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
# Get deliverability/load test entity results
|
|
834
|
+
# Get paged per-entity expectation results with optional matched/unmatched filtering.
|
|
835
|
+
# @param test_id [String]
|
|
836
|
+
# @param [Hash] opts the optional parameters
|
|
837
|
+
# @option opts [Boolean] :matched
|
|
838
|
+
# @option opts [Integer] :page (default to 0)
|
|
839
|
+
# @option opts [Integer] :size (default to 20)
|
|
840
|
+
# @option opts [String] :sort (default to 'ASC')
|
|
841
|
+
# @return [DeliverabilityEntityResultPageDto]
|
|
842
|
+
def get_deliverability_test_results(test_id, opts = {})
|
|
843
|
+
data, _status_code, _headers = get_deliverability_test_results_with_http_info(test_id, opts)
|
|
844
|
+
data
|
|
845
|
+
end
|
|
846
|
+
|
|
847
|
+
# Get deliverability/load test entity results
|
|
848
|
+
# Get paged per-entity expectation results with optional matched/unmatched filtering.
|
|
849
|
+
# @param test_id [String]
|
|
850
|
+
# @param [Hash] opts the optional parameters
|
|
851
|
+
# @option opts [Boolean] :matched
|
|
852
|
+
# @option opts [Integer] :page
|
|
853
|
+
# @option opts [Integer] :size
|
|
854
|
+
# @option opts [String] :sort
|
|
855
|
+
# @return [Array<(DeliverabilityEntityResultPageDto, Integer, Hash)>] DeliverabilityEntityResultPageDto data, response status code and response headers
|
|
856
|
+
def get_deliverability_test_results_with_http_info(test_id, opts = {})
|
|
857
|
+
if @api_client.config.debugging
|
|
858
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.get_deliverability_test_results ...'
|
|
859
|
+
end
|
|
860
|
+
# verify the required parameter 'test_id' is set
|
|
861
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
862
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.get_deliverability_test_results"
|
|
863
|
+
end
|
|
864
|
+
allowable_values = ["ASC", "DESC"]
|
|
865
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
866
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
867
|
+
end
|
|
868
|
+
# resource path
|
|
869
|
+
local_var_path = '/test/deliverability/{testId}/results'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
870
|
+
|
|
871
|
+
# query parameters
|
|
872
|
+
query_params = opts[:query_params] || {}
|
|
873
|
+
query_params[:'matched'] = opts[:'matched'] if !opts[:'matched'].nil?
|
|
874
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
875
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
876
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
877
|
+
|
|
878
|
+
# header parameters
|
|
879
|
+
header_params = opts[:header_params] || {}
|
|
880
|
+
# HTTP header 'Accept' (if needed)
|
|
881
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
882
|
+
|
|
883
|
+
# form parameters
|
|
884
|
+
form_params = opts[:form_params] || {}
|
|
885
|
+
|
|
886
|
+
# http body (model)
|
|
887
|
+
post_body = opts[:body]
|
|
888
|
+
|
|
889
|
+
# return_type
|
|
890
|
+
return_type = opts[:return_type] || 'DeliverabilityEntityResultPageDto'
|
|
891
|
+
|
|
892
|
+
# auth_names
|
|
893
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
894
|
+
|
|
895
|
+
new_options = opts.merge(
|
|
896
|
+
:header_params => header_params,
|
|
897
|
+
:query_params => query_params,
|
|
898
|
+
:form_params => form_params,
|
|
899
|
+
:body => post_body,
|
|
900
|
+
:auth_names => auth_names,
|
|
901
|
+
:return_type => return_type
|
|
902
|
+
)
|
|
903
|
+
|
|
904
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
905
|
+
if @api_client.config.debugging
|
|
906
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#get_deliverability_test_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
907
|
+
end
|
|
908
|
+
return data, status_code, headers
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
# List deliverability/load tests
|
|
912
|
+
# List deliverability tests for the authenticated account.
|
|
913
|
+
# @param [Hash] opts the optional parameters
|
|
914
|
+
# @option opts [Integer] :page Page index (default to 0)
|
|
915
|
+
# @option opts [Integer] :size Page size (default to 20)
|
|
916
|
+
# @option opts [String] :sort Sort direction (default to 'DESC')
|
|
917
|
+
# @return [DeliverabilityTestPageDto]
|
|
918
|
+
def get_deliverability_tests(opts = {})
|
|
919
|
+
data, _status_code, _headers = get_deliverability_tests_with_http_info(opts)
|
|
920
|
+
data
|
|
921
|
+
end
|
|
922
|
+
|
|
923
|
+
# List deliverability/load tests
|
|
924
|
+
# List deliverability tests for the authenticated account.
|
|
925
|
+
# @param [Hash] opts the optional parameters
|
|
926
|
+
# @option opts [Integer] :page Page index
|
|
927
|
+
# @option opts [Integer] :size Page size
|
|
928
|
+
# @option opts [String] :sort Sort direction
|
|
929
|
+
# @return [Array<(DeliverabilityTestPageDto, Integer, Hash)>] DeliverabilityTestPageDto data, response status code and response headers
|
|
930
|
+
def get_deliverability_tests_with_http_info(opts = {})
|
|
931
|
+
if @api_client.config.debugging
|
|
932
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.get_deliverability_tests ...'
|
|
933
|
+
end
|
|
934
|
+
allowable_values = ["ASC", "DESC"]
|
|
935
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
936
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
937
|
+
end
|
|
938
|
+
# resource path
|
|
939
|
+
local_var_path = '/test/deliverability'
|
|
940
|
+
|
|
941
|
+
# query parameters
|
|
942
|
+
query_params = opts[:query_params] || {}
|
|
943
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
944
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
945
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
946
|
+
|
|
947
|
+
# header parameters
|
|
948
|
+
header_params = opts[:header_params] || {}
|
|
949
|
+
# HTTP header 'Accept' (if needed)
|
|
950
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
951
|
+
|
|
952
|
+
# form parameters
|
|
953
|
+
form_params = opts[:form_params] || {}
|
|
954
|
+
|
|
955
|
+
# http body (model)
|
|
956
|
+
post_body = opts[:body]
|
|
957
|
+
|
|
958
|
+
# return_type
|
|
959
|
+
return_type = opts[:return_type] || 'DeliverabilityTestPageDto'
|
|
960
|
+
|
|
961
|
+
# auth_names
|
|
962
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
963
|
+
|
|
964
|
+
new_options = opts.merge(
|
|
965
|
+
:header_params => header_params,
|
|
966
|
+
:query_params => query_params,
|
|
967
|
+
:form_params => form_params,
|
|
968
|
+
:body => post_body,
|
|
969
|
+
:auth_names => auth_names,
|
|
970
|
+
:return_type => return_type
|
|
971
|
+
)
|
|
972
|
+
|
|
973
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
974
|
+
if @api_client.config.debugging
|
|
975
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#get_deliverability_tests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
976
|
+
end
|
|
977
|
+
return data, status_code, headers
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
# Get latest deliverability simulation job
|
|
981
|
+
# Get the most recent simulation job for a deliverability test.
|
|
982
|
+
# @param test_id [String]
|
|
983
|
+
# @param [Hash] opts the optional parameters
|
|
984
|
+
# @return [DeliverabilitySimulationJobDto]
|
|
985
|
+
def get_latest_deliverability_simulation_job(test_id, opts = {})
|
|
986
|
+
data, _status_code, _headers = get_latest_deliverability_simulation_job_with_http_info(test_id, opts)
|
|
987
|
+
data
|
|
988
|
+
end
|
|
989
|
+
|
|
990
|
+
# Get latest deliverability simulation job
|
|
991
|
+
# Get the most recent simulation job for a deliverability test.
|
|
992
|
+
# @param test_id [String]
|
|
993
|
+
# @param [Hash] opts the optional parameters
|
|
994
|
+
# @return [Array<(DeliverabilitySimulationJobDto, Integer, Hash)>] DeliverabilitySimulationJobDto data, response status code and response headers
|
|
995
|
+
def get_latest_deliverability_simulation_job_with_http_info(test_id, opts = {})
|
|
996
|
+
if @api_client.config.debugging
|
|
997
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.get_latest_deliverability_simulation_job ...'
|
|
998
|
+
end
|
|
999
|
+
# verify the required parameter 'test_id' is set
|
|
1000
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
1001
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.get_latest_deliverability_simulation_job"
|
|
1002
|
+
end
|
|
1003
|
+
# resource path
|
|
1004
|
+
local_var_path = '/test/deliverability/{testId}/simulation-jobs/latest'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
1005
|
+
|
|
1006
|
+
# query parameters
|
|
1007
|
+
query_params = opts[:query_params] || {}
|
|
1008
|
+
|
|
1009
|
+
# header parameters
|
|
1010
|
+
header_params = opts[:header_params] || {}
|
|
1011
|
+
# HTTP header 'Accept' (if needed)
|
|
1012
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1013
|
+
|
|
1014
|
+
# form parameters
|
|
1015
|
+
form_params = opts[:form_params] || {}
|
|
1016
|
+
|
|
1017
|
+
# http body (model)
|
|
1018
|
+
post_body = opts[:body]
|
|
1019
|
+
|
|
1020
|
+
# return_type
|
|
1021
|
+
return_type = opts[:return_type] || 'DeliverabilitySimulationJobDto'
|
|
1022
|
+
|
|
1023
|
+
# auth_names
|
|
1024
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
1025
|
+
|
|
1026
|
+
new_options = opts.merge(
|
|
1027
|
+
:header_params => header_params,
|
|
1028
|
+
:query_params => query_params,
|
|
1029
|
+
:form_params => form_params,
|
|
1030
|
+
:body => post_body,
|
|
1031
|
+
:auth_names => auth_names,
|
|
1032
|
+
:return_type => return_type
|
|
1033
|
+
)
|
|
1034
|
+
|
|
1035
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1036
|
+
if @api_client.config.debugging
|
|
1037
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#get_latest_deliverability_simulation_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1038
|
+
end
|
|
1039
|
+
return data, status_code, headers
|
|
1040
|
+
end
|
|
1041
|
+
|
|
1042
|
+
# Pause deliverability simulation job
|
|
1043
|
+
# Pause a running simulation job.
|
|
1044
|
+
# @param test_id [String]
|
|
1045
|
+
# @param job_id [String]
|
|
1046
|
+
# @param [Hash] opts the optional parameters
|
|
1047
|
+
# @return [DeliverabilitySimulationJobDto]
|
|
1048
|
+
def pause_deliverability_simulation_job(test_id, job_id, opts = {})
|
|
1049
|
+
data, _status_code, _headers = pause_deliverability_simulation_job_with_http_info(test_id, job_id, opts)
|
|
1050
|
+
data
|
|
1051
|
+
end
|
|
1052
|
+
|
|
1053
|
+
# Pause deliverability simulation job
|
|
1054
|
+
# Pause a running simulation job.
|
|
1055
|
+
# @param test_id [String]
|
|
1056
|
+
# @param job_id [String]
|
|
1057
|
+
# @param [Hash] opts the optional parameters
|
|
1058
|
+
# @return [Array<(DeliverabilitySimulationJobDto, Integer, Hash)>] DeliverabilitySimulationJobDto data, response status code and response headers
|
|
1059
|
+
def pause_deliverability_simulation_job_with_http_info(test_id, job_id, opts = {})
|
|
1060
|
+
if @api_client.config.debugging
|
|
1061
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.pause_deliverability_simulation_job ...'
|
|
1062
|
+
end
|
|
1063
|
+
# verify the required parameter 'test_id' is set
|
|
1064
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
1065
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.pause_deliverability_simulation_job"
|
|
1066
|
+
end
|
|
1067
|
+
# verify the required parameter 'job_id' is set
|
|
1068
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
|
1069
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling DeliverabilityTestControllerApi.pause_deliverability_simulation_job"
|
|
1070
|
+
end
|
|
1071
|
+
# resource path
|
|
1072
|
+
local_var_path = '/test/deliverability/{testId}/simulation-jobs/{jobId}/pause'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s)).sub('{' + 'jobId' + '}', CGI.escape(job_id.to_s))
|
|
1073
|
+
|
|
1074
|
+
# query parameters
|
|
1075
|
+
query_params = opts[:query_params] || {}
|
|
1076
|
+
|
|
1077
|
+
# header parameters
|
|
1078
|
+
header_params = opts[:header_params] || {}
|
|
1079
|
+
# HTTP header 'Accept' (if needed)
|
|
1080
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1081
|
+
|
|
1082
|
+
# form parameters
|
|
1083
|
+
form_params = opts[:form_params] || {}
|
|
1084
|
+
|
|
1085
|
+
# http body (model)
|
|
1086
|
+
post_body = opts[:body]
|
|
1087
|
+
|
|
1088
|
+
# return_type
|
|
1089
|
+
return_type = opts[:return_type] || 'DeliverabilitySimulationJobDto'
|
|
1090
|
+
|
|
1091
|
+
# auth_names
|
|
1092
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
1093
|
+
|
|
1094
|
+
new_options = opts.merge(
|
|
1095
|
+
:header_params => header_params,
|
|
1096
|
+
:query_params => query_params,
|
|
1097
|
+
:form_params => form_params,
|
|
1098
|
+
:body => post_body,
|
|
1099
|
+
:auth_names => auth_names,
|
|
1100
|
+
:return_type => return_type
|
|
1101
|
+
)
|
|
1102
|
+
|
|
1103
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1104
|
+
if @api_client.config.debugging
|
|
1105
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#pause_deliverability_simulation_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1106
|
+
end
|
|
1107
|
+
return data, status_code, headers
|
|
1108
|
+
end
|
|
1109
|
+
|
|
1110
|
+
# Pause deliverability/load test
|
|
1111
|
+
# Pause a RUNNING or SCHEDULED deliverability test.
|
|
1112
|
+
# @param test_id [String]
|
|
1113
|
+
# @param [Hash] opts the optional parameters
|
|
1114
|
+
# @return [DeliverabilityTestDto]
|
|
1115
|
+
def pause_deliverability_test(test_id, opts = {})
|
|
1116
|
+
data, _status_code, _headers = pause_deliverability_test_with_http_info(test_id, opts)
|
|
1117
|
+
data
|
|
1118
|
+
end
|
|
1119
|
+
|
|
1120
|
+
# Pause deliverability/load test
|
|
1121
|
+
# Pause a RUNNING or SCHEDULED deliverability test.
|
|
1122
|
+
# @param test_id [String]
|
|
1123
|
+
# @param [Hash] opts the optional parameters
|
|
1124
|
+
# @return [Array<(DeliverabilityTestDto, Integer, Hash)>] DeliverabilityTestDto data, response status code and response headers
|
|
1125
|
+
def pause_deliverability_test_with_http_info(test_id, opts = {})
|
|
1126
|
+
if @api_client.config.debugging
|
|
1127
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.pause_deliverability_test ...'
|
|
1128
|
+
end
|
|
1129
|
+
# verify the required parameter 'test_id' is set
|
|
1130
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
1131
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.pause_deliverability_test"
|
|
1132
|
+
end
|
|
1133
|
+
# resource path
|
|
1134
|
+
local_var_path = '/test/deliverability/{testId}/pause'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
1135
|
+
|
|
1136
|
+
# query parameters
|
|
1137
|
+
query_params = opts[:query_params] || {}
|
|
1138
|
+
|
|
1139
|
+
# header parameters
|
|
1140
|
+
header_params = opts[:header_params] || {}
|
|
1141
|
+
# HTTP header 'Accept' (if needed)
|
|
1142
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1143
|
+
|
|
1144
|
+
# form parameters
|
|
1145
|
+
form_params = opts[:form_params] || {}
|
|
1146
|
+
|
|
1147
|
+
# http body (model)
|
|
1148
|
+
post_body = opts[:body]
|
|
1149
|
+
|
|
1150
|
+
# return_type
|
|
1151
|
+
return_type = opts[:return_type] || 'DeliverabilityTestDto'
|
|
1152
|
+
|
|
1153
|
+
# auth_names
|
|
1154
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
1155
|
+
|
|
1156
|
+
new_options = opts.merge(
|
|
1157
|
+
:header_params => header_params,
|
|
1158
|
+
:query_params => query_params,
|
|
1159
|
+
:form_params => form_params,
|
|
1160
|
+
:body => post_body,
|
|
1161
|
+
:auth_names => auth_names,
|
|
1162
|
+
:return_type => return_type
|
|
1163
|
+
)
|
|
1164
|
+
|
|
1165
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1166
|
+
if @api_client.config.debugging
|
|
1167
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#pause_deliverability_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1168
|
+
end
|
|
1169
|
+
return data, status_code, headers
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
# Poll deliverability/load test status
|
|
1173
|
+
# Poll test progress. Evaluation is throttled with a 5-second cache window to protect backing data stores.
|
|
1174
|
+
# @param test_id [String]
|
|
1175
|
+
# @param [Hash] opts the optional parameters
|
|
1176
|
+
# @return [DeliverabilityPollStatusResultDto]
|
|
1177
|
+
def poll_deliverability_test_status(test_id, opts = {})
|
|
1178
|
+
data, _status_code, _headers = poll_deliverability_test_status_with_http_info(test_id, opts)
|
|
1179
|
+
data
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
# Poll deliverability/load test status
|
|
1183
|
+
# Poll test progress. Evaluation is throttled with a 5-second cache window to protect backing data stores.
|
|
1184
|
+
# @param test_id [String]
|
|
1185
|
+
# @param [Hash] opts the optional parameters
|
|
1186
|
+
# @return [Array<(DeliverabilityPollStatusResultDto, Integer, Hash)>] DeliverabilityPollStatusResultDto data, response status code and response headers
|
|
1187
|
+
def poll_deliverability_test_status_with_http_info(test_id, opts = {})
|
|
1188
|
+
if @api_client.config.debugging
|
|
1189
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.poll_deliverability_test_status ...'
|
|
1190
|
+
end
|
|
1191
|
+
# verify the required parameter 'test_id' is set
|
|
1192
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
1193
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.poll_deliverability_test_status"
|
|
1194
|
+
end
|
|
1195
|
+
# resource path
|
|
1196
|
+
local_var_path = '/test/deliverability/{testId}/status'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
1197
|
+
|
|
1198
|
+
# query parameters
|
|
1199
|
+
query_params = opts[:query_params] || {}
|
|
1200
|
+
|
|
1201
|
+
# header parameters
|
|
1202
|
+
header_params = opts[:header_params] || {}
|
|
1203
|
+
# HTTP header 'Accept' (if needed)
|
|
1204
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1205
|
+
|
|
1206
|
+
# form parameters
|
|
1207
|
+
form_params = opts[:form_params] || {}
|
|
1208
|
+
|
|
1209
|
+
# http body (model)
|
|
1210
|
+
post_body = opts[:body]
|
|
1211
|
+
|
|
1212
|
+
# return_type
|
|
1213
|
+
return_type = opts[:return_type] || 'DeliverabilityPollStatusResultDto'
|
|
1214
|
+
|
|
1215
|
+
# auth_names
|
|
1216
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
1217
|
+
|
|
1218
|
+
new_options = opts.merge(
|
|
1219
|
+
:header_params => header_params,
|
|
1220
|
+
:query_params => query_params,
|
|
1221
|
+
:form_params => form_params,
|
|
1222
|
+
:body => post_body,
|
|
1223
|
+
:auth_names => auth_names,
|
|
1224
|
+
:return_type => return_type
|
|
1225
|
+
)
|
|
1226
|
+
|
|
1227
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1228
|
+
if @api_client.config.debugging
|
|
1229
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#poll_deliverability_test_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1230
|
+
end
|
|
1231
|
+
return data, status_code, headers
|
|
1232
|
+
end
|
|
1233
|
+
|
|
1234
|
+
# Resume deliverability simulation job
|
|
1235
|
+
# Resume a paused simulation job.
|
|
1236
|
+
# @param test_id [String]
|
|
1237
|
+
# @param job_id [String]
|
|
1238
|
+
# @param [Hash] opts the optional parameters
|
|
1239
|
+
# @return [DeliverabilitySimulationJobDto]
|
|
1240
|
+
def resume_deliverability_simulation_job(test_id, job_id, opts = {})
|
|
1241
|
+
data, _status_code, _headers = resume_deliverability_simulation_job_with_http_info(test_id, job_id, opts)
|
|
1242
|
+
data
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1245
|
+
# Resume deliverability simulation job
|
|
1246
|
+
# Resume a paused simulation job.
|
|
1247
|
+
# @param test_id [String]
|
|
1248
|
+
# @param job_id [String]
|
|
1249
|
+
# @param [Hash] opts the optional parameters
|
|
1250
|
+
# @return [Array<(DeliverabilitySimulationJobDto, Integer, Hash)>] DeliverabilitySimulationJobDto data, response status code and response headers
|
|
1251
|
+
def resume_deliverability_simulation_job_with_http_info(test_id, job_id, opts = {})
|
|
1252
|
+
if @api_client.config.debugging
|
|
1253
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.resume_deliverability_simulation_job ...'
|
|
1254
|
+
end
|
|
1255
|
+
# verify the required parameter 'test_id' is set
|
|
1256
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
1257
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.resume_deliverability_simulation_job"
|
|
1258
|
+
end
|
|
1259
|
+
# verify the required parameter 'job_id' is set
|
|
1260
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
|
1261
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling DeliverabilityTestControllerApi.resume_deliverability_simulation_job"
|
|
1262
|
+
end
|
|
1263
|
+
# resource path
|
|
1264
|
+
local_var_path = '/test/deliverability/{testId}/simulation-jobs/{jobId}/resume'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s)).sub('{' + 'jobId' + '}', CGI.escape(job_id.to_s))
|
|
1265
|
+
|
|
1266
|
+
# query parameters
|
|
1267
|
+
query_params = opts[:query_params] || {}
|
|
1268
|
+
|
|
1269
|
+
# header parameters
|
|
1270
|
+
header_params = opts[:header_params] || {}
|
|
1271
|
+
# HTTP header 'Accept' (if needed)
|
|
1272
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1273
|
+
|
|
1274
|
+
# form parameters
|
|
1275
|
+
form_params = opts[:form_params] || {}
|
|
1276
|
+
|
|
1277
|
+
# http body (model)
|
|
1278
|
+
post_body = opts[:body]
|
|
1279
|
+
|
|
1280
|
+
# return_type
|
|
1281
|
+
return_type = opts[:return_type] || 'DeliverabilitySimulationJobDto'
|
|
1282
|
+
|
|
1283
|
+
# auth_names
|
|
1284
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
1285
|
+
|
|
1286
|
+
new_options = opts.merge(
|
|
1287
|
+
:header_params => header_params,
|
|
1288
|
+
:query_params => query_params,
|
|
1289
|
+
:form_params => form_params,
|
|
1290
|
+
:body => post_body,
|
|
1291
|
+
:auth_names => auth_names,
|
|
1292
|
+
:return_type => return_type
|
|
1293
|
+
)
|
|
1294
|
+
|
|
1295
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1296
|
+
if @api_client.config.debugging
|
|
1297
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#resume_deliverability_simulation_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1298
|
+
end
|
|
1299
|
+
return data, status_code, headers
|
|
1300
|
+
end
|
|
1301
|
+
|
|
1302
|
+
# Start or resume deliverability/load test
|
|
1303
|
+
# Start a CREATED test or resume a PAUSED/SCHEDULED test.
|
|
1304
|
+
# @param test_id [String]
|
|
1305
|
+
# @param [Hash] opts the optional parameters
|
|
1306
|
+
# @return [DeliverabilityTestDto]
|
|
1307
|
+
def start_deliverability_test(test_id, opts = {})
|
|
1308
|
+
data, _status_code, _headers = start_deliverability_test_with_http_info(test_id, opts)
|
|
1309
|
+
data
|
|
1310
|
+
end
|
|
1311
|
+
|
|
1312
|
+
# Start or resume deliverability/load test
|
|
1313
|
+
# Start a CREATED test or resume a PAUSED/SCHEDULED test.
|
|
1314
|
+
# @param test_id [String]
|
|
1315
|
+
# @param [Hash] opts the optional parameters
|
|
1316
|
+
# @return [Array<(DeliverabilityTestDto, Integer, Hash)>] DeliverabilityTestDto data, response status code and response headers
|
|
1317
|
+
def start_deliverability_test_with_http_info(test_id, opts = {})
|
|
1318
|
+
if @api_client.config.debugging
|
|
1319
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.start_deliverability_test ...'
|
|
1320
|
+
end
|
|
1321
|
+
# verify the required parameter 'test_id' is set
|
|
1322
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
1323
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.start_deliverability_test"
|
|
1324
|
+
end
|
|
1325
|
+
# resource path
|
|
1326
|
+
local_var_path = '/test/deliverability/{testId}/start'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
1327
|
+
|
|
1328
|
+
# query parameters
|
|
1329
|
+
query_params = opts[:query_params] || {}
|
|
1330
|
+
|
|
1331
|
+
# header parameters
|
|
1332
|
+
header_params = opts[:header_params] || {}
|
|
1333
|
+
# HTTP header 'Accept' (if needed)
|
|
1334
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1335
|
+
|
|
1336
|
+
# form parameters
|
|
1337
|
+
form_params = opts[:form_params] || {}
|
|
1338
|
+
|
|
1339
|
+
# http body (model)
|
|
1340
|
+
post_body = opts[:body]
|
|
1341
|
+
|
|
1342
|
+
# return_type
|
|
1343
|
+
return_type = opts[:return_type] || 'DeliverabilityTestDto'
|
|
1344
|
+
|
|
1345
|
+
# auth_names
|
|
1346
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
1347
|
+
|
|
1348
|
+
new_options = opts.merge(
|
|
1349
|
+
:header_params => header_params,
|
|
1350
|
+
:query_params => query_params,
|
|
1351
|
+
:form_params => form_params,
|
|
1352
|
+
:body => post_body,
|
|
1353
|
+
:auth_names => auth_names,
|
|
1354
|
+
:return_type => return_type
|
|
1355
|
+
)
|
|
1356
|
+
|
|
1357
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1358
|
+
if @api_client.config.debugging
|
|
1359
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#start_deliverability_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1360
|
+
end
|
|
1361
|
+
return data, status_code, headers
|
|
1362
|
+
end
|
|
1363
|
+
|
|
1364
|
+
# Stop deliverability/load test
|
|
1365
|
+
# Stop a deliverability test and mark it terminal.
|
|
1366
|
+
# @param test_id [String]
|
|
1367
|
+
# @param [Hash] opts the optional parameters
|
|
1368
|
+
# @return [DeliverabilityTestDto]
|
|
1369
|
+
def stop_deliverability_test(test_id, opts = {})
|
|
1370
|
+
data, _status_code, _headers = stop_deliverability_test_with_http_info(test_id, opts)
|
|
1371
|
+
data
|
|
1372
|
+
end
|
|
1373
|
+
|
|
1374
|
+
# Stop deliverability/load test
|
|
1375
|
+
# Stop a deliverability test and mark it terminal.
|
|
1376
|
+
# @param test_id [String]
|
|
1377
|
+
# @param [Hash] opts the optional parameters
|
|
1378
|
+
# @return [Array<(DeliverabilityTestDto, Integer, Hash)>] DeliverabilityTestDto data, response status code and response headers
|
|
1379
|
+
def stop_deliverability_test_with_http_info(test_id, opts = {})
|
|
1380
|
+
if @api_client.config.debugging
|
|
1381
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.stop_deliverability_test ...'
|
|
1382
|
+
end
|
|
1383
|
+
# verify the required parameter 'test_id' is set
|
|
1384
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
1385
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.stop_deliverability_test"
|
|
1386
|
+
end
|
|
1387
|
+
# resource path
|
|
1388
|
+
local_var_path = '/test/deliverability/{testId}/stop'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
1389
|
+
|
|
1390
|
+
# query parameters
|
|
1391
|
+
query_params = opts[:query_params] || {}
|
|
1392
|
+
|
|
1393
|
+
# header parameters
|
|
1394
|
+
header_params = opts[:header_params] || {}
|
|
1395
|
+
# HTTP header 'Accept' (if needed)
|
|
1396
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1397
|
+
|
|
1398
|
+
# form parameters
|
|
1399
|
+
form_params = opts[:form_params] || {}
|
|
1400
|
+
|
|
1401
|
+
# http body (model)
|
|
1402
|
+
post_body = opts[:body]
|
|
1403
|
+
|
|
1404
|
+
# return_type
|
|
1405
|
+
return_type = opts[:return_type] || 'DeliverabilityTestDto'
|
|
1406
|
+
|
|
1407
|
+
# auth_names
|
|
1408
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
1409
|
+
|
|
1410
|
+
new_options = opts.merge(
|
|
1411
|
+
:header_params => header_params,
|
|
1412
|
+
:query_params => query_params,
|
|
1413
|
+
:form_params => form_params,
|
|
1414
|
+
:body => post_body,
|
|
1415
|
+
:auth_names => auth_names,
|
|
1416
|
+
:return_type => return_type
|
|
1417
|
+
)
|
|
1418
|
+
|
|
1419
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1420
|
+
if @api_client.config.debugging
|
|
1421
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#stop_deliverability_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1422
|
+
end
|
|
1423
|
+
return data, status_code, headers
|
|
1424
|
+
end
|
|
1425
|
+
|
|
1426
|
+
# Update deliverability/load test
|
|
1427
|
+
# Update metadata, timeout, and expectations for a non-running non-terminal test.
|
|
1428
|
+
# @param test_id [String]
|
|
1429
|
+
# @param update_deliverability_test_options [UpdateDeliverabilityTestOptions]
|
|
1430
|
+
# @param [Hash] opts the optional parameters
|
|
1431
|
+
# @return [DeliverabilityTestDto]
|
|
1432
|
+
def update_deliverability_test(test_id, update_deliverability_test_options, opts = {})
|
|
1433
|
+
data, _status_code, _headers = update_deliverability_test_with_http_info(test_id, update_deliverability_test_options, opts)
|
|
1434
|
+
data
|
|
1435
|
+
end
|
|
1436
|
+
|
|
1437
|
+
# Update deliverability/load test
|
|
1438
|
+
# Update metadata, timeout, and expectations for a non-running non-terminal test.
|
|
1439
|
+
# @param test_id [String]
|
|
1440
|
+
# @param update_deliverability_test_options [UpdateDeliverabilityTestOptions]
|
|
1441
|
+
# @param [Hash] opts the optional parameters
|
|
1442
|
+
# @return [Array<(DeliverabilityTestDto, Integer, Hash)>] DeliverabilityTestDto data, response status code and response headers
|
|
1443
|
+
def update_deliverability_test_with_http_info(test_id, update_deliverability_test_options, opts = {})
|
|
1444
|
+
if @api_client.config.debugging
|
|
1445
|
+
@api_client.config.logger.debug 'Calling API: DeliverabilityTestControllerApi.update_deliverability_test ...'
|
|
1446
|
+
end
|
|
1447
|
+
# verify the required parameter 'test_id' is set
|
|
1448
|
+
if @api_client.config.client_side_validation && test_id.nil?
|
|
1449
|
+
fail ArgumentError, "Missing the required parameter 'test_id' when calling DeliverabilityTestControllerApi.update_deliverability_test"
|
|
1450
|
+
end
|
|
1451
|
+
# verify the required parameter 'update_deliverability_test_options' is set
|
|
1452
|
+
if @api_client.config.client_side_validation && update_deliverability_test_options.nil?
|
|
1453
|
+
fail ArgumentError, "Missing the required parameter 'update_deliverability_test_options' when calling DeliverabilityTestControllerApi.update_deliverability_test"
|
|
1454
|
+
end
|
|
1455
|
+
# resource path
|
|
1456
|
+
local_var_path = '/test/deliverability/{testId}'.sub('{' + 'testId' + '}', CGI.escape(test_id.to_s))
|
|
1457
|
+
|
|
1458
|
+
# query parameters
|
|
1459
|
+
query_params = opts[:query_params] || {}
|
|
1460
|
+
|
|
1461
|
+
# header parameters
|
|
1462
|
+
header_params = opts[:header_params] || {}
|
|
1463
|
+
# HTTP header 'Accept' (if needed)
|
|
1464
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1465
|
+
# HTTP header 'Content-Type'
|
|
1466
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1467
|
+
|
|
1468
|
+
# form parameters
|
|
1469
|
+
form_params = opts[:form_params] || {}
|
|
1470
|
+
|
|
1471
|
+
# http body (model)
|
|
1472
|
+
post_body = opts[:body] || @api_client.object_to_http_body(update_deliverability_test_options)
|
|
1473
|
+
|
|
1474
|
+
# return_type
|
|
1475
|
+
return_type = opts[:return_type] || 'DeliverabilityTestDto'
|
|
1476
|
+
|
|
1477
|
+
# auth_names
|
|
1478
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
1479
|
+
|
|
1480
|
+
new_options = opts.merge(
|
|
1481
|
+
:header_params => header_params,
|
|
1482
|
+
:query_params => query_params,
|
|
1483
|
+
:form_params => form_params,
|
|
1484
|
+
:body => post_body,
|
|
1485
|
+
:auth_names => auth_names,
|
|
1486
|
+
:return_type => return_type
|
|
1487
|
+
)
|
|
1488
|
+
|
|
1489
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1490
|
+
if @api_client.config.debugging
|
|
1491
|
+
@api_client.config.logger.debug "API called: DeliverabilityTestControllerApi#update_deliverability_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1492
|
+
end
|
|
1493
|
+
return data, status_code, headers
|
|
1494
|
+
end
|
|
1495
|
+
end
|
|
1496
|
+
end
|