From f9207615a9579f3b4e2c04d2b3a6489ffcee796b Mon Sep 17 00:00:00 2001 From: aakanksha-sib Date: Tue, 26 Mar 2019 10:35:35 +0530 Subject: [PATCH] Wrapper generated for swagger-codegen version 3.0.5 --- .swagger-codegen/VERSION | 2 +- README.md | 92 +- docs/AccountApi.md | 3 +- docs/AddContactToList.md | 1 - docs/AddCredits.md | 1 - docs/AttributesApi.md | 33 +- docs/ContactsApi.md | 233 +++-- docs/CreateAttribute.md | 7 +- docs/CreateAttributeEnumeration.md | 11 - docs/CreateChild.md | 1 - docs/CreateContact.md | 3 +- docs/CreateEmailCampaign.md | 19 +- docs/CreateEmailCampaignRecipients.md | 11 - docs/CreateEmailCampaignSender.md | 11 - docs/CreateList.md | 1 - docs/CreateModel.md | 1 - docs/CreateReseller.md | 1 - docs/CreateSender.md | 3 +- docs/CreateSenderIps.md | 12 - docs/CreateSenderModel.md | 1 - docs/CreateSmsCampaign.md | 3 +- docs/CreateSmsCampaignRecipients.md | 11 - docs/CreateSmtpEmail.md | 1 - docs/CreateSmtpTemplate.md | 5 +- docs/CreateSmtpTemplateSender.md | 11 - docs/CreateUpdateContactModel.md | 1 - docs/CreateUpdateFolder.md | 1 - docs/CreateWebhook.md | 1 - docs/CreatedProcessId.md | 1 - docs/DeleteHardbounces.md | 1 - docs/EmailCampaignsApi.md | 111 ++- docs/EmailExportRecipients.md | 1 - docs/ErrorModel.md | 1 - docs/FoldersApi.md | 57 +- docs/GetAccount.md | 12 +- docs/GetAccountMarketingAutomation.md | 11 - docs/GetAccountPlan.md | 15 - docs/GetAccountRelay.md | 11 - docs/GetAccountRelayData.md | 12 - docs/GetAggregatedReport.md | 1 - docs/GetAttributes.md | 3 +- docs/GetAttributesAttributes.md | 14 - docs/GetAttributesEnumeration.md | 11 - docs/GetCampaignOverview.md | 1 - docs/GetCampaignRecipients.md | 1 - docs/GetCampaignStats.md | 1 - docs/GetChildInfo.md | 11 +- docs/GetChildInfoApiKeys.md | 11 - docs/GetChildInfoApiKeysV2.md | 11 - docs/GetChildInfoApiKeysV3.md | 11 - docs/GetChildInfoCredits.md | 11 - docs/GetChildInfoStatistics.md | 12 - docs/GetChildrenList.md | 3 +- docs/GetClient.md | 1 - docs/GetContactCampaignStats.md | 17 +- docs/GetContactCampaignStatsClicked.md | 11 - docs/GetContactCampaignStatsOpened.md | 13 - ...etContactCampaignStatsTransacAttributes.md | 12 - .../GetContactCampaignStatsUnsubscriptions.md | 11 - docs/GetContactDetails.md | 1 - docs/GetContacts.md | 1 - docs/GetEmailCampaign.md | 29 - docs/GetEmailCampaigns.md | 1 - docs/GetEmailEventReport.md | 3 +- docs/GetEmailEventReportEvents.md | 19 - docs/GetExtendedCampaignOverview.md | 18 +- docs/GetExtendedCampaignOverviewSender.md | 11 - docs/GetExtendedCampaignStats.md | 1 - docs/GetExtendedClient.md | 7 +- docs/GetExtendedClientAddress.md | 13 - docs/GetExtendedContactDetails.md | 12 +- docs/GetExtendedContactDetailsStatistics.md | 17 - ...ExtendedContactDetailsStatisticsClicked.md | 11 - ...etExtendedContactDetailsStatisticsLinks.md | 13 - ...dedContactDetailsStatisticsMessagesSent.md | 11 - ...tExtendedContactDetailsStatisticsOpened.md | 13 - ...ContactDetailsStatisticsUnsubscriptions.md | 11 - ...sticsUnsubscriptionsAdminUnsubscription.md | 11 - ...isticsUnsubscriptionsUserUnsubscription.md | 12 - docs/GetExtendedList.md | 7 +- docs/GetExtendedListCampaignStats.md | 11 - docs/GetFolder.md | 1 - docs/GetFolderLists.md | 1 - docs/GetFolders.md | 1 - docs/GetIp.md | 1 - docs/GetIpFromSender.md | 1 - docs/GetIps.md | 1 - docs/GetIpsFromSender.md | 1 - docs/GetList.md | 1 - docs/GetLists.md | 1 - docs/GetProcess.md | 1 - docs/GetProcesses.md | 1 - docs/GetReports.md | 3 +- docs/GetReportsReports.md | 22 - docs/GetSendersList.md | 3 +- docs/GetSendersListIps.md | 12 - docs/GetSendersListSenders.md | 14 - docs/GetSmsCampaign.md | 9 - docs/GetSmsCampaignOverview.md | 1 - docs/GetSmsCampaignStats.md | 1 - docs/GetSmsCampaigns.md | 1 - docs/GetSmsEventReport.md | 3 +- docs/GetSmsEventReportEvents.md | 16 - docs/GetSmtpTemplateOverview.md | 3 +- docs/GetSmtpTemplateOverviewSender.md | 11 - docs/GetSmtpTemplates.md | 1 - docs/GetStatsByDomain.md | 1 - docs/GetTransacAggregatedSmsReport.md | 1 - docs/GetTransacSmsReport.md | 3 +- docs/GetTransacSmsReportReports.md | 19 - docs/GetWebhook.md | 1 - docs/GetWebhooks.md | 1 - docs/ListsApi.md | 99 +- docs/ManageIp.md | 1 - docs/PostContactInfo.md | 3 +- docs/PostContactInfoContacts.md | 12 - docs/PostSendFailed.md | 1 - docs/PostSendSmsTestFailed.md | 1 - docs/ProcessApi.md | 17 +- docs/RemainingCreditModel.md | 5 +- docs/RemainingCreditModelChild.md | 11 - docs/RemainingCreditModelReseller.md | 11 - docs/RemoveContactFromList.md | 5 +- docs/RemoveCredits.md | 1 - docs/RequestContactExport.md | 3 +- docs/RequestContactImport.md | 3 +- docs/RequestContactImportNewList.md | 11 - docs/RequestSMSRecipientExport.md | 1 - docs/ResellerApi.md | 73 +- docs/SMSCampaignsApi.md | 107 ++- docs/SMTPApi.md | 143 ++- docs/SendEmail.md | 7 +- docs/SendEmailAttachment.md | 11 - docs/SendReport.md | 3 +- docs/SendReportEmail.md | 15 - docs/SendSms.md | 3 +- docs/SendSmtpEmail.md | 23 +- docs/SendSmtpEmailAttachment.md | 12 - docs/SendSmtpEmailBcc.md | 11 - docs/SendSmtpEmailCc.md | 11 - docs/SendSmtpEmailReplyTo.md | 11 - docs/SendSmtpEmailSender.md | 11 - docs/SendSmtpEmailTo.md | 11 - docs/SendTemplateEmail.md | 1 - docs/SendTestEmail.md | 1 - docs/SendTestSms.md | 1 - docs/SendTransacSms.md | 1 - docs/SendersApi.md | 41 +- docs/TransactionalSMSApi.md | 51 +- docs/UpdateAttribute.md | 5 +- docs/UpdateAttributeEnumeration.md | 11 - docs/UpdateCampaignStatus.md | 1 - docs/UpdateChild.md | 1 - docs/UpdateContact.md | 3 +- docs/UpdateEmailCampaign.md | 17 +- docs/UpdateEmailCampaignRecipients.md | 11 - docs/UpdateEmailCampaignSender.md | 11 - docs/UpdateList.md | 1 - docs/UpdateSender.md | 3 +- docs/UpdateSmsCampaign.md | 3 +- docs/UpdateSmtpTemplate.md | 5 +- docs/UpdateSmtpTemplateSender.md | 11 - docs/UpdateWebhook.md | 1 - docs/WebhooksApi.md | 39 +- setup.py | 6 +- sib_api_v3_sdk/__init__.py | 72 +- sib_api_v3_sdk/api/account_api.py | 23 +- sib_api_v3_sdk/api/attributes_api.py | 133 ++- sib_api_v3_sdk/api/contacts_api.py | 855 ++++++++---------- sib_api_v3_sdk/api/email_campaigns_api.py | 349 ++++--- sib_api_v3_sdk/api/folders_api.py | 181 ++-- sib_api_v3_sdk/api/lists_api.py | 297 +++--- sib_api_v3_sdk/api/process_api.py | 47 +- sib_api_v3_sdk/api/reseller_api.py | 323 ++++--- sib_api_v3_sdk/api/senders_api.py | 145 ++- sib_api_v3_sdk/api/sms_campaigns_api.py | 347 ++++--- sib_api_v3_sdk/api/smtp_api.py | 387 ++++---- sib_api_v3_sdk/api/transactional_sms_api.py | 113 +-- sib_api_v3_sdk/api/webhooks_api.py | 155 ++-- sib_api_v3_sdk/api_client.py | 33 +- sib_api_v3_sdk/configuration.py | 3 - sib_api_v3_sdk/models/__init__.py | 72 +- sib_api_v3_sdk/models/add_contact_to_list.py | 7 +- sib_api_v3_sdk/models/add_credits.py | 7 +- sib_api_v3_sdk/models/create_attribute.py | 15 +- .../models/create_attribute_enumeration.py | 144 --- sib_api_v3_sdk/models/create_child.py | 7 +- sib_api_v3_sdk/models/create_contact.py | 7 +- .../models/create_email_campaign.py | 34 +- .../create_email_campaign_recipients.py | 142 --- .../models/create_email_campaign_sender.py | 143 --- sib_api_v3_sdk/models/create_list.py | 7 +- sib_api_v3_sdk/models/create_model.py | 7 +- sib_api_v3_sdk/models/create_reseller.py | 7 +- sib_api_v3_sdk/models/create_sender.py | 15 +- sib_api_v3_sdk/models/create_sender_ips.py | 176 ---- sib_api_v3_sdk/models/create_sender_model.py | 7 +- sib_api_v3_sdk/models/create_sms_campaign.py | 17 +- .../models/create_sms_campaign_recipients.py | 143 --- sib_api_v3_sdk/models/create_smtp_email.py | 7 +- sib_api_v3_sdk/models/create_smtp_template.py | 17 +- .../models/create_smtp_template_sender.py | 143 --- .../models/create_update_contact_model.py | 7 +- sib_api_v3_sdk/models/create_update_folder.py | 7 +- sib_api_v3_sdk/models/create_webhook.py | 7 +- sib_api_v3_sdk/models/created_process_id.py | 7 +- sib_api_v3_sdk/models/delete_hardbounces.py | 7 +- .../models/email_export_recipients.py | 7 +- sib_api_v3_sdk/models/error_model.py | 7 +- sib_api_v3_sdk/models/get_account.py | 179 +--- .../get_account_marketing_automation.py | 143 --- sib_api_v3_sdk/models/get_account_plan.py | 269 ------ sib_api_v3_sdk/models/get_account_relay.py | 144 --- .../models/get_account_relay_data.py | 173 ---- .../models/get_aggregated_report.py | 7 +- sib_api_v3_sdk/models/get_attributes.py | 15 +- .../models/get_attributes_attributes.py | 242 ----- .../models/get_attributes_enumeration.py | 144 --- .../models/get_campaign_overview.py | 7 +- .../models/get_campaign_recipients.py | 7 +- sib_api_v3_sdk/models/get_campaign_stats.py | 7 +- sib_api_v3_sdk/models/get_child_info.py | 155 +--- .../models/get_child_info_api_keys.py | 142 --- .../models/get_child_info_api_keys_v2.py | 144 --- .../models/get_child_info_api_keys_v3.py | 144 --- .../models/get_child_info_credits.py | 142 --- .../models/get_child_info_statistics.py | 170 ---- sib_api_v3_sdk/models/get_children_list.py | 7 +- sib_api_v3_sdk/models/get_client.py | 7 +- .../models/get_contact_campaign_stats.py | 61 +- .../get_contact_campaign_stats_clicked.py | 144 --- .../get_contact_campaign_stats_opened.py | 202 ----- ...ntact_campaign_stats_transac_attributes.py | 173 ---- ..._contact_campaign_stats_unsubscriptions.py | 147 --- sib_api_v3_sdk/models/get_contact_details.py | 7 +- sib_api_v3_sdk/models/get_contacts.py | 7 +- sib_api_v3_sdk/models/get_email_campaign.py | 821 +---------------- sib_api_v3_sdk/models/get_email_campaigns.py | 7 +- .../models/get_email_event_report.py | 15 +- .../models/get_email_event_report_events.py | 376 -------- .../models/get_extended_campaign_overview.py | 399 +------- .../get_extended_campaign_overview_sender.py | 142 --- .../models/get_extended_campaign_stats.py | 8 +- sib_api_v3_sdk/models/get_extended_client.py | 137 +-- .../models/get_extended_client_address.py | 202 ----- .../models/get_extended_contact_details.py | 277 +----- ...get_extended_contact_details_statistics.py | 313 ------- ...nded_contact_details_statistics_clicked.py | 146 --- ...tended_contact_details_statistics_links.py | 202 ----- ...ontact_details_statistics_messages_sent.py | 144 --- ...ended_contact_details_statistics_opened.py | 202 ----- ...tact_details_statistics_unsubscriptions.py | 147 --- ...cs_unsubscriptions_admin_unsubscription.py | 144 --- ...ics_unsubscriptions_user_unsubscription.py | 173 ---- sib_api_v3_sdk/models/get_extended_list.py | 135 +-- .../get_extended_list_campaign_stats.py | 144 --- sib_api_v3_sdk/models/get_folder.py | 7 +- sib_api_v3_sdk/models/get_folder_lists.py | 7 +- sib_api_v3_sdk/models/get_folders.py | 7 +- sib_api_v3_sdk/models/get_ip.py | 7 +- sib_api_v3_sdk/models/get_ip_from_sender.py | 7 +- sib_api_v3_sdk/models/get_ips.py | 8 +- sib_api_v3_sdk/models/get_ips_from_sender.py | 8 +- sib_api_v3_sdk/models/get_list.py | 7 +- sib_api_v3_sdk/models/get_lists.py | 7 +- sib_api_v3_sdk/models/get_process.py | 7 +- sib_api_v3_sdk/models/get_processes.py | 8 +- sib_api_v3_sdk/models/get_reports.py | 15 +- sib_api_v3_sdk/models/get_reports_reports.py | 463 ---------- sib_api_v3_sdk/models/get_senders_list.py | 15 +- sib_api_v3_sdk/models/get_senders_list_ips.py | 173 ---- .../models/get_senders_list_senders.py | 232 ----- sib_api_v3_sdk/models/get_sms_campaign.py | 250 +---- .../models/get_sms_campaign_overview.py | 7 +- .../models/get_sms_campaign_stats.py | 7 +- sib_api_v3_sdk/models/get_sms_campaigns.py | 7 +- sib_api_v3_sdk/models/get_sms_event_report.py | 15 +- .../models/get_sms_event_report_events.py | 290 ------ .../models/get_smtp_template_overview.py | 15 +- .../get_smtp_template_overview_sender.py | 142 --- sib_api_v3_sdk/models/get_smtp_templates.py | 8 +- sib_api_v3_sdk/models/get_stats_by_domain.py | 8 +- .../get_transac_aggregated_sms_report.py | 7 +- .../models/get_transac_sms_report.py | 15 +- .../models/get_transac_sms_report_reports.py | 376 -------- sib_api_v3_sdk/models/get_webhook.py | 7 +- sib_api_v3_sdk/models/get_webhooks.py | 7 +- sib_api_v3_sdk/models/manage_ip.py | 7 +- sib_api_v3_sdk/models/post_contact_info.py | 15 +- .../models/post_contact_info_contacts.py | 166 ---- sib_api_v3_sdk/models/post_send_failed.py | 7 +- .../models/post_send_sms_test_failed.py | 7 +- .../models/remaining_credit_model.py | 24 +- .../models/remaining_credit_model_child.py | 144 --- .../models/remaining_credit_model_reseller.py | 144 --- .../models/remove_contact_from_list.py | 7 +- sib_api_v3_sdk/models/remove_credits.py | 7 +- .../models/request_contact_export.py | 7 +- .../models/request_contact_import.py | 17 +- .../models/request_contact_import_new_list.py | 142 --- .../models/request_sms_recipient_export.py | 7 +- sib_api_v3_sdk/models/send_email.py | 15 +- .../models/send_email_attachment.py | 146 --- sib_api_v3_sdk/models/send_report.py | 17 +- sib_api_v3_sdk/models/send_report_email.py | 263 ------ sib_api_v3_sdk/models/send_sms.py | 7 +- sib_api_v3_sdk/models/send_smtp_email.py | 54 +- .../models/send_smtp_email_attachment.py | 172 ---- sib_api_v3_sdk/models/send_smtp_email_bcc.py | 143 --- sib_api_v3_sdk/models/send_smtp_email_cc.py | 143 --- .../models/send_smtp_email_reply_to.py | 143 --- .../models/send_smtp_email_sender.py | 143 --- sib_api_v3_sdk/models/send_smtp_email_to.py | 143 --- sib_api_v3_sdk/models/send_template_email.py | 7 +- sib_api_v3_sdk/models/send_test_email.py | 7 +- sib_api_v3_sdk/models/send_test_sms.py | 7 +- sib_api_v3_sdk/models/send_transac_sms.py | 9 +- sib_api_v3_sdk/models/update_attribute.py | 15 +- .../models/update_attribute_enumeration.py | 144 --- .../models/update_campaign_status.py | 7 +- sib_api_v3_sdk/models/update_child.py | 7 +- sib_api_v3_sdk/models/update_contact.py | 7 +- .../models/update_email_campaign.py | 34 +- .../update_email_campaign_recipients.py | 142 --- .../models/update_email_campaign_sender.py | 142 --- sib_api_v3_sdk/models/update_list.py | 7 +- sib_api_v3_sdk/models/update_sender.py | 15 +- sib_api_v3_sdk/models/update_sms_campaign.py | 17 +- sib_api_v3_sdk/models/update_smtp_template.py | 17 +- .../models/update_smtp_template_sender.py | 142 --- sib_api_v3_sdk/models/update_webhook.py | 7 +- sib_api_v3_sdk/rest.py | 1 - test/test_account_api.py | 1 - test/test_add_contact_to_list.py | 1 - test/test_add_credits.py | 1 - test/test_attributes_api.py | 1 - test/test_contacts_api.py | 1 - test/test_create_attribute.py | 1 - test/test_create_attribute_enumeration.py | 40 - test/test_create_child.py | 1 - test/test_create_contact.py | 1 - test/test_create_email_campaign.py | 1 - test/test_create_email_campaign_recipients.py | 40 - test/test_create_email_campaign_sender.py | 40 - test/test_create_list.py | 1 - test/test_create_model.py | 1 - test/test_create_reseller.py | 1 - test/test_create_sender.py | 1 - test/test_create_sender_ips.py | 40 - test/test_create_sender_model.py | 1 - test/test_create_sms_campaign.py | 1 - test/test_create_sms_campaign_recipients.py | 40 - test/test_create_smtp_email.py | 1 - test/test_create_smtp_template.py | 1 - test/test_create_smtp_template_sender.py | 40 - test/test_create_update_contact_model.py | 1 - test/test_create_update_folder.py | 1 - test/test_create_webhook.py | 1 - test/test_created_process_id.py | 1 - test/test_delete_hardbounces.py | 1 - test/test_email_campaigns_api.py | 1 - test/test_email_export_recipients.py | 1 - test/test_error_model.py | 1 - test/test_folders_api.py | 1 - test/test_get_account.py | 1 - test/test_get_account_marketing_automation.py | 40 - test/test_get_account_plan.py | 40 - test/test_get_account_relay.py | 40 - test/test_get_account_relay_data.py | 40 - test/test_get_aggregated_report.py | 1 - test/test_get_attributes.py | 1 - test/test_get_attributes_attributes.py | 40 - test/test_get_attributes_enumeration.py | 40 - test/test_get_campaign_overview.py | 1 - test/test_get_campaign_recipients.py | 1 - test/test_get_campaign_stats.py | 1 - test/test_get_child_info.py | 1 - test/test_get_child_info_api_keys.py | 40 - test/test_get_child_info_api_keys_v2.py | 40 - test/test_get_child_info_api_keys_v3.py | 40 - test/test_get_child_info_credits.py | 40 - test/test_get_child_info_statistics.py | 40 - test/test_get_children_list.py | 1 - test/test_get_client.py | 1 - test/test_get_contact_campaign_stats.py | 1 - ...test_get_contact_campaign_stats_clicked.py | 40 - .../test_get_contact_campaign_stats_opened.py | 40 - ...ntact_campaign_stats_transac_attributes.py | 40 - ..._contact_campaign_stats_unsubscriptions.py | 40 - test/test_get_contact_details.py | 1 - test/test_get_contacts.py | 1 - test/test_get_email_campaign.py | 1 - test/test_get_email_campaigns.py | 1 - test/test_get_email_event_report.py | 1 - test/test_get_email_event_report_events.py | 40 - test/test_get_extended_campaign_overview.py | 1 - ...t_get_extended_campaign_overview_sender.py | 40 - test/test_get_extended_campaign_stats.py | 1 - test/test_get_extended_client.py | 1 - test/test_get_extended_client_address.py | 40 - test/test_get_extended_contact_details.py | 1 - ...get_extended_contact_details_statistics.py | 40 - ...nded_contact_details_statistics_clicked.py | 40 - ...tended_contact_details_statistics_links.py | 40 - ...ontact_details_statistics_messages_sent.py | 40 - ...ended_contact_details_statistics_opened.py | 40 - ...tact_details_statistics_unsubscriptions.py | 40 - ...cs_unsubscriptions_admin_unsubscription.py | 40 - ...ics_unsubscriptions_user_unsubscription.py | 40 - test/test_get_extended_list.py | 1 - test/test_get_extended_list_campaign_stats.py | 40 - test/test_get_folder.py | 1 - test/test_get_folder_lists.py | 1 - test/test_get_folders.py | 1 - test/test_get_ip.py | 1 - test/test_get_ip_from_sender.py | 1 - test/test_get_ips.py | 1 - test/test_get_ips_from_sender.py | 1 - test/test_get_list.py | 1 - test/test_get_lists.py | 1 - test/test_get_process.py | 1 - test/test_get_processes.py | 1 - test/test_get_reports.py | 1 - test/test_get_reports_reports.py | 40 - test/test_get_senders_list.py | 1 - test/test_get_senders_list_ips.py | 40 - test/test_get_senders_list_senders.py | 40 - test/test_get_sms_campaign.py | 1 - test/test_get_sms_campaign_overview.py | 1 - test/test_get_sms_campaign_stats.py | 1 - test/test_get_sms_campaigns.py | 1 - test/test_get_sms_event_report.py | 1 - test/test_get_sms_event_report_events.py | 40 - test/test_get_smtp_template_overview.py | 1 - .../test_get_smtp_template_overview_sender.py | 40 - test/test_get_smtp_templates.py | 1 - test/test_get_stats_by_domain.py | 1 - .../test_get_transac_aggregated_sms_report.py | 1 - test/test_get_transac_sms_report.py | 1 - test/test_get_transac_sms_report_reports.py | 40 - test/test_get_webhook.py | 1 - test/test_get_webhooks.py | 1 - test/test_lists_api.py | 1 - test/test_manage_ip.py | 1 - test/test_post_contact_info.py | 1 - test/test_post_contact_info_contacts.py | 40 - test/test_post_send_failed.py | 1 - test/test_post_send_sms_test_failed.py | 1 - test/test_process_api.py | 1 - test/test_remaining_credit_model.py | 1 - test/test_remaining_credit_model_child.py | 40 - test/test_remaining_credit_model_reseller.py | 40 - test/test_remove_contact_from_list.py | 1 - test/test_remove_credits.py | 1 - test/test_request_contact_export.py | 1 - test/test_request_contact_import.py | 1 - test/test_request_contact_import_new_list.py | 40 - test/test_request_sms_recipient_export.py | 1 - test/test_reseller_api.py | 1 - test/test_send_email.py | 1 - test/test_send_email_attachment.py | 40 - test/test_send_report.py | 1 - test/test_send_report_email.py | 40 - test/test_send_sms.py | 1 - test/test_send_smtp_email.py | 1 - test/test_send_smtp_email_attachment.py | 40 - test/test_send_smtp_email_bcc.py | 40 - test/test_send_smtp_email_cc.py | 40 - test/test_send_smtp_email_reply_to.py | 40 - test/test_send_smtp_email_sender.py | 40 - test/test_send_smtp_email_to.py | 40 - test/test_send_template_email.py | 1 - test/test_send_test_email.py | 1 - test/test_send_test_sms.py | 1 - test/test_send_transac_sms.py | 1 - test/test_senders_api.py | 1 - test/test_sms_campaigns_api.py | 1 - test/test_smtp_api.py | 1 - test/test_transactional_sms_api.py | 1 - test/test_update_attribute.py | 1 - test/test_update_attribute_enumeration.py | 40 - test/test_update_campaign_status.py | 1 - test/test_update_child.py | 1 - test/test_update_contact.py | 1 - test/test_update_email_campaign.py | 1 - test/test_update_email_campaign_recipients.py | 40 - test/test_update_email_campaign_sender.py | 40 - test/test_update_list.py | 1 - test/test_update_sender.py | 1 - test/test_update_sms_campaign.py | 1 - test/test_update_smtp_template.py | 1 - test/test_update_smtp_template_sender.py | 40 - test/test_update_webhook.py | 1 - test/test_webhooks_api.py | 1 - 494 files changed, 2664 insertions(+), 18478 deletions(-) delete mode 100644 docs/CreateAttributeEnumeration.md delete mode 100644 docs/CreateEmailCampaignRecipients.md delete mode 100644 docs/CreateEmailCampaignSender.md delete mode 100644 docs/CreateSenderIps.md delete mode 100644 docs/CreateSmsCampaignRecipients.md delete mode 100644 docs/CreateSmtpTemplateSender.md delete mode 100644 docs/GetAccountMarketingAutomation.md delete mode 100644 docs/GetAccountPlan.md delete mode 100644 docs/GetAccountRelay.md delete mode 100644 docs/GetAccountRelayData.md delete mode 100644 docs/GetAttributesAttributes.md delete mode 100644 docs/GetAttributesEnumeration.md delete mode 100644 docs/GetChildInfoApiKeys.md delete mode 100644 docs/GetChildInfoApiKeysV2.md delete mode 100644 docs/GetChildInfoApiKeysV3.md delete mode 100644 docs/GetChildInfoCredits.md delete mode 100644 docs/GetChildInfoStatistics.md delete mode 100644 docs/GetContactCampaignStatsClicked.md delete mode 100644 docs/GetContactCampaignStatsOpened.md delete mode 100644 docs/GetContactCampaignStatsTransacAttributes.md delete mode 100644 docs/GetContactCampaignStatsUnsubscriptions.md delete mode 100644 docs/GetEmailEventReportEvents.md delete mode 100644 docs/GetExtendedCampaignOverviewSender.md delete mode 100644 docs/GetExtendedClientAddress.md delete mode 100644 docs/GetExtendedContactDetailsStatistics.md delete mode 100644 docs/GetExtendedContactDetailsStatisticsClicked.md delete mode 100644 docs/GetExtendedContactDetailsStatisticsLinks.md delete mode 100644 docs/GetExtendedContactDetailsStatisticsMessagesSent.md delete mode 100644 docs/GetExtendedContactDetailsStatisticsOpened.md delete mode 100644 docs/GetExtendedContactDetailsStatisticsUnsubscriptions.md delete mode 100644 docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md delete mode 100644 docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md delete mode 100644 docs/GetExtendedListCampaignStats.md delete mode 100644 docs/GetReportsReports.md delete mode 100644 docs/GetSendersListIps.md delete mode 100644 docs/GetSendersListSenders.md delete mode 100644 docs/GetSmsEventReportEvents.md delete mode 100644 docs/GetSmtpTemplateOverviewSender.md delete mode 100644 docs/GetTransacSmsReportReports.md delete mode 100644 docs/PostContactInfoContacts.md delete mode 100644 docs/RemainingCreditModelChild.md delete mode 100644 docs/RemainingCreditModelReseller.md delete mode 100644 docs/RequestContactImportNewList.md delete mode 100644 docs/SendEmailAttachment.md delete mode 100644 docs/SendReportEmail.md delete mode 100644 docs/SendSmtpEmailAttachment.md delete mode 100644 docs/SendSmtpEmailBcc.md delete mode 100644 docs/SendSmtpEmailCc.md delete mode 100644 docs/SendSmtpEmailReplyTo.md delete mode 100644 docs/SendSmtpEmailSender.md delete mode 100644 docs/SendSmtpEmailTo.md delete mode 100644 docs/UpdateAttributeEnumeration.md delete mode 100644 docs/UpdateEmailCampaignRecipients.md delete mode 100644 docs/UpdateEmailCampaignSender.md delete mode 100644 docs/UpdateSmtpTemplateSender.md delete mode 100644 sib_api_v3_sdk/models/create_attribute_enumeration.py delete mode 100644 sib_api_v3_sdk/models/create_email_campaign_recipients.py delete mode 100644 sib_api_v3_sdk/models/create_email_campaign_sender.py delete mode 100644 sib_api_v3_sdk/models/create_sender_ips.py delete mode 100644 sib_api_v3_sdk/models/create_sms_campaign_recipients.py delete mode 100644 sib_api_v3_sdk/models/create_smtp_template_sender.py delete mode 100644 sib_api_v3_sdk/models/get_account_marketing_automation.py delete mode 100644 sib_api_v3_sdk/models/get_account_plan.py delete mode 100644 sib_api_v3_sdk/models/get_account_relay.py delete mode 100644 sib_api_v3_sdk/models/get_account_relay_data.py delete mode 100644 sib_api_v3_sdk/models/get_attributes_attributes.py delete mode 100644 sib_api_v3_sdk/models/get_attributes_enumeration.py delete mode 100644 sib_api_v3_sdk/models/get_child_info_api_keys.py delete mode 100644 sib_api_v3_sdk/models/get_child_info_api_keys_v2.py delete mode 100644 sib_api_v3_sdk/models/get_child_info_api_keys_v3.py delete mode 100644 sib_api_v3_sdk/models/get_child_info_credits.py delete mode 100644 sib_api_v3_sdk/models/get_child_info_statistics.py delete mode 100644 sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py delete mode 100644 sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py delete mode 100644 sib_api_v3_sdk/models/get_contact_campaign_stats_transac_attributes.py delete mode 100644 sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py delete mode 100644 sib_api_v3_sdk/models/get_email_event_report_events.py delete mode 100644 sib_api_v3_sdk/models/get_extended_campaign_overview_sender.py delete mode 100644 sib_api_v3_sdk/models/get_extended_client_address.py delete mode 100644 sib_api_v3_sdk/models/get_extended_contact_details_statistics.py delete mode 100644 sib_api_v3_sdk/models/get_extended_contact_details_statistics_clicked.py delete mode 100644 sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py delete mode 100644 sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py delete mode 100644 sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py delete mode 100644 sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions.py delete mode 100644 sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py delete mode 100644 sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py delete mode 100644 sib_api_v3_sdk/models/get_extended_list_campaign_stats.py delete mode 100644 sib_api_v3_sdk/models/get_reports_reports.py delete mode 100644 sib_api_v3_sdk/models/get_senders_list_ips.py delete mode 100644 sib_api_v3_sdk/models/get_senders_list_senders.py delete mode 100644 sib_api_v3_sdk/models/get_sms_event_report_events.py delete mode 100644 sib_api_v3_sdk/models/get_smtp_template_overview_sender.py delete mode 100644 sib_api_v3_sdk/models/get_transac_sms_report_reports.py delete mode 100644 sib_api_v3_sdk/models/post_contact_info_contacts.py delete mode 100644 sib_api_v3_sdk/models/remaining_credit_model_child.py delete mode 100644 sib_api_v3_sdk/models/remaining_credit_model_reseller.py delete mode 100644 sib_api_v3_sdk/models/request_contact_import_new_list.py delete mode 100644 sib_api_v3_sdk/models/send_email_attachment.py delete mode 100644 sib_api_v3_sdk/models/send_report_email.py delete mode 100644 sib_api_v3_sdk/models/send_smtp_email_attachment.py delete mode 100644 sib_api_v3_sdk/models/send_smtp_email_bcc.py delete mode 100644 sib_api_v3_sdk/models/send_smtp_email_cc.py delete mode 100644 sib_api_v3_sdk/models/send_smtp_email_reply_to.py delete mode 100644 sib_api_v3_sdk/models/send_smtp_email_sender.py delete mode 100644 sib_api_v3_sdk/models/send_smtp_email_to.py delete mode 100644 sib_api_v3_sdk/models/update_attribute_enumeration.py delete mode 100644 sib_api_v3_sdk/models/update_email_campaign_recipients.py delete mode 100644 sib_api_v3_sdk/models/update_email_campaign_sender.py delete mode 100644 sib_api_v3_sdk/models/update_smtp_template_sender.py delete mode 100644 test/test_create_attribute_enumeration.py delete mode 100644 test/test_create_email_campaign_recipients.py delete mode 100644 test/test_create_email_campaign_sender.py delete mode 100644 test/test_create_sender_ips.py delete mode 100644 test/test_create_sms_campaign_recipients.py delete mode 100644 test/test_create_smtp_template_sender.py delete mode 100644 test/test_get_account_marketing_automation.py delete mode 100644 test/test_get_account_plan.py delete mode 100644 test/test_get_account_relay.py delete mode 100644 test/test_get_account_relay_data.py delete mode 100644 test/test_get_attributes_attributes.py delete mode 100644 test/test_get_attributes_enumeration.py delete mode 100644 test/test_get_child_info_api_keys.py delete mode 100644 test/test_get_child_info_api_keys_v2.py delete mode 100644 test/test_get_child_info_api_keys_v3.py delete mode 100644 test/test_get_child_info_credits.py delete mode 100644 test/test_get_child_info_statistics.py delete mode 100644 test/test_get_contact_campaign_stats_clicked.py delete mode 100644 test/test_get_contact_campaign_stats_opened.py delete mode 100644 test/test_get_contact_campaign_stats_transac_attributes.py delete mode 100644 test/test_get_contact_campaign_stats_unsubscriptions.py delete mode 100644 test/test_get_email_event_report_events.py delete mode 100644 test/test_get_extended_campaign_overview_sender.py delete mode 100644 test/test_get_extended_client_address.py delete mode 100644 test/test_get_extended_contact_details_statistics.py delete mode 100644 test/test_get_extended_contact_details_statistics_clicked.py delete mode 100644 test/test_get_extended_contact_details_statistics_links.py delete mode 100644 test/test_get_extended_contact_details_statistics_messages_sent.py delete mode 100644 test/test_get_extended_contact_details_statistics_opened.py delete mode 100644 test/test_get_extended_contact_details_statistics_unsubscriptions.py delete mode 100644 test/test_get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py delete mode 100644 test/test_get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py delete mode 100644 test/test_get_extended_list_campaign_stats.py delete mode 100644 test/test_get_reports_reports.py delete mode 100644 test/test_get_senders_list_ips.py delete mode 100644 test/test_get_senders_list_senders.py delete mode 100644 test/test_get_sms_event_report_events.py delete mode 100644 test/test_get_smtp_template_overview_sender.py delete mode 100644 test/test_get_transac_sms_report_reports.py delete mode 100644 test/test_post_contact_info_contacts.py delete mode 100644 test/test_remaining_credit_model_child.py delete mode 100644 test/test_remaining_credit_model_reseller.py delete mode 100644 test/test_request_contact_import_new_list.py delete mode 100644 test/test_send_email_attachment.py delete mode 100644 test/test_send_report_email.py delete mode 100644 test/test_send_smtp_email_attachment.py delete mode 100644 test/test_send_smtp_email_bcc.py delete mode 100644 test/test_send_smtp_email_cc.py delete mode 100644 test/test_send_smtp_email_reply_to.py delete mode 100644 test/test_send_smtp_email_sender.py delete mode 100644 test/test_send_smtp_email_to.py delete mode 100644 test/test_update_attribute_enumeration.py delete mode 100644 test/test_update_email_campaign_recipients.py delete mode 100644 test/test_update_email_campaign_sender.py delete mode 100644 test/test_update_smtp_template_sender.py diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION index 2bf1c1c..eca690e 100644 --- a/.swagger-codegen/VERSION +++ b/.swagger-codegen/VERSION @@ -1 +1 @@ -2.3.1 +3.0.5 diff --git a/README.md b/README.md index 6c58f77..4e830d0 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,7 @@ SendinBlue's API matches the [OpenAPI v2 definition](https://www.openapis.org/). This PYTHON package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project and is reviewed and maintained by SendinBlue: - API version: 3.0.0 -- Build package: io.swagger.codegen.languages.PythonClientCodegen - +- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen For more information, please visit [https://account.sendinblue.com/support](https://account.sendinblue.com/support) ## Requirements. @@ -62,6 +61,11 @@ configuration = sib_api_v3_sdk.Configuration() configuration.api_key['api-key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' # create an instance of the API class api_instance = sib_api_v3_sdk.AccountApi(sib_api_v3_sdk.ApiClient(configuration)) @@ -72,7 +76,6 @@ try: pprint(api_response) except ApiException as e: print("Exception when calling AccountApi->get_account: %s\n" % e) - ``` ## Documentation for API Endpoints @@ -145,9 +148,9 @@ Class | Method | HTTP request | Description *ResellerApi* | [**delete_reseller_child**](docs/ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied *ResellerApi* | [**dissociate_ip_from_child**](docs/ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child *ResellerApi* | [**get_child_info**](docs/ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account -*ResellerApi* | [**get_reseller_childs**](docs/ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts +*ResellerApi* | [**get_reseller_childs**](docs/ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts *ResellerApi* | [**remove_credits**](docs/ResellerApi.md#remove_credits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account -*ResellerApi* | [**update_reseller_child**](docs/ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied +*ResellerApi* | [**update_reseller_child**](docs/ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied *SMSCampaignsApi* | [**create_sms_campaign**](docs/SMSCampaignsApi.md#create_sms_campaign) | **POST** /smsCampaigns | Creates an SMS campaign *SMSCampaignsApi* | [**delete_sms_campaign**](docs/SMSCampaignsApi.md#delete_sms_campaign) | **DELETE** /smsCampaigns/{campaignId} | Delete the SMS campaign *SMSCampaignsApi* | [**get_sms_campaign**](docs/SMSCampaignsApi.md#get_sms_campaign) | **GET** /smsCampaigns/{campaignId} | Get an SMS campaign @@ -186,29 +189,22 @@ Class | Method | HTTP request | Description *WebhooksApi* | [**get_webhooks**](docs/WebhooksApi.md#get_webhooks) | **GET** /webhooks | Get all webhooks *WebhooksApi* | [**update_webhook**](docs/WebhooksApi.md#update_webhook) | **PUT** /webhooks/{webhookId} | Update a webhook - ## Documentation For Models - [AddContactToList](docs/AddContactToList.md) - [AddCredits](docs/AddCredits.md) - [CreateAttribute](docs/CreateAttribute.md) - - [CreateAttributeEnumeration](docs/CreateAttributeEnumeration.md) - [CreateChild](docs/CreateChild.md) - [CreateContact](docs/CreateContact.md) - [CreateEmailCampaign](docs/CreateEmailCampaign.md) - - [CreateEmailCampaignRecipients](docs/CreateEmailCampaignRecipients.md) - - [CreateEmailCampaignSender](docs/CreateEmailCampaignSender.md) - [CreateList](docs/CreateList.md) - [CreateModel](docs/CreateModel.md) - [CreateReseller](docs/CreateReseller.md) - [CreateSender](docs/CreateSender.md) - - [CreateSenderIps](docs/CreateSenderIps.md) - [CreateSenderModel](docs/CreateSenderModel.md) - [CreateSmsCampaign](docs/CreateSmsCampaign.md) - - [CreateSmsCampaignRecipients](docs/CreateSmsCampaignRecipients.md) - [CreateSmtpEmail](docs/CreateSmtpEmail.md) - [CreateSmtpTemplate](docs/CreateSmtpTemplate.md) - - [CreateSmtpTemplateSender](docs/CreateSmtpTemplateSender.md) - [CreateUpdateContactModel](docs/CreateUpdateContactModel.md) - [CreateUpdateFolder](docs/CreateUpdateFolder.md) - [CreateWebhook](docs/CreateWebhook.md) @@ -216,46 +212,26 @@ Class | Method | HTTP request | Description - [DeleteHardbounces](docs/DeleteHardbounces.md) - [EmailExportRecipients](docs/EmailExportRecipients.md) - [ErrorModel](docs/ErrorModel.md) - - [GetAccountMarketingAutomation](docs/GetAccountMarketingAutomation.md) - - [GetAccountPlan](docs/GetAccountPlan.md) - - [GetAccountRelay](docs/GetAccountRelay.md) - - [GetAccountRelayData](docs/GetAccountRelayData.md) + - [GetAccount](docs/GetAccount.md) - [GetAggregatedReport](docs/GetAggregatedReport.md) - [GetAttributes](docs/GetAttributes.md) - - [GetAttributesAttributes](docs/GetAttributesAttributes.md) - - [GetAttributesEnumeration](docs/GetAttributesEnumeration.md) - [GetCampaignOverview](docs/GetCampaignOverview.md) - [GetCampaignRecipients](docs/GetCampaignRecipients.md) - [GetCampaignStats](docs/GetCampaignStats.md) - - [GetChildInfoApiKeys](docs/GetChildInfoApiKeys.md) - - [GetChildInfoApiKeysV2](docs/GetChildInfoApiKeysV2.md) - - [GetChildInfoApiKeysV3](docs/GetChildInfoApiKeysV3.md) - - [GetChildInfoCredits](docs/GetChildInfoCredits.md) - - [GetChildInfoStatistics](docs/GetChildInfoStatistics.md) + - [GetChildInfo](docs/GetChildInfo.md) - [GetChildrenList](docs/GetChildrenList.md) - [GetClient](docs/GetClient.md) - [GetContactCampaignStats](docs/GetContactCampaignStats.md) - - [GetContactCampaignStatsClicked](docs/GetContactCampaignStatsClicked.md) - - [GetContactCampaignStatsOpened](docs/GetContactCampaignStatsOpened.md) - - [GetContactCampaignStatsTransacAttributes](docs/GetContactCampaignStatsTransacAttributes.md) - - [GetContactCampaignStatsUnsubscriptions](docs/GetContactCampaignStatsUnsubscriptions.md) - [GetContactDetails](docs/GetContactDetails.md) - [GetContacts](docs/GetContacts.md) + - [GetEmailCampaign](docs/GetEmailCampaign.md) - [GetEmailCampaigns](docs/GetEmailCampaigns.md) - [GetEmailEventReport](docs/GetEmailEventReport.md) - - [GetEmailEventReportEvents](docs/GetEmailEventReportEvents.md) - - [GetExtendedCampaignOverviewSender](docs/GetExtendedCampaignOverviewSender.md) + - [GetExtendedCampaignOverview](docs/GetExtendedCampaignOverview.md) - [GetExtendedCampaignStats](docs/GetExtendedCampaignStats.md) - - [GetExtendedClientAddress](docs/GetExtendedClientAddress.md) - - [GetExtendedContactDetailsStatistics](docs/GetExtendedContactDetailsStatistics.md) - - [GetExtendedContactDetailsStatisticsClicked](docs/GetExtendedContactDetailsStatisticsClicked.md) - - [GetExtendedContactDetailsStatisticsLinks](docs/GetExtendedContactDetailsStatisticsLinks.md) - - [GetExtendedContactDetailsStatisticsMessagesSent](docs/GetExtendedContactDetailsStatisticsMessagesSent.md) - - [GetExtendedContactDetailsStatisticsOpened](docs/GetExtendedContactDetailsStatisticsOpened.md) - - [GetExtendedContactDetailsStatisticsUnsubscriptions](docs/GetExtendedContactDetailsStatisticsUnsubscriptions.md) - - [GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription](docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md) - - [GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription](docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md) - - [GetExtendedListCampaignStats](docs/GetExtendedListCampaignStats.md) + - [GetExtendedClient](docs/GetExtendedClient.md) + - [GetExtendedContactDetails](docs/GetExtendedContactDetails.md) + - [GetExtendedList](docs/GetExtendedList.md) - [GetFolder](docs/GetFolder.md) - [GetFolderLists](docs/GetFolderLists.md) - [GetFolders](docs/GetFolders.md) @@ -268,77 +244,47 @@ Class | Method | HTTP request | Description - [GetProcess](docs/GetProcess.md) - [GetProcesses](docs/GetProcesses.md) - [GetReports](docs/GetReports.md) - - [GetReportsReports](docs/GetReportsReports.md) - [GetSendersList](docs/GetSendersList.md) - - [GetSendersListIps](docs/GetSendersListIps.md) - - [GetSendersListSenders](docs/GetSendersListSenders.md) + - [GetSmsCampaign](docs/GetSmsCampaign.md) - [GetSmsCampaignOverview](docs/GetSmsCampaignOverview.md) - [GetSmsCampaignStats](docs/GetSmsCampaignStats.md) - [GetSmsCampaigns](docs/GetSmsCampaigns.md) - [GetSmsEventReport](docs/GetSmsEventReport.md) - - [GetSmsEventReportEvents](docs/GetSmsEventReportEvents.md) - [GetSmtpTemplateOverview](docs/GetSmtpTemplateOverview.md) - - [GetSmtpTemplateOverviewSender](docs/GetSmtpTemplateOverviewSender.md) - [GetSmtpTemplates](docs/GetSmtpTemplates.md) - [GetStatsByDomain](docs/GetStatsByDomain.md) - [GetTransacAggregatedSmsReport](docs/GetTransacAggregatedSmsReport.md) - [GetTransacSmsReport](docs/GetTransacSmsReport.md) - - [GetTransacSmsReportReports](docs/GetTransacSmsReportReports.md) - [GetWebhook](docs/GetWebhook.md) - [GetWebhooks](docs/GetWebhooks.md) - [ManageIp](docs/ManageIp.md) - [PostContactInfo](docs/PostContactInfo.md) - - [PostContactInfoContacts](docs/PostContactInfoContacts.md) - [PostSendFailed](docs/PostSendFailed.md) - [PostSendSmsTestFailed](docs/PostSendSmsTestFailed.md) - [RemainingCreditModel](docs/RemainingCreditModel.md) - - [RemainingCreditModelChild](docs/RemainingCreditModelChild.md) - - [RemainingCreditModelReseller](docs/RemainingCreditModelReseller.md) - [RemoveContactFromList](docs/RemoveContactFromList.md) - [RemoveCredits](docs/RemoveCredits.md) - [RequestContactExport](docs/RequestContactExport.md) - [RequestContactImport](docs/RequestContactImport.md) - - [RequestContactImportNewList](docs/RequestContactImportNewList.md) - [RequestSmsRecipientExport](docs/RequestSmsRecipientExport.md) - [SendEmail](docs/SendEmail.md) - - [SendEmailAttachment](docs/SendEmailAttachment.md) - [SendReport](docs/SendReport.md) - - [SendReportEmail](docs/SendReportEmail.md) - [SendSms](docs/SendSms.md) - [SendSmtpEmail](docs/SendSmtpEmail.md) - - [SendSmtpEmailAttachment](docs/SendSmtpEmailAttachment.md) - - [SendSmtpEmailBcc](docs/SendSmtpEmailBcc.md) - - [SendSmtpEmailCc](docs/SendSmtpEmailCc.md) - - [SendSmtpEmailReplyTo](docs/SendSmtpEmailReplyTo.md) - - [SendSmtpEmailSender](docs/SendSmtpEmailSender.md) - - [SendSmtpEmailTo](docs/SendSmtpEmailTo.md) - [SendTemplateEmail](docs/SendTemplateEmail.md) - [SendTestEmail](docs/SendTestEmail.md) - [SendTestSms](docs/SendTestSms.md) - [SendTransacSms](docs/SendTransacSms.md) - [UpdateAttribute](docs/UpdateAttribute.md) - - [UpdateAttributeEnumeration](docs/UpdateAttributeEnumeration.md) - [UpdateCampaignStatus](docs/UpdateCampaignStatus.md) - [UpdateChild](docs/UpdateChild.md) - [UpdateContact](docs/UpdateContact.md) - [UpdateEmailCampaign](docs/UpdateEmailCampaign.md) - - [UpdateEmailCampaignRecipients](docs/UpdateEmailCampaignRecipients.md) - - [UpdateEmailCampaignSender](docs/UpdateEmailCampaignSender.md) - [UpdateList](docs/UpdateList.md) - [UpdateSender](docs/UpdateSender.md) - [UpdateSmsCampaign](docs/UpdateSmsCampaign.md) - [UpdateSmtpTemplate](docs/UpdateSmtpTemplate.md) - - [UpdateSmtpTemplateSender](docs/UpdateSmtpTemplateSender.md) - [UpdateWebhook](docs/UpdateWebhook.md) - - [GetChildInfo](docs/GetChildInfo.md) - - [GetExtendedCampaignOverview](docs/GetExtendedCampaignOverview.md) - - [GetExtendedClient](docs/GetExtendedClient.md) - - [GetExtendedContactDetails](docs/GetExtendedContactDetails.md) - - [GetExtendedList](docs/GetExtendedList.md) - - [GetSmsCampaign](docs/GetSmsCampaign.md) - - [GetAccount](docs/GetAccount.md) - - [GetEmailCampaign](docs/GetEmailCampaign.md) - ## Documentation For Authorization @@ -349,6 +295,12 @@ Class | Method | HTTP request | Description - **API key parameter name**: api-key - **Location**: HTTP header +## partner-key + +- **Type**: API key +- **API key parameter name**: partner-key +- **Location**: HTTP header + ## Support and Feedback Be sure to visit the SendinBlue official [documentation website](https://sendinblue.readme.io/docs ) for additional information about our API. diff --git a/docs/AccountApi.md b/docs/AccountApi.md index 6685483..3aa4327 100644 --- a/docs/AccountApi.md +++ b/docs/AccountApi.md @@ -6,7 +6,6 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**get_account**](AccountApi.md#get_account) | **GET** /account | Get your account informations, plans and credits details - # **get_account** > GetAccount get_account() @@ -55,7 +54,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/AddContactToList.md b/docs/AddContactToList.md index cd4dd84..036a023 100644 --- a/docs/AddContactToList.md +++ b/docs/AddContactToList.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/AddCredits.md b/docs/AddCredits.md index 5fc7b9d..1377181 100644 --- a/docs/AddCredits.md +++ b/docs/AddCredits.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/AttributesApi.md b/docs/AttributesApi.md index 04e5329..881017c 100644 --- a/docs/AttributesApi.md +++ b/docs/AttributesApi.md @@ -9,9 +9,8 @@ Method | HTTP request | Description [**get_attributes**](AttributesApi.md#get_attributes) | **GET** /contacts/attributes | Lists all attributes [**update_attribute**](AttributesApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Updates contact attribute - # **create_attribute** -> create_attribute(attribute_category, attribute_name, create_attribute) +> create_attribute(body, attribute_category, attribute_name) Creates contact attribute @@ -36,13 +35,13 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.AttributesApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.CreateAttribute() # CreateAttribute | Values to create an attribute attribute_category = 'attribute_category_example' # str | Category of the attribute attribute_name = 'attribute_name_example' # str | Name of the attribute -create_attribute = sib_api_v3_sdk.CreateAttribute() # CreateAttribute | Values to create an attribute try: # Creates contact attribute - api_instance.create_attribute(attribute_category, attribute_name, create_attribute) + api_instance.create_attribute(body, attribute_category, attribute_name) except ApiException as e: print("Exception when calling AttributesApi->create_attribute: %s\n" % e) ``` @@ -51,9 +50,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attribute_category** | **str**| Category of the attribute | - **attribute_name** | **str**| Name of the attribute | - **create_attribute** | [**CreateAttribute**](CreateAttribute.md)| Values to create an attribute | + **body** | [**CreateAttribute**](CreateAttribute.md)| Values to create an attribute | + **attribute_category** | [**str**](.md)| Category of the attribute | + **attribute_name** | [**str**](.md)| Name of the attribute | ### Return type @@ -110,8 +109,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attribute_category** | **str**| Category of the attribute | - **attribute_name** | **str**| Name of the existing attribute | + **attribute_category** | [**str**](.md)| Category of the attribute | + **attribute_name** | [**str**](.md)| Name of the existing attribute | ### Return type @@ -123,7 +122,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -176,13 +175,13 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_attribute** -> update_attribute(attribute_category, attribute_name, update_attribute) +> update_attribute(body, attribute_category, attribute_name) Updates contact attribute @@ -207,13 +206,13 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.AttributesApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.UpdateAttribute() # UpdateAttribute | Values to update an attribute attribute_category = 'attribute_category_example' # str | Category of the attribute attribute_name = 'attribute_name_example' # str | Name of the existing attribute -update_attribute = sib_api_v3_sdk.UpdateAttribute() # UpdateAttribute | Values to update an attribute try: # Updates contact attribute - api_instance.update_attribute(attribute_category, attribute_name, update_attribute) + api_instance.update_attribute(body, attribute_category, attribute_name) except ApiException as e: print("Exception when calling AttributesApi->update_attribute: %s\n" % e) ``` @@ -222,9 +221,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attribute_category** | **str**| Category of the attribute | - **attribute_name** | **str**| Name of the existing attribute | - **update_attribute** | [**UpdateAttribute**](UpdateAttribute.md)| Values to update an attribute | + **body** | [**UpdateAttribute**](UpdateAttribute.md)| Values to update an attribute | + **attribute_category** | [**str**](.md)| Category of the attribute | + **attribute_name** | [**str**](.md)| Name of the existing attribute | ### Return type diff --git a/docs/ContactsApi.md b/docs/ContactsApi.md index f1254a1..040ae5c 100644 --- a/docs/ContactsApi.md +++ b/docs/ContactsApi.md @@ -31,9 +31,8 @@ Method | HTTP request | Description [**update_folder**](ContactsApi.md#update_folder) | **PUT** /contacts/folders/{folderId} | Update a contact folder [**update_list**](ContactsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list - # **add_contact_to_list** -> PostContactInfo add_contact_to_list(list_id, contact_emails) +> PostContactInfo add_contact_to_list(body, list_id) Add existing contacts to a list @@ -58,12 +57,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list -contact_emails = sib_api_v3_sdk.AddContactToList() # AddContactToList | Emails addresses of the contacts +body = sib_api_v3_sdk.AddContactToList() # AddContactToList | Emails addresses of the contacts +list_id = 56 # int | Id of the list try: # Add existing contacts to a list - api_response = api_instance.add_contact_to_list(list_id, contact_emails) + api_response = api_instance.add_contact_to_list(body, list_id) pprint(api_response) except ApiException as e: print("Exception when calling ContactsApi->add_contact_to_list: %s\n" % e) @@ -73,8 +72,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | - **contact_emails** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts | + **body** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts | + **list_id** | [**int**](.md)| Id of the list | ### Return type @@ -92,7 +91,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_attribute** -> create_attribute(attribute_category, attribute_name, create_attribute) +> create_attribute(body, attribute_category, attribute_name) Creates contact attribute @@ -117,13 +116,13 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.CreateAttribute() # CreateAttribute | Values to create an attribute attribute_category = 'attribute_category_example' # str | Category of the attribute attribute_name = 'attribute_name_example' # str | Name of the attribute -create_attribute = sib_api_v3_sdk.CreateAttribute() # CreateAttribute | Values to create an attribute try: # Creates contact attribute - api_instance.create_attribute(attribute_category, attribute_name, create_attribute) + api_instance.create_attribute(body, attribute_category, attribute_name) except ApiException as e: print("Exception when calling ContactsApi->create_attribute: %s\n" % e) ``` @@ -132,9 +131,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attribute_category** | **str**| Category of the attribute | - **attribute_name** | **str**| Name of the attribute | - **create_attribute** | [**CreateAttribute**](CreateAttribute.md)| Values to create an attribute | + **body** | [**CreateAttribute**](CreateAttribute.md)| Values to create an attribute | + **attribute_category** | [**str**](.md)| Category of the attribute | + **attribute_name** | [**str**](.md)| Name of the attribute | ### Return type @@ -152,7 +151,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_contact** -> CreateUpdateContactModel create_contact(create_contact) +> CreateUpdateContactModel create_contact(body) Create a contact @@ -177,11 +176,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -create_contact = sib_api_v3_sdk.CreateContact() # CreateContact | Values to create a contact +body = sib_api_v3_sdk.CreateContact() # CreateContact | Values to create a contact try: # Create a contact - api_response = api_instance.create_contact(create_contact) + api_response = api_instance.create_contact(body) pprint(api_response) except ApiException as e: print("Exception when calling ContactsApi->create_contact: %s\n" % e) @@ -191,7 +190,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_contact** | [**CreateContact**](CreateContact.md)| Values to create a contact | + **body** | [**CreateContact**](CreateContact.md)| Values to create a contact | ### Return type @@ -209,7 +208,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_folder** -> CreateModel create_folder(create_folder) +> CreateModel create_folder(body) Create a folder @@ -234,11 +233,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -create_folder = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder +body = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder try: # Create a folder - api_response = api_instance.create_folder(create_folder) + api_response = api_instance.create_folder(body) pprint(api_response) except ApiException as e: print("Exception when calling ContactsApi->create_folder: %s\n" % e) @@ -248,7 +247,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_folder** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | + **body** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | ### Return type @@ -266,7 +265,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_list** -> CreateModel create_list(create_list) +> CreateModel create_list(body) Create a list @@ -291,11 +290,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -create_list = sib_api_v3_sdk.CreateList() # CreateList | Values to create a list +body = sib_api_v3_sdk.CreateList() # CreateList | Values to create a list try: # Create a list - api_response = api_instance.create_list(create_list) + api_response = api_instance.create_list(body) pprint(api_response) except ApiException as e: print("Exception when calling ContactsApi->create_list: %s\n" % e) @@ -305,7 +304,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_list** | [**CreateList**](CreateList.md)| Values to create a list | + **body** | [**CreateList**](CreateList.md)| Values to create a list | ### Return type @@ -362,8 +361,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attribute_category** | **str**| Category of the attribute | - **attribute_name** | **str**| Name of the existing attribute | + **attribute_category** | [**str**](.md)| Category of the attribute | + **attribute_name** | [**str**](.md)| Name of the existing attribute | ### Return type @@ -375,7 +374,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -419,7 +418,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **str**| Email (urlencoded) of the contact | + **email** | [**str**](.md)| Email (urlencoded) of the contact | ### Return type @@ -431,7 +430,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -462,7 +461,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -folder_id = 789 # int | Id of the folder +folder_id = 56 # int | Id of the folder try: # Delete a folder (and all its lists) @@ -475,7 +474,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **int**| Id of the folder | + **folder_id** | [**int**](.md)| Id of the folder | ### Return type @@ -487,7 +486,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -518,7 +517,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list +list_id = 56 # int | Id of the list try: # Delete a list @@ -531,7 +530,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | + **list_id** | [**int**](.md)| Id of the list | ### Return type @@ -543,7 +542,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -596,7 +595,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -641,7 +640,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **str**| Email (urlencoded) of the contact | + **email** | [**str**](.md)| Email (urlencoded) of the contact | ### Return type @@ -653,7 +652,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -698,7 +697,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **str**| Email address (urlencoded) of the contact | + **email** | [**str**](.md)| Email address (urlencoded) of the contact | ### Return type @@ -710,7 +709,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -741,9 +740,9 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 50 # int | Number of documents per page (optional) (default to 50) -offset = 0 # int | Index of the first document of the page (optional) (default to 0) -modified_since = '2013-10-20T19:20:30+01:00' # datetime | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) +limit = 56 # int | Number of documents per page (optional) +offset = 56 # int | Index of the first document of the page (optional) +modified_since = 'modified_since_example' # str | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) try: # Get all the contacts @@ -757,9 +756,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number of documents per page | [optional] [default to 50] - **offset** | **int**| Index of the first document of the page | [optional] [default to 0] - **modified_since** | **datetime**| Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] + **limit** | [**int**](.md)| Number of documents per page | [optional] + **offset** | [**int**](.md)| Index of the first document of the page | [optional] + **modified_since** | [**str**](.md)| Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] ### Return type @@ -771,7 +770,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -802,10 +801,10 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list -modified_since = '2013-10-20T19:20:30+01:00' # datetime | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) -limit = 50 # int | Number of documents per page (optional) (default to 50) -offset = 0 # int | Index of the first document of the page (optional) (default to 0) +list_id = 56 # int | Id of the list +modified_since = 'modified_since_example' # str | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) +limit = 56 # int | Number of documents per page (optional) +offset = 56 # int | Index of the first document of the page (optional) try: # Get the contacts in a list @@ -819,10 +818,10 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | - **modified_since** | **datetime**| Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] - **limit** | **int**| Number of documents per page | [optional] [default to 50] - **offset** | **int**| Index of the first document of the page | [optional] [default to 0] + **list_id** | [**int**](.md)| Id of the list | + **modified_since** | [**str**](.md)| Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] + **limit** | [**int**](.md)| Number of documents per page | [optional] + **offset** | [**int**](.md)| Index of the first document of the page | [optional] ### Return type @@ -834,7 +833,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -865,7 +864,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -folder_id = 789 # int | id of the folder +folder_id = 56 # int | id of the folder try: # Returns folder details @@ -879,7 +878,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **int**| id of the folder | + **folder_id** | [**int**](.md)| id of the folder | ### Return type @@ -891,7 +890,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -922,9 +921,9 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -folder_id = 789 # int | Id of the folder -limit = 10 # int | Number of documents per page (optional) (default to 10) -offset = 0 # int | Index of the first document of the page (optional) (default to 0) +folder_id = 56 # int | Id of the folder +limit = 56 # int | Number of documents per page (optional) +offset = 56 # int | Index of the first document of the page (optional) try: # Get the lists in a folder @@ -938,9 +937,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **int**| Id of the folder | - **limit** | **int**| Number of documents per page | [optional] [default to 10] - **offset** | **int**| Index of the first document of the page | [optional] [default to 0] + **folder_id** | [**int**](.md)| Id of the folder | + **limit** | [**int**](.md)| Number of documents per page | [optional] + **offset** | [**int**](.md)| Index of the first document of the page | [optional] ### Return type @@ -952,7 +951,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -983,8 +982,8 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 10 # int | Number of documents per page (default to 10) -offset = 0 # int | Index of the first document of the page (default to 0) +limit = 56 # int | Number of documents per page +offset = 56 # int | Index of the first document of the page try: # Get all the folders @@ -998,8 +997,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number of documents per page | [default to 10] - **offset** | **int**| Index of the first document of the page | [default to 0] + **limit** | [**int**](.md)| Number of documents per page | + **offset** | [**int**](.md)| Index of the first document of the page | ### Return type @@ -1011,7 +1010,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1042,7 +1041,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list +list_id = 56 # int | Id of the list try: # Get the details of a list @@ -1056,7 +1055,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | + **list_id** | [**int**](.md)| Id of the list | ### Return type @@ -1068,7 +1067,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1099,8 +1098,8 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 10 # int | Number of documents per page (optional) (default to 10) -offset = 0 # int | Index of the first document of the page (optional) (default to 0) +limit = 56 # int | Number of documents per page (optional) +offset = 56 # int | Index of the first document of the page (optional) try: # Get all the lists @@ -1114,8 +1113,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number of documents per page | [optional] [default to 10] - **offset** | **int**| Index of the first document of the page | [optional] [default to 0] + **limit** | [**int**](.md)| Number of documents per page | [optional] + **offset** | [**int**](.md)| Index of the first document of the page | [optional] ### Return type @@ -1127,13 +1126,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **import_contacts** -> CreatedProcessId import_contacts(request_contact_import) +> CreatedProcessId import_contacts(body) Import contacts @@ -1160,11 +1159,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -request_contact_import = sib_api_v3_sdk.RequestContactImport() # RequestContactImport | Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` +body = sib_api_v3_sdk.RequestContactImport() # RequestContactImport | Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` try: # Import contacts - api_response = api_instance.import_contacts(request_contact_import) + api_response = api_instance.import_contacts(body) pprint(api_response) except ApiException as e: print("Exception when calling ContactsApi->import_contacts: %s\n" % e) @@ -1174,7 +1173,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request_contact_import** | [**RequestContactImport**](RequestContactImport.md)| Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` | + **body** | [**RequestContactImport**](RequestContactImport.md)| Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` | ### Return type @@ -1192,7 +1191,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **remove_contact_from_list** -> PostContactInfo remove_contact_from_list(list_id, contact_emails) +> PostContactInfo remove_contact_from_list(body, list_id) Remove existing contacts from a list @@ -1217,12 +1216,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list -contact_emails = sib_api_v3_sdk.RemoveContactFromList() # RemoveContactFromList | Emails adresses of the contact +body = sib_api_v3_sdk.RemoveContactFromList() # RemoveContactFromList | Emails adresses of the contact +list_id = 56 # int | Id of the list try: # Remove existing contacts from a list - api_response = api_instance.remove_contact_from_list(list_id, contact_emails) + api_response = api_instance.remove_contact_from_list(body, list_id) pprint(api_response) except ApiException as e: print("Exception when calling ContactsApi->remove_contact_from_list: %s\n" % e) @@ -1232,8 +1231,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | - **contact_emails** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact | + **body** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact | + **list_id** | [**int**](.md)| Id of the list | ### Return type @@ -1251,7 +1250,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **request_contact_export** -> CreatedProcessId request_contact_export(request_contact_export) +> CreatedProcessId request_contact_export(body) Export contacts @@ -1278,11 +1277,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -request_contact_export = sib_api_v3_sdk.RequestContactExport() # RequestContactExport | Values to request a contact export +body = sib_api_v3_sdk.RequestContactExport() # RequestContactExport | Values to request a contact export try: # Export contacts - api_response = api_instance.request_contact_export(request_contact_export) + api_response = api_instance.request_contact_export(body) pprint(api_response) except ApiException as e: print("Exception when calling ContactsApi->request_contact_export: %s\n" % e) @@ -1292,7 +1291,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request_contact_export** | [**RequestContactExport**](RequestContactExport.md)| Values to request a contact export | + **body** | [**RequestContactExport**](RequestContactExport.md)| Values to request a contact export | ### Return type @@ -1310,7 +1309,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_attribute** -> update_attribute(attribute_category, attribute_name, update_attribute) +> update_attribute(body, attribute_category, attribute_name) Updates contact attribute @@ -1335,13 +1334,13 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.UpdateAttribute() # UpdateAttribute | Values to update an attribute attribute_category = 'attribute_category_example' # str | Category of the attribute attribute_name = 'attribute_name_example' # str | Name of the existing attribute -update_attribute = sib_api_v3_sdk.UpdateAttribute() # UpdateAttribute | Values to update an attribute try: # Updates contact attribute - api_instance.update_attribute(attribute_category, attribute_name, update_attribute) + api_instance.update_attribute(body, attribute_category, attribute_name) except ApiException as e: print("Exception when calling ContactsApi->update_attribute: %s\n" % e) ``` @@ -1350,9 +1349,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attribute_category** | **str**| Category of the attribute | - **attribute_name** | **str**| Name of the existing attribute | - **update_attribute** | [**UpdateAttribute**](UpdateAttribute.md)| Values to update an attribute | + **body** | [**UpdateAttribute**](UpdateAttribute.md)| Values to update an attribute | + **attribute_category** | [**str**](.md)| Category of the attribute | + **attribute_name** | [**str**](.md)| Name of the existing attribute | ### Return type @@ -1370,7 +1369,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_contact** -> update_contact(email, update_contact) +> update_contact(body, email) Updates a contact @@ -1395,12 +1394,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.UpdateContact() # UpdateContact | Values to update a contact email = 'email_example' # str | Email (urlencoded) of the contact -update_contact = sib_api_v3_sdk.UpdateContact() # UpdateContact | Values to update a contact try: # Updates a contact - api_instance.update_contact(email, update_contact) + api_instance.update_contact(body, email) except ApiException as e: print("Exception when calling ContactsApi->update_contact: %s\n" % e) ``` @@ -1409,8 +1408,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **str**| Email (urlencoded) of the contact | - **update_contact** | [**UpdateContact**](UpdateContact.md)| Values to update a contact | + **body** | [**UpdateContact**](UpdateContact.md)| Values to update a contact | + **email** | [**str**](.md)| Email (urlencoded) of the contact | ### Return type @@ -1428,7 +1427,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_folder** -> update_folder(folder_id, update_folder) +> update_folder(body, folder_id) Update a contact folder @@ -1453,12 +1452,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -folder_id = 789 # int | Id of the folder -update_folder = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder +body = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder +folder_id = 56 # int | Id of the folder try: # Update a contact folder - api_instance.update_folder(folder_id, update_folder) + api_instance.update_folder(body, folder_id) except ApiException as e: print("Exception when calling ContactsApi->update_folder: %s\n" % e) ``` @@ -1467,8 +1466,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **int**| Id of the folder | - **update_folder** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | + **body** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | + **folder_id** | [**int**](.md)| Id of the folder | ### Return type @@ -1486,7 +1485,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_list** -> update_list(list_id, update_list) +> update_list(body, list_id) Update a list @@ -1511,12 +1510,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list -update_list = sib_api_v3_sdk.UpdateList() # UpdateList | Values to update a list +body = sib_api_v3_sdk.UpdateList() # UpdateList | Values to update a list +list_id = 56 # int | Id of the list try: # Update a list - api_instance.update_list(list_id, update_list) + api_instance.update_list(body, list_id) except ApiException as e: print("Exception when calling ContactsApi->update_list: %s\n" % e) ``` @@ -1525,8 +1524,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | - **update_list** | [**UpdateList**](UpdateList.md)| Values to update a list | + **body** | [**UpdateList**](UpdateList.md)| Values to update a list | + **list_id** | [**int**](.md)| Id of the list | ### Return type diff --git a/docs/CreateAttribute.md b/docs/CreateAttribute.md index fcc16f2..af67a0a 100644 --- a/docs/CreateAttribute.md +++ b/docs/CreateAttribute.md @@ -3,10 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | Value of the attribute. Use only if the attribute's category is 'calculated' or 'global' | [optional] -**enumeration** | [**list[CreateAttributeEnumeration]**](CreateAttributeEnumeration.md) | List of values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, `[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]` | [optional] -**type** | **str** | Type of the attribute. Use only if the attribute's category is 'normal', 'category' or 'transactional' ( type 'boolean' is only available if the category is 'normal' attribute, type 'id' is only available if the category is 'transactional' attribute & type 'category' is only available if the category is 'category' attribute ) | [optional] +**value** | **str** | Value of the attribute. Use only if the attribute's category is 'calculated' or 'global' | [optional] +**enumeration** | **list[object]** | List of values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, `[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]` | [optional] +**type** | **str** | Type of the attribute. Use only if the attribute's category is 'normal', 'category' or 'transactional' ( type 'boolean' is only available if the category is 'normal' attribute, type 'id' is only available if the category is 'transactional' attribute & type 'category' is only available if the category is 'category' attribute ) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateAttributeEnumeration.md b/docs/CreateAttributeEnumeration.md deleted file mode 100644 index ae5b58a..0000000 --- a/docs/CreateAttributeEnumeration.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateAttributeEnumeration - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **int** | Id of the value | -**label** | **str** | Label of the value | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateChild.md b/docs/CreateChild.md index 693ba34..0ff84b0 100644 --- a/docs/CreateChild.md +++ b/docs/CreateChild.md @@ -11,4 +11,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateContact.md b/docs/CreateContact.md index fb3d570..d6c622d 100644 --- a/docs/CreateContact.md +++ b/docs/CreateContact.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **str** | Email address of the user. Mandatory if \"sms\" field is not passed in \"attributes\" parameter' | [optional] +**email** | **str** | Email address of the user. Mandatory if \"sms\" field is not passed in \"attributes\" parameter' | [optional] **attributes** | **object** | Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For example, `{\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"}` | [optional] **email_blacklisted** | **bool** | Set this field to blacklist the contact for emails (emailBlacklisted = true) | [optional] **sms_blacklisted** | **bool** | Set this field to blacklist the contact for SMS (smsBlacklisted = true) | [optional] @@ -13,4 +13,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateEmailCampaign.md b/docs/CreateEmailCampaign.md index 562cd77..36dd985 100644 --- a/docs/CreateEmailCampaign.md +++ b/docs/CreateEmailCampaign.md @@ -4,31 +4,30 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **tag** | **str** | Tag of the campaign | [optional] -**sender** | [**CreateEmailCampaignSender**](CreateEmailCampaignSender.md) | | +**sender** | **object** | Sender details including email and name (optional). For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` | **name** | **str** | Name of the campaign | **html_content** | **str** | Mandatory if htmlUrl and templateId are empty. Body of the message (HTML) | [optional] **html_url** | **str** | Mandatory if htmlContent and templateId are empty. Url to the message (HTML) | [optional] -**template_id** | **int** | Mandatory if htmlContent and htmlUrl are empty. Id of the SMTP template with status 'active'. Used to copy only its content fetched from htmlContent/htmlUrl to an email campaign for RSS feature. | [optional] +**template_id** | **int** | Mandatory if htmlContent and htmlUrl are empty. Id of the SMTP template with status 'active'. Used to copy only its content fetched from htmlContent/htmlUrl to an email campaign for RSS feature. | [optional] **scheduled_at** | **datetime** | Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). | [optional] **subject** | **str** | Subject of the campaign. Mandatory if abTesting is false. Ignored if abTesting is true. | [optional] **reply_to** | **str** | Email on which the campaign recipients will be able to reply to | [optional] -**to_field** | **str** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization | [optional] -**recipients** | [**CreateEmailCampaignRecipients**](CreateEmailCampaignRecipients.md) | | [optional] +**to_field** | **str** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization | [optional] +**recipients** | **object** | List ids to include/exclude from campaign | [optional] **attachment_url** | **str** | Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps | [optional] **inline_image_activation** | **bool** | Use true to embedded the images in your email. Final size of the email should be less than 4MB. Campaigns with embedded images can not be sent to more than 5000 contacts | [optional] [default to False] **mirror_active** | **bool** | Use true to enable the mirror link | [optional] **footer** | **str** | Footer of the email campaign | [optional] **header** | **str** | Header of the email campaign | [optional] **utm_campaign** | **str** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [optional] -**params** | **object** | Pass the set of attributes to customize the type classic campaign. For example, `{\"FNAME\":\"Joe\", \"LNAME:\"Doe\"}`. Only available if 'type' is 'classic'. It's considered only if campaign is in New Template Language format. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name' & 'toField' | [optional] +**params** | **object** | Pass the set of attributes to customize the type classic campaign. For example, `{\"FNAME\":\"Joe\", \"LNAME:\"Doe\"}`. Only available if 'type' is 'classic'. It's considered only if campaign is in New Template Language format. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name' & 'toField' | [optional] **send_at_best_time** | **bool** | Set this to true if you want to send your campaign at best time. | [optional] [default to False] -**ab_testing** | **bool** | Status of A/B Test. abTesting = false means it is disabled, & abTesting = true means it is enabled. 'subjectA', 'subjectB', 'splitRule', 'winnerCriteria' & 'winnerDelay' will be considered when abTesting is set to true. 'subjectA' & 'subjectB' are mandatory together & 'subject' if passed is ignored. Can be set to true only if 'sendAtBestTime' is 'false'. You will be able to set up two subject lines for your campaign and send them to a random sample of your total recipients. Half of the test group will receive version A, and the other half will receive version B | [optional] [default to False] +**ab_testing** | **bool** | Status of A/B Test. abTesting = false means it is disabled, & abTesting = true means it is enabled. 'subjectA', 'subjectB', 'splitRule', 'winnerCriteria' & 'winnerDelay' will be considered when abTesting is set to true. 'subjectA' & 'subjectB' are mandatory together & 'subject' if passed is ignored. Can be set to true only if 'sendAtBestTime' is 'false'. You will be able to set up two subject lines for your campaign and send them to a random sample of your total recipients. Half of the test group will receive version A, and the other half will receive version B | [optional] [default to False] **subject_a** | **str** | Subject A of the campaign. Mandatory if abTesting = true. subjectA & subjectB should have unique value | [optional] **subject_b** | **str** | Subject B of the campaign. Mandatory if abTesting = true. subjectA & subjectB should have unique value | [optional] -**split_rule** | **int** | Add the size of your test groups. Mandatory if abTesting = true & 'recipients' is passed. We'll send version A and B to a random sample of recipients, and then the winning version to everyone else | [optional] -**winner_criteria** | **str** | Choose the metrics that will determinate the winning version. Mandatory if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerCriteria' is ignored if passed | [optional] -**winner_delay** | **int** | Choose the duration of the test in hours. Maximum is 7 days, pass 24*7 = 168 hours. The winning version will be sent at the end of the test. Mandatory if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerDelay' is ignored if passed | [optional] +**split_rule** | **int** | Add the size of your test groups. Mandatory if abTesting = true & 'recipients' is passed. We'll send version A and B to a random sample of recipients, and then the winning version to everyone else | [optional] +**winner_criteria** | **str** | Choose the metrics that will determinate the winning version. Mandatory if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerCriteria' is ignored if passed | [optional] +**winner_delay** | **int** | Choose the duration of the test in hours. Maximum is 7 days, pass 24*7 = 168 hours. The winning version will be sent at the end of the test. Mandatory if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerDelay' is ignored if passed | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateEmailCampaignRecipients.md b/docs/CreateEmailCampaignRecipients.md deleted file mode 100644 index 7d2d73f..0000000 --- a/docs/CreateEmailCampaignRecipients.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateEmailCampaignRecipients - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exclusion_list_ids** | **list[int]** | List ids to exclude from the campaign | [optional] -**list_ids** | **list[int]** | Mandatory if scheduledAt is not empty. List Ids to send the campaign to | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateEmailCampaignSender.md b/docs/CreateEmailCampaignSender.md deleted file mode 100644 index 6a8aa8d..0000000 --- a/docs/CreateEmailCampaignSender.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateEmailCampaignSender - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Sender Name | [optional] -**email** | **str** | Sender email | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateList.md b/docs/CreateList.md index 1870f32..81c9502 100644 --- a/docs/CreateList.md +++ b/docs/CreateList.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateModel.md b/docs/CreateModel.md index 423101d..ae1b18c 100644 --- a/docs/CreateModel.md +++ b/docs/CreateModel.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateReseller.md b/docs/CreateReseller.md index 49e0120..cd0c362 100644 --- a/docs/CreateReseller.md +++ b/docs/CreateReseller.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateSender.md b/docs/CreateSender.md index ffa4a73..dd6405f 100644 --- a/docs/CreateSender.md +++ b/docs/CreateSender.md @@ -5,8 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | From Name to use for the sender | **email** | **str** | From Email to use for the sender | -**ips** | [**list[CreateSenderIps]**](CreateSenderIps.md) | Mandatory in case of dedicated IP, IPs to associate to the sender | [optional] +**ips** | **list[object]** | Mandatory in case of dedicated IP, IPs to associate to the sender | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateSenderIps.md b/docs/CreateSenderIps.md deleted file mode 100644 index 634114c..0000000 --- a/docs/CreateSenderIps.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateSenderIps - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ip** | **str** | Dedicated IP available in your account | -**domain** | **str** | Domain of the IP | -**weight** | **int** | Weight to apply to the IP. Sum of all IP weights must be 100. Should be passed for either ALL or NONE of the IPs. If it's not passed, the sending will be equally balanced on all IPs. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateSenderModel.md b/docs/CreateSenderModel.md index 3e44d47..bd188f0 100644 --- a/docs/CreateSenderModel.md +++ b/docs/CreateSenderModel.md @@ -9,4 +9,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateSmsCampaign.md b/docs/CreateSmsCampaign.md index 9c0ca89..d2f49d8 100644 --- a/docs/CreateSmsCampaign.md +++ b/docs/CreateSmsCampaign.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes **name** | **str** | Name of the campaign | **sender** | **str** | Name of the sender. The number of characters is limited to 11 | **content** | **str** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | -**recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] +**recipients** | **object** | | [optional] **scheduled_at** | **datetime** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateSmsCampaignRecipients.md b/docs/CreateSmsCampaignRecipients.md deleted file mode 100644 index 5fdbde1..0000000 --- a/docs/CreateSmsCampaignRecipients.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateSmsCampaignRecipients - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**list_ids** | **list[int]** | Lists Ids to send the campaign to. REQUIRED if scheduledAt is not empty | -**exclusion_list_ids** | **list[int]** | List ids which have to be excluded from a campaign | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateSmtpEmail.md b/docs/CreateSmtpEmail.md index 56e466c..438fe01 100644 --- a/docs/CreateSmtpEmail.md +++ b/docs/CreateSmtpEmail.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateSmtpTemplate.md b/docs/CreateSmtpTemplate.md index d911ab3..8ace26b 100644 --- a/docs/CreateSmtpTemplate.md +++ b/docs/CreateSmtpTemplate.md @@ -4,16 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **tag** | **str** | Tag of the template | [optional] -**sender** | [**CreateSmtpTemplateSender**](CreateSmtpTemplateSender.md) | | +**sender** | **object** | Sender details including email and name (optional). For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` | **template_name** | **str** | Name of the template | **html_content** | **str** | Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty | [optional] **html_url** | **str** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] **subject** | **str** | Subject of the template | **reply_to** | **str** | Email on which campaign recipients will be able to reply to | [optional] -**to_field** | **str** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization | [optional] +**to_field** | **str** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization | [optional] **attachment_url** | **str** | Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps | [optional] **is_active** | **bool** | Status of template. isActive = true means template is active and isActive = false means template is inactive | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateSmtpTemplateSender.md b/docs/CreateSmtpTemplateSender.md deleted file mode 100644 index 7beeccc..0000000 --- a/docs/CreateSmtpTemplateSender.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateSmtpTemplateSender - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name of the sender. If not passed, will be set to default | [optional] -**email** | **str** | Email of the sender | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateUpdateContactModel.md b/docs/CreateUpdateContactModel.md index d347a5f..9b8753e 100644 --- a/docs/CreateUpdateContactModel.md +++ b/docs/CreateUpdateContactModel.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateUpdateFolder.md b/docs/CreateUpdateFolder.md index 570adca..f917086 100644 --- a/docs/CreateUpdateFolder.md +++ b/docs/CreateUpdateFolder.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreateWebhook.md b/docs/CreateWebhook.md index cd16fc2..7e701a5 100644 --- a/docs/CreateWebhook.md +++ b/docs/CreateWebhook.md @@ -10,4 +10,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/CreatedProcessId.md b/docs/CreatedProcessId.md index f02fe67..3af96e8 100644 --- a/docs/CreatedProcessId.md +++ b/docs/CreatedProcessId.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/DeleteHardbounces.md b/docs/DeleteHardbounces.md index d1a2c96..98a7139 100644 --- a/docs/DeleteHardbounces.md +++ b/docs/DeleteHardbounces.md @@ -9,4 +9,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/EmailCampaignsApi.md b/docs/EmailCampaignsApi.md index 9f919f4..7b76a0a 100644 --- a/docs/EmailCampaignsApi.md +++ b/docs/EmailCampaignsApi.md @@ -15,9 +15,8 @@ Method | HTTP request | Description [**update_campaign_status**](EmailCampaignsApi.md#update_campaign_status) | **PUT** /emailCampaigns/{campaignId}/status | Update a campaign status [**update_email_campaign**](EmailCampaignsApi.md#update_email_campaign) | **PUT** /emailCampaigns/{campaignId} | Update a campaign - # **create_email_campaign** -> CreateModel create_email_campaign(email_campaigns) +> CreateModel create_email_campaign(body) Create an email campaign @@ -42,11 +41,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -email_campaigns = sib_api_v3_sdk.CreateEmailCampaign() # CreateEmailCampaign | Values to create a campaign +body = sib_api_v3_sdk.CreateEmailCampaign() # CreateEmailCampaign | Values to create a campaign try: # Create an email campaign - api_response = api_instance.create_email_campaign(email_campaigns) + api_response = api_instance.create_email_campaign(body) pprint(api_response) except ApiException as e: print("Exception when calling EmailCampaignsApi->create_email_campaign: %s\n" % e) @@ -56,7 +55,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email_campaigns** | [**CreateEmailCampaign**](CreateEmailCampaign.md)| Values to create a campaign | + **body** | [**CreateEmailCampaign**](CreateEmailCampaign.md)| Values to create a campaign | ### Return type @@ -99,7 +98,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | id of the campaign +campaign_id = 56 # int | id of the campaign try: # Delete an email campaign @@ -112,7 +111,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| id of the campaign | + **campaign_id** | [**int**](.md)| id of the campaign | ### Return type @@ -124,13 +123,13 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **email_export_recipients** -> CreatedProcessId email_export_recipients(campaign_id, recipient_export=recipient_export) +> CreatedProcessId email_export_recipients(campaign_id, body=body) Export the recipients of a campaign @@ -155,12 +154,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | Id of the campaign -recipient_export = sib_api_v3_sdk.EmailExportRecipients() # EmailExportRecipients | Values to send for a recipient export request (optional) +campaign_id = 56 # int | Id of the campaign +body = sib_api_v3_sdk.EmailExportRecipients() # EmailExportRecipients | Values to send for a recipient export request (optional) try: # Export the recipients of a campaign - api_response = api_instance.email_export_recipients(campaign_id, recipient_export=recipient_export) + api_response = api_instance.email_export_recipients(campaign_id, body=body) pprint(api_response) except ApiException as e: print("Exception when calling EmailCampaignsApi->email_export_recipients: %s\n" % e) @@ -170,8 +169,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| Id of the campaign | - **recipient_export** | [**EmailExportRecipients**](EmailExportRecipients.md)| Values to send for a recipient export request | [optional] + **campaign_id** | [**int**](.md)| Id of the campaign | + **body** | [**EmailExportRecipients**](EmailExportRecipients.md)| Values to send for a recipient export request | [optional] ### Return type @@ -214,7 +213,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | Id of the campaign +campaign_id = 56 # int | Id of the campaign try: # Get campaign informations @@ -228,7 +227,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| Id of the campaign | + **campaign_id** | [**int**](.md)| Id of the campaign | ### Return type @@ -240,7 +239,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -273,10 +272,10 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) type = 'type_example' # str | Filter on the type of the campaigns (optional) status = 'status_example' # str | Filter on the status of the campaign (optional) -start_date = '2013-10-20T19:20:30+01:00' # datetime | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) -end_date = '2013-10-20T19:20:30+01:00' # datetime | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) -limit = 500 # int | Number of documents per page (optional) (default to 500) -offset = 0 # int | Index of the first document in the page (optional) (default to 0) +start_date = 'start_date_example' # str | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) +end_date = 'end_date_example' # str | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) +limit = 56 # int | Number of documents per page (optional) +offset = 56 # int | Index of the first document in the page (optional) try: # Return all your created campaigns @@ -290,12 +289,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **type** | **str**| Filter on the type of the campaigns | [optional] - **status** | **str**| Filter on the status of the campaign | [optional] - **start_date** | **datetime**| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] - **end_date** | **datetime**| Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] - **limit** | **int**| Number of documents per page | [optional] [default to 500] - **offset** | **int**| Index of the first document in the page | [optional] [default to 0] + **type** | [**str**](.md)| Filter on the type of the campaigns | [optional] + **status** | [**str**](.md)| Filter on the status of the campaign | [optional] + **start_date** | [**str**](.md)| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] + **end_date** | [**str**](.md)| Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] + **limit** | [**int**](.md)| Number of documents per page | [optional] + **offset** | [**int**](.md)| Index of the first document in the page | [optional] ### Return type @@ -307,8 +306,8 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: Not defined + - **Accept**: application/json, applications/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -338,7 +337,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | Id of the campaign +campaign_id = 56 # int | Id of the campaign try: # Send an email campaign id of the campaign immediately @@ -351,7 +350,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| Id of the campaign | + **campaign_id** | [**int**](.md)| Id of the campaign | ### Return type @@ -363,13 +362,13 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **send_report** -> send_report(campaign_id, send_report) +> send_report(body, campaign_id) Send the report of a campaigns @@ -396,12 +395,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | Id of the campaign -send_report = sib_api_v3_sdk.SendReport() # SendReport | Values for send a report +body = sib_api_v3_sdk.SendReport() # SendReport | Values for send a report +campaign_id = 56 # int | Id of the campaign try: # Send the report of a campaigns - api_instance.send_report(campaign_id, send_report) + api_instance.send_report(body, campaign_id) except ApiException as e: print("Exception when calling EmailCampaignsApi->send_report: %s\n" % e) ``` @@ -410,8 +409,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| Id of the campaign | - **send_report** | [**SendReport**](SendReport.md)| Values for send a report | + **body** | [**SendReport**](SendReport.md)| Values for send a report | + **campaign_id** | [**int**](.md)| Id of the campaign | ### Return type @@ -429,7 +428,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **send_test_email** -> send_test_email(campaign_id, email_to) +> send_test_email(body, campaign_id) Send an email campaign to your test list @@ -454,12 +453,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | Id of the campaign -email_to = sib_api_v3_sdk.SendTestEmail() # SendTestEmail | +body = sib_api_v3_sdk.SendTestEmail() # SendTestEmail | +campaign_id = 56 # int | Id of the campaign try: # Send an email campaign to your test list - api_instance.send_test_email(campaign_id, email_to) + api_instance.send_test_email(body, campaign_id) except ApiException as e: print("Exception when calling EmailCampaignsApi->send_test_email: %s\n" % e) ``` @@ -468,8 +467,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| Id of the campaign | - **email_to** | [**SendTestEmail**](SendTestEmail.md)| | + **body** | [**SendTestEmail**](SendTestEmail.md)| | + **campaign_id** | [**int**](.md)| Id of the campaign | ### Return type @@ -487,7 +486,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_campaign_status** -> update_campaign_status(campaign_id, status) +> update_campaign_status(body, campaign_id) Update a campaign status @@ -512,12 +511,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | Id of the campaign -status = sib_api_v3_sdk.UpdateCampaignStatus() # UpdateCampaignStatus | Status of the campaign +body = sib_api_v3_sdk.UpdateCampaignStatus() # UpdateCampaignStatus | Status of the campaign +campaign_id = 56 # int | Id of the campaign try: # Update a campaign status - api_instance.update_campaign_status(campaign_id, status) + api_instance.update_campaign_status(body, campaign_id) except ApiException as e: print("Exception when calling EmailCampaignsApi->update_campaign_status: %s\n" % e) ``` @@ -526,8 +525,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| Id of the campaign | - **status** | [**UpdateCampaignStatus**](UpdateCampaignStatus.md)| Status of the campaign | + **body** | [**UpdateCampaignStatus**](UpdateCampaignStatus.md)| Status of the campaign | + **campaign_id** | [**int**](.md)| Id of the campaign | ### Return type @@ -545,7 +544,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_email_campaign** -> update_email_campaign(campaign_id, email_campaign) +> update_email_campaign(body, campaign_id) Update a campaign @@ -570,12 +569,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | Id of the campaign -email_campaign = sib_api_v3_sdk.UpdateEmailCampaign() # UpdateEmailCampaign | Values to update a campaign +body = sib_api_v3_sdk.UpdateEmailCampaign() # UpdateEmailCampaign | Values to update a campaign +campaign_id = 56 # int | Id of the campaign try: # Update a campaign - api_instance.update_email_campaign(campaign_id, email_campaign) + api_instance.update_email_campaign(body, campaign_id) except ApiException as e: print("Exception when calling EmailCampaignsApi->update_email_campaign: %s\n" % e) ``` @@ -584,8 +583,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| Id of the campaign | - **email_campaign** | [**UpdateEmailCampaign**](UpdateEmailCampaign.md)| Values to update a campaign | + **body** | [**UpdateEmailCampaign**](UpdateEmailCampaign.md)| Values to update a campaign | + **campaign_id** | [**int**](.md)| Id of the campaign | ### Return type diff --git a/docs/EmailExportRecipients.md b/docs/EmailExportRecipients.md index e35c498..778bb44 100644 --- a/docs/EmailExportRecipients.md +++ b/docs/EmailExportRecipients.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/ErrorModel.md b/docs/ErrorModel.md index 75d6c27..8c99fb5 100644 --- a/docs/ErrorModel.md +++ b/docs/ErrorModel.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/FoldersApi.md b/docs/FoldersApi.md index 2fbcead..2c11c32 100644 --- a/docs/FoldersApi.md +++ b/docs/FoldersApi.md @@ -11,9 +11,8 @@ Method | HTTP request | Description [**get_folders**](FoldersApi.md#get_folders) | **GET** /contacts/folders | Get all the folders [**update_folder**](FoldersApi.md#update_folder) | **PUT** /contacts/folders/{folderId} | Update a contact folder - # **create_folder** -> CreateModel create_folder(create_folder) +> CreateModel create_folder(body) Create a folder @@ -38,11 +37,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi(sib_api_v3_sdk.ApiClient(configuration)) -create_folder = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder +body = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder try: # Create a folder - api_response = api_instance.create_folder(create_folder) + api_response = api_instance.create_folder(body) pprint(api_response) except ApiException as e: print("Exception when calling FoldersApi->create_folder: %s\n" % e) @@ -52,7 +51,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_folder** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | + **body** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | ### Return type @@ -95,7 +94,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi(sib_api_v3_sdk.ApiClient(configuration)) -folder_id = 789 # int | Id of the folder +folder_id = 56 # int | Id of the folder try: # Delete a folder (and all its lists) @@ -108,7 +107,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **int**| Id of the folder | + **folder_id** | [**int**](.md)| Id of the folder | ### Return type @@ -120,7 +119,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -151,7 +150,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi(sib_api_v3_sdk.ApiClient(configuration)) -folder_id = 789 # int | id of the folder +folder_id = 56 # int | id of the folder try: # Returns folder details @@ -165,7 +164,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **int**| id of the folder | + **folder_id** | [**int**](.md)| id of the folder | ### Return type @@ -177,7 +176,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -208,9 +207,9 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi(sib_api_v3_sdk.ApiClient(configuration)) -folder_id = 789 # int | Id of the folder -limit = 10 # int | Number of documents per page (optional) (default to 10) -offset = 0 # int | Index of the first document of the page (optional) (default to 0) +folder_id = 56 # int | Id of the folder +limit = 56 # int | Number of documents per page (optional) +offset = 56 # int | Index of the first document of the page (optional) try: # Get the lists in a folder @@ -224,9 +223,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **int**| Id of the folder | - **limit** | **int**| Number of documents per page | [optional] [default to 10] - **offset** | **int**| Index of the first document of the page | [optional] [default to 0] + **folder_id** | [**int**](.md)| Id of the folder | + **limit** | [**int**](.md)| Number of documents per page | [optional] + **offset** | [**int**](.md)| Index of the first document of the page | [optional] ### Return type @@ -238,7 +237,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -269,8 +268,8 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 10 # int | Number of documents per page (default to 10) -offset = 0 # int | Index of the first document of the page (default to 0) +limit = 56 # int | Number of documents per page +offset = 56 # int | Index of the first document of the page try: # Get all the folders @@ -284,8 +283,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number of documents per page | [default to 10] - **offset** | **int**| Index of the first document of the page | [default to 0] + **limit** | [**int**](.md)| Number of documents per page | + **offset** | [**int**](.md)| Index of the first document of the page | ### Return type @@ -297,13 +296,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_folder** -> update_folder(folder_id, update_folder) +> update_folder(body, folder_id) Update a contact folder @@ -328,12 +327,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi(sib_api_v3_sdk.ApiClient(configuration)) -folder_id = 789 # int | Id of the folder -update_folder = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder +body = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder +folder_id = 56 # int | Id of the folder try: # Update a contact folder - api_instance.update_folder(folder_id, update_folder) + api_instance.update_folder(body, folder_id) except ApiException as e: print("Exception when calling FoldersApi->update_folder: %s\n" % e) ``` @@ -342,8 +341,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **int**| Id of the folder | - **update_folder** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | + **body** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | + **folder_id** | [**int**](.md)| Id of the folder | ### Return type diff --git a/docs/GetAccount.md b/docs/GetAccount.md index faf85a4..8831367 100644 --- a/docs/GetAccount.md +++ b/docs/GetAccount.md @@ -3,15 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **str** | Login Email | -**first_name** | **str** | First Name | -**last_name** | **str** | Last Name | -**company_name** | **str** | Name of the company | -**address** | [**GetExtendedClientAddress**](GetExtendedClientAddress.md) | | -**plan** | [**list[GetAccountPlan]**](GetAccountPlan.md) | Information about your plans and credits | -**relay** | [**GetAccountRelay**](GetAccountRelay.md) | | -**marketing_automation** | [**GetAccountMarketingAutomation**](GetAccountMarketingAutomation.md) | | [optional] +**plan** | **list[object]** | Information about your plans and credits | +**relay** | **object** | Information about your SMTP account | +**marketing_automation** | **object** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetAccountMarketingAutomation.md b/docs/GetAccountMarketingAutomation.md deleted file mode 100644 index 66ccba7..0000000 --- a/docs/GetAccountMarketingAutomation.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetAccountMarketingAutomation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **str** | Marketing Automation Tracker ID | [optional] -**enabled** | **bool** | Status of Marketing Automation Plateform activation for your account (true=enabled, false=disabled) | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAccountPlan.md b/docs/GetAccountPlan.md deleted file mode 100644 index 350cfa0..0000000 --- a/docs/GetAccountPlan.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetAccountPlan - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | Displays the plan type of the user | -**credits_type** | **str** | This is the type of the credit, \"Send Limit\" is one of the possible types of credit of a user. \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. | -**credits** | **float** | Remaining credits of the user | -**start_date** | **date** | Date of the period from which the plan will start (only available for \"subscription\" and \"reseller\" plan type) | [optional] -**end_date** | **date** | Date of the period from which the plan will end (only available for \"subscription\" and \"reseller\" plan type) | [optional] -**user_limit** | **int** | Only in case of reseller account. It implies the total number of child accounts you can add to your account. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAccountRelay.md b/docs/GetAccountRelay.md deleted file mode 100644 index f3c1bf9..0000000 --- a/docs/GetAccountRelay.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetAccountRelay - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **bool** | Status of your SMTP Account (true=Enabled, false=Disabled) | -**data** | [**GetAccountRelayData**](GetAccountRelayData.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAccountRelayData.md b/docs/GetAccountRelayData.md deleted file mode 100644 index 1d80f47..0000000 --- a/docs/GetAccountRelayData.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetAccountRelayData - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_name** | **str** | Email to use as login on SMTP | -**relay** | **str** | URL of the SMTP Relay | -**port** | **int** | Port used for SMTP Relay | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAggregatedReport.md b/docs/GetAggregatedReport.md index f3ae963..73b6660 100644 --- a/docs/GetAggregatedReport.md +++ b/docs/GetAggregatedReport.md @@ -19,4 +19,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetAttributes.md b/docs/GetAttributes.md index 7d5de3c..f21d469 100644 --- a/docs/GetAttributes.md +++ b/docs/GetAttributes.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**list[GetAttributesAttributes]**](GetAttributesAttributes.md) | Listing of available contact attributes in your account | +**attributes** | **list[object]** | Listing of available contact attributes in your account | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetAttributesAttributes.md b/docs/GetAttributesAttributes.md deleted file mode 100644 index 06b3bd7..0000000 --- a/docs/GetAttributesAttributes.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetAttributesAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name of the attribute | -**category** | **str** | Category of the attribute | -**type** | **str** | Type of the attribute | [optional] -**enumeration** | [**list[GetAttributesEnumeration]**](GetAttributesEnumeration.md) | Parameter only available for \"category\" type attributes. | [optional] -**calculated_value** | **str** | Calculated value formula | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAttributesEnumeration.md b/docs/GetAttributesEnumeration.md deleted file mode 100644 index 12e2b97..0000000 --- a/docs/GetAttributesEnumeration.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetAttributesEnumeration - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **int** | ID of Value of the \"category\" type attribute | -**label** | **str** | Label of the \"category\" type attribute | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetCampaignOverview.md b/docs/GetCampaignOverview.md index a094ccf..3cdbb6f 100644 --- a/docs/GetCampaignOverview.md +++ b/docs/GetCampaignOverview.md @@ -19,4 +19,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetCampaignRecipients.md b/docs/GetCampaignRecipients.md index 80d7dce..38a1fb9 100644 --- a/docs/GetCampaignRecipients.md +++ b/docs/GetCampaignRecipients.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetCampaignStats.md b/docs/GetCampaignStats.md index 7428796..b7c59c2 100644 --- a/docs/GetCampaignStats.md +++ b/docs/GetCampaignStats.md @@ -18,4 +18,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetChildInfo.md b/docs/GetChildInfo.md index 14f230c..a18bc72 100644 --- a/docs/GetChildInfo.md +++ b/docs/GetChildInfo.md @@ -3,16 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **str** | Login Email | -**first_name** | **str** | First Name | -**last_name** | **str** | Last Name | -**company_name** | **str** | Name of the company | -**credits** | [**GetChildInfoCredits**](GetChildInfoCredits.md) | | [optional] -**statistics** | [**GetChildInfoStatistics**](GetChildInfoStatistics.md) | | [optional] +**credits** | **object** | Credits available for your child | [optional] +**statistics** | **object** | Statistics about your child account activity | [optional] **password** | **str** | The encrypted password of child account | **ips** | **list[str]** | IP(s) associated to a child account user | [optional] -**api_keys** | [**GetChildInfoApiKeys**](GetChildInfoApiKeys.md) | | [optional] +**api_keys** | **object** | API Keys associated to child account | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetChildInfoApiKeys.md b/docs/GetChildInfoApiKeys.md deleted file mode 100644 index a6fd816..0000000 --- a/docs/GetChildInfoApiKeys.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetChildInfoApiKeys - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**v2** | [**list[GetChildInfoApiKeysV2]**](GetChildInfoApiKeysV2.md) | | -**v3** | [**list[GetChildInfoApiKeysV3]**](GetChildInfoApiKeysV3.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetChildInfoApiKeysV2.md b/docs/GetChildInfoApiKeysV2.md deleted file mode 100644 index fc75e18..0000000 --- a/docs/GetChildInfoApiKeysV2.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetChildInfoApiKeysV2 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name of the key for version 2 | -**key** | **str** | API Key for version 2 | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetChildInfoApiKeysV3.md b/docs/GetChildInfoApiKeysV3.md deleted file mode 100644 index 3730c8c..0000000 --- a/docs/GetChildInfoApiKeysV3.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetChildInfoApiKeysV3 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name of the key for version 3 | -**key** | **str** | API Key for version 3 | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetChildInfoCredits.md b/docs/GetChildInfoCredits.md deleted file mode 100644 index 495cf45..0000000 --- a/docs/GetChildInfoCredits.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetChildInfoCredits - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_credits** | **int** | Email credits available for your child | [optional] -**sms_credits** | **int** | SMS credits available for your child | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetChildInfoStatistics.md b/docs/GetChildInfoStatistics.md deleted file mode 100644 index 9fa6442..0000000 --- a/docs/GetChildInfoStatistics.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetChildInfoStatistics - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**previous_month_total_sent** | **int** | Overall emails sent for the previous month | [optional] -**current_month_total_sent** | **int** | Overall emails sent for current month | [optional] -**total_sent** | **int** | Overall emails sent for since the account exists | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetChildrenList.md b/docs/GetChildrenList.md index 0f583f8..dd8cc19 100644 --- a/docs/GetChildrenList.md +++ b/docs/GetChildrenList.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**children** | **list[object]** | Your children's account information | [optional] +**children** | **list[object]** | Your children's account information | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetClient.md b/docs/GetClient.md index b019d67..575b4b3 100644 --- a/docs/GetClient.md +++ b/docs/GetClient.md @@ -10,4 +10,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetContactCampaignStats.md b/docs/GetContactCampaignStats.md index 6f8bcd4..b9f5e9b 100644 --- a/docs/GetContactCampaignStats.md +++ b/docs/GetContactCampaignStats.md @@ -3,15 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**messages_sent** | [**list[GetExtendedContactDetailsStatisticsMessagesSent]**](GetExtendedContactDetailsStatisticsMessagesSent.md) | | [optional] -**hard_bounces** | [**list[GetExtendedContactDetailsStatisticsMessagesSent]**](GetExtendedContactDetailsStatisticsMessagesSent.md) | | [optional] -**soft_bounces** | [**list[GetExtendedContactDetailsStatisticsMessagesSent]**](GetExtendedContactDetailsStatisticsMessagesSent.md) | | [optional] -**complaints** | [**list[GetExtendedContactDetailsStatisticsMessagesSent]**](GetExtendedContactDetailsStatisticsMessagesSent.md) | | [optional] -**unsubscriptions** | [**GetContactCampaignStatsUnsubscriptions**](GetContactCampaignStatsUnsubscriptions.md) | | [optional] -**opened** | [**list[GetContactCampaignStatsOpened]**](GetContactCampaignStatsOpened.md) | | [optional] -**clicked** | [**list[GetContactCampaignStatsClicked]**](GetContactCampaignStatsClicked.md) | | [optional] -**transac_attributes** | [**list[GetContactCampaignStatsTransacAttributes]**](GetContactCampaignStatsTransacAttributes.md) | | [optional] +**messages_sent** | **list[object]** | | [optional] +**hard_bounces** | **list[object]** | | [optional] +**soft_bounces** | **list[object]** | | [optional] +**complaints** | **list[object]** | | [optional] +**unsubscriptions** | **object** | | [optional] +**opened** | **list[object]** | | [optional] +**clicked** | **list[object]** | | [optional] +**transac_attributes** | **list[object]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetContactCampaignStatsClicked.md b/docs/GetContactCampaignStatsClicked.md deleted file mode 100644 index f16598e..0000000 --- a/docs/GetContactCampaignStatsClicked.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetContactCampaignStatsClicked - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | -**links** | [**list[GetExtendedContactDetailsStatisticsLinks]**](GetExtendedContactDetailsStatisticsLinks.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetContactCampaignStatsOpened.md b/docs/GetContactCampaignStatsOpened.md deleted file mode 100644 index fc32632..0000000 --- a/docs/GetContactCampaignStatsOpened.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetContactCampaignStatsOpened - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | -**count** | **int** | Number of openings of the campaign | -**event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has opened the campaign | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetContactCampaignStatsTransacAttributes.md b/docs/GetContactCampaignStatsTransacAttributes.md deleted file mode 100644 index d9d32a3..0000000 --- a/docs/GetContactCampaignStatsTransacAttributes.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetContactCampaignStatsTransacAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_date** | **date** | Date of the order | -**order_price** | **float** | Price of the order | -**order_id** | **int** | ID of the order | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetContactCampaignStatsUnsubscriptions.md b/docs/GetContactCampaignStatsUnsubscriptions.md deleted file mode 100644 index 2ac3d93..0000000 --- a/docs/GetContactCampaignStatsUnsubscriptions.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetContactCampaignStatsUnsubscriptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_unsubscription** | [**list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]**](GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md) | Contact has unsubscribed via the unsubscription link in the email | -**admin_unsubscription** | [**list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]**](GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md) | Contact has been unsubscribed from the administrator | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetContactDetails.md b/docs/GetContactDetails.md index 51a1bd2..7898f7d 100644 --- a/docs/GetContactDetails.md +++ b/docs/GetContactDetails.md @@ -15,4 +15,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetContacts.md b/docs/GetContacts.md index 20230f3..89ab1cc 100644 --- a/docs/GetContacts.md +++ b/docs/GetContacts.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetEmailCampaign.md b/docs/GetEmailCampaign.md index 85469a6..4322980 100644 --- a/docs/GetEmailCampaign.md +++ b/docs/GetEmailCampaign.md @@ -3,37 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | ID of the campaign | -**name** | **str** | Name of the campaign | -**subject** | **str** | Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` | [optional] -**type** | **str** | Type of campaign | -**status** | **str** | Status of the campaign | -**scheduled_at** | **datetime** | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] -**ab_testing** | **bool** | Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. | [optional] -**subject_a** | **str** | Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` | [optional] -**subject_b** | **str** | Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` | [optional] -**split_rule** | **int** | The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true` | [optional] -**winner_criteria** | **str** | Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true` | [optional] -**winner_delay** | **int** | The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true` | [optional] -**send_at_best_time** | **bool** | It is true if you have chosen to send your campaign at best time, otherwise it is false | [optional] -**test_sent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | -**header** | **str** | Header of the campaign | -**footer** | **str** | Footer of the campaign | -**sender** | [**GetExtendedCampaignOverviewSender**](GetExtendedCampaignOverviewSender.md) | | -**reply_to** | **str** | Email defined as the \"Reply to\" of the campaign | -**to_field** | **str** | Customisation of the \"to\" field of the campaign | -**html_content** | **str** | HTML content of the campaign | -**share_link** | **str** | Link to share the campaign on social medias | [optional] -**tag** | **str** | Tag of the campaign | -**created_at** | **datetime** | Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**inline_image_activation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] -**mirror_active** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] -**recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] -**sent_date** | **datetime** | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' | [optional] **recipients** | **object** | | **statistics** | **object** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetEmailCampaigns.md b/docs/GetEmailCampaigns.md index 4f91f9e..0f77567 100644 --- a/docs/GetEmailCampaigns.md +++ b/docs/GetEmailCampaigns.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetEmailEventReport.md b/docs/GetEmailEventReport.md index 65a39ef..a0da888 100644 --- a/docs/GetEmailEventReport.md +++ b/docs/GetEmailEventReport.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**events** | [**list[GetEmailEventReportEvents]**](GetEmailEventReportEvents.md) | | [optional] +**events** | **list[object]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetEmailEventReportEvents.md b/docs/GetEmailEventReportEvents.md deleted file mode 100644 index 4da401c..0000000 --- a/docs/GetEmailEventReportEvents.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetEmailEventReportEvents - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | Email address which generates the event | -**date** | **datetime** | UTC date-time on which the event has been generated | -**subject** | **str** | Subject of the event | [optional] -**message_id** | **str** | Message ID which generated the event | -**event** | **str** | Event which occurred | -**reason** | **str** | Reason of bounce (only available if the event is hardbounce or softbounce) | [optional] -**tag** | **str** | Tag of the email which generated the event | [optional] -**ip** | **str** | IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) | [optional] -**link** | **str** | The link which is sent to the user (only available if the event is requests or opened or clicks) | [optional] -**_from** | **str** | Sender email from which the emails are sent | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedCampaignOverview.md b/docs/GetExtendedCampaignOverview.md index 87ff5ca..918e2e8 100644 --- a/docs/GetExtendedCampaignOverview.md +++ b/docs/GetExtendedCampaignOverview.md @@ -3,23 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | ID of the campaign | -**name** | **str** | Name of the campaign | -**subject** | **str** | Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` | [optional] -**type** | **str** | Type of campaign | -**status** | **str** | Status of the campaign | -**scheduled_at** | **datetime** | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] -**ab_testing** | **bool** | Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. | [optional] -**subject_a** | **str** | Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` | [optional] -**subject_b** | **str** | Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` | [optional] -**split_rule** | **int** | The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true` | [optional] -**winner_criteria** | **str** | Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true` | [optional] -**winner_delay** | **int** | The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true` | [optional] -**send_at_best_time** | **bool** | It is true if you have chosen to send your campaign at best time, otherwise it is false | [optional] **test_sent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | **header** | **str** | Header of the campaign | **footer** | **str** | Footer of the campaign | -**sender** | [**GetExtendedCampaignOverviewSender**](GetExtendedCampaignOverviewSender.md) | | +**sender** | **object** | | **reply_to** | **str** | Email defined as the \"Reply to\" of the campaign | **to_field** | **str** | Customisation of the \"to\" field of the campaign | **html_content** | **str** | HTML content of the campaign | @@ -30,8 +17,7 @@ Name | Type | Description | Notes **inline_image_activation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] **mirror_active** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] **recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] -**sent_date** | **datetime** | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' | [optional] +**sent_date** | **datetime** | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetExtendedCampaignOverviewSender.md b/docs/GetExtendedCampaignOverviewSender.md deleted file mode 100644 index b5981ef..0000000 --- a/docs/GetExtendedCampaignOverviewSender.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetExtendedCampaignOverviewSender - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Sender name of the campaign | [optional] -**email** | **str** | Sender email of the campaign | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedCampaignStats.md b/docs/GetExtendedCampaignStats.md index c9024d0..7f228e3 100644 --- a/docs/GetExtendedCampaignStats.md +++ b/docs/GetExtendedCampaignStats.md @@ -12,4 +12,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetExtendedClient.md b/docs/GetExtendedClient.md index e1383fa..21546d5 100644 --- a/docs/GetExtendedClient.md +++ b/docs/GetExtendedClient.md @@ -3,12 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **str** | Login Email | -**first_name** | **str** | First Name | -**last_name** | **str** | Last Name | -**company_name** | **str** | Name of the company | -**address** | [**GetExtendedClientAddress**](GetExtendedClientAddress.md) | | +**address** | **object** | Address informations | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetExtendedClientAddress.md b/docs/GetExtendedClientAddress.md deleted file mode 100644 index 43bac87..0000000 --- a/docs/GetExtendedClientAddress.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetExtendedClientAddress - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**street** | **str** | Street information | -**city** | **str** | City information | -**zip_code** | **str** | Zip Code information | -**country** | **str** | Country information | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedContactDetails.md b/docs/GetExtendedContactDetails.md index c00854a..0b13a1b 100644 --- a/docs/GetExtendedContactDetails.md +++ b/docs/GetExtendedContactDetails.md @@ -3,17 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **str** | Email address of the contact for which you requested the details | -**id** | **int** | ID of the contact for which you requested the details | -**email_blacklisted** | **bool** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | -**sms_blacklisted** | **bool** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | -**created_at** | **datetime** | Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**list_ids** | **list[int]** | | -**list_unsubscribed** | **list[int]** | | [optional] -**attributes** | **object** | Set of attributes of the contact | -**statistics** | [**GetExtendedContactDetailsStatistics**](GetExtendedContactDetailsStatistics.md) | | +**statistics** | **object** | Campaign statistics of the contact | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetExtendedContactDetailsStatistics.md b/docs/GetExtendedContactDetailsStatistics.md deleted file mode 100644 index 379612f..0000000 --- a/docs/GetExtendedContactDetailsStatistics.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetExtendedContactDetailsStatistics - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messages_sent** | [**list[GetExtendedContactDetailsStatisticsMessagesSent]**](GetExtendedContactDetailsStatisticsMessagesSent.md) | Listing of the sent campaign for the contact | [optional] -**hard_bounces** | [**list[GetExtendedContactDetailsStatisticsMessagesSent]**](GetExtendedContactDetailsStatisticsMessagesSent.md) | Listing of the hardbounes generated by the contact | [optional] -**soft_bounces** | [**list[GetExtendedContactDetailsStatisticsMessagesSent]**](GetExtendedContactDetailsStatisticsMessagesSent.md) | Listing of the softbounes generated by the contact | [optional] -**complaints** | [**list[GetExtendedContactDetailsStatisticsMessagesSent]**](GetExtendedContactDetailsStatisticsMessagesSent.md) | Listing of the complaints generated by the contact | [optional] -**unsubscriptions** | [**GetExtendedContactDetailsStatisticsUnsubscriptions**](GetExtendedContactDetailsStatisticsUnsubscriptions.md) | | [optional] -**opened** | [**list[GetExtendedContactDetailsStatisticsOpened]**](GetExtendedContactDetailsStatisticsOpened.md) | Listing of the openings generated by the contact | [optional] -**clicked** | [**list[GetExtendedContactDetailsStatisticsClicked]**](GetExtendedContactDetailsStatisticsClicked.md) | Listing of the clicks generated by the contact | [optional] -**transac_attributes** | **list[object]** | Listing of the transactional attributes for the contact | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedContactDetailsStatisticsClicked.md b/docs/GetExtendedContactDetailsStatisticsClicked.md deleted file mode 100644 index 6ee6f63..0000000 --- a/docs/GetExtendedContactDetailsStatisticsClicked.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetExtendedContactDetailsStatisticsClicked - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | -**links** | [**list[GetExtendedContactDetailsStatisticsLinks]**](GetExtendedContactDetailsStatisticsLinks.md) | Listing of the clicked links for the campaign | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedContactDetailsStatisticsLinks.md b/docs/GetExtendedContactDetailsStatisticsLinks.md deleted file mode 100644 index 51829e1..0000000 --- a/docs/GetExtendedContactDetailsStatisticsLinks.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetExtendedContactDetailsStatisticsLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **int** | Number of clicks on this link for the campaign | -**event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has clicked on the link | -**url** | **str** | URL of the clicked link | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedContactDetailsStatisticsMessagesSent.md b/docs/GetExtendedContactDetailsStatisticsMessagesSent.md deleted file mode 100644 index 69d633f..0000000 --- a/docs/GetExtendedContactDetailsStatisticsMessagesSent.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetExtendedContactDetailsStatisticsMessagesSent - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | -**event_time** | **datetime** | UTC date-time of the event | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedContactDetailsStatisticsOpened.md b/docs/GetExtendedContactDetailsStatisticsOpened.md deleted file mode 100644 index 5ba5558..0000000 --- a/docs/GetExtendedContactDetailsStatisticsOpened.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetExtendedContactDetailsStatisticsOpened - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | -**count** | **int** | Number of openings for the campaign | -**event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has opened the email | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedContactDetailsStatisticsUnsubscriptions.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptions.md deleted file mode 100644 index fd6c096..0000000 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptions.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetExtendedContactDetailsStatisticsUnsubscriptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_unsubscription** | [**list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]**](GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md) | Contact unsubscribe via unsubscription link in a campaign | -**admin_unsubscription** | [**list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]**](GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md) | Contact has been unsubscribed from the administrator | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md deleted file mode 100644 index 9ecfaef..0000000 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has been unsubscribed | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md deleted file mode 100644 index b3d4ea6..0000000 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | -**event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has unsubscribed | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetExtendedList.md b/docs/GetExtendedList.md index 352f107..8efb26c 100644 --- a/docs/GetExtendedList.md +++ b/docs/GetExtendedList.md @@ -3,15 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | ID of the list | -**name** | **str** | Name of the list | -**total_blacklisted** | **int** | Number of blacklisted contacts in the list | -**total_subscribers** | **int** | Number of contacts in the list | **folder_id** | **int** | ID of the folder | **created_at** | **datetime** | Creation UTC date-time of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**campaign_stats** | [**list[GetExtendedListCampaignStats]**](GetExtendedListCampaignStats.md) | | [optional] +**campaign_stats** | **list[object]** | | [optional] **dynamic_list** | **bool** | Status telling if the list is dynamic or not (true=dynamic, false=not dynamic) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetExtendedListCampaignStats.md b/docs/GetExtendedListCampaignStats.md deleted file mode 100644 index 4aa7e96..0000000 --- a/docs/GetExtendedListCampaignStats.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetExtendedListCampaignStats - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign | -**stats** | [**GetCampaignStats**](GetCampaignStats.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetFolder.md b/docs/GetFolder.md index ff0fa9e..347450a 100644 --- a/docs/GetFolder.md +++ b/docs/GetFolder.md @@ -11,4 +11,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetFolderLists.md b/docs/GetFolderLists.md index bfff9f9..dfa343f 100644 --- a/docs/GetFolderLists.md +++ b/docs/GetFolderLists.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetFolders.md b/docs/GetFolders.md index 78c71bf..2cf391c 100644 --- a/docs/GetFolders.md +++ b/docs/GetFolders.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetIp.md b/docs/GetIp.md index 797a8fa..bf2826f 100644 --- a/docs/GetIp.md +++ b/docs/GetIp.md @@ -10,4 +10,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetIpFromSender.md b/docs/GetIpFromSender.md index b32165e..35b13aa 100644 --- a/docs/GetIpFromSender.md +++ b/docs/GetIpFromSender.md @@ -10,4 +10,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetIps.md b/docs/GetIps.md index 973ede5..b4ba839 100644 --- a/docs/GetIps.md +++ b/docs/GetIps.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetIpsFromSender.md b/docs/GetIpsFromSender.md index c9b7d07..1cf42f4 100644 --- a/docs/GetIpsFromSender.md +++ b/docs/GetIpsFromSender.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetList.md b/docs/GetList.md index 367e2d2..2614b79 100644 --- a/docs/GetList.md +++ b/docs/GetList.md @@ -10,4 +10,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetLists.md b/docs/GetLists.md index 5e5f17c..fe4e785 100644 --- a/docs/GetLists.md +++ b/docs/GetLists.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetProcess.md b/docs/GetProcess.md index 03e2a3e..20391fe 100644 --- a/docs/GetProcess.md +++ b/docs/GetProcess.md @@ -10,4 +10,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetProcesses.md b/docs/GetProcesses.md index 177ad93..da59e7b 100644 --- a/docs/GetProcesses.md +++ b/docs/GetProcesses.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetReports.md b/docs/GetReports.md index 69ec16b..5731d3b 100644 --- a/docs/GetReports.md +++ b/docs/GetReports.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**reports** | [**list[GetReportsReports]**](GetReportsReports.md) | | [optional] +**reports** | **list[object]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetReportsReports.md b/docs/GetReportsReports.md deleted file mode 100644 index 640cb8e..0000000 --- a/docs/GetReportsReports.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetReportsReports - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**date** | **date** | Date of the statistics | -**requests** | **int** | Number of requests for the date | -**delivered** | **int** | Number of delivered emails for the date | -**hard_bounces** | **int** | Number of hardbounces for the date | -**soft_bounces** | **int** | Number of softbounces for the date | -**clicks** | **int** | Number of clicks for the date | -**unique_clicks** | **int** | Number of unique clicks for the date | -**opens** | **int** | Number of openings for the date | -**unique_opens** | **int** | Number of unique openings for the date | -**spam_reports** | **int** | Number of complaints (spam reports) for the date | -**blocked** | **int** | Number of blocked emails for the date | -**invalid** | **int** | Number of invalid emails for the date | -**unsubscribed** | **int** | Number of unsubscribed emails for the date | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetSendersList.md b/docs/GetSendersList.md index 92a0bcd..4bf2792 100644 --- a/docs/GetSendersList.md +++ b/docs/GetSendersList.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**senders** | [**list[GetSendersListSenders]**](GetSendersListSenders.md) | List of the senders available in your account | [optional] +**senders** | **list[object]** | List of the senders available in your account | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetSendersListIps.md b/docs/GetSendersListIps.md deleted file mode 100644 index eb20d7b..0000000 --- a/docs/GetSendersListIps.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetSendersListIps - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ip** | **str** | Dedicated IP available in your account | -**domain** | **str** | Domain of the IP | -**weight** | **int** | Weight of the IP for this sender | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetSendersListSenders.md b/docs/GetSendersListSenders.md deleted file mode 100644 index cd0a351..0000000 --- a/docs/GetSendersListSenders.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetSendersListSenders - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | Id of the sender | -**name** | **str** | From Name associated to the sender | -**email** | **str** | From Email associated to the sender | -**active** | **bool** | Status of sender (true=activated, false=deactivated) | -**ips** | [**list[GetSendersListIps]**](GetSendersListIps.md) | List of dedicated IP(s) available in the account. This data is displayed only for dedicated IPs | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetSmsCampaign.md b/docs/GetSmsCampaign.md index 382b5f6..57afe1e 100644 --- a/docs/GetSmsCampaign.md +++ b/docs/GetSmsCampaign.md @@ -3,17 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | ID of the SMS Campaign | -**name** | **str** | Name of the SMS Campaign | -**status** | **str** | Status of the SMS Campaign | -**content** | **str** | Content of the SMS Campaign | -**scheduled_at** | **datetime** | UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | -**sender** | **str** | Sender of the SMS Campaign | -**created_at** | **datetime** | Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | **recipients** | **object** | | **statistics** | **object** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetSmsCampaignOverview.md b/docs/GetSmsCampaignOverview.md index b8272f7..33e56d6 100644 --- a/docs/GetSmsCampaignOverview.md +++ b/docs/GetSmsCampaignOverview.md @@ -14,4 +14,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetSmsCampaignStats.md b/docs/GetSmsCampaignStats.md index 7db047c..b89f265 100644 --- a/docs/GetSmsCampaignStats.md +++ b/docs/GetSmsCampaignStats.md @@ -13,4 +13,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetSmsCampaigns.md b/docs/GetSmsCampaigns.md index ababc8b..ab459d7 100644 --- a/docs/GetSmsCampaigns.md +++ b/docs/GetSmsCampaigns.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetSmsEventReport.md b/docs/GetSmsEventReport.md index 330c638..7b6127e 100644 --- a/docs/GetSmsEventReport.md +++ b/docs/GetSmsEventReport.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**events** | [**list[GetSmsEventReportEvents]**](GetSmsEventReportEvents.md) | | [optional] +**events** | **list[object]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetSmsEventReportEvents.md b/docs/GetSmsEventReportEvents.md deleted file mode 100644 index f25fda2..0000000 --- a/docs/GetSmsEventReportEvents.md +++ /dev/null @@ -1,16 +0,0 @@ -# GetSmsEventReportEvents - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phone_number** | **str** | Phone number which has generated the event | -**date** | **datetime** | UTC date-time on which the event has been generated | -**message_id** | **str** | Message ID which generated the event | -**event** | **str** | Event which occurred | -**reason** | **str** | Reason of bounce (only available if the event is hardbounce or softbounce) | [optional] -**reply** | **str** | | [optional] -**tag** | **str** | Tag of the SMS which generated the event | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetSmtpTemplateOverview.md b/docs/GetSmtpTemplateOverview.md index 3789649..9721b15 100644 --- a/docs/GetSmtpTemplateOverview.md +++ b/docs/GetSmtpTemplateOverview.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **str** | Subject of the template | **is_active** | **bool** | Status of template (true=active, false=inactive) | **test_sent** | **bool** | Status of test sending for the template (true=test email has been sent, false=test email has not been sent) | -**sender** | [**GetSmtpTemplateOverviewSender**](GetSmtpTemplateOverviewSender.md) | | +**sender** | **object** | | **reply_to** | **str** | Email defined as the \"Reply to\" for the template | **to_field** | **str** | Customisation of the \"to\" field for the template | **tag** | **str** | Tag of the template | @@ -18,4 +18,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetSmtpTemplateOverviewSender.md b/docs/GetSmtpTemplateOverviewSender.md deleted file mode 100644 index 9c488d1..0000000 --- a/docs/GetSmtpTemplateOverviewSender.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetSmtpTemplateOverviewSender - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | From email for the template | [optional] -**email** | **str** | From email for the template | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetSmtpTemplates.md b/docs/GetSmtpTemplates.md index 30b3e88..280c2ce 100644 --- a/docs/GetSmtpTemplates.md +++ b/docs/GetSmtpTemplates.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetStatsByDomain.md b/docs/GetStatsByDomain.md index bdd4c4b..68b33a4 100644 --- a/docs/GetStatsByDomain.md +++ b/docs/GetStatsByDomain.md @@ -6,4 +6,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetTransacAggregatedSmsReport.md b/docs/GetTransacAggregatedSmsReport.md index c24ae43..26720f3 100644 --- a/docs/GetTransacAggregatedSmsReport.md +++ b/docs/GetTransacAggregatedSmsReport.md @@ -16,4 +16,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetTransacSmsReport.md b/docs/GetTransacSmsReport.md index 30a63e7..574defb 100644 --- a/docs/GetTransacSmsReport.md +++ b/docs/GetTransacSmsReport.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**reports** | [**list[GetTransacSmsReportReports]**](GetTransacSmsReportReports.md) | | [optional] +**reports** | **list[object]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetTransacSmsReportReports.md b/docs/GetTransacSmsReportReports.md deleted file mode 100644 index df3493d..0000000 --- a/docs/GetTransacSmsReportReports.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTransacSmsReportReports - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**date** | **date** | Date for which statistics are retrieved | -**requests** | **int** | Number of requests for the date | -**delivered** | **int** | Number of delivered SMS for the date | -**hard_bounces** | **int** | Number of hardbounces for the date | -**soft_bounces** | **int** | Number of softbounces for the date | -**blocked** | **int** | Number of blocked contact for the date | -**unsubscribed** | **int** | Number of unsubscription for the date | -**replied** | **int** | Number of answered SMS for the date | -**accepted** | **int** | Number of accepted for the date | -**rejected** | **int** | Number of rejected for the date | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetWebhook.md b/docs/GetWebhook.md index 1461ebe..a9adc70 100644 --- a/docs/GetWebhook.md +++ b/docs/GetWebhook.md @@ -13,4 +13,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/GetWebhooks.md b/docs/GetWebhooks.md index e38e580..0ae176c 100644 --- a/docs/GetWebhooks.md +++ b/docs/GetWebhooks.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/ListsApi.md b/docs/ListsApi.md index 336448b..a8b68bf 100644 --- a/docs/ListsApi.md +++ b/docs/ListsApi.md @@ -14,9 +14,8 @@ Method | HTTP request | Description [**remove_contact_from_list**](ListsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list [**update_list**](ListsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list - # **add_contact_to_list** -> PostContactInfo add_contact_to_list(list_id, contact_emails) +> PostContactInfo add_contact_to_list(body, list_id) Add existing contacts to a list @@ -41,12 +40,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list -contact_emails = sib_api_v3_sdk.AddContactToList() # AddContactToList | Emails addresses of the contacts +body = sib_api_v3_sdk.AddContactToList() # AddContactToList | Emails addresses of the contacts +list_id = 56 # int | Id of the list try: # Add existing contacts to a list - api_response = api_instance.add_contact_to_list(list_id, contact_emails) + api_response = api_instance.add_contact_to_list(body, list_id) pprint(api_response) except ApiException as e: print("Exception when calling ListsApi->add_contact_to_list: %s\n" % e) @@ -56,8 +55,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | - **contact_emails** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts | + **body** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts | + **list_id** | [**int**](.md)| Id of the list | ### Return type @@ -75,7 +74,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_list** -> CreateModel create_list(create_list) +> CreateModel create_list(body) Create a list @@ -100,11 +99,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) -create_list = sib_api_v3_sdk.CreateList() # CreateList | Values to create a list +body = sib_api_v3_sdk.CreateList() # CreateList | Values to create a list try: # Create a list - api_response = api_instance.create_list(create_list) + api_response = api_instance.create_list(body) pprint(api_response) except ApiException as e: print("Exception when calling ListsApi->create_list: %s\n" % e) @@ -114,7 +113,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_list** | [**CreateList**](CreateList.md)| Values to create a list | + **body** | [**CreateList**](CreateList.md)| Values to create a list | ### Return type @@ -157,7 +156,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list +list_id = 56 # int | Id of the list try: # Delete a list @@ -170,7 +169,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | + **list_id** | [**int**](.md)| Id of the list | ### Return type @@ -182,7 +181,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -213,10 +212,10 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list -modified_since = '2013-10-20T19:20:30+01:00' # datetime | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) -limit = 50 # int | Number of documents per page (optional) (default to 50) -offset = 0 # int | Index of the first document of the page (optional) (default to 0) +list_id = 56 # int | Id of the list +modified_since = 'modified_since_example' # str | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) +limit = 56 # int | Number of documents per page (optional) +offset = 56 # int | Index of the first document of the page (optional) try: # Get the contacts in a list @@ -230,10 +229,10 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | - **modified_since** | **datetime**| Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] - **limit** | **int**| Number of documents per page | [optional] [default to 50] - **offset** | **int**| Index of the first document of the page | [optional] [default to 0] + **list_id** | [**int**](.md)| Id of the list | + **modified_since** | [**str**](.md)| Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] + **limit** | [**int**](.md)| Number of documents per page | [optional] + **offset** | [**int**](.md)| Index of the first document of the page | [optional] ### Return type @@ -245,7 +244,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -276,9 +275,9 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) -folder_id = 789 # int | Id of the folder -limit = 10 # int | Number of documents per page (optional) (default to 10) -offset = 0 # int | Index of the first document of the page (optional) (default to 0) +folder_id = 56 # int | Id of the folder +limit = 56 # int | Number of documents per page (optional) +offset = 56 # int | Index of the first document of the page (optional) try: # Get the lists in a folder @@ -292,9 +291,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **int**| Id of the folder | - **limit** | **int**| Number of documents per page | [optional] [default to 10] - **offset** | **int**| Index of the first document of the page | [optional] [default to 0] + **folder_id** | [**int**](.md)| Id of the folder | + **limit** | [**int**](.md)| Number of documents per page | [optional] + **offset** | [**int**](.md)| Index of the first document of the page | [optional] ### Return type @@ -306,7 +305,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -337,7 +336,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list +list_id = 56 # int | Id of the list try: # Get the details of a list @@ -351,7 +350,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | + **list_id** | [**int**](.md)| Id of the list | ### Return type @@ -363,7 +362,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -394,8 +393,8 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 10 # int | Number of documents per page (optional) (default to 10) -offset = 0 # int | Index of the first document of the page (optional) (default to 0) +limit = 56 # int | Number of documents per page (optional) +offset = 56 # int | Index of the first document of the page (optional) try: # Get all the lists @@ -409,8 +408,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number of documents per page | [optional] [default to 10] - **offset** | **int**| Index of the first document of the page | [optional] [default to 0] + **limit** | [**int**](.md)| Number of documents per page | [optional] + **offset** | [**int**](.md)| Index of the first document of the page | [optional] ### Return type @@ -422,13 +421,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **remove_contact_from_list** -> PostContactInfo remove_contact_from_list(list_id, contact_emails) +> PostContactInfo remove_contact_from_list(body, list_id) Remove existing contacts from a list @@ -453,12 +452,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list -contact_emails = sib_api_v3_sdk.RemoveContactFromList() # RemoveContactFromList | Emails adresses of the contact +body = sib_api_v3_sdk.RemoveContactFromList() # RemoveContactFromList | Emails adresses of the contact +list_id = 56 # int | Id of the list try: # Remove existing contacts from a list - api_response = api_instance.remove_contact_from_list(list_id, contact_emails) + api_response = api_instance.remove_contact_from_list(body, list_id) pprint(api_response) except ApiException as e: print("Exception when calling ListsApi->remove_contact_from_list: %s\n" % e) @@ -468,8 +467,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | - **contact_emails** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact | + **body** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact | + **list_id** | [**int**](.md)| Id of the list | ### Return type @@ -487,7 +486,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_list** -> update_list(list_id, update_list) +> update_list(body, list_id) Update a list @@ -512,12 +511,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) -list_id = 789 # int | Id of the list -update_list = sib_api_v3_sdk.UpdateList() # UpdateList | Values to update a list +body = sib_api_v3_sdk.UpdateList() # UpdateList | Values to update a list +list_id = 56 # int | Id of the list try: # Update a list - api_instance.update_list(list_id, update_list) + api_instance.update_list(body, list_id) except ApiException as e: print("Exception when calling ListsApi->update_list: %s\n" % e) ``` @@ -526,8 +525,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **int**| Id of the list | - **update_list** | [**UpdateList**](UpdateList.md)| Values to update a list | + **body** | [**UpdateList**](UpdateList.md)| Values to update a list | + **list_id** | [**int**](.md)| Id of the list | ### Return type diff --git a/docs/ManageIp.md b/docs/ManageIp.md index e6048a2..17b7283 100644 --- a/docs/ManageIp.md +++ b/docs/ManageIp.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/PostContactInfo.md b/docs/PostContactInfo.md index b221767..4f140e5 100644 --- a/docs/PostContactInfo.md +++ b/docs/PostContactInfo.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**contacts** | [**PostContactInfoContacts**](PostContactInfoContacts.md) | | +**contacts** | **object** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/PostContactInfoContacts.md b/docs/PostContactInfoContacts.md deleted file mode 100644 index 12f27a2..0000000 --- a/docs/PostContactInfoContacts.md +++ /dev/null @@ -1,12 +0,0 @@ -# PostContactInfoContacts - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **list[str]** | | [optional] -**failure** | **list[str]** | | [optional] -**total** | **int** | Displays the count of total number of contacts removed from list when user opts for \"all\" option. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PostSendFailed.md b/docs/PostSendFailed.md index 3ed589d..9448d62 100644 --- a/docs/PostSendFailed.md +++ b/docs/PostSendFailed.md @@ -11,4 +11,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/PostSendSmsTestFailed.md b/docs/PostSendSmsTestFailed.md index 938c268..29589aa 100644 --- a/docs/PostSendSmsTestFailed.md +++ b/docs/PostSendSmsTestFailed.md @@ -10,4 +10,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/ProcessApi.md b/docs/ProcessApi.md index eb91297..a57fd04 100644 --- a/docs/ProcessApi.md +++ b/docs/ProcessApi.md @@ -7,7 +7,6 @@ Method | HTTP request | Description [**get_process**](ProcessApi.md#get_process) | **GET** /processes/{processId} | Return the informations for a process [**get_processes**](ProcessApi.md#get_processes) | **GET** /processes | Return all the processes for your account - # **get_process** > GetProcess get_process(process_id) @@ -34,7 +33,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ProcessApi(sib_api_v3_sdk.ApiClient(configuration)) -process_id = 789 # int | Id of the process +process_id = 56 # int | Id of the process try: # Return the informations for a process @@ -48,7 +47,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **process_id** | **int**| Id of the process | + **process_id** | [**int**](.md)| Id of the process | ### Return type @@ -60,7 +59,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -91,8 +90,8 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ProcessApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 10 # int | Number limitation for the result returned (optional) (default to 10) -offset = 0 # int | Beginning point in the list to retrieve from. (optional) (default to 0) +limit = 56 # int | Number limitation for the result returned (optional) +offset = 56 # int | Beginning point in the list to retrieve from. (optional) try: # Return all the processes for your account @@ -106,8 +105,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number limitation for the result returned | [optional] [default to 10] - **offset** | **int**| Beginning point in the list to retrieve from. | [optional] [default to 0] + **limit** | [**int**](.md)| Number limitation for the result returned | [optional] + **offset** | [**int**](.md)| Beginning point in the list to retrieve from. | [optional] ### Return type @@ -119,7 +118,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/RemainingCreditModel.md b/docs/RemainingCreditModel.md index 201a7af..4e60cab 100644 --- a/docs/RemainingCreditModel.md +++ b/docs/RemainingCreditModel.md @@ -3,9 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**child** | [**RemainingCreditModelChild**](RemainingCreditModelChild.md) | | -**reseller** | [**RemainingCreditModelReseller**](RemainingCreditModelReseller.md) | | +**child** | **object** | Credits remaining for child account | +**reseller** | **object** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/RemainingCreditModelChild.md b/docs/RemainingCreditModelChild.md deleted file mode 100644 index 73a94d2..0000000 --- a/docs/RemainingCreditModelChild.md +++ /dev/null @@ -1,11 +0,0 @@ -# RemainingCreditModelChild - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sms** | **int** | SMS Credits remaining for child account | -**email** | **int** | Email Credits remaining for child account | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RemainingCreditModelReseller.md b/docs/RemainingCreditModelReseller.md deleted file mode 100644 index b88b3bc..0000000 --- a/docs/RemainingCreditModelReseller.md +++ /dev/null @@ -1,11 +0,0 @@ -# RemainingCreditModelReseller - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sms** | **int** | SMS Credits remaining for reseller account | -**email** | **int** | Email Credits remaining for reseller account | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RemoveContactFromList.md b/docs/RemoveContactFromList.md index 14500d3..1789a30 100644 --- a/docs/RemoveContactFromList.md +++ b/docs/RemoveContactFromList.md @@ -3,9 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**emails** | **list[str]** | Required if 'all' is false. Emails to remove from a list | [optional] -**all** | **bool** | Required if 'emails' is empty. Remove all existing contacts from a list | [optional] +**emails** | **list[str]** | Required if 'all' is false. Emails to remove from a list | [optional] +**all** | **bool** | Required if 'emails' is empty. Remove all existing contacts from a list | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/RemoveCredits.md b/docs/RemoveCredits.md index 3d2de94..71f4fda 100644 --- a/docs/RemoveCredits.md +++ b/docs/RemoveCredits.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/RequestContactExport.md b/docs/RequestContactExport.md index f9789ca..7dacb00 100644 --- a/docs/RequestContactExport.md +++ b/docs/RequestContactExport.md @@ -3,10 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**export_attributes** | **list[str]** | List of all the attributes that you want to export. These attributes must be present in your contact database. For example, ['fname', 'lname', 'email']. | [optional] +**export_attributes** | **list[str]** | List of all the attributes that you want to export. These attributes must be present in your contact database. For example, ['fname', 'lname', 'email']. | [optional] **contact_filter** | **object** | Set the filter for the contacts to be exported. For example, `{\"blacklisted\":true}` will export all the blacklisted contacts. | **notify_url** | **str** | Webhook that will be called once the export process is finished | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/RequestContactImport.md b/docs/RequestContactImport.md index 03e6852..1fcf9dd 100644 --- a/docs/RequestContactImport.md +++ b/docs/RequestContactImport.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **file_body** | **str** | Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes | [optional] **list_ids** | **list[int]** | Mandatory if newList is not defined. Ids of the lists in which the contacts shall be imported. For example, [2, 4, 7]. | [optional] **notify_url** | **str** | URL that will be called once the export process is finished | [optional] -**new_list** | [**RequestContactImportNewList**](RequestContactImportNewList.md) | | [optional] +**new_list** | **object** | To create a new list and import the contacts into it, pass the listName and an optional folderId. | [optional] **email_blacklist** | **bool** | To blacklist all the contacts for email | [optional] [default to False] **sms_blacklist** | **bool** | To blacklist all the contacts for sms | [optional] [default to False] **update_existing_contacts** | **bool** | To facilitate the choice to update the existing contacts | [optional] [default to True] @@ -15,4 +15,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/RequestContactImportNewList.md b/docs/RequestContactImportNewList.md deleted file mode 100644 index e62d802..0000000 --- a/docs/RequestContactImportNewList.md +++ /dev/null @@ -1,11 +0,0 @@ -# RequestContactImportNewList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**list_name** | **str** | List with listName will be created first and users will be imported in it (Mandatory if listIds is empty). | [optional] -**folder_id** | **int** | Id of the folder where this new list shall be created (Mandatory if listName is not empty). | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RequestSMSRecipientExport.md b/docs/RequestSMSRecipientExport.md index 0b81b89..920b3d5 100644 --- a/docs/RequestSMSRecipientExport.md +++ b/docs/RequestSMSRecipientExport.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/ResellerApi.md b/docs/ResellerApi.md index 9d4ddb8..330ce86 100644 --- a/docs/ResellerApi.md +++ b/docs/ResellerApi.md @@ -10,13 +10,12 @@ Method | HTTP request | Description [**delete_reseller_child**](ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied [**dissociate_ip_from_child**](ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child [**get_child_info**](ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account -[**get_reseller_childs**](ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts +[**get_reseller_childs**](ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts [**remove_credits**](ResellerApi.md#remove_credits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account -[**update_reseller_child**](ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied - +[**update_reseller_child**](ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied # **add_credits** -> RemainingCreditModel add_credits(child_auth_key, add_credits) +> RemainingCreditModel add_credits(body, child_auth_key) Add Email and/or SMS credits to a specific child account @@ -41,12 +40,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.AddCredits() # AddCredits | Values to post to add credit to a specific child account child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child -add_credits = sib_api_v3_sdk.AddCredits() # AddCredits | Values to post to add credit to a specific child account try: # Add Email and/or SMS credits to a specific child account - api_response = api_instance.add_credits(child_auth_key, add_credits) + api_response = api_instance.add_credits(body, child_auth_key) pprint(api_response) except ApiException as e: print("Exception when calling ResellerApi->add_credits: %s\n" % e) @@ -56,8 +55,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_auth_key** | **str**| auth key of reseller's child | - **add_credits** | [**AddCredits**](AddCredits.md)| Values to post to add credit to a specific child account | + **body** | [**AddCredits**](AddCredits.md)| Values to post to add credit to a specific child account | + **child_auth_key** | [**str**](.md)| auth key of reseller's child | ### Return type @@ -75,7 +74,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **associate_ip_to_child** -> associate_ip_to_child(child_auth_key, ip) +> associate_ip_to_child(body, child_auth_key) Associate a dedicated IP to the child @@ -100,12 +99,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.ManageIp() # ManageIp | IP to associate child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child -ip = sib_api_v3_sdk.ManageIp() # ManageIp | IP to associate try: # Associate a dedicated IP to the child - api_instance.associate_ip_to_child(child_auth_key, ip) + api_instance.associate_ip_to_child(body, child_auth_key) except ApiException as e: print("Exception when calling ResellerApi->associate_ip_to_child: %s\n" % e) ``` @@ -114,8 +113,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_auth_key** | **str**| auth key of reseller's child | - **ip** | [**ManageIp**](ManageIp.md)| IP to associate | + **body** | [**ManageIp**](ManageIp.md)| IP to associate | + **child_auth_key** | [**str**](.md)| auth key of reseller's child | ### Return type @@ -133,7 +132,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_reseller_child** -> CreateReseller create_reseller_child(reseller_child=reseller_child) +> CreateReseller create_reseller_child(body=body) Creates a reseller child @@ -158,11 +157,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) -reseller_child = sib_api_v3_sdk.CreateChild() # CreateChild | reseller child to add (optional) +body = sib_api_v3_sdk.CreateChild() # CreateChild | reseller child to add (optional) try: # Creates a reseller child - api_response = api_instance.create_reseller_child(reseller_child=reseller_child) + api_response = api_instance.create_reseller_child(body=body) pprint(api_response) except ApiException as e: print("Exception when calling ResellerApi->create_reseller_child: %s\n" % e) @@ -172,7 +171,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reseller_child** | [**CreateChild**](CreateChild.md)| reseller child to add | [optional] + **body** | [**CreateChild**](CreateChild.md)| reseller child to add | [optional] ### Return type @@ -228,7 +227,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_auth_key** | **str**| auth key of reseller's child | + **child_auth_key** | [**str**](.md)| auth key of reseller's child | ### Return type @@ -240,13 +239,13 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **dissociate_ip_from_child** -> dissociate_ip_from_child(child_auth_key, ip) +> dissociate_ip_from_child(body, child_auth_key) Dissociate a dedicated IP to the child @@ -271,12 +270,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.ManageIp() # ManageIp | IP to dissociate child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child -ip = sib_api_v3_sdk.ManageIp() # ManageIp | IP to dissociate try: # Dissociate a dedicated IP to the child - api_instance.dissociate_ip_from_child(child_auth_key, ip) + api_instance.dissociate_ip_from_child(body, child_auth_key) except ApiException as e: print("Exception when calling ResellerApi->dissociate_ip_from_child: %s\n" % e) ``` @@ -285,8 +284,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_auth_key** | **str**| auth key of reseller's child | - **ip** | [**ManageIp**](ManageIp.md)| IP to dissociate | + **body** | [**ManageIp**](ManageIp.md)| IP to dissociate | + **child_auth_key** | [**str**](.md)| auth key of reseller's child | ### Return type @@ -343,7 +342,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_auth_key** | **str**| auth key of reseller's child | + **child_auth_key** | [**str**](.md)| auth key of reseller's child | ### Return type @@ -355,7 +354,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -408,13 +407,13 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **remove_credits** -> RemainingCreditModel remove_credits(child_auth_key, remove_credits) +> RemainingCreditModel remove_credits(body, child_auth_key) Remove Email and/or SMS credits from a specific child account @@ -439,12 +438,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.RemoveCredits() # RemoveCredits | Values to post to remove email or SMS credits from a specific child account child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child -remove_credits = sib_api_v3_sdk.RemoveCredits() # RemoveCredits | Values to post to remove email or SMS credits from a specific child account try: # Remove Email and/or SMS credits from a specific child account - api_response = api_instance.remove_credits(child_auth_key, remove_credits) + api_response = api_instance.remove_credits(body, child_auth_key) pprint(api_response) except ApiException as e: print("Exception when calling ResellerApi->remove_credits: %s\n" % e) @@ -454,8 +453,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_auth_key** | **str**| auth key of reseller's child | - **remove_credits** | [**RemoveCredits**](RemoveCredits.md)| Values to post to remove email or SMS credits from a specific child account | + **body** | [**RemoveCredits**](RemoveCredits.md)| Values to post to remove email or SMS credits from a specific child account | + **child_auth_key** | [**str**](.md)| auth key of reseller's child | ### Return type @@ -473,7 +472,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_reseller_child** -> update_reseller_child(child_auth_key, reseller_child) +> update_reseller_child(body, child_auth_key) Updates infos of reseller's child based on the childAuthKey supplied @@ -498,12 +497,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.UpdateChild() # UpdateChild | values to update in child profile child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child -reseller_child = sib_api_v3_sdk.UpdateChild() # UpdateChild | values to update in child profile try: # Updates infos of reseller's child based on the childAuthKey supplied - api_instance.update_reseller_child(child_auth_key, reseller_child) + api_instance.update_reseller_child(body, child_auth_key) except ApiException as e: print("Exception when calling ResellerApi->update_reseller_child: %s\n" % e) ``` @@ -512,8 +511,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_auth_key** | **str**| auth key of reseller's child | - **reseller_child** | [**UpdateChild**](UpdateChild.md)| values to update in child profile | + **body** | [**UpdateChild**](UpdateChild.md)| values to update in child profile | + **child_auth_key** | [**str**](.md)| auth key of reseller's child | ### Return type diff --git a/docs/SMSCampaignsApi.md b/docs/SMSCampaignsApi.md index 5afa04d..004aaab 100644 --- a/docs/SMSCampaignsApi.md +++ b/docs/SMSCampaignsApi.md @@ -15,9 +15,8 @@ Method | HTTP request | Description [**update_sms_campaign**](SMSCampaignsApi.md#update_sms_campaign) | **PUT** /smsCampaigns/{campaignId} | Updates an SMS campaign [**update_sms_campaign_status**](SMSCampaignsApi.md#update_sms_campaign_status) | **PUT** /smsCampaigns/{campaignId}/status | Update the campaign status - # **create_sms_campaign** -> CreateModel create_sms_campaign(create_sms_campaign) +> CreateModel create_sms_campaign(body) Creates an SMS campaign @@ -42,11 +41,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -create_sms_campaign = sib_api_v3_sdk.CreateSmsCampaign() # CreateSmsCampaign | Values to create an SMS Campaign +body = sib_api_v3_sdk.CreateSmsCampaign() # CreateSmsCampaign | Values to create an SMS Campaign try: # Creates an SMS campaign - api_response = api_instance.create_sms_campaign(create_sms_campaign) + api_response = api_instance.create_sms_campaign(body) pprint(api_response) except ApiException as e: print("Exception when calling SMSCampaignsApi->create_sms_campaign: %s\n" % e) @@ -56,7 +55,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_sms_campaign** | [**CreateSmsCampaign**](CreateSmsCampaign.md)| Values to create an SMS Campaign | + **body** | [**CreateSmsCampaign**](CreateSmsCampaign.md)| Values to create an SMS Campaign | ### Return type @@ -99,7 +98,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | id of the SMS campaign +campaign_id = 56 # int | id of the SMS campaign try: # Delete the SMS campaign @@ -112,7 +111,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| id of the SMS campaign | + **campaign_id** | [**int**](.md)| id of the SMS campaign | ### Return type @@ -124,7 +123,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -155,7 +154,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | id of the SMS campaign +campaign_id = 56 # int | id of the SMS campaign try: # Get an SMS campaign @@ -169,7 +168,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| id of the SMS campaign | + **campaign_id** | [**int**](.md)| id of the SMS campaign | ### Return type @@ -181,7 +180,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -213,10 +212,10 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) status = 'status_example' # str | Status of campaign. (optional) -start_date = '2013-10-20T19:20:30+01:00' # datetime | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) -end_date = '2013-10-20T19:20:30+01:00' # datetime | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) -limit = 500 # int | Number limitation for the result returned (optional) (default to 500) -offset = 0 # int | Beginning point in the list to retrieve from. (optional) (default to 0) +start_date = 'start_date_example' # str | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) +end_date = 'end_date_example' # str | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) +limit = 56 # int | Number limitation for the result returned (optional) +offset = 56 # int | Beginning point in the list to retrieve from. (optional) try: # Returns the informations for all your created SMS campaigns @@ -230,11 +229,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **str**| Status of campaign. | [optional] - **start_date** | **datetime**| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] - **end_date** | **datetime**| Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] - **limit** | **int**| Number limitation for the result returned | [optional] [default to 500] - **offset** | **int**| Beginning point in the list to retrieve from. | [optional] [default to 0] + **status** | [**str**](.md)| Status of campaign. | [optional] + **start_date** | [**str**](.md)| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] + **end_date** | [**str**](.md)| Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] + **limit** | [**int**](.md)| Number limitation for the result returned | [optional] + **offset** | [**int**](.md)| Beginning point in the list to retrieve from. | [optional] ### Return type @@ -246,13 +245,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **request_sms_recipient_export** -> CreatedProcessId request_sms_recipient_export(campaign_id, recipient_export=recipient_export) +> CreatedProcessId request_sms_recipient_export(campaign_id, body=body) Exports the recipients of the specified campaign. @@ -279,12 +278,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | id of the campaign -recipient_export = sib_api_v3_sdk.RequestSmsRecipientExport() # RequestSmsRecipientExport | Values to send for a recipient export request (optional) +campaign_id = 56 # int | id of the campaign +body = sib_api_v3_sdk.RequestSmsRecipientExport() # RequestSmsRecipientExport | Values to send for a recipient export request (optional) try: # Exports the recipients of the specified campaign. - api_response = api_instance.request_sms_recipient_export(campaign_id, recipient_export=recipient_export) + api_response = api_instance.request_sms_recipient_export(campaign_id, body=body) pprint(api_response) except ApiException as e: print("Exception when calling SMSCampaignsApi->request_sms_recipient_export: %s\n" % e) @@ -294,8 +293,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| id of the campaign | - **recipient_export** | [**RequestSmsRecipientExport**](RequestSmsRecipientExport.md)| Values to send for a recipient export request | [optional] + **campaign_id** | [**int**](.md)| id of the campaign | + **body** | [**RequestSmsRecipientExport**](RequestSmsRecipientExport.md)| Values to send for a recipient export request | [optional] ### Return type @@ -338,7 +337,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | id of the campaign +campaign_id = 56 # int | id of the campaign try: # Send your SMS campaign immediately @@ -351,7 +350,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| id of the campaign | + **campaign_id** | [**int**](.md)| id of the campaign | ### Return type @@ -363,13 +362,13 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **send_sms_report** -> send_sms_report(campaign_id, send_report) +> send_sms_report(body, campaign_id) Send report of SMS campaigns @@ -396,12 +395,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | id of the campaign -send_report = sib_api_v3_sdk.SendReport() # SendReport | Values for send a report +body = sib_api_v3_sdk.SendReport() # SendReport | Values for send a report +campaign_id = 56 # int | id of the campaign try: # Send report of SMS campaigns - api_instance.send_sms_report(campaign_id, send_report) + api_instance.send_sms_report(body, campaign_id) except ApiException as e: print("Exception when calling SMSCampaignsApi->send_sms_report: %s\n" % e) ``` @@ -410,8 +409,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| id of the campaign | - **send_report** | [**SendReport**](SendReport.md)| Values for send a report | + **body** | [**SendReport**](SendReport.md)| Values for send a report | + **campaign_id** | [**int**](.md)| id of the campaign | ### Return type @@ -429,7 +428,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **send_test_sms** -> send_test_sms(campaign_id, phone_number) +> send_test_sms(body, campaign_id) Send an SMS @@ -454,12 +453,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | Id of the SMS campaign -phone_number = sib_api_v3_sdk.SendTestSms() # SendTestSms | Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted +body = sib_api_v3_sdk.SendTestSms() # SendTestSms | Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted +campaign_id = 56 # int | Id of the SMS campaign try: # Send an SMS - api_instance.send_test_sms(campaign_id, phone_number) + api_instance.send_test_sms(body, campaign_id) except ApiException as e: print("Exception when calling SMSCampaignsApi->send_test_sms: %s\n" % e) ``` @@ -468,8 +467,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| Id of the SMS campaign | - **phone_number** | [**SendTestSms**](SendTestSms.md)| Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted | + **body** | [**SendTestSms**](SendTestSms.md)| Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted | + **campaign_id** | [**int**](.md)| Id of the SMS campaign | ### Return type @@ -487,7 +486,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_sms_campaign** -> update_sms_campaign(campaign_id, update_sms_campaign) +> update_sms_campaign(body, campaign_id) Updates an SMS campaign @@ -512,12 +511,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | id of the SMS campaign -update_sms_campaign = sib_api_v3_sdk.UpdateSmsCampaign() # UpdateSmsCampaign | Values to update an SMS Campaign +body = sib_api_v3_sdk.UpdateSmsCampaign() # UpdateSmsCampaign | Values to update an SMS Campaign +campaign_id = 56 # int | id of the SMS campaign try: # Updates an SMS campaign - api_instance.update_sms_campaign(campaign_id, update_sms_campaign) + api_instance.update_sms_campaign(body, campaign_id) except ApiException as e: print("Exception when calling SMSCampaignsApi->update_sms_campaign: %s\n" % e) ``` @@ -526,8 +525,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| id of the SMS campaign | - **update_sms_campaign** | [**UpdateSmsCampaign**](UpdateSmsCampaign.md)| Values to update an SMS Campaign | + **body** | [**UpdateSmsCampaign**](UpdateSmsCampaign.md)| Values to update an SMS Campaign | + **campaign_id** | [**int**](.md)| id of the SMS campaign | ### Return type @@ -545,7 +544,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_sms_campaign_status** -> update_sms_campaign_status(campaign_id, status) +> update_sms_campaign_status(body, campaign_id) Update the campaign status @@ -570,12 +569,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) -campaign_id = 789 # int | id of the campaign -status = sib_api_v3_sdk.UpdateCampaignStatus() # UpdateCampaignStatus | Status of the campaign. +body = sib_api_v3_sdk.UpdateCampaignStatus() # UpdateCampaignStatus | Status of the campaign. +campaign_id = 56 # int | id of the campaign try: # Update the campaign status - api_instance.update_sms_campaign_status(campaign_id, status) + api_instance.update_sms_campaign_status(body, campaign_id) except ApiException as e: print("Exception when calling SMSCampaignsApi->update_sms_campaign_status: %s\n" % e) ``` @@ -584,8 +583,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **int**| id of the campaign | - **status** | [**UpdateCampaignStatus**](UpdateCampaignStatus.md)| Status of the campaign. | + **body** | [**UpdateCampaignStatus**](UpdateCampaignStatus.md)| Status of the campaign. | + **campaign_id** | [**int**](.md)| id of the campaign | ### Return type diff --git a/docs/SMTPApi.md b/docs/SMTPApi.md index a22e1a7..3f91f63 100644 --- a/docs/SMTPApi.md +++ b/docs/SMTPApi.md @@ -17,9 +17,8 @@ Method | HTTP request | Description [**send_transac_email**](SMTPApi.md#send_transac_email) | **POST** /smtp/email | Send a transactional email [**update_smtp_template**](SMTPApi.md#update_smtp_template) | **PUT** /smtp/templates/{templateId} | Updates an smtp templates - # **create_smtp_template** -> CreateModel create_smtp_template(smtp_template) +> CreateModel create_smtp_template(body) Create an smtp template @@ -44,11 +43,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -smtp_template = sib_api_v3_sdk.CreateSmtpTemplate() # CreateSmtpTemplate | values to update in smtp template +body = sib_api_v3_sdk.CreateSmtpTemplate() # CreateSmtpTemplate | values to update in smtp template try: # Create an smtp template - api_response = api_instance.create_smtp_template(smtp_template) + api_response = api_instance.create_smtp_template(body) pprint(api_response) except ApiException as e: print("Exception when calling SMTPApi->create_smtp_template: %s\n" % e) @@ -58,7 +57,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **smtp_template** | [**CreateSmtpTemplate**](CreateSmtpTemplate.md)| values to update in smtp template | + **body** | [**CreateSmtpTemplate**](CreateSmtpTemplate.md)| values to update in smtp template | ### Return type @@ -76,7 +75,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_hardbounces** -> delete_hardbounces(delete_hardbounces=delete_hardbounces) +> delete_hardbounces(body=body) Delete hardbounces @@ -103,11 +102,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -delete_hardbounces = sib_api_v3_sdk.DeleteHardbounces() # DeleteHardbounces | values to delete hardbounces (optional) +body = sib_api_v3_sdk.DeleteHardbounces() # DeleteHardbounces | values to delete hardbounces (optional) try: # Delete hardbounces - api_instance.delete_hardbounces(delete_hardbounces=delete_hardbounces) + api_instance.delete_hardbounces(body=body) except ApiException as e: print("Exception when calling SMTPApi->delete_hardbounces: %s\n" % e) ``` @@ -116,7 +115,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **delete_hardbounces** | [**DeleteHardbounces**](DeleteHardbounces.md)| values to delete hardbounces | [optional] + **body** | [**DeleteHardbounces**](DeleteHardbounces.md)| values to delete hardbounces | [optional] ### Return type @@ -159,7 +158,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -template_id = 789 # int | id of the template +template_id = 56 # int | id of the template try: # Delete an inactive smtp template @@ -172,7 +171,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **int**| id of the template | + **template_id** | [**int**](.md)| id of the template | ### Return type @@ -184,7 +183,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -232,10 +231,10 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **start_date** | **str**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional] - **end_date** | **str**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional] - **days** | **int**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] - **tag** | **str**| Tag of the emails | [optional] + **start_date** | [**str**](.md)| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional] + **end_date** | [**str**](.md)| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional] + **days** | [**int**](.md)| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] + **tag** | [**str**](.md)| Tag of the emails | [optional] ### Return type @@ -247,7 +246,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -278,8 +277,8 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 50 # int | Number limitation for the result returned (optional) (default to 50) -offset = 0 # int | Beginning point in the list to retrieve from. (optional) (default to 0) +limit = 56 # int | Number limitation for the result returned (optional) +offset = 56 # int | Beginning point in the list to retrieve from. (optional) start_date = 'start_date_example' # str | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) end_date = 'end_date_example' # str | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) days = 56 # int | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) @@ -287,7 +286,7 @@ email = 'email_example' # str | Filter the report for a specific email addresses event = 'event_example' # str | Filter the report for a specific event type (optional) tags = 'tags_example' # str | Filter the report for tags (serialized and urlencoded array) (optional) message_id = 'message_id_example' # str | Filter on a specific message id (optional) -template_id = 789 # int | Filter on a specific template id (optional) +template_id = 56 # int | Filter on a specific template id (optional) try: # Get all your SMTP activity (unaggregated events) @@ -301,16 +300,16 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number limitation for the result returned | [optional] [default to 50] - **offset** | **int**| Beginning point in the list to retrieve from. | [optional] [default to 0] - **start_date** | **str**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional] - **end_date** | **str**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional] - **days** | **int**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] - **email** | **str**| Filter the report for a specific email addresses | [optional] - **event** | **str**| Filter the report for a specific event type | [optional] - **tags** | **str**| Filter the report for tags (serialized and urlencoded array) | [optional] - **message_id** | **str**| Filter on a specific message id | [optional] - **template_id** | **int**| Filter on a specific template id | [optional] + **limit** | [**int**](.md)| Number limitation for the result returned | [optional] + **offset** | [**int**](.md)| Beginning point in the list to retrieve from. | [optional] + **start_date** | [**str**](.md)| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional] + **end_date** | [**str**](.md)| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional] + **days** | [**int**](.md)| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] + **email** | [**str**](.md)| Filter the report for a specific email addresses | [optional] + **event** | [**str**](.md)| Filter the report for a specific event type | [optional] + **tags** | [**str**](.md)| Filter the report for tags (serialized and urlencoded array) | [optional] + **message_id** | [**str**](.md)| Filter on a specific message id | [optional] + **template_id** | [**int**](.md)| Filter on a specific template id | [optional] ### Return type @@ -322,7 +321,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -353,8 +352,8 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 50 # int | Number of documents returned per page (optional) (default to 50) -offset = 0 # int | Index of the first document on the page (optional) (default to 0) +limit = 56 # int | Number of documents returned per page (optional) +offset = 56 # int | Index of the first document on the page (optional) start_date = 'start_date_example' # str | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional) end_date = 'end_date_example' # str | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional) days = 56 # int | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) @@ -372,12 +371,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number of documents returned per page | [optional] [default to 50] - **offset** | **int**| Index of the first document on the page | [optional] [default to 0] - **start_date** | **str**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) | [optional] - **end_date** | **str**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) | [optional] - **days** | **int**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] - **tag** | **str**| Tag of the emails | [optional] + **limit** | [**int**](.md)| Number of documents returned per page | [optional] + **offset** | [**int**](.md)| Index of the first document on the page | [optional] + **start_date** | [**str**](.md)| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) | [optional] + **end_date** | [**str**](.md)| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) | [optional] + **days** | [**int**](.md)| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] + **tag** | [**str**](.md)| Tag of the emails | [optional] ### Return type @@ -389,7 +388,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -420,7 +419,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -template_id = 789 # int | id of the template +template_id = 56 # int | id of the template try: # Returns the template informations @@ -434,7 +433,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **int**| id of the template | + **template_id** | [**int**](.md)| id of the template | ### Return type @@ -446,7 +445,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -477,9 +476,9 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -template_status = true # bool | Filter on the status of the template. Active = true, inactive = false (optional) -limit = 50 # int | Number of documents returned per page (optional) (default to 50) -offset = 0 # int | Index of the first document in the page (optional) (default to 0) +template_status = True # bool | Filter on the status of the template. Active = true, inactive = false (optional) +limit = 56 # int | Number of documents returned per page (optional) +offset = 56 # int | Index of the first document in the page (optional) try: # Get the list of SMTP templates @@ -493,9 +492,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_status** | **bool**| Filter on the status of the template. Active = true, inactive = false | [optional] - **limit** | **int**| Number of documents returned per page | [optional] [default to 50] - **offset** | **int**| Index of the first document in the page | [optional] [default to 0] + **template_status** | [**bool**](.md)| Filter on the status of the template. Active = true, inactive = false | [optional] + **limit** | [**int**](.md)| Number of documents returned per page | [optional] + **offset** | [**int**](.md)| Index of the first document in the page | [optional] ### Return type @@ -507,13 +506,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **send_template** -> SendTemplateEmail send_template(template_id, send_email) +> SendTemplateEmail send_template(body, template_id) Send a template @@ -540,12 +539,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -template_id = 789 # int | Id of the template -send_email = sib_api_v3_sdk.SendEmail() # SendEmail | +body = sib_api_v3_sdk.SendEmail() # SendEmail | +template_id = 56 # int | Id of the template try: # Send a template - api_response = api_instance.send_template(template_id, send_email) + api_response = api_instance.send_template(body, template_id) pprint(api_response) except ApiException as e: print("Exception when calling SMTPApi->send_template: %s\n" % e) @@ -555,8 +554,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **int**| Id of the template | - **send_email** | [**SendEmail**](SendEmail.md)| | + **body** | [**SendEmail**](SendEmail.md)| | + **template_id** | [**int**](.md)| Id of the template | ### Return type @@ -574,7 +573,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **send_test_template** -> send_test_template(template_id, send_test_email) +> send_test_template(body, template_id) Send a template to your test list @@ -599,12 +598,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -template_id = 789 # int | Id of the template -send_test_email = sib_api_v3_sdk.SendTestEmail() # SendTestEmail | +body = sib_api_v3_sdk.SendTestEmail() # SendTestEmail | +template_id = 56 # int | Id of the template try: # Send a template to your test list - api_instance.send_test_template(template_id, send_test_email) + api_instance.send_test_template(body, template_id) except ApiException as e: print("Exception when calling SMTPApi->send_test_template: %s\n" % e) ``` @@ -613,8 +612,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **int**| Id of the template | - **send_test_email** | [**SendTestEmail**](SendTestEmail.md)| | + **body** | [**SendTestEmail**](SendTestEmail.md)| | + **template_id** | [**int**](.md)| Id of the template | ### Return type @@ -632,7 +631,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **send_transac_email** -> CreateSmtpEmail send_transac_email(send_smtp_email) +> CreateSmtpEmail send_transac_email(body) Send a transactional email @@ -657,11 +656,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -send_smtp_email = sib_api_v3_sdk.SendSmtpEmail() # SendSmtpEmail | Values to send a transactional email +body = sib_api_v3_sdk.SendSmtpEmail() # SendSmtpEmail | Values to send a transactional email try: # Send a transactional email - api_response = api_instance.send_transac_email(send_smtp_email) + api_response = api_instance.send_transac_email(body) pprint(api_response) except ApiException as e: print("Exception when calling SMTPApi->send_transac_email: %s\n" % e) @@ -671,7 +670,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **send_smtp_email** | [**SendSmtpEmail**](SendSmtpEmail.md)| Values to send a transactional email | + **body** | [**SendSmtpEmail**](SendSmtpEmail.md)| Values to send a transactional email | ### Return type @@ -689,7 +688,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_smtp_template** -> update_smtp_template(template_id, smtp_template) +> update_smtp_template(body, template_id) Updates an smtp templates @@ -714,12 +713,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -template_id = 789 # int | id of the template -smtp_template = sib_api_v3_sdk.UpdateSmtpTemplate() # UpdateSmtpTemplate | values to update in smtp template +body = sib_api_v3_sdk.UpdateSmtpTemplate() # UpdateSmtpTemplate | values to update in smtp template +template_id = 56 # int | id of the template try: # Updates an smtp templates - api_instance.update_smtp_template(template_id, smtp_template) + api_instance.update_smtp_template(body, template_id) except ApiException as e: print("Exception when calling SMTPApi->update_smtp_template: %s\n" % e) ``` @@ -728,8 +727,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **int**| id of the template | - **smtp_template** | [**UpdateSmtpTemplate**](UpdateSmtpTemplate.md)| values to update in smtp template | + **body** | [**UpdateSmtpTemplate**](UpdateSmtpTemplate.md)| values to update in smtp template | + **template_id** | [**int**](.md)| id of the template | ### Return type diff --git a/docs/SendEmail.md b/docs/SendEmail.md index ea86fdd..bc7cd0b 100644 --- a/docs/SendEmail.md +++ b/docs/SendEmail.md @@ -3,16 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email_to** | **list[str]** | List of the email addresses of the recipients. For example, ['abc@example.com', 'asd@example.com']. | +**email_to** | **list[str]** | List of the email addresses of the recipients. For example, ['abc@example.com', 'asd@example.com']. | **email_bcc** | **list[str]** | List of the email addresses of the recipients in bcc | [optional] **email_cc** | **list[str]** | List of the email addresses of the recipients in cc | [optional] **reply_to** | **str** | Email address which shall be used by campaign recipients to reply back | [optional] **attachment_url** | **str** | Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps | [optional] -**attachment** | [**list[SendEmailAttachment]**](SendEmailAttachment.md) | Pass the list of content (base64 encoded) and name of the attachment. For example, `[{\"content\":\"base64 encoded content 1\", \"name\":\"attcahment1\"}, {\"content\":\"base64 encoded content 2\", \"name\":\"attcahment2\"}]` | [optional] -**headers** | **object** | Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"Content-Type\":\"text/html\", \"charset\":\"iso-8859-1\", \"sender.ip\":\"1.2.3.4\"}` | [optional] +**attachment** | **list[object]** | Pass the list of content (base64 encoded) and name of the attachment. For example, `[{\"content\":\"base64 encoded content 1\", \"name\":\"attcahment1\"}, {\"content\":\"base64 encoded content 2\", \"name\":\"attcahment2\"}]` | [optional] +**headers** | **object** | Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"Content-Type\":\"text/html\", \"charset\":\"iso-8859-1\", \"sender.ip\":\"1.2.3.4\"}` | [optional] **attributes** | **object** | Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"} | [optional] **tags** | **list[str]** | Tag your emails to find them more easily | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/SendEmailAttachment.md b/docs/SendEmailAttachment.md deleted file mode 100644 index 0266b63..0000000 --- a/docs/SendEmailAttachment.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendEmailAttachment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **str** | Base64 encoded chunk data of the attachment generated on the fly | -**name** | **str** | Required for content. Name of the attachment | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SendReport.md b/docs/SendReport.md index f34dda5..2d6cbc5 100644 --- a/docs/SendReport.md +++ b/docs/SendReport.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **language** | **str** | Language of email content for campaign report sending. | [optional] [default to 'fr'] -**email** | [**SendReportEmail**](SendReportEmail.md) | | +**email** | **object** | Email sending credentials including subject, body, to, cc etc. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/SendReportEmail.md b/docs/SendReportEmail.md deleted file mode 100644 index d40f69d..0000000 --- a/docs/SendReportEmail.md +++ /dev/null @@ -1,15 +0,0 @@ -# SendReportEmail - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subject** | **str** | Subject of the email message | -**to** | **list[str]** | Email addresses of the recipients | -**content_type** | **str** | Type of the message body | [optional] [default to 'html'] -**bcc** | **list[str]** | Email addresses of the recipients in bcc | [optional] -**cc** | **list[str]** | Email addresses of the recipients in cc | [optional] -**body** | **str** | Body of the email message | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SendSms.md b/docs/SendSms.md index 15e1ed2..c12d475 100644 --- a/docs/SendSms.md +++ b/docs/SendSms.md @@ -5,10 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **reference** | **str** | | **message_id** | **int** | | -**sms_count** | **int** | Count of SMS's to send multiple text messages | [optional] +**sms_count** | **int** | Count of SMS's to send multiple text messages | [optional] **used_credits** | **float** | SMS credits used per text message | [optional] **remaining_credits** | **float** | Remaining SMS credits of the user | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/SendSmtpEmail.md b/docs/SendSmtpEmail.md index 925ea3e..b109a4a 100644 --- a/docs/SendSmtpEmail.md +++ b/docs/SendSmtpEmail.md @@ -3,20 +3,19 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sender** | [**SendSmtpEmailSender**](SendSmtpEmailSender.md) | | [optional] -**to** | [**list[SendSmtpEmailTo]**](SendSmtpEmailTo.md) | List of email addresses and names (optional) of the recipients. For example, `[{\"name\":\"Jimmy\", \"email\":\"jimmy98@example.com\"}, {\"name\":\"Joe\", \"email\":\"joe@example.com\"}]` | -**bcc** | [**list[SendSmtpEmailBcc]**](SendSmtpEmailBcc.md) | List of email addresses and names (optional) of the recipients in bcc | [optional] -**cc** | [**list[SendSmtpEmailCc]**](SendSmtpEmailCc.md) | List of email addresses and names (optional) of the recipients in cc | [optional] -**html_content** | **str** | HTML body of the message ( Mandatory if 'templateId' is not passed, ignored if 'templateId' is passed ) | [optional] -**text_content** | **str** | Plain Text body of the message ( Ignored if 'templateId' is passed ) | [optional] -**subject** | **str** | Subject of the message. Mandatory if 'templateId' is not passed | [optional] -**reply_to** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional] -**attachment** | [**list[SendSmtpEmailAttachment]**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps and odt ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional] -**headers** | **object** | Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"Content-Type\":\"text/html\", \"charset\":\"iso-8859-1\", \"sender.ip\":\"1.2.3.4\"}` | [optional] +**sender** | **object** | Mandatory if 'templateId' is not passed. Pass name (optional) and email of sender from which emails will be sent. For example, `{\"name\":\"Mary from MyShop\", \"email\":\"no-reply@myshop.com\"}` | [optional] +**to** | **list[object]** | List of email addresses and names (optional) of the recipients. For example, `[{\"name\":\"Jimmy\", \"email\":\"jimmy98@example.com\"}, {\"name\":\"Joe\", \"email\":\"joe@example.com\"}]` | +**bcc** | **list[object]** | List of email addresses and names (optional) of the recipients in bcc | [optional] +**cc** | **list[object]** | List of email addresses and names (optional) of the recipients in cc | [optional] +**html_content** | **str** | HTML body of the message ( Mandatory if 'templateId' is not passed, ignored if 'templateId' is passed ) | [optional] +**text_content** | **str** | Plain Text body of the message ( Ignored if 'templateId' is passed ) | [optional] +**subject** | **str** | Subject of the message. Mandatory if 'templateId' is not passed | [optional] +**reply_to** | **object** | Email (required), along with name (optional), on which transactional mail recipients will be able to reply back. For example, `{\"email':'ann6533@example.com', 'name':'Ann'}` | [optional] +**attachment** | **list[object]** | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps and odt ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional] +**headers** | **object** | Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"Content-Type\":\"text/html\", \"charset\":\"iso-8859-1\", \"sender.ip\":\"1.2.3.4\"}` | [optional] **template_id** | **int** | Id of the template | [optional] -**params** | **object** | Pass the set of attributes to customize the template. For example, `{\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}`. It's considered only if template is in New Template Language format. | [optional] +**params** | **object** | Pass the set of attributes to customize the template. For example, `{\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}`. It's considered only if template is in New Template Language format. | [optional] **tags** | **list[str]** | Tag your emails to find them more easily | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/SendSmtpEmailAttachment.md b/docs/SendSmtpEmailAttachment.md deleted file mode 100644 index ccc6565..0000000 --- a/docs/SendSmtpEmailAttachment.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendSmtpEmailAttachment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **str** | Absolute url of the attachment (no local file). | [optional] -**content** | **str** | Base64 encoded chunk data of the attachment generated on the fly | [optional] -**name** | **str** | Required if content is passed. Name of the attachment | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SendSmtpEmailBcc.md b/docs/SendSmtpEmailBcc.md deleted file mode 100644 index 9b32db7..0000000 --- a/docs/SendSmtpEmailBcc.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendSmtpEmailBcc - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | Email address of the recipient in bcc | -**name** | **str** | Name of the recipient in bcc | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SendSmtpEmailCc.md b/docs/SendSmtpEmailCc.md deleted file mode 100644 index 69e11ab..0000000 --- a/docs/SendSmtpEmailCc.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendSmtpEmailCc - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | Email address of the recipient in cc | -**name** | **str** | Name of the recipient in cc | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SendSmtpEmailReplyTo.md b/docs/SendSmtpEmailReplyTo.md deleted file mode 100644 index a2edc67..0000000 --- a/docs/SendSmtpEmailReplyTo.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendSmtpEmailReplyTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | Email address in reply to | -**name** | **str** | Name in reply to | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SendSmtpEmailSender.md b/docs/SendSmtpEmailSender.md deleted file mode 100644 index f636198..0000000 --- a/docs/SendSmtpEmailSender.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendSmtpEmailSender - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name of the sender from which the emails will be sent | [optional] -**email** | **str** | Email of the sender from which the emails will be sent | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SendSmtpEmailTo.md b/docs/SendSmtpEmailTo.md deleted file mode 100644 index 387763c..0000000 --- a/docs/SendSmtpEmailTo.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendSmtpEmailTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | Email address of the recipient | -**name** | **str** | Name of the recipient | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SendTemplateEmail.md b/docs/SendTemplateEmail.md index 589721a..ef46a2e 100644 --- a/docs/SendTemplateEmail.md +++ b/docs/SendTemplateEmail.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/SendTestEmail.md b/docs/SendTestEmail.md index 0f8343c..246e8fd 100644 --- a/docs/SendTestEmail.md +++ b/docs/SendTestEmail.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/SendTestSms.md b/docs/SendTestSms.md index 9fa9198..dcdfdfb 100644 --- a/docs/SendTestSms.md +++ b/docs/SendTestSms.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/SendTransacSms.md b/docs/SendTransacSms.md index b1cd2e0..ce27aca 100644 --- a/docs/SendTransacSms.md +++ b/docs/SendTransacSms.md @@ -12,4 +12,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/SendersApi.md b/docs/SendersApi.md index 02b5ad4..9441a2e 100644 --- a/docs/SendersApi.md +++ b/docs/SendersApi.md @@ -11,9 +11,8 @@ Method | HTTP request | Description [**get_senders**](SendersApi.md#get_senders) | **GET** /senders | Get the list of all your senders [**update_sender**](SendersApi.md#update_sender) | **PUT** /senders/{senderId} | Update a sender - # **create_sender** -> CreateSenderModel create_sender(sender=sender) +> CreateSenderModel create_sender(body=body) Create a new sender @@ -38,11 +37,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SendersApi(sib_api_v3_sdk.ApiClient(configuration)) -sender = sib_api_v3_sdk.CreateSender() # CreateSender | sender's name (optional) +body = sib_api_v3_sdk.CreateSender() # CreateSender | sender's name (optional) try: # Create a new sender - api_response = api_instance.create_sender(sender=sender) + api_response = api_instance.create_sender(body=body) pprint(api_response) except ApiException as e: print("Exception when calling SendersApi->create_sender: %s\n" % e) @@ -52,7 +51,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender** | [**CreateSender**](CreateSender.md)| sender's name | [optional] + **body** | [**CreateSender**](CreateSender.md)| sender's name | [optional] ### Return type @@ -95,7 +94,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SendersApi(sib_api_v3_sdk.ApiClient(configuration)) -sender_id = 789 # int | Id of the sender +sender_id = 56 # int | Id of the sender try: # Delete a sender @@ -108,7 +107,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender_id** | **int**| Id of the sender | + **sender_id** | [**int**](.md)| Id of the sender | ### Return type @@ -120,7 +119,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -173,7 +172,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -204,7 +203,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SendersApi(sib_api_v3_sdk.ApiClient(configuration)) -sender_id = 789 # int | Id of the sender +sender_id = 56 # int | Id of the sender try: # Return all the dedicated IPs for a sender @@ -218,7 +217,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender_id** | **int**| Id of the sender | + **sender_id** | [**int**](.md)| Id of the sender | ### Return type @@ -230,7 +229,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -276,8 +275,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ip** | **str**| Filter your senders for a specific ip (available for dedicated IP usage only) | [optional] - **domain** | **str**| Filter your senders for a specific domain | [optional] + **ip** | [**str**](.md)| Filter your senders for a specific ip (available for dedicated IP usage only) | [optional] + **domain** | [**str**](.md)| Filter your senders for a specific domain | [optional] ### Return type @@ -289,13 +288,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_sender** -> update_sender(sender_id, sender=sender) +> update_sender(sender_id, body=body) Update a sender @@ -320,12 +319,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SendersApi(sib_api_v3_sdk.ApiClient(configuration)) -sender_id = 789 # int | Id of the sender -sender = sib_api_v3_sdk.UpdateSender() # UpdateSender | sender's name (optional) +sender_id = 56 # int | Id of the sender +body = sib_api_v3_sdk.UpdateSender() # UpdateSender | sender's name (optional) try: # Update a sender - api_instance.update_sender(sender_id, sender=sender) + api_instance.update_sender(sender_id, body=body) except ApiException as e: print("Exception when calling SendersApi->update_sender: %s\n" % e) ``` @@ -334,8 +333,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender_id** | **int**| Id of the sender | - **sender** | [**UpdateSender**](UpdateSender.md)| sender's name | [optional] + **sender_id** | [**int**](.md)| Id of the sender | + **body** | [**UpdateSender**](UpdateSender.md)| sender's name | [optional] ### Return type diff --git a/docs/TransactionalSMSApi.md b/docs/TransactionalSMSApi.md index 7e7fd20..aaadb76 100644 --- a/docs/TransactionalSMSApi.md +++ b/docs/TransactionalSMSApi.md @@ -9,7 +9,6 @@ Method | HTTP request | Description [**get_transac_sms_report**](TransactionalSMSApi.md#get_transac_sms_report) | **GET** /transactionalSMS/statistics/reports | Get your SMS activity aggregated per day [**send_transac_sms**](TransactionalSMSApi.md#send_transac_sms) | **POST** /transactionalSMS/sms | Send the SMS campaign to the specified mobile number - # **get_sms_events** > GetSmsEventReport get_sms_events(limit=limit, start_date=start_date, end_date=end_date, offset=offset, days=days, phone_number=phone_number, event=event, tags=tags) @@ -36,10 +35,10 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.TransactionalSMSApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 50 # int | Number of documents per page (optional) (default to 50) +limit = 56 # int | Number of documents per page (optional) start_date = 'start_date_example' # str | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) end_date = 'end_date_example' # str | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report (optional) -offset = 0 # int | Index of the first document of the page (optional) (default to 0) +offset = 56 # int | Index of the first document of the page (optional) days = 56 # int | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' (optional) phone_number = 'phone_number_example' # str | Filter the report for a specific phone number (optional) event = 'event_example' # str | Filter the report for specific events (optional) @@ -57,14 +56,14 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number of documents per page | [optional] [default to 50] - **start_date** | **str**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] - **end_date** | **str**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] - **offset** | **int**| Index of the first document of the page | [optional] [default to 0] - **days** | **int**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] - **phone_number** | **str**| Filter the report for a specific phone number | [optional] - **event** | **str**| Filter the report for specific events | [optional] - **tags** | **str**| Filter the report for specific tags passed as a serialized urlencoded array | [optional] + **limit** | [**int**](.md)| Number of documents per page | [optional] + **start_date** | [**str**](.md)| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] + **end_date** | [**str**](.md)| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] + **offset** | [**int**](.md)| Index of the first document of the page | [optional] + **days** | [**int**](.md)| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] + **phone_number** | [**str**](.md)| Filter the report for a specific phone number | [optional] + **event** | [**str**](.md)| Filter the report for specific events | [optional] + **tags** | [**str**](.md)| Filter the report for specific tags passed as a serialized urlencoded array | [optional] ### Return type @@ -76,7 +75,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -124,10 +123,10 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **start_date** | **str**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] - **end_date** | **str**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] - **days** | **int**| Number of days in the past including today (positive integer). Not compatible with startDate and endDate | [optional] - **tag** | **str**| Filter on a tag | [optional] + **start_date** | [**str**](.md)| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] + **end_date** | [**str**](.md)| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] + **days** | [**int**](.md)| Number of days in the past including today (positive integer). Not compatible with startDate and endDate | [optional] + **tag** | [**str**](.md)| Filter on a tag | [optional] ### Return type @@ -139,7 +138,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -187,10 +186,10 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **start_date** | **str**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] - **end_date** | **str**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] - **days** | **int**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] - **tag** | **str**| Filter on a tag | [optional] + **start_date** | [**str**](.md)| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report | [optional] + **end_date** | [**str**](.md)| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report | [optional] + **days** | [**int**](.md)| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional] + **tag** | [**str**](.md)| Filter on a tag | [optional] ### Return type @@ -202,13 +201,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **send_transac_sms** -> SendSms send_transac_sms(send_transac_sms) +> SendSms send_transac_sms(body) Send the SMS campaign to the specified mobile number @@ -233,11 +232,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.TransactionalSMSApi(sib_api_v3_sdk.ApiClient(configuration)) -send_transac_sms = sib_api_v3_sdk.SendTransacSms() # SendTransacSms | Values to send a transactional SMS +body = sib_api_v3_sdk.SendTransacSms() # SendTransacSms | Values to send a transactional SMS try: # Send the SMS campaign to the specified mobile number - api_response = api_instance.send_transac_sms(send_transac_sms) + api_response = api_instance.send_transac_sms(body) pprint(api_response) except ApiException as e: print("Exception when calling TransactionalSMSApi->send_transac_sms: %s\n" % e) @@ -247,7 +246,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **send_transac_sms** | [**SendTransacSms**](SendTransacSms.md)| Values to send a transactional SMS | + **body** | [**SendTransacSms**](SendTransacSms.md)| Values to send a transactional SMS | ### Return type diff --git a/docs/UpdateAttribute.md b/docs/UpdateAttribute.md index 2f2c31f..d06ba2b 100644 --- a/docs/UpdateAttribute.md +++ b/docs/UpdateAttribute.md @@ -3,9 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **str** | Value of the attribute to update. Use only if the attribute's category is 'calculated' or 'global' | [optional] -**enumeration** | [**list[UpdateAttributeEnumeration]**](UpdateAttributeEnumeration.md) | List of the values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, `[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]` | [optional] +**value** | **str** | Value of the attribute to update. Use only if the attribute's category is 'calculated' or 'global' | [optional] +**enumeration** | **list[object]** | List of the values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, `[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]` | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/UpdateAttributeEnumeration.md b/docs/UpdateAttributeEnumeration.md deleted file mode 100644 index 19c7caf..0000000 --- a/docs/UpdateAttributeEnumeration.md +++ /dev/null @@ -1,11 +0,0 @@ -# UpdateAttributeEnumeration - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **int** | Id of the value | -**label** | **str** | Label of the value | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UpdateCampaignStatus.md b/docs/UpdateCampaignStatus.md index 827aaad..fe0c18d 100644 --- a/docs/UpdateCampaignStatus.md +++ b/docs/UpdateCampaignStatus.md @@ -7,4 +7,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/UpdateChild.md b/docs/UpdateChild.md index eaabe86..1e768a3 100644 --- a/docs/UpdateChild.md +++ b/docs/UpdateChild.md @@ -11,4 +11,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/UpdateContact.md b/docs/UpdateContact.md index b5512ff..20650ea 100644 --- a/docs/UpdateContact.md +++ b/docs/UpdateContact.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | **object** | Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, `{ 'EMAIL':'newemail@domain.com', 'FNAME':'Ellie', 'LNAME':'Roger'}` | [optional] +**attributes** | **object** | Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, `{ 'EMAIL':'newemail@domain.com', 'FNAME':'Ellie', 'LNAME':'Roger'}` | [optional] **email_blacklisted** | **bool** | Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true) | [optional] **sms_blacklisted** | **bool** | Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true) | [optional] **list_ids** | **list[int]** | Ids of the lists to add the contact to | [optional] @@ -12,4 +12,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/UpdateEmailCampaign.md b/docs/UpdateEmailCampaign.md index 739296f..13ce757 100644 --- a/docs/UpdateEmailCampaign.md +++ b/docs/UpdateEmailCampaign.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **tag** | **str** | Tag of the campaign | [optional] -**sender** | [**UpdateEmailCampaignSender**](UpdateEmailCampaignSender.md) | | [optional] +**sender** | **object** | Sender details including email and/or name. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` | [optional] **name** | **str** | Name of the campaign | [optional] **html_content** | **str** | Body of the message (HTML version). REQUIRED if htmlUrl is empty | [optional] **html_url** | **str** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] **scheduled_at** | **datetime** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). | [optional] **subject** | **str** | Subject of the campaign | [optional] **reply_to** | **str** | Email on which campaign recipients will be able to reply to | [optional] -**to_field** | **str** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization | [optional] -**recipients** | [**UpdateEmailCampaignRecipients**](UpdateEmailCampaignRecipients.md) | | [optional] +**to_field** | **str** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization | [optional] +**recipients** | **object** | List ids to include/exclude from campaign | [optional] **attachment_url** | **str** | Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps | [optional] **inline_image_activation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. You cannot send a campaign of more than 4MB with images embedded in the email. Campaigns with the images embedded in the email must be sent to less than 5000 contacts. | [optional] [default to False] **mirror_active** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] @@ -20,15 +20,14 @@ Name | Type | Description | Notes **footer** | **str** | Footer of the email campaign | [optional] **header** | **str** | Header of the email campaign | [optional] **utm_campaign** | **str** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [optional] -**params** | **object** | Pass the set of attributes to customize the type 'classic' campaign. For example, `{\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}`. The 'params' field will get updated, only if the campaign is in New Template Language, else ignored. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name' & 'toField' | [optional] +**params** | **object** | Pass the set of attributes to customize the type 'classic' campaign. For example, `{\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}`. The 'params' field will get updated, only if the campaign is in New Template Language, else ignored. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name' & 'toField' | [optional] **send_at_best_time** | **bool** | Set this to true if you want to send your campaign at best time. Note:- if true, warmup ip will be disabled. | [optional] -**ab_testing** | **bool** | Status of A/B Test. abTesting = false means it is disabled, & abTesting = true means it is enabled. 'subjectA', 'subjectB', 'splitRule', 'winnerCriteria' & 'winnerDelay' will be considered if abTesting is set to true. 'subject' if passed is ignored. Can be set to true only if 'sendAtBestTime' is 'false'. You will be able to set up two subject lines for your campaign and send them to a random sample of your total recipients. Half of the test group will receive version A, and the other half will receive version B | [optional] [default to False] +**ab_testing** | **bool** | Status of A/B Test. abTesting = false means it is disabled, & abTesting = true means it is enabled. 'subjectA', 'subjectB', 'splitRule', 'winnerCriteria' & 'winnerDelay' will be considered if abTesting is set to true. 'subject' if passed is ignored. Can be set to true only if 'sendAtBestTime' is 'false'. You will be able to set up two subject lines for your campaign and send them to a random sample of your total recipients. Half of the test group will receive version A, and the other half will receive version B | [optional] [default to False] **subject_a** | **str** | Subject A of the campaign. Considered if abTesting = true. subjectA & subjectB should have unique value | [optional] **subject_b** | **str** | Subject B of the campaign. Considered if abTesting = true. subjectA & subjectB should have unique value | [optional] -**split_rule** | **int** | Add the size of your test groups. Considered if abTesting = true. We'll send version A and B to a random sample of recipients, and then the winning version to everyone else | [optional] -**winner_criteria** | **str** | Choose the metrics that will determinate the winning version. Considered if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerCriteria' is ignored if passed or alreday exist in record | [optional] -**winner_delay** | **int** | Choose the duration of the test in hours. Maximum is 7 days, pass 24*7 = 168 hours. The winning version will be sent at the end of the test. Considered if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerDelay' is ignored if passed or alreday exist in record | [optional] +**split_rule** | **int** | Add the size of your test groups. Considered if abTesting = true. We'll send version A and B to a random sample of recipients, and then the winning version to everyone else | [optional] +**winner_criteria** | **str** | Choose the metrics that will determinate the winning version. Considered if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerCriteria' is ignored if passed or alreday exist in record | [optional] +**winner_delay** | **int** | Choose the duration of the test in hours. Maximum is 7 days, pass 24*7 = 168 hours. The winning version will be sent at the end of the test. Considered if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerDelay' is ignored if passed or alreday exist in record | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/UpdateEmailCampaignRecipients.md b/docs/UpdateEmailCampaignRecipients.md deleted file mode 100644 index d1f59b7..0000000 --- a/docs/UpdateEmailCampaignRecipients.md +++ /dev/null @@ -1,11 +0,0 @@ -# UpdateEmailCampaignRecipients - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exclusion_list_ids** | **list[int]** | List ids which have to be excluded from a campaign | [optional] -**list_ids** | **list[int]** | Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UpdateEmailCampaignSender.md b/docs/UpdateEmailCampaignSender.md deleted file mode 100644 index 37e9a90..0000000 --- a/docs/UpdateEmailCampaignSender.md +++ /dev/null @@ -1,11 +0,0 @@ -# UpdateEmailCampaignSender - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Sender Name from which the campaign emails are sent | [optional] -**email** | **str** | Sender email from which the campaign emails are sent | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UpdateList.md b/docs/UpdateList.md index 9d80fa0..57423fb 100644 --- a/docs/UpdateList.md +++ b/docs/UpdateList.md @@ -8,4 +8,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/UpdateSender.md b/docs/UpdateSender.md index 2360492..c118240 100644 --- a/docs/UpdateSender.md +++ b/docs/UpdateSender.md @@ -5,8 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | From Name to update the sender | [optional] **email** | **str** | From Email to update the sender | [optional] -**ips** | [**list[CreateSenderIps]**](CreateSenderIps.md) | Only in case of dedicated IP, IPs to associate to the sender. If passed, will replace all the existing IPs. | [optional] +**ips** | **list[object]** | Only in case of dedicated IP, IPs to associate to the sender. If passed, will replace all the existing IPs. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/UpdateSmsCampaign.md b/docs/UpdateSmsCampaign.md index b042cb3..a8ef0f4 100644 --- a/docs/UpdateSmsCampaign.md +++ b/docs/UpdateSmsCampaign.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes **name** | **str** | Name of the campaign | [optional] **sender** | **str** | Name of the sender. The number of characters is limited to 11 | [optional] **content** | **str** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional] -**recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] +**recipients** | **object** | | [optional] **scheduled_at** | **datetime** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/UpdateSmtpTemplate.md b/docs/UpdateSmtpTemplate.md index 3a334f0..836bd13 100644 --- a/docs/UpdateSmtpTemplate.md +++ b/docs/UpdateSmtpTemplate.md @@ -4,16 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **tag** | **str** | Tag of the template | [optional] -**sender** | [**UpdateSmtpTemplateSender**](UpdateSmtpTemplateSender.md) | | [optional] +**sender** | **object** | Sender details including email and/or name. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` | [optional] **template_name** | **str** | Name of the template | [optional] **html_content** | **str** | Required if htmlUrl is empty. Body of the message (HTML must have more than 10 characters) | [optional] **html_url** | **str** | Required if htmlContent is empty. URL to the body of the email (HTML) | [optional] **subject** | **str** | Subject of the email | [optional] **reply_to** | **str** | Email on which campaign recipients will be able to reply to | [optional] -**to_field** | **str** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization | [optional] +**to_field** | **str** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization | [optional] **attachment_url** | **str** | Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps | [optional] **is_active** | **bool** | Status of the template. isActive = false means template is inactive, isActive = true means template is active | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/UpdateSmtpTemplateSender.md b/docs/UpdateSmtpTemplateSender.md deleted file mode 100644 index 3fed5ed..0000000 --- a/docs/UpdateSmtpTemplateSender.md +++ /dev/null @@ -1,11 +0,0 @@ -# UpdateSmtpTemplateSender - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name of the sender | [optional] -**email** | **str** | Email of the sender | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UpdateWebhook.md b/docs/UpdateWebhook.md index 45bbcd1..489ff5c 100644 --- a/docs/UpdateWebhook.md +++ b/docs/UpdateWebhook.md @@ -9,4 +9,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index 3ee0e73..2298ca5 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -10,9 +10,8 @@ Method | HTTP request | Description [**get_webhooks**](WebhooksApi.md#get_webhooks) | **GET** /webhooks | Get all webhooks [**update_webhook**](WebhooksApi.md#update_webhook) | **PUT** /webhooks/{webhookId} | Update a webhook - # **create_webhook** -> CreateModel create_webhook(create_webhook) +> CreateModel create_webhook(body) Create a webhook @@ -37,11 +36,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.WebhooksApi(sib_api_v3_sdk.ApiClient(configuration)) -create_webhook = sib_api_v3_sdk.CreateWebhook() # CreateWebhook | Values to create a webhook +body = sib_api_v3_sdk.CreateWebhook() # CreateWebhook | Values to create a webhook try: # Create a webhook - api_response = api_instance.create_webhook(create_webhook) + api_response = api_instance.create_webhook(body) pprint(api_response) except ApiException as e: print("Exception when calling WebhooksApi->create_webhook: %s\n" % e) @@ -51,7 +50,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_webhook** | [**CreateWebhook**](CreateWebhook.md)| Values to create a webhook | + **body** | [**CreateWebhook**](CreateWebhook.md)| Values to create a webhook | ### Return type @@ -94,7 +93,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.WebhooksApi(sib_api_v3_sdk.ApiClient(configuration)) -webhook_id = 789 # int | Id of the webhook +webhook_id = 56 # int | Id of the webhook try: # Delete a webhook @@ -107,7 +106,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhook_id** | **int**| Id of the webhook | + **webhook_id** | [**int**](.md)| Id of the webhook | ### Return type @@ -119,7 +118,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -150,7 +149,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.WebhooksApi(sib_api_v3_sdk.ApiClient(configuration)) -webhook_id = 789 # int | Id of the webhook +webhook_id = 56 # int | Id of the webhook try: # Get a webhook details @@ -164,7 +163,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhook_id** | **int**| Id of the webhook | + **webhook_id** | [**int**](.md)| Id of the webhook | ### Return type @@ -176,7 +175,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -207,7 +206,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.WebhooksApi(sib_api_v3_sdk.ApiClient(configuration)) -type = 'transactional' # str | Filter on webhook type (optional) (default to transactional) +type = 'type_example' # str | Filter on webhook type (optional) try: # Get all webhooks @@ -221,7 +220,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **type** | **str**| Filter on webhook type | [optional] [default to transactional] + **type** | [**str**](.md)| Filter on webhook type | [optional] ### Return type @@ -233,13 +232,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_webhook** -> update_webhook(webhook_id, update_webhook) +> update_webhook(body, webhook_id) Update a webhook @@ -264,12 +263,12 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.WebhooksApi(sib_api_v3_sdk.ApiClient(configuration)) -webhook_id = 789 # int | Id of the webhook -update_webhook = sib_api_v3_sdk.UpdateWebhook() # UpdateWebhook | Values to update a webhook +body = sib_api_v3_sdk.UpdateWebhook() # UpdateWebhook | Values to update a webhook +webhook_id = 56 # int | Id of the webhook try: # Update a webhook - api_instance.update_webhook(webhook_id, update_webhook) + api_instance.update_webhook(body, webhook_id) except ApiException as e: print("Exception when calling WebhooksApi->update_webhook: %s\n" % e) ``` @@ -278,8 +277,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhook_id** | **int**| Id of the webhook | - **update_webhook** | [**UpdateWebhook**](UpdateWebhook.md)| Values to update a webhook | + **body** | [**UpdateWebhook**](UpdateWebhook.md)| Values to update a webhook | + **webhook_id** | [**int**](.md)| Id of the webhook | ### Return type diff --git a/setup.py b/setup.py index c787f07..2495dec 100644 --- a/setup.py +++ b/setup.py @@ -10,12 +10,10 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - -import sys -from setuptools import setup, find_packages +from setuptools import setup, find_packages # noqa: H301 NAME = "sib-api-v3-sdk" -VERSION = "4.2.2" +VERSION = "5.0.0" # To install the library, run the following # # python setup.py install diff --git a/sib_api_v3_sdk/__init__.py b/sib_api_v3_sdk/__init__.py index 7fd6dba..fea7f69 100644 --- a/sib_api_v3_sdk/__init__.py +++ b/sib_api_v3_sdk/__init__.py @@ -12,7 +12,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import # import apis into sdk package @@ -37,23 +36,17 @@ from sib_api_v3_sdk.models.add_contact_to_list import AddContactToList from sib_api_v3_sdk.models.add_credits import AddCredits from sib_api_v3_sdk.models.create_attribute import CreateAttribute -from sib_api_v3_sdk.models.create_attribute_enumeration import CreateAttributeEnumeration from sib_api_v3_sdk.models.create_child import CreateChild from sib_api_v3_sdk.models.create_contact import CreateContact from sib_api_v3_sdk.models.create_email_campaign import CreateEmailCampaign -from sib_api_v3_sdk.models.create_email_campaign_recipients import CreateEmailCampaignRecipients -from sib_api_v3_sdk.models.create_email_campaign_sender import CreateEmailCampaignSender from sib_api_v3_sdk.models.create_list import CreateList from sib_api_v3_sdk.models.create_model import CreateModel from sib_api_v3_sdk.models.create_reseller import CreateReseller from sib_api_v3_sdk.models.create_sender import CreateSender -from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps from sib_api_v3_sdk.models.create_sender_model import CreateSenderModel from sib_api_v3_sdk.models.create_sms_campaign import CreateSmsCampaign -from sib_api_v3_sdk.models.create_sms_campaign_recipients import CreateSmsCampaignRecipients from sib_api_v3_sdk.models.create_smtp_email import CreateSmtpEmail from sib_api_v3_sdk.models.create_smtp_template import CreateSmtpTemplate -from sib_api_v3_sdk.models.create_smtp_template_sender import CreateSmtpTemplateSender from sib_api_v3_sdk.models.create_update_contact_model import CreateUpdateContactModel from sib_api_v3_sdk.models.create_update_folder import CreateUpdateFolder from sib_api_v3_sdk.models.create_webhook import CreateWebhook @@ -61,46 +54,26 @@ from sib_api_v3_sdk.models.delete_hardbounces import DeleteHardbounces from sib_api_v3_sdk.models.email_export_recipients import EmailExportRecipients from sib_api_v3_sdk.models.error_model import ErrorModel -from sib_api_v3_sdk.models.get_account_marketing_automation import GetAccountMarketingAutomation -from sib_api_v3_sdk.models.get_account_plan import GetAccountPlan -from sib_api_v3_sdk.models.get_account_relay import GetAccountRelay -from sib_api_v3_sdk.models.get_account_relay_data import GetAccountRelayData +from sib_api_v3_sdk.models.get_account import GetAccount from sib_api_v3_sdk.models.get_aggregated_report import GetAggregatedReport from sib_api_v3_sdk.models.get_attributes import GetAttributes -from sib_api_v3_sdk.models.get_attributes_attributes import GetAttributesAttributes -from sib_api_v3_sdk.models.get_attributes_enumeration import GetAttributesEnumeration from sib_api_v3_sdk.models.get_campaign_overview import GetCampaignOverview from sib_api_v3_sdk.models.get_campaign_recipients import GetCampaignRecipients from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats -from sib_api_v3_sdk.models.get_child_info_api_keys import GetChildInfoApiKeys -from sib_api_v3_sdk.models.get_child_info_api_keys_v2 import GetChildInfoApiKeysV2 -from sib_api_v3_sdk.models.get_child_info_api_keys_v3 import GetChildInfoApiKeysV3 -from sib_api_v3_sdk.models.get_child_info_credits import GetChildInfoCredits -from sib_api_v3_sdk.models.get_child_info_statistics import GetChildInfoStatistics +from sib_api_v3_sdk.models.get_child_info import GetChildInfo from sib_api_v3_sdk.models.get_children_list import GetChildrenList from sib_api_v3_sdk.models.get_client import GetClient from sib_api_v3_sdk.models.get_contact_campaign_stats import GetContactCampaignStats -from sib_api_v3_sdk.models.get_contact_campaign_stats_clicked import GetContactCampaignStatsClicked -from sib_api_v3_sdk.models.get_contact_campaign_stats_opened import GetContactCampaignStatsOpened -from sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes import GetContactCampaignStatsTransacAttributes -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions import GetContactCampaignStatsUnsubscriptions from sib_api_v3_sdk.models.get_contact_details import GetContactDetails from sib_api_v3_sdk.models.get_contacts import GetContacts +from sib_api_v3_sdk.models.get_email_campaign import GetEmailCampaign from sib_api_v3_sdk.models.get_email_campaigns import GetEmailCampaigns from sib_api_v3_sdk.models.get_email_event_report import GetEmailEventReport -from sib_api_v3_sdk.models.get_email_event_report_events import GetEmailEventReportEvents -from sib_api_v3_sdk.models.get_extended_campaign_overview_sender import GetExtendedCampaignOverviewSender +from sib_api_v3_sdk.models.get_extended_campaign_overview import GetExtendedCampaignOverview from sib_api_v3_sdk.models.get_extended_campaign_stats import GetExtendedCampaignStats -from sib_api_v3_sdk.models.get_extended_client_address import GetExtendedClientAddress -from sib_api_v3_sdk.models.get_extended_contact_details_statistics import GetExtendedContactDetailsStatistics -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_clicked import GetExtendedContactDetailsStatisticsClicked -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_links import GetExtendedContactDetailsStatisticsLinks -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_messages_sent import GetExtendedContactDetailsStatisticsMessagesSent -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_opened import GetExtendedContactDetailsStatisticsOpened -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions import GetExtendedContactDetailsStatisticsUnsubscriptions -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_user_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription -from sib_api_v3_sdk.models.get_extended_list_campaign_stats import GetExtendedListCampaignStats +from sib_api_v3_sdk.models.get_extended_client import GetExtendedClient +from sib_api_v3_sdk.models.get_extended_contact_details import GetExtendedContactDetails +from sib_api_v3_sdk.models.get_extended_list import GetExtendedList from sib_api_v3_sdk.models.get_folder import GetFolder from sib_api_v3_sdk.models.get_folder_lists import GetFolderLists from sib_api_v3_sdk.models.get_folders import GetFolders @@ -113,73 +86,44 @@ from sib_api_v3_sdk.models.get_process import GetProcess from sib_api_v3_sdk.models.get_processes import GetProcesses from sib_api_v3_sdk.models.get_reports import GetReports -from sib_api_v3_sdk.models.get_reports_reports import GetReportsReports from sib_api_v3_sdk.models.get_senders_list import GetSendersList -from sib_api_v3_sdk.models.get_senders_list_ips import GetSendersListIps -from sib_api_v3_sdk.models.get_senders_list_senders import GetSendersListSenders +from sib_api_v3_sdk.models.get_sms_campaign import GetSmsCampaign from sib_api_v3_sdk.models.get_sms_campaign_overview import GetSmsCampaignOverview from sib_api_v3_sdk.models.get_sms_campaign_stats import GetSmsCampaignStats from sib_api_v3_sdk.models.get_sms_campaigns import GetSmsCampaigns from sib_api_v3_sdk.models.get_sms_event_report import GetSmsEventReport -from sib_api_v3_sdk.models.get_sms_event_report_events import GetSmsEventReportEvents from sib_api_v3_sdk.models.get_smtp_template_overview import GetSmtpTemplateOverview -from sib_api_v3_sdk.models.get_smtp_template_overview_sender import GetSmtpTemplateOverviewSender from sib_api_v3_sdk.models.get_smtp_templates import GetSmtpTemplates from sib_api_v3_sdk.models.get_stats_by_domain import GetStatsByDomain from sib_api_v3_sdk.models.get_transac_aggregated_sms_report import GetTransacAggregatedSmsReport from sib_api_v3_sdk.models.get_transac_sms_report import GetTransacSmsReport -from sib_api_v3_sdk.models.get_transac_sms_report_reports import GetTransacSmsReportReports from sib_api_v3_sdk.models.get_webhook import GetWebhook from sib_api_v3_sdk.models.get_webhooks import GetWebhooks from sib_api_v3_sdk.models.manage_ip import ManageIp from sib_api_v3_sdk.models.post_contact_info import PostContactInfo -from sib_api_v3_sdk.models.post_contact_info_contacts import PostContactInfoContacts from sib_api_v3_sdk.models.post_send_failed import PostSendFailed from sib_api_v3_sdk.models.post_send_sms_test_failed import PostSendSmsTestFailed from sib_api_v3_sdk.models.remaining_credit_model import RemainingCreditModel -from sib_api_v3_sdk.models.remaining_credit_model_child import RemainingCreditModelChild -from sib_api_v3_sdk.models.remaining_credit_model_reseller import RemainingCreditModelReseller from sib_api_v3_sdk.models.remove_contact_from_list import RemoveContactFromList from sib_api_v3_sdk.models.remove_credits import RemoveCredits from sib_api_v3_sdk.models.request_contact_export import RequestContactExport from sib_api_v3_sdk.models.request_contact_import import RequestContactImport -from sib_api_v3_sdk.models.request_contact_import_new_list import RequestContactImportNewList from sib_api_v3_sdk.models.request_sms_recipient_export import RequestSmsRecipientExport from sib_api_v3_sdk.models.send_email import SendEmail -from sib_api_v3_sdk.models.send_email_attachment import SendEmailAttachment from sib_api_v3_sdk.models.send_report import SendReport -from sib_api_v3_sdk.models.send_report_email import SendReportEmail from sib_api_v3_sdk.models.send_sms import SendSms from sib_api_v3_sdk.models.send_smtp_email import SendSmtpEmail -from sib_api_v3_sdk.models.send_smtp_email_attachment import SendSmtpEmailAttachment -from sib_api_v3_sdk.models.send_smtp_email_bcc import SendSmtpEmailBcc -from sib_api_v3_sdk.models.send_smtp_email_cc import SendSmtpEmailCc -from sib_api_v3_sdk.models.send_smtp_email_reply_to import SendSmtpEmailReplyTo -from sib_api_v3_sdk.models.send_smtp_email_sender import SendSmtpEmailSender -from sib_api_v3_sdk.models.send_smtp_email_to import SendSmtpEmailTo from sib_api_v3_sdk.models.send_template_email import SendTemplateEmail from sib_api_v3_sdk.models.send_test_email import SendTestEmail from sib_api_v3_sdk.models.send_test_sms import SendTestSms from sib_api_v3_sdk.models.send_transac_sms import SendTransacSms from sib_api_v3_sdk.models.update_attribute import UpdateAttribute -from sib_api_v3_sdk.models.update_attribute_enumeration import UpdateAttributeEnumeration from sib_api_v3_sdk.models.update_campaign_status import UpdateCampaignStatus from sib_api_v3_sdk.models.update_child import UpdateChild from sib_api_v3_sdk.models.update_contact import UpdateContact from sib_api_v3_sdk.models.update_email_campaign import UpdateEmailCampaign -from sib_api_v3_sdk.models.update_email_campaign_recipients import UpdateEmailCampaignRecipients -from sib_api_v3_sdk.models.update_email_campaign_sender import UpdateEmailCampaignSender from sib_api_v3_sdk.models.update_list import UpdateList from sib_api_v3_sdk.models.update_sender import UpdateSender from sib_api_v3_sdk.models.update_sms_campaign import UpdateSmsCampaign from sib_api_v3_sdk.models.update_smtp_template import UpdateSmtpTemplate -from sib_api_v3_sdk.models.update_smtp_template_sender import UpdateSmtpTemplateSender from sib_api_v3_sdk.models.update_webhook import UpdateWebhook -from sib_api_v3_sdk.models.get_child_info import GetChildInfo -from sib_api_v3_sdk.models.get_extended_campaign_overview import GetExtendedCampaignOverview -from sib_api_v3_sdk.models.get_extended_client import GetExtendedClient -from sib_api_v3_sdk.models.get_extended_contact_details import GetExtendedContactDetails -from sib_api_v3_sdk.models.get_extended_list import GetExtendedList -from sib_api_v3_sdk.models.get_sms_campaign import GetSmsCampaign -from sib_api_v3_sdk.models.get_account import GetAccount -from sib_api_v3_sdk.models.get_email_campaign import GetEmailCampaign diff --git a/sib_api_v3_sdk/api/account_api.py b/sib_api_v3_sdk/api/account_api.py index 98811bd..6a461c4 100644 --- a/sib_api_v3_sdk/api/account_api.py +++ b/sib_api_v3_sdk/api/account_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -37,17 +36,17 @@ def get_account(self, **kwargs): # noqa: E501 """Get your account informations, plans and credits details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAccount If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_account_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_account_with_http_info(**kwargs) # noqa: E501 @@ -57,18 +56,18 @@ def get_account_with_http_info(self, **kwargs): # noqa: E501 """Get your account informations, plans and credits details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAccount If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -99,10 +98,6 @@ def get_account_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -116,7 +111,7 @@ def get_account_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetAccount', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/attributes_api.py b/sib_api_v3_sdk/api/attributes_api.py index f8505a5..feec961 100644 --- a/sib_api_v3_sdk/api/attributes_api.py +++ b/sib_api_v3_sdk/api/attributes_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -33,48 +32,48 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_attribute(self, attribute_category, attribute_name, create_attribute, **kwargs): # noqa: E501 + def create_attribute(self, body, attribute_category, attribute_name, **kwargs): # noqa: E501 """Creates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_attribute(attribute_category, attribute_name, create_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_attribute(body, attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param CreateAttribute body: Values to create an attribute (required) :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the attribute (required) - :param CreateAttribute create_attribute: Values to create an attribute (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_attribute_with_http_info(body, attribute_category, attribute_name, **kwargs) # noqa: E501 else: - (data) = self.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, **kwargs) # noqa: E501 + (data) = self.create_attribute_with_http_info(body, attribute_category, attribute_name, **kwargs) # noqa: E501 return data - def create_attribute_with_http_info(self, attribute_category, attribute_name, create_attribute, **kwargs): # noqa: E501 + def create_attribute_with_http_info(self, body, attribute_category, attribute_name, **kwargs): # noqa: E501 """Creates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_attribute_with_http_info(body, attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param CreateAttribute body: Values to create an attribute (required) :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the attribute (required) - :param CreateAttribute create_attribute: Values to create an attribute (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['attribute_category', 'attribute_name', 'create_attribute'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'attribute_category', 'attribute_name'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -88,6 +87,10 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_attribute`") # noqa: E501 # verify the required parameter 'attribute_category' is set if ('attribute_category' not in params or params['attribute_category'] is None): @@ -96,10 +99,6 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr if ('attribute_name' not in params or params['attribute_name'] is None): raise ValueError("Missing the required parameter `attribute_name` when calling `create_attribute`") # noqa: E501 - # verify the required parameter 'create_attribute' is set - if ('create_attribute' not in params or - params['create_attribute'] is None): - raise ValueError("Missing the required parameter `create_attribute` when calling `create_attribute`") # noqa: E501 collection_formats = {} @@ -117,8 +116,8 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr local_var_files = {} body_params = None - if 'create_attribute' in params: - body_params = params['create_attribute'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -140,7 +139,7 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -150,11 +149,11 @@ def delete_attribute(self, attribute_category, attribute_name, **kwargs): # noq """Deletes an attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_attribute(attribute_category, attribute_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_attribute(attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :return: None @@ -162,7 +161,7 @@ def delete_attribute(self, attribute_category, attribute_name, **kwargs): # noq returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_attribute_with_http_info(attribute_category, attribute_name, **kwargs) # noqa: E501 else: (data) = self.delete_attribute_with_http_info(attribute_category, attribute_name, **kwargs) # noqa: E501 @@ -172,11 +171,11 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** """Deletes an attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_attribute_with_http_info(attribute_category, attribute_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_attribute_with_http_info(attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :return: None @@ -185,7 +184,7 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** """ all_params = ['attribute_category', 'attribute_name'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -228,10 +227,6 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -245,7 +240,7 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -255,17 +250,17 @@ def get_attributes(self, **kwargs): # noqa: E501 """Lists all attributes # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_attributes(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_attributes(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAttributes If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_attributes_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_attributes_with_http_info(**kwargs) # noqa: E501 @@ -275,18 +270,18 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501 """Lists all attributes # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_attributes_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_attributes_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAttributes If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -317,10 +312,6 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -334,54 +325,54 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetAttributes', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_attribute(self, attribute_category, attribute_name, update_attribute, **kwargs): # noqa: E501 + def update_attribute(self, body, attribute_category, attribute_name, **kwargs): # noqa: E501 """Updates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_attribute(attribute_category, attribute_name, update_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_attribute(body, attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateAttribute body: Values to update an attribute (required) :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) - :param UpdateAttribute update_attribute: Values to update an attribute (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_attribute_with_http_info(body, attribute_category, attribute_name, **kwargs) # noqa: E501 else: - (data) = self.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, **kwargs) # noqa: E501 + (data) = self.update_attribute_with_http_info(body, attribute_category, attribute_name, **kwargs) # noqa: E501 return data - def update_attribute_with_http_info(self, attribute_category, attribute_name, update_attribute, **kwargs): # noqa: E501 + def update_attribute_with_http_info(self, body, attribute_category, attribute_name, **kwargs): # noqa: E501 """Updates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_attribute_with_http_info(body, attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateAttribute body: Values to update an attribute (required) :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) - :param UpdateAttribute update_attribute: Values to update an attribute (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['attribute_category', 'attribute_name', 'update_attribute'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'attribute_category', 'attribute_name'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -395,6 +386,10 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_attribute`") # noqa: E501 # verify the required parameter 'attribute_category' is set if ('attribute_category' not in params or params['attribute_category'] is None): @@ -403,10 +398,6 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up if ('attribute_name' not in params or params['attribute_name'] is None): raise ValueError("Missing the required parameter `attribute_name` when calling `update_attribute`") # noqa: E501 - # verify the required parameter 'update_attribute' is set - if ('update_attribute' not in params or - params['update_attribute'] is None): - raise ValueError("Missing the required parameter `update_attribute` when calling `update_attribute`") # noqa: E501 collection_formats = {} @@ -424,8 +415,8 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up local_var_files = {} body_params = None - if 'update_attribute' in params: - body_params = params['update_attribute'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -447,7 +438,7 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/contacts_api.py b/sib_api_v3_sdk/api/contacts_api.py index ddd4ddd..6dfbe89 100644 --- a/sib_api_v3_sdk/api/contacts_api.py +++ b/sib_api_v3_sdk/api/contacts_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -33,46 +32,46 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def add_contact_to_list(self, list_id, contact_emails, **kwargs): # noqa: E501 + def add_contact_to_list(self, body, list_id, **kwargs): # noqa: E501 """Add existing contacts to a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_contact_to_list(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_contact_to_list(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param AddContactToList body: Emails addresses of the contacts (required) :param int list_id: Id of the list (required) - :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.add_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.add_contact_to_list_with_http_info(body, list_id, **kwargs) # noqa: E501 else: - (data) = self.add_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + (data) = self.add_contact_to_list_with_http_info(body, list_id, **kwargs) # noqa: E501 return data - def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): # noqa: E501 + def add_contact_to_list_with_http_info(self, body, list_id, **kwargs): # noqa: E501 """Add existing contacts to a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_contact_to_list_with_http_info(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_contact_to_list_with_http_info(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param AddContactToList body: Emails addresses of the contacts (required) :param int list_id: Id of the list (required) - :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. """ - all_params = ['list_id', 'contact_emails'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'list_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -86,14 +85,14 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `add_contact_to_list`") # noqa: E501 # verify the required parameter 'list_id' is set if ('list_id' not in params or params['list_id'] is None): raise ValueError("Missing the required parameter `list_id` when calling `add_contact_to_list`") # noqa: E501 - # verify the required parameter 'contact_emails' is set - if ('contact_emails' not in params or - params['contact_emails'] is None): - raise ValueError("Missing the required parameter `contact_emails` when calling `add_contact_to_list`") # noqa: E501 collection_formats = {} @@ -109,8 +108,8 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): local_var_files = {} body_params = None - if 'contact_emails' in params: - body_params = params['contact_emails'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -132,54 +131,54 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): files=local_var_files, response_type='PostContactInfo', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_attribute(self, attribute_category, attribute_name, create_attribute, **kwargs): # noqa: E501 + def create_attribute(self, body, attribute_category, attribute_name, **kwargs): # noqa: E501 """Creates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_attribute(attribute_category, attribute_name, create_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_attribute(body, attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param CreateAttribute body: Values to create an attribute (required) :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the attribute (required) - :param CreateAttribute create_attribute: Values to create an attribute (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_attribute_with_http_info(body, attribute_category, attribute_name, **kwargs) # noqa: E501 else: - (data) = self.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, **kwargs) # noqa: E501 + (data) = self.create_attribute_with_http_info(body, attribute_category, attribute_name, **kwargs) # noqa: E501 return data - def create_attribute_with_http_info(self, attribute_category, attribute_name, create_attribute, **kwargs): # noqa: E501 + def create_attribute_with_http_info(self, body, attribute_category, attribute_name, **kwargs): # noqa: E501 """Creates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_attribute_with_http_info(body, attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param CreateAttribute body: Values to create an attribute (required) :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the attribute (required) - :param CreateAttribute create_attribute: Values to create an attribute (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['attribute_category', 'attribute_name', 'create_attribute'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'attribute_category', 'attribute_name'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -193,6 +192,10 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_attribute`") # noqa: E501 # verify the required parameter 'attribute_category' is set if ('attribute_category' not in params or params['attribute_category'] is None): @@ -201,10 +204,6 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr if ('attribute_name' not in params or params['attribute_name'] is None): raise ValueError("Missing the required parameter `attribute_name` when calling `create_attribute`") # noqa: E501 - # verify the required parameter 'create_attribute' is set - if ('create_attribute' not in params or - params['create_attribute'] is None): - raise ValueError("Missing the required parameter `create_attribute` when calling `create_attribute`") # noqa: E501 collection_formats = {} @@ -222,8 +221,8 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr local_var_files = {} body_params = None - if 'create_attribute' in params: - body_params = params['create_attribute'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -245,50 +244,50 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_contact(self, create_contact, **kwargs): # noqa: E501 + def create_contact(self, body, **kwargs): # noqa: E501 """Create a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_contact(create_contact, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_contact(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateContact create_contact: Values to create a contact (required) + :param async_req bool + :param CreateContact body: Values to create a contact (required) :return: CreateUpdateContactModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_contact_with_http_info(create_contact, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_contact_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_contact_with_http_info(create_contact, **kwargs) # noqa: E501 + (data) = self.create_contact_with_http_info(body, **kwargs) # noqa: E501 return data - def create_contact_with_http_info(self, create_contact, **kwargs): # noqa: E501 + def create_contact_with_http_info(self, body, **kwargs): # noqa: E501 """Create a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_contact_with_http_info(create_contact, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_contact_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateContact create_contact: Values to create a contact (required) + :param async_req bool + :param CreateContact body: Values to create a contact (required) :return: CreateUpdateContactModel If the method is called asynchronously, returns the request thread. """ - all_params = ['create_contact'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -302,10 +301,10 @@ def create_contact_with_http_info(self, create_contact, **kwargs): # noqa: E501 ) params[key] = val del params['kwargs'] - # verify the required parameter 'create_contact' is set - if ('create_contact' not in params or - params['create_contact'] is None): - raise ValueError("Missing the required parameter `create_contact` when calling `create_contact`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_contact`") # noqa: E501 collection_formats = {} @@ -319,8 +318,8 @@ def create_contact_with_http_info(self, create_contact, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'create_contact' in params: - body_params = params['create_contact'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -342,50 +341,50 @@ def create_contact_with_http_info(self, create_contact, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateUpdateContactModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_folder(self, create_folder, **kwargs): # noqa: E501 + def create_folder(self, body, **kwargs): # noqa: E501 """Create a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_folder(create_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_folder(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateUpdateFolder create_folder: Name of the folder (required) + :param async_req bool + :param CreateUpdateFolder body: Name of the folder (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_folder_with_http_info(create_folder, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_folder_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_folder_with_http_info(create_folder, **kwargs) # noqa: E501 + (data) = self.create_folder_with_http_info(body, **kwargs) # noqa: E501 return data - def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 + def create_folder_with_http_info(self, body, **kwargs): # noqa: E501 """Create a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_folder_with_http_info(create_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_folder_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateUpdateFolder create_folder: Name of the folder (required) + :param async_req bool + :param CreateUpdateFolder body: Name of the folder (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ - all_params = ['create_folder'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -399,10 +398,10 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 ) params[key] = val del params['kwargs'] - # verify the required parameter 'create_folder' is set - if ('create_folder' not in params or - params['create_folder'] is None): - raise ValueError("Missing the required parameter `create_folder` when calling `create_folder`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_folder`") # noqa: E501 collection_formats = {} @@ -416,8 +415,8 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'create_folder' in params: - body_params = params['create_folder'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -439,50 +438,50 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_list(self, create_list, **kwargs): # noqa: E501 + def create_list(self, body, **kwargs): # noqa: E501 """Create a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_list(create_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_list(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateList create_list: Values to create a list (required) + :param async_req bool + :param CreateList body: Values to create a list (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_list_with_http_info(create_list, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_list_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_list_with_http_info(create_list, **kwargs) # noqa: E501 + (data) = self.create_list_with_http_info(body, **kwargs) # noqa: E501 return data - def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 + def create_list_with_http_info(self, body, **kwargs): # noqa: E501 """Create a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_list_with_http_info(create_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_list_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateList create_list: Values to create a list (required) + :param async_req bool + :param CreateList body: Values to create a list (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ - all_params = ['create_list'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -496,10 +495,10 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 ) params[key] = val del params['kwargs'] - # verify the required parameter 'create_list' is set - if ('create_list' not in params or - params['create_list'] is None): - raise ValueError("Missing the required parameter `create_list` when calling `create_list`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_list`") # noqa: E501 collection_formats = {} @@ -513,8 +512,8 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'create_list' in params: - body_params = params['create_list'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -536,7 +535,7 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -546,11 +545,11 @@ def delete_attribute(self, attribute_category, attribute_name, **kwargs): # noq """Deletes an attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_attribute(attribute_category, attribute_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_attribute(attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :return: None @@ -558,7 +557,7 @@ def delete_attribute(self, attribute_category, attribute_name, **kwargs): # noq returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_attribute_with_http_info(attribute_category, attribute_name, **kwargs) # noqa: E501 else: (data) = self.delete_attribute_with_http_info(attribute_category, attribute_name, **kwargs) # noqa: E501 @@ -568,11 +567,11 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** """Deletes an attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_attribute_with_http_info(attribute_category, attribute_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_attribute_with_http_info(attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :return: None @@ -581,7 +580,7 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** """ all_params = ['attribute_category', 'attribute_name'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -624,10 +623,6 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -641,7 +636,7 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -651,18 +646,18 @@ def delete_contact(self, email, **kwargs): # noqa: E501 """Deletes a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_contact(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_contact(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email (urlencoded) of the contact (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_contact_with_http_info(email, **kwargs) # noqa: E501 else: (data) = self.delete_contact_with_http_info(email, **kwargs) # noqa: E501 @@ -672,11 +667,11 @@ def delete_contact_with_http_info(self, email, **kwargs): # noqa: E501 """Deletes a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_contact_with_http_info(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_contact_with_http_info(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email (urlencoded) of the contact (required) :return: None If the method is called asynchronously, @@ -684,7 +679,7 @@ def delete_contact_with_http_info(self, email, **kwargs): # noqa: E501 """ all_params = ['email'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -721,10 +716,6 @@ def delete_contact_with_http_info(self, email, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -738,7 +729,7 @@ def delete_contact_with_http_info(self, email, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -748,18 +739,18 @@ def delete_folder(self, folder_id, **kwargs): # noqa: E501 """Delete a folder (and all its lists) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_folder(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_folder(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_folder_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.delete_folder_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -769,11 +760,11 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Delete a folder (and all its lists) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_folder_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_folder_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, @@ -781,7 +772,7 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -818,10 +809,6 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -835,7 +822,7 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -845,18 +832,18 @@ def delete_list(self, list_id, **kwargs): # noqa: E501 """Delete a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -866,11 +853,11 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """Delete a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, @@ -878,7 +865,7 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """ all_params = ['list_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -915,10 +902,6 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -932,7 +915,7 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -942,17 +925,17 @@ def get_attributes(self, **kwargs): # noqa: E501 """Lists all attributes # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_attributes(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_attributes(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAttributes If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_attributes_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_attributes_with_http_info(**kwargs) # noqa: E501 @@ -962,18 +945,18 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501 """Lists all attributes # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_attributes_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_attributes_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAttributes If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1004,10 +987,6 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -1021,7 +1000,7 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetAttributes', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1031,18 +1010,18 @@ def get_contact_info(self, email, **kwargs): # noqa: E501 """Retrieves contact informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contact_info(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contact_info(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email (urlencoded) of the contact (required) :return: GetExtendedContactDetails If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_contact_info_with_http_info(email, **kwargs) # noqa: E501 else: (data) = self.get_contact_info_with_http_info(email, **kwargs) # noqa: E501 @@ -1052,11 +1031,11 @@ def get_contact_info_with_http_info(self, email, **kwargs): # noqa: E501 """Retrieves contact informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contact_info_with_http_info(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contact_info_with_http_info(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email (urlencoded) of the contact (required) :return: GetExtendedContactDetails If the method is called asynchronously, @@ -1064,7 +1043,7 @@ def get_contact_info_with_http_info(self, email, **kwargs): # noqa: E501 """ all_params = ['email'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1101,10 +1080,6 @@ def get_contact_info_with_http_info(self, email, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -1118,7 +1093,7 @@ def get_contact_info_with_http_info(self, email, **kwargs): # noqa: E501 files=local_var_files, response_type='GetExtendedContactDetails', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1128,18 +1103,18 @@ def get_contact_stats(self, email, **kwargs): # noqa: E501 """Get the campaigns statistics for a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contact_stats(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contact_stats(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email address (urlencoded) of the contact (required) :return: GetContactCampaignStats If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_contact_stats_with_http_info(email, **kwargs) # noqa: E501 else: (data) = self.get_contact_stats_with_http_info(email, **kwargs) # noqa: E501 @@ -1149,11 +1124,11 @@ def get_contact_stats_with_http_info(self, email, **kwargs): # noqa: E501 """Get the campaigns statistics for a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contact_stats_with_http_info(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contact_stats_with_http_info(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email address (urlencoded) of the contact (required) :return: GetContactCampaignStats If the method is called asynchronously, @@ -1161,7 +1136,7 @@ def get_contact_stats_with_http_info(self, email, **kwargs): # noqa: E501 """ all_params = ['email'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1198,10 +1173,6 @@ def get_contact_stats_with_http_info(self, email, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -1215,7 +1186,7 @@ def get_contact_stats_with_http_info(self, email, **kwargs): # noqa: E501 files=local_var_files, response_type='GetContactCampaignStats', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1225,20 +1196,20 @@ def get_contacts(self, **kwargs): # noqa: E501 """Get all the contacts # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page - :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. + :param str modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. :return: GetContacts If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_contacts_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_contacts_with_http_info(**kwargs) # noqa: E501 @@ -1248,21 +1219,21 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 """Get all the contacts # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page - :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. + :param str modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. :return: GetContacts If the method is called asynchronously, returns the request thread. """ all_params = ['limit', 'offset', 'modified_since'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1277,8 +1248,6 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 1000: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_contacts`, must be a value less than or equal to `1000`") # noqa: E501 collection_formats = {} path_params = {} @@ -1301,10 +1270,6 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -1318,7 +1283,7 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetContacts', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1328,13 +1293,13 @@ def get_contacts_from_list(self, list_id, **kwargs): # noqa: E501 """Get the contacts in a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts_from_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts_from_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) - :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. + :param str modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetContacts @@ -1342,7 +1307,7 @@ def get_contacts_from_list(self, list_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_contacts_from_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.get_contacts_from_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -1352,13 +1317,13 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 """Get the contacts in a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts_from_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts_from_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) - :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. + :param str modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetContacts @@ -1367,7 +1332,7 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 """ all_params = ['list_id', 'modified_since', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1386,8 +1351,6 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 params['list_id'] is None): raise ValueError("Missing the required parameter `list_id` when calling `get_contacts_from_list`") # noqa: E501 - if 'limit' in params and params['limit'] > 500: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_contacts_from_list`, must be a value less than or equal to `500`") # noqa: E501 collection_formats = {} path_params = {} @@ -1412,10 +1375,6 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -1429,7 +1388,7 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 files=local_var_files, response_type='GetContacts', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1439,18 +1398,18 @@ def get_folder(self, folder_id, **kwargs): # noqa: E501 """Returns folder details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folder_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.get_folder_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -1460,11 +1419,11 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Returns folder details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, @@ -1472,7 +1431,7 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1509,10 +1468,6 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -1526,7 +1481,7 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolder', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1536,11 +1491,11 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -1549,7 +1504,7 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -1559,11 +1514,11 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -1573,7 +1528,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1592,8 +1547,6 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 params['folder_id'] is None): raise ValueError("Missing the required parameter `folder_id` when calling `get_folder_lists`") # noqa: E501 - if 'limit' in params and params['limit'] > 50: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_folder_lists`, must be a value less than or equal to `50`") # noqa: E501 collection_formats = {} path_params = {} @@ -1616,10 +1569,6 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -1633,7 +1582,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolderLists', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1643,11 +1592,11 @@ def get_folders(self, limit, offset, **kwargs): # noqa: E501 """Get all the folders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folders(limit, offset, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folders(limit, offset, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page (required) :param int offset: Index of the first document of the page (required) :return: GetFolders @@ -1655,7 +1604,7 @@ def get_folders(self, limit, offset, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folders_with_http_info(limit, offset, **kwargs) # noqa: E501 else: (data) = self.get_folders_with_http_info(limit, offset, **kwargs) # noqa: E501 @@ -1665,11 +1614,11 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 """Get all the folders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folders_with_http_info(limit, offset, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folders_with_http_info(limit, offset, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page (required) :param int offset: Index of the first document of the page (required) :return: GetFolders @@ -1678,7 +1627,7 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1701,8 +1650,6 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 params['offset'] is None): raise ValueError("Missing the required parameter `offset` when calling `get_folders`") # noqa: E501 - if 'limit' in params and params['limit'] > 50: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_folders`, must be a value less than or equal to `50`") # noqa: E501 collection_formats = {} path_params = {} @@ -1723,10 +1670,6 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -1740,7 +1683,7 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolders', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1750,18 +1693,18 @@ def get_list(self, list_id, **kwargs): # noqa: E501 """Get the details of a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.get_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -1771,11 +1714,11 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """Get the details of a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, @@ -1783,7 +1726,7 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """ all_params = ['list_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1820,10 +1763,6 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -1837,7 +1776,7 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetExtendedList', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1847,11 +1786,11 @@ def get_lists(self, **kwargs): # noqa: E501 """Get all the lists # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_lists(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_lists(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetLists @@ -1859,7 +1798,7 @@ def get_lists(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_lists_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_lists_with_http_info(**kwargs) # noqa: E501 @@ -1869,11 +1808,11 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 """Get all the lists # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_lists_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_lists_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetLists @@ -1882,7 +1821,7 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1897,8 +1836,6 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 50: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_lists`, must be a value less than or equal to `50`") # noqa: E501 collection_formats = {} path_params = {} @@ -1919,10 +1856,6 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -1936,52 +1869,52 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetLists', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def import_contacts(self, request_contact_import, **kwargs): # noqa: E501 + def import_contacts(self, body, **kwargs): # noqa: E501 """Import contacts # noqa: E501 It returns the background process ID which on completion calls the notify URL that you have set in the input. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.import_contacts(request_contact_import, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.import_contacts(body, async_req=True) >>> result = thread.get() - :param async bool - :param RequestContactImport request_contact_import: Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` (required) + :param async_req bool + :param RequestContactImport body: Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` (required) :return: CreatedProcessId If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.import_contacts_with_http_info(request_contact_import, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.import_contacts_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.import_contacts_with_http_info(request_contact_import, **kwargs) # noqa: E501 + (data) = self.import_contacts_with_http_info(body, **kwargs) # noqa: E501 return data - def import_contacts_with_http_info(self, request_contact_import, **kwargs): # noqa: E501 + def import_contacts_with_http_info(self, body, **kwargs): # noqa: E501 """Import contacts # noqa: E501 It returns the background process ID which on completion calls the notify URL that you have set in the input. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.import_contacts_with_http_info(request_contact_import, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.import_contacts_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param RequestContactImport request_contact_import: Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` (required) + :param async_req bool + :param RequestContactImport body: Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` (required) :return: CreatedProcessId If the method is called asynchronously, returns the request thread. """ - all_params = ['request_contact_import'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1995,10 +1928,10 @@ def import_contacts_with_http_info(self, request_contact_import, **kwargs): # n ) params[key] = val del params['kwargs'] - # verify the required parameter 'request_contact_import' is set - if ('request_contact_import' not in params or - params['request_contact_import'] is None): - raise ValueError("Missing the required parameter `request_contact_import` when calling `import_contacts`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `import_contacts`") # noqa: E501 collection_formats = {} @@ -2012,8 +1945,8 @@ def import_contacts_with_http_info(self, request_contact_import, **kwargs): # n local_var_files = {} body_params = None - if 'request_contact_import' in params: - body_params = params['request_contact_import'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -2035,52 +1968,52 @@ def import_contacts_with_http_info(self, request_contact_import, **kwargs): # n files=local_var_files, response_type='CreatedProcessId', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def remove_contact_from_list(self, list_id, contact_emails, **kwargs): # noqa: E501 + def remove_contact_from_list(self, body, list_id, **kwargs): # noqa: E501 """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_from_list(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_contact_from_list(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param RemoveContactFromList body: Emails adresses of the contact (required) :param int list_id: Id of the list (required) - :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.remove_contact_from_list_with_http_info(body, list_id, **kwargs) # noqa: E501 else: - (data) = self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + (data) = self.remove_contact_from_list_with_http_info(body, list_id, **kwargs) # noqa: E501 return data - def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwargs): # noqa: E501 + def remove_contact_from_list_with_http_info(self, body, list_id, **kwargs): # noqa: E501 """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_from_list_with_http_info(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_contact_from_list_with_http_info(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param RemoveContactFromList body: Emails adresses of the contact (required) :param int list_id: Id of the list (required) - :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. """ - all_params = ['list_id', 'contact_emails'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'list_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2094,14 +2027,14 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `remove_contact_from_list`") # noqa: E501 # verify the required parameter 'list_id' is set if ('list_id' not in params or params['list_id'] is None): raise ValueError("Missing the required parameter `list_id` when calling `remove_contact_from_list`") # noqa: E501 - # verify the required parameter 'contact_emails' is set - if ('contact_emails' not in params or - params['contact_emails'] is None): - raise ValueError("Missing the required parameter `contact_emails` when calling `remove_contact_from_list`") # noqa: E501 collection_formats = {} @@ -2117,8 +2050,8 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa local_var_files = {} body_params = None - if 'contact_emails' in params: - body_params = params['contact_emails'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -2140,52 +2073,52 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa files=local_var_files, response_type='PostContactInfo', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def request_contact_export(self, request_contact_export, **kwargs): # noqa: E501 + def request_contact_export(self, body, **kwargs): # noqa: E501 """Export contacts # noqa: E501 It returns the background process ID which on completion calls the notify URL that you have set in the input. File will be available in csv. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.request_contact_export(request_contact_export, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.request_contact_export(body, async_req=True) >>> result = thread.get() - :param async bool - :param RequestContactExport request_contact_export: Values to request a contact export (required) + :param async_req bool + :param RequestContactExport body: Values to request a contact export (required) :return: CreatedProcessId If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.request_contact_export_with_http_info(request_contact_export, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.request_contact_export_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.request_contact_export_with_http_info(request_contact_export, **kwargs) # noqa: E501 + (data) = self.request_contact_export_with_http_info(body, **kwargs) # noqa: E501 return data - def request_contact_export_with_http_info(self, request_contact_export, **kwargs): # noqa: E501 + def request_contact_export_with_http_info(self, body, **kwargs): # noqa: E501 """Export contacts # noqa: E501 It returns the background process ID which on completion calls the notify URL that you have set in the input. File will be available in csv. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.request_contact_export_with_http_info(request_contact_export, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.request_contact_export_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param RequestContactExport request_contact_export: Values to request a contact export (required) + :param async_req bool + :param RequestContactExport body: Values to request a contact export (required) :return: CreatedProcessId If the method is called asynchronously, returns the request thread. """ - all_params = ['request_contact_export'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2199,10 +2132,10 @@ def request_contact_export_with_http_info(self, request_contact_export, **kwargs ) params[key] = val del params['kwargs'] - # verify the required parameter 'request_contact_export' is set - if ('request_contact_export' not in params or - params['request_contact_export'] is None): - raise ValueError("Missing the required parameter `request_contact_export` when calling `request_contact_export`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `request_contact_export`") # noqa: E501 collection_formats = {} @@ -2216,8 +2149,8 @@ def request_contact_export_with_http_info(self, request_contact_export, **kwargs local_var_files = {} body_params = None - if 'request_contact_export' in params: - body_params = params['request_contact_export'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -2239,54 +2172,54 @@ def request_contact_export_with_http_info(self, request_contact_export, **kwargs files=local_var_files, response_type='CreatedProcessId', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_attribute(self, attribute_category, attribute_name, update_attribute, **kwargs): # noqa: E501 + def update_attribute(self, body, attribute_category, attribute_name, **kwargs): # noqa: E501 """Updates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_attribute(attribute_category, attribute_name, update_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_attribute(body, attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateAttribute body: Values to update an attribute (required) :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) - :param UpdateAttribute update_attribute: Values to update an attribute (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_attribute_with_http_info(body, attribute_category, attribute_name, **kwargs) # noqa: E501 else: - (data) = self.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, **kwargs) # noqa: E501 + (data) = self.update_attribute_with_http_info(body, attribute_category, attribute_name, **kwargs) # noqa: E501 return data - def update_attribute_with_http_info(self, attribute_category, attribute_name, update_attribute, **kwargs): # noqa: E501 + def update_attribute_with_http_info(self, body, attribute_category, attribute_name, **kwargs): # noqa: E501 """Updates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_attribute_with_http_info(body, attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateAttribute body: Values to update an attribute (required) :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) - :param UpdateAttribute update_attribute: Values to update an attribute (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['attribute_category', 'attribute_name', 'update_attribute'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'attribute_category', 'attribute_name'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2300,6 +2233,10 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_attribute`") # noqa: E501 # verify the required parameter 'attribute_category' is set if ('attribute_category' not in params or params['attribute_category'] is None): @@ -2308,10 +2245,6 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up if ('attribute_name' not in params or params['attribute_name'] is None): raise ValueError("Missing the required parameter `attribute_name` when calling `update_attribute`") # noqa: E501 - # verify the required parameter 'update_attribute' is set - if ('update_attribute' not in params or - params['update_attribute'] is None): - raise ValueError("Missing the required parameter `update_attribute` when calling `update_attribute`") # noqa: E501 collection_formats = {} @@ -2329,8 +2262,8 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up local_var_files = {} body_params = None - if 'update_attribute' in params: - body_params = params['update_attribute'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -2352,52 +2285,52 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_contact(self, email, update_contact, **kwargs): # noqa: E501 + def update_contact(self, body, email, **kwargs): # noqa: E501 """Updates a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_contact(email, update_contact, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_contact(body, email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateContact body: Values to update a contact (required) :param str email: Email (urlencoded) of the contact (required) - :param UpdateContact update_contact: Values to update a contact (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_contact_with_http_info(email, update_contact, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_contact_with_http_info(body, email, **kwargs) # noqa: E501 else: - (data) = self.update_contact_with_http_info(email, update_contact, **kwargs) # noqa: E501 + (data) = self.update_contact_with_http_info(body, email, **kwargs) # noqa: E501 return data - def update_contact_with_http_info(self, email, update_contact, **kwargs): # noqa: E501 + def update_contact_with_http_info(self, body, email, **kwargs): # noqa: E501 """Updates a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_contact_with_http_info(email, update_contact, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_contact_with_http_info(body, email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateContact body: Values to update a contact (required) :param str email: Email (urlencoded) of the contact (required) - :param UpdateContact update_contact: Values to update a contact (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['email', 'update_contact'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'email'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2411,14 +2344,14 @@ def update_contact_with_http_info(self, email, update_contact, **kwargs): # noq ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_contact`") # noqa: E501 # verify the required parameter 'email' is set if ('email' not in params or params['email'] is None): raise ValueError("Missing the required parameter `email` when calling `update_contact`") # noqa: E501 - # verify the required parameter 'update_contact' is set - if ('update_contact' not in params or - params['update_contact'] is None): - raise ValueError("Missing the required parameter `update_contact` when calling `update_contact`") # noqa: E501 collection_formats = {} @@ -2434,8 +2367,8 @@ def update_contact_with_http_info(self, email, update_contact, **kwargs): # noq local_var_files = {} body_params = None - if 'update_contact' in params: - body_params = params['update_contact'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -2457,52 +2390,52 @@ def update_contact_with_http_info(self, email, update_contact, **kwargs): # noq files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_folder(self, folder_id, update_folder, **kwargs): # noqa: E501 + def update_folder(self, body, folder_id, **kwargs): # noqa: E501 """Update a contact folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_folder(folder_id, update_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_folder(body, folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param CreateUpdateFolder body: Name of the folder (required) :param int folder_id: Id of the folder (required) - :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_folder_with_http_info(folder_id, update_folder, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_folder_with_http_info(body, folder_id, **kwargs) # noqa: E501 else: - (data) = self.update_folder_with_http_info(folder_id, update_folder, **kwargs) # noqa: E501 + (data) = self.update_folder_with_http_info(body, folder_id, **kwargs) # noqa: E501 return data - def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # noqa: E501 + def update_folder_with_http_info(self, body, folder_id, **kwargs): # noqa: E501 """Update a contact folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_folder_with_http_info(folder_id, update_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_folder_with_http_info(body, folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param CreateUpdateFolder body: Name of the folder (required) :param int folder_id: Id of the folder (required) - :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['folder_id', 'update_folder'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'folder_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2516,14 +2449,14 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_folder`") # noqa: E501 # verify the required parameter 'folder_id' is set if ('folder_id' not in params or params['folder_id'] is None): raise ValueError("Missing the required parameter `folder_id` when calling `update_folder`") # noqa: E501 - # verify the required parameter 'update_folder' is set - if ('update_folder' not in params or - params['update_folder'] is None): - raise ValueError("Missing the required parameter `update_folder` when calling `update_folder`") # noqa: E501 collection_formats = {} @@ -2539,8 +2472,8 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n local_var_files = {} body_params = None - if 'update_folder' in params: - body_params = params['update_folder'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -2562,52 +2495,52 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_list(self, list_id, update_list, **kwargs): # noqa: E501 + def update_list(self, body, list_id, **kwargs): # noqa: E501 """Update a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_list(list_id, update_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_list(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateList body: Values to update a list (required) :param int list_id: Id of the list (required) - :param UpdateList update_list: Values to update a list (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_list_with_http_info(list_id, update_list, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_list_with_http_info(body, list_id, **kwargs) # noqa: E501 else: - (data) = self.update_list_with_http_info(list_id, update_list, **kwargs) # noqa: E501 + (data) = self.update_list_with_http_info(body, list_id, **kwargs) # noqa: E501 return data - def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E501 + def update_list_with_http_info(self, body, list_id, **kwargs): # noqa: E501 """Update a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_list_with_http_info(list_id, update_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_list_with_http_info(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateList body: Values to update a list (required) :param int list_id: Id of the list (required) - :param UpdateList update_list: Values to update a list (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['list_id', 'update_list'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'list_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2621,14 +2554,14 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_list`") # noqa: E501 # verify the required parameter 'list_id' is set if ('list_id' not in params or params['list_id'] is None): raise ValueError("Missing the required parameter `list_id` when calling `update_list`") # noqa: E501 - # verify the required parameter 'update_list' is set - if ('update_list' not in params or - params['update_list'] is None): - raise ValueError("Missing the required parameter `update_list` when calling `update_list`") # noqa: E501 collection_formats = {} @@ -2644,8 +2577,8 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E local_var_files = {} body_params = None - if 'update_list' in params: - body_params = params['update_list'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -2667,7 +2600,7 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/email_campaigns_api.py b/sib_api_v3_sdk/api/email_campaigns_api.py index 344c023..9e077b8 100644 --- a/sib_api_v3_sdk/api/email_campaigns_api.py +++ b/sib_api_v3_sdk/api/email_campaigns_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -33,44 +32,44 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_email_campaign(self, email_campaigns, **kwargs): # noqa: E501 + def create_email_campaign(self, body, **kwargs): # noqa: E501 """Create an email campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_email_campaign(email_campaigns, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_email_campaign(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateEmailCampaign email_campaigns: Values to create a campaign (required) + :param async_req bool + :param CreateEmailCampaign body: Values to create a campaign (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_email_campaign_with_http_info(email_campaigns, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_email_campaign_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_email_campaign_with_http_info(email_campaigns, **kwargs) # noqa: E501 + (data) = self.create_email_campaign_with_http_info(body, **kwargs) # noqa: E501 return data - def create_email_campaign_with_http_info(self, email_campaigns, **kwargs): # noqa: E501 + def create_email_campaign_with_http_info(self, body, **kwargs): # noqa: E501 """Create an email campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_email_campaign_with_http_info(email_campaigns, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_email_campaign_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateEmailCampaign email_campaigns: Values to create a campaign (required) + :param async_req bool + :param CreateEmailCampaign body: Values to create a campaign (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ - all_params = ['email_campaigns'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -84,10 +83,10 @@ def create_email_campaign_with_http_info(self, email_campaigns, **kwargs): # no ) params[key] = val del params['kwargs'] - # verify the required parameter 'email_campaigns' is set - if ('email_campaigns' not in params or - params['email_campaigns'] is None): - raise ValueError("Missing the required parameter `email_campaigns` when calling `create_email_campaign`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_email_campaign`") # noqa: E501 collection_formats = {} @@ -101,8 +100,8 @@ def create_email_campaign_with_http_info(self, email_campaigns, **kwargs): # no local_var_files = {} body_params = None - if 'email_campaigns' in params: - body_params = params['email_campaigns'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -124,7 +123,7 @@ def create_email_campaign_with_http_info(self, email_campaigns, **kwargs): # no files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -134,18 +133,18 @@ def delete_email_campaign(self, campaign_id, **kwargs): # noqa: E501 """Delete an email campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_email_campaign(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_email_campaign(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_email_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.delete_email_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -155,11 +154,11 @@ def delete_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: """Delete an email campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_email_campaign_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_email_campaign_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, @@ -167,7 +166,7 @@ def delete_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -204,10 +203,6 @@ def delete_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -221,7 +216,7 @@ def delete_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -231,19 +226,19 @@ def email_export_recipients(self, campaign_id, **kwargs): # noqa: E501 """Export the recipients of a campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.email_export_recipients(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.email_export_recipients(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) - :param EmailExportRecipients recipient_export: Values to send for a recipient export request + :param EmailExportRecipients body: Values to send for a recipient export request :return: CreatedProcessId If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.email_export_recipients_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.email_export_recipients_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -253,20 +248,20 @@ def email_export_recipients_with_http_info(self, campaign_id, **kwargs): # noqa """Export the recipients of a campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.email_export_recipients_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.email_export_recipients_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) - :param EmailExportRecipients recipient_export: Values to send for a recipient export request + :param EmailExportRecipients body: Values to send for a recipient export request :return: CreatedProcessId If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id', 'recipient_export'] # noqa: E501 - all_params.append('async') + all_params = ['campaign_id', 'body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -299,8 +294,8 @@ def email_export_recipients_with_http_info(self, campaign_id, **kwargs): # noqa local_var_files = {} body_params = None - if 'recipient_export' in params: - body_params = params['recipient_export'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -322,7 +317,7 @@ def email_export_recipients_with_http_info(self, campaign_id, **kwargs): # noqa files=local_var_files, response_type='CreatedProcessId', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -332,18 +327,18 @@ def get_email_campaign(self, campaign_id, **kwargs): # noqa: E501 """Get campaign informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_campaign(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_campaign(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :return: GetEmailCampaign If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_email_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.get_email_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -353,11 +348,11 @@ def get_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E50 """Get campaign informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_campaign_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_campaign_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :return: GetEmailCampaign If the method is called asynchronously, @@ -365,7 +360,7 @@ def get_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E50 """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -402,10 +397,6 @@ def get_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E50 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -419,7 +410,7 @@ def get_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E50 files=local_var_files, response_type='GetEmailCampaign', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -429,15 +420,15 @@ def get_email_campaigns(self, **kwargs): # noqa: E501 """Return all your created campaigns # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_campaigns(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_campaigns(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str type: Filter on the type of the campaigns :param str status: Filter on the status of the campaign - :param datetime start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) - :param datetime end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param str start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param str end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) :param int limit: Number of documents per page :param int offset: Index of the first document in the page :return: GetEmailCampaigns @@ -445,7 +436,7 @@ def get_email_campaigns(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_email_campaigns_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_email_campaigns_with_http_info(**kwargs) # noqa: E501 @@ -455,15 +446,15 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 """Return all your created campaigns # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_campaigns_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_campaigns_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str type: Filter on the type of the campaigns :param str status: Filter on the status of the campaign - :param datetime start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) - :param datetime end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param str start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param str end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) :param int limit: Number of documents per page :param int offset: Index of the first document in the page :return: GetEmailCampaigns @@ -472,7 +463,7 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['type', 'status', 'start_date', 'end_date', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -487,8 +478,6 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 1000: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_email_campaigns`, must be a value less than or equal to `1000`") # noqa: E501 collection_formats = {} path_params = {} @@ -515,11 +504,7 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 + ['application/json', 'applications/json']) # noqa: E501 # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -534,7 +519,7 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetEmailCampaigns', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -544,18 +529,18 @@ def send_email_campaign_now(self, campaign_id, **kwargs): # noqa: E501 """Send an email campaign id of the campaign immediately # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_email_campaign_now(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_email_campaign_now(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_email_campaign_now_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.send_email_campaign_now_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -565,11 +550,11 @@ def send_email_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa """Send an email campaign id of the campaign immediately # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_email_campaign_now_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_email_campaign_now_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :return: None If the method is called asynchronously, @@ -577,7 +562,7 @@ def send_email_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -614,10 +599,6 @@ def send_email_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -631,54 +612,54 @@ def send_email_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def send_report(self, campaign_id, send_report, **kwargs): # noqa: E501 + def send_report(self, body, campaign_id, **kwargs): # noqa: E501 """Send the report of a campaigns # noqa: E501 A PDF will be sent to the specified email addresses # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_report(campaign_id, send_report, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_report(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendReport body: Values for send a report (required) :param int campaign_id: Id of the campaign (required) - :param SendReport send_report: Values for send a report (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.send_report_with_http_info(campaign_id, send_report, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.send_report_with_http_info(body, campaign_id, **kwargs) # noqa: E501 else: - (data) = self.send_report_with_http_info(campaign_id, send_report, **kwargs) # noqa: E501 + (data) = self.send_report_with_http_info(body, campaign_id, **kwargs) # noqa: E501 return data - def send_report_with_http_info(self, campaign_id, send_report, **kwargs): # noqa: E501 + def send_report_with_http_info(self, body, campaign_id, **kwargs): # noqa: E501 """Send the report of a campaigns # noqa: E501 A PDF will be sent to the specified email addresses # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_report_with_http_info(campaign_id, send_report, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_report_with_http_info(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendReport body: Values for send a report (required) :param int campaign_id: Id of the campaign (required) - :param SendReport send_report: Values for send a report (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id', 'send_report'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'campaign_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -692,14 +673,14 @@ def send_report_with_http_info(self, campaign_id, send_report, **kwargs): # noq ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `send_report`") # noqa: E501 # verify the required parameter 'campaign_id' is set if ('campaign_id' not in params or params['campaign_id'] is None): raise ValueError("Missing the required parameter `campaign_id` when calling `send_report`") # noqa: E501 - # verify the required parameter 'send_report' is set - if ('send_report' not in params or - params['send_report'] is None): - raise ValueError("Missing the required parameter `send_report` when calling `send_report`") # noqa: E501 collection_formats = {} @@ -715,8 +696,8 @@ def send_report_with_http_info(self, campaign_id, send_report, **kwargs): # noq local_var_files = {} body_params = None - if 'send_report' in params: - body_params = params['send_report'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -738,52 +719,52 @@ def send_report_with_http_info(self, campaign_id, send_report, **kwargs): # noq files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def send_test_email(self, campaign_id, email_to, **kwargs): # noqa: E501 + def send_test_email(self, body, campaign_id, **kwargs): # noqa: E501 """Send an email campaign to your test list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_email(campaign_id, email_to, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_email(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendTestEmail body: (required) :param int campaign_id: Id of the campaign (required) - :param SendTestEmail email_to: (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.send_test_email_with_http_info(campaign_id, email_to, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.send_test_email_with_http_info(body, campaign_id, **kwargs) # noqa: E501 else: - (data) = self.send_test_email_with_http_info(campaign_id, email_to, **kwargs) # noqa: E501 + (data) = self.send_test_email_with_http_info(body, campaign_id, **kwargs) # noqa: E501 return data - def send_test_email_with_http_info(self, campaign_id, email_to, **kwargs): # noqa: E501 + def send_test_email_with_http_info(self, body, campaign_id, **kwargs): # noqa: E501 """Send an email campaign to your test list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_email_with_http_info(campaign_id, email_to, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_email_with_http_info(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendTestEmail body: (required) :param int campaign_id: Id of the campaign (required) - :param SendTestEmail email_to: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id', 'email_to'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'campaign_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -797,14 +778,14 @@ def send_test_email_with_http_info(self, campaign_id, email_to, **kwargs): # no ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `send_test_email`") # noqa: E501 # verify the required parameter 'campaign_id' is set if ('campaign_id' not in params or params['campaign_id'] is None): raise ValueError("Missing the required parameter `campaign_id` when calling `send_test_email`") # noqa: E501 - # verify the required parameter 'email_to' is set - if ('email_to' not in params or - params['email_to'] is None): - raise ValueError("Missing the required parameter `email_to` when calling `send_test_email`") # noqa: E501 collection_formats = {} @@ -820,8 +801,8 @@ def send_test_email_with_http_info(self, campaign_id, email_to, **kwargs): # no local_var_files = {} body_params = None - if 'email_to' in params: - body_params = params['email_to'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -843,52 +824,52 @@ def send_test_email_with_http_info(self, campaign_id, email_to, **kwargs): # no files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_campaign_status(self, campaign_id, status, **kwargs): # noqa: E501 + def update_campaign_status(self, body, campaign_id, **kwargs): # noqa: E501 """Update a campaign status # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_campaign_status(campaign_id, status, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_campaign_status(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateCampaignStatus body: Status of the campaign (required) :param int campaign_id: Id of the campaign (required) - :param UpdateCampaignStatus status: Status of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_campaign_status_with_http_info(campaign_id, status, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_campaign_status_with_http_info(body, campaign_id, **kwargs) # noqa: E501 else: - (data) = self.update_campaign_status_with_http_info(campaign_id, status, **kwargs) # noqa: E501 + (data) = self.update_campaign_status_with_http_info(body, campaign_id, **kwargs) # noqa: E501 return data - def update_campaign_status_with_http_info(self, campaign_id, status, **kwargs): # noqa: E501 + def update_campaign_status_with_http_info(self, body, campaign_id, **kwargs): # noqa: E501 """Update a campaign status # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_campaign_status_with_http_info(campaign_id, status, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_campaign_status_with_http_info(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateCampaignStatus body: Status of the campaign (required) :param int campaign_id: Id of the campaign (required) - :param UpdateCampaignStatus status: Status of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id', 'status'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'campaign_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -902,14 +883,14 @@ def update_campaign_status_with_http_info(self, campaign_id, status, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_campaign_status`") # noqa: E501 # verify the required parameter 'campaign_id' is set if ('campaign_id' not in params or params['campaign_id'] is None): raise ValueError("Missing the required parameter `campaign_id` when calling `update_campaign_status`") # noqa: E501 - # verify the required parameter 'status' is set - if ('status' not in params or - params['status'] is None): - raise ValueError("Missing the required parameter `status` when calling `update_campaign_status`") # noqa: E501 collection_formats = {} @@ -925,8 +906,8 @@ def update_campaign_status_with_http_info(self, campaign_id, status, **kwargs): local_var_files = {} body_params = None - if 'status' in params: - body_params = params['status'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -948,52 +929,52 @@ def update_campaign_status_with_http_info(self, campaign_id, status, **kwargs): files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_email_campaign(self, campaign_id, email_campaign, **kwargs): # noqa: E501 + def update_email_campaign(self, body, campaign_id, **kwargs): # noqa: E501 """Update a campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_email_campaign(campaign_id, email_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_email_campaign(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateEmailCampaign body: Values to update a campaign (required) :param int campaign_id: Id of the campaign (required) - :param UpdateEmailCampaign email_campaign: Values to update a campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_email_campaign_with_http_info(campaign_id, email_campaign, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_email_campaign_with_http_info(body, campaign_id, **kwargs) # noqa: E501 else: - (data) = self.update_email_campaign_with_http_info(campaign_id, email_campaign, **kwargs) # noqa: E501 + (data) = self.update_email_campaign_with_http_info(body, campaign_id, **kwargs) # noqa: E501 return data - def update_email_campaign_with_http_info(self, campaign_id, email_campaign, **kwargs): # noqa: E501 + def update_email_campaign_with_http_info(self, body, campaign_id, **kwargs): # noqa: E501 """Update a campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_email_campaign_with_http_info(campaign_id, email_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_email_campaign_with_http_info(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateEmailCampaign body: Values to update a campaign (required) :param int campaign_id: Id of the campaign (required) - :param UpdateEmailCampaign email_campaign: Values to update a campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id', 'email_campaign'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'campaign_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1007,14 +988,14 @@ def update_email_campaign_with_http_info(self, campaign_id, email_campaign, **kw ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_email_campaign`") # noqa: E501 # verify the required parameter 'campaign_id' is set if ('campaign_id' not in params or params['campaign_id'] is None): raise ValueError("Missing the required parameter `campaign_id` when calling `update_email_campaign`") # noqa: E501 - # verify the required parameter 'email_campaign' is set - if ('email_campaign' not in params or - params['email_campaign'] is None): - raise ValueError("Missing the required parameter `email_campaign` when calling `update_email_campaign`") # noqa: E501 collection_formats = {} @@ -1030,8 +1011,8 @@ def update_email_campaign_with_http_info(self, campaign_id, email_campaign, **kw local_var_files = {} body_params = None - if 'email_campaign' in params: - body_params = params['email_campaign'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -1053,7 +1034,7 @@ def update_email_campaign_with_http_info(self, campaign_id, email_campaign, **kw files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/folders_api.py b/sib_api_v3_sdk/api/folders_api.py index cd5147e..4fbb1ed 100644 --- a/sib_api_v3_sdk/api/folders_api.py +++ b/sib_api_v3_sdk/api/folders_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -33,44 +32,44 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_folder(self, create_folder, **kwargs): # noqa: E501 + def create_folder(self, body, **kwargs): # noqa: E501 """Create a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_folder(create_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_folder(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateUpdateFolder create_folder: Name of the folder (required) + :param async_req bool + :param CreateUpdateFolder body: Name of the folder (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_folder_with_http_info(create_folder, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_folder_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_folder_with_http_info(create_folder, **kwargs) # noqa: E501 + (data) = self.create_folder_with_http_info(body, **kwargs) # noqa: E501 return data - def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 + def create_folder_with_http_info(self, body, **kwargs): # noqa: E501 """Create a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_folder_with_http_info(create_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_folder_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateUpdateFolder create_folder: Name of the folder (required) + :param async_req bool + :param CreateUpdateFolder body: Name of the folder (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ - all_params = ['create_folder'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -84,10 +83,10 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 ) params[key] = val del params['kwargs'] - # verify the required parameter 'create_folder' is set - if ('create_folder' not in params or - params['create_folder'] is None): - raise ValueError("Missing the required parameter `create_folder` when calling `create_folder`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_folder`") # noqa: E501 collection_formats = {} @@ -101,8 +100,8 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'create_folder' in params: - body_params = params['create_folder'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -124,7 +123,7 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -134,18 +133,18 @@ def delete_folder(self, folder_id, **kwargs): # noqa: E501 """Delete a folder (and all its lists) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_folder(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_folder(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_folder_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.delete_folder_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -155,11 +154,11 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Delete a folder (and all its lists) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_folder_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_folder_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, @@ -167,7 +166,7 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -204,10 +203,6 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -221,7 +216,7 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -231,18 +226,18 @@ def get_folder(self, folder_id, **kwargs): # noqa: E501 """Returns folder details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folder_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.get_folder_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -252,11 +247,11 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Returns folder details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, @@ -264,7 +259,7 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -301,10 +296,6 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -318,7 +309,7 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolder', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -328,11 +319,11 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -341,7 +332,7 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -351,11 +342,11 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -365,7 +356,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -384,8 +375,6 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 params['folder_id'] is None): raise ValueError("Missing the required parameter `folder_id` when calling `get_folder_lists`") # noqa: E501 - if 'limit' in params and params['limit'] > 50: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_folder_lists`, must be a value less than or equal to `50`") # noqa: E501 collection_formats = {} path_params = {} @@ -408,10 +397,6 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -425,7 +410,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolderLists', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -435,11 +420,11 @@ def get_folders(self, limit, offset, **kwargs): # noqa: E501 """Get all the folders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folders(limit, offset, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folders(limit, offset, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page (required) :param int offset: Index of the first document of the page (required) :return: GetFolders @@ -447,7 +432,7 @@ def get_folders(self, limit, offset, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folders_with_http_info(limit, offset, **kwargs) # noqa: E501 else: (data) = self.get_folders_with_http_info(limit, offset, **kwargs) # noqa: E501 @@ -457,11 +442,11 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 """Get all the folders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folders_with_http_info(limit, offset, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folders_with_http_info(limit, offset, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page (required) :param int offset: Index of the first document of the page (required) :return: GetFolders @@ -470,7 +455,7 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -493,8 +478,6 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 params['offset'] is None): raise ValueError("Missing the required parameter `offset` when calling `get_folders`") # noqa: E501 - if 'limit' in params and params['limit'] > 50: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_folders`, must be a value less than or equal to `50`") # noqa: E501 collection_formats = {} path_params = {} @@ -515,10 +498,6 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -532,52 +511,52 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolders', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_folder(self, folder_id, update_folder, **kwargs): # noqa: E501 + def update_folder(self, body, folder_id, **kwargs): # noqa: E501 """Update a contact folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_folder(folder_id, update_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_folder(body, folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param CreateUpdateFolder body: Name of the folder (required) :param int folder_id: Id of the folder (required) - :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_folder_with_http_info(folder_id, update_folder, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_folder_with_http_info(body, folder_id, **kwargs) # noqa: E501 else: - (data) = self.update_folder_with_http_info(folder_id, update_folder, **kwargs) # noqa: E501 + (data) = self.update_folder_with_http_info(body, folder_id, **kwargs) # noqa: E501 return data - def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # noqa: E501 + def update_folder_with_http_info(self, body, folder_id, **kwargs): # noqa: E501 """Update a contact folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_folder_with_http_info(folder_id, update_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_folder_with_http_info(body, folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param CreateUpdateFolder body: Name of the folder (required) :param int folder_id: Id of the folder (required) - :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['folder_id', 'update_folder'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'folder_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -591,14 +570,14 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_folder`") # noqa: E501 # verify the required parameter 'folder_id' is set if ('folder_id' not in params or params['folder_id'] is None): raise ValueError("Missing the required parameter `folder_id` when calling `update_folder`") # noqa: E501 - # verify the required parameter 'update_folder' is set - if ('update_folder' not in params or - params['update_folder'] is None): - raise ValueError("Missing the required parameter `update_folder` when calling `update_folder`") # noqa: E501 collection_formats = {} @@ -614,8 +593,8 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n local_var_files = {} body_params = None - if 'update_folder' in params: - body_params = params['update_folder'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -637,7 +616,7 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/lists_api.py b/sib_api_v3_sdk/api/lists_api.py index 7199cb1..fa4c5f7 100644 --- a/sib_api_v3_sdk/api/lists_api.py +++ b/sib_api_v3_sdk/api/lists_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -33,46 +32,46 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def add_contact_to_list(self, list_id, contact_emails, **kwargs): # noqa: E501 + def add_contact_to_list(self, body, list_id, **kwargs): # noqa: E501 """Add existing contacts to a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_contact_to_list(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_contact_to_list(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param AddContactToList body: Emails addresses of the contacts (required) :param int list_id: Id of the list (required) - :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.add_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.add_contact_to_list_with_http_info(body, list_id, **kwargs) # noqa: E501 else: - (data) = self.add_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + (data) = self.add_contact_to_list_with_http_info(body, list_id, **kwargs) # noqa: E501 return data - def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): # noqa: E501 + def add_contact_to_list_with_http_info(self, body, list_id, **kwargs): # noqa: E501 """Add existing contacts to a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_contact_to_list_with_http_info(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_contact_to_list_with_http_info(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param AddContactToList body: Emails addresses of the contacts (required) :param int list_id: Id of the list (required) - :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. """ - all_params = ['list_id', 'contact_emails'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'list_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -86,14 +85,14 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `add_contact_to_list`") # noqa: E501 # verify the required parameter 'list_id' is set if ('list_id' not in params or params['list_id'] is None): raise ValueError("Missing the required parameter `list_id` when calling `add_contact_to_list`") # noqa: E501 - # verify the required parameter 'contact_emails' is set - if ('contact_emails' not in params or - params['contact_emails'] is None): - raise ValueError("Missing the required parameter `contact_emails` when calling `add_contact_to_list`") # noqa: E501 collection_formats = {} @@ -109,8 +108,8 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): local_var_files = {} body_params = None - if 'contact_emails' in params: - body_params = params['contact_emails'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -132,50 +131,50 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): files=local_var_files, response_type='PostContactInfo', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_list(self, create_list, **kwargs): # noqa: E501 + def create_list(self, body, **kwargs): # noqa: E501 """Create a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_list(create_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_list(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateList create_list: Values to create a list (required) + :param async_req bool + :param CreateList body: Values to create a list (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_list_with_http_info(create_list, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_list_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_list_with_http_info(create_list, **kwargs) # noqa: E501 + (data) = self.create_list_with_http_info(body, **kwargs) # noqa: E501 return data - def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 + def create_list_with_http_info(self, body, **kwargs): # noqa: E501 """Create a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_list_with_http_info(create_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_list_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateList create_list: Values to create a list (required) + :param async_req bool + :param CreateList body: Values to create a list (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ - all_params = ['create_list'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -189,10 +188,10 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 ) params[key] = val del params['kwargs'] - # verify the required parameter 'create_list' is set - if ('create_list' not in params or - params['create_list'] is None): - raise ValueError("Missing the required parameter `create_list` when calling `create_list`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_list`") # noqa: E501 collection_formats = {} @@ -206,8 +205,8 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'create_list' in params: - body_params = params['create_list'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -229,7 +228,7 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -239,18 +238,18 @@ def delete_list(self, list_id, **kwargs): # noqa: E501 """Delete a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -260,11 +259,11 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """Delete a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, @@ -272,7 +271,7 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """ all_params = ['list_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -309,10 +308,6 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -326,7 +321,7 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -336,13 +331,13 @@ def get_contacts_from_list(self, list_id, **kwargs): # noqa: E501 """Get the contacts in a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts_from_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts_from_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) - :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. + :param str modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetContacts @@ -350,7 +345,7 @@ def get_contacts_from_list(self, list_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_contacts_from_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.get_contacts_from_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -360,13 +355,13 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 """Get the contacts in a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts_from_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts_from_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) - :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. + :param str modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetContacts @@ -375,7 +370,7 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 """ all_params = ['list_id', 'modified_since', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -394,8 +389,6 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 params['list_id'] is None): raise ValueError("Missing the required parameter `list_id` when calling `get_contacts_from_list`") # noqa: E501 - if 'limit' in params and params['limit'] > 500: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_contacts_from_list`, must be a value less than or equal to `500`") # noqa: E501 collection_formats = {} path_params = {} @@ -420,10 +413,6 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -437,7 +426,7 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 files=local_var_files, response_type='GetContacts', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -447,11 +436,11 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -460,7 +449,7 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -470,11 +459,11 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -484,7 +473,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -503,8 +492,6 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 params['folder_id'] is None): raise ValueError("Missing the required parameter `folder_id` when calling `get_folder_lists`") # noqa: E501 - if 'limit' in params and params['limit'] > 50: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_folder_lists`, must be a value less than or equal to `50`") # noqa: E501 collection_formats = {} path_params = {} @@ -527,10 +514,6 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -544,7 +527,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolderLists', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -554,18 +537,18 @@ def get_list(self, list_id, **kwargs): # noqa: E501 """Get the details of a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.get_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -575,11 +558,11 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """Get the details of a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, @@ -587,7 +570,7 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """ all_params = ['list_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -624,10 +607,6 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -641,7 +620,7 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetExtendedList', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -651,11 +630,11 @@ def get_lists(self, **kwargs): # noqa: E501 """Get all the lists # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_lists(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_lists(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetLists @@ -663,7 +642,7 @@ def get_lists(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_lists_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_lists_with_http_info(**kwargs) # noqa: E501 @@ -673,11 +652,11 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 """Get all the lists # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_lists_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_lists_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetLists @@ -686,7 +665,7 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -701,8 +680,6 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 50: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_lists`, must be a value less than or equal to `50`") # noqa: E501 collection_formats = {} path_params = {} @@ -723,10 +700,6 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -740,52 +713,52 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetLists', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def remove_contact_from_list(self, list_id, contact_emails, **kwargs): # noqa: E501 + def remove_contact_from_list(self, body, list_id, **kwargs): # noqa: E501 """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_from_list(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_contact_from_list(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param RemoveContactFromList body: Emails adresses of the contact (required) :param int list_id: Id of the list (required) - :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.remove_contact_from_list_with_http_info(body, list_id, **kwargs) # noqa: E501 else: - (data) = self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + (data) = self.remove_contact_from_list_with_http_info(body, list_id, **kwargs) # noqa: E501 return data - def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwargs): # noqa: E501 + def remove_contact_from_list_with_http_info(self, body, list_id, **kwargs): # noqa: E501 """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_from_list_with_http_info(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_contact_from_list_with_http_info(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param RemoveContactFromList body: Emails adresses of the contact (required) :param int list_id: Id of the list (required) - :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. """ - all_params = ['list_id', 'contact_emails'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'list_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -799,14 +772,14 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `remove_contact_from_list`") # noqa: E501 # verify the required parameter 'list_id' is set if ('list_id' not in params or params['list_id'] is None): raise ValueError("Missing the required parameter `list_id` when calling `remove_contact_from_list`") # noqa: E501 - # verify the required parameter 'contact_emails' is set - if ('contact_emails' not in params or - params['contact_emails'] is None): - raise ValueError("Missing the required parameter `contact_emails` when calling `remove_contact_from_list`") # noqa: E501 collection_formats = {} @@ -822,8 +795,8 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa local_var_files = {} body_params = None - if 'contact_emails' in params: - body_params = params['contact_emails'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -845,52 +818,52 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa files=local_var_files, response_type='PostContactInfo', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_list(self, list_id, update_list, **kwargs): # noqa: E501 + def update_list(self, body, list_id, **kwargs): # noqa: E501 """Update a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_list(list_id, update_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_list(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateList body: Values to update a list (required) :param int list_id: Id of the list (required) - :param UpdateList update_list: Values to update a list (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_list_with_http_info(list_id, update_list, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_list_with_http_info(body, list_id, **kwargs) # noqa: E501 else: - (data) = self.update_list_with_http_info(list_id, update_list, **kwargs) # noqa: E501 + (data) = self.update_list_with_http_info(body, list_id, **kwargs) # noqa: E501 return data - def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E501 + def update_list_with_http_info(self, body, list_id, **kwargs): # noqa: E501 """Update a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_list_with_http_info(list_id, update_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_list_with_http_info(body, list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateList body: Values to update a list (required) :param int list_id: Id of the list (required) - :param UpdateList update_list: Values to update a list (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['list_id', 'update_list'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'list_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -904,14 +877,14 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_list`") # noqa: E501 # verify the required parameter 'list_id' is set if ('list_id' not in params or params['list_id'] is None): raise ValueError("Missing the required parameter `list_id` when calling `update_list`") # noqa: E501 - # verify the required parameter 'update_list' is set - if ('update_list' not in params or - params['update_list'] is None): - raise ValueError("Missing the required parameter `update_list` when calling `update_list`") # noqa: E501 collection_formats = {} @@ -927,8 +900,8 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E local_var_files = {} body_params = None - if 'update_list' in params: - body_params = params['update_list'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -950,7 +923,7 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/process_api.py b/sib_api_v3_sdk/api/process_api.py index 0026114..ba12e24 100644 --- a/sib_api_v3_sdk/api/process_api.py +++ b/sib_api_v3_sdk/api/process_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -37,18 +36,18 @@ def get_process(self, process_id, **kwargs): # noqa: E501 """Return the informations for a process # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_process(process_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_process(process_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int process_id: Id of the process (required) :return: GetProcess If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_process_with_http_info(process_id, **kwargs) # noqa: E501 else: (data) = self.get_process_with_http_info(process_id, **kwargs) # noqa: E501 @@ -58,11 +57,11 @@ def get_process_with_http_info(self, process_id, **kwargs): # noqa: E501 """Return the informations for a process # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_process_with_http_info(process_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_process_with_http_info(process_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int process_id: Id of the process (required) :return: GetProcess If the method is called asynchronously, @@ -70,7 +69,7 @@ def get_process_with_http_info(self, process_id, **kwargs): # noqa: E501 """ all_params = ['process_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -107,10 +106,6 @@ def get_process_with_http_info(self, process_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -124,7 +119,7 @@ def get_process_with_http_info(self, process_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetProcess', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -134,11 +129,11 @@ def get_processes(self, **kwargs): # noqa: E501 """Return all the processes for your account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_processes(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_processes(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :return: GetProcesses @@ -146,7 +141,7 @@ def get_processes(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_processes_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_processes_with_http_info(**kwargs) # noqa: E501 @@ -156,11 +151,11 @@ def get_processes_with_http_info(self, **kwargs): # noqa: E501 """Return all the processes for your account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_processes_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_processes_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :return: GetProcesses @@ -169,7 +164,7 @@ def get_processes_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -184,8 +179,6 @@ def get_processes_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 50: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_processes`, must be a value less than or equal to `50`") # noqa: E501 collection_formats = {} path_params = {} @@ -206,10 +199,6 @@ def get_processes_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -223,7 +212,7 @@ def get_processes_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetProcesses', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/reseller_api.py b/sib_api_v3_sdk/api/reseller_api.py index fe75727..1e055ef 100644 --- a/sib_api_v3_sdk/api/reseller_api.py +++ b/sib_api_v3_sdk/api/reseller_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -33,46 +32,46 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def add_credits(self, child_auth_key, add_credits, **kwargs): # noqa: E501 + def add_credits(self, body, child_auth_key, **kwargs): # noqa: E501 """Add Email and/or SMS credits to a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_credits(child_auth_key, add_credits, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_credits(body, child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param AddCredits body: Values to post to add credit to a specific child account (required) :param str child_auth_key: auth key of reseller's child (required) - :param AddCredits add_credits: Values to post to add credit to a specific child account (required) :return: RemainingCreditModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.add_credits_with_http_info(child_auth_key, add_credits, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.add_credits_with_http_info(body, child_auth_key, **kwargs) # noqa: E501 else: - (data) = self.add_credits_with_http_info(child_auth_key, add_credits, **kwargs) # noqa: E501 + (data) = self.add_credits_with_http_info(body, child_auth_key, **kwargs) # noqa: E501 return data - def add_credits_with_http_info(self, child_auth_key, add_credits, **kwargs): # noqa: E501 + def add_credits_with_http_info(self, body, child_auth_key, **kwargs): # noqa: E501 """Add Email and/or SMS credits to a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_credits_with_http_info(child_auth_key, add_credits, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_credits_with_http_info(body, child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param AddCredits body: Values to post to add credit to a specific child account (required) :param str child_auth_key: auth key of reseller's child (required) - :param AddCredits add_credits: Values to post to add credit to a specific child account (required) :return: RemainingCreditModel If the method is called asynchronously, returns the request thread. """ - all_params = ['child_auth_key', 'add_credits'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'child_auth_key'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -86,14 +85,14 @@ def add_credits_with_http_info(self, child_auth_key, add_credits, **kwargs): # ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `add_credits`") # noqa: E501 # verify the required parameter 'child_auth_key' is set if ('child_auth_key' not in params or params['child_auth_key'] is None): raise ValueError("Missing the required parameter `child_auth_key` when calling `add_credits`") # noqa: E501 - # verify the required parameter 'add_credits' is set - if ('add_credits' not in params or - params['add_credits'] is None): - raise ValueError("Missing the required parameter `add_credits` when calling `add_credits`") # noqa: E501 collection_formats = {} @@ -109,8 +108,8 @@ def add_credits_with_http_info(self, child_auth_key, add_credits, **kwargs): # local_var_files = {} body_params = None - if 'add_credits' in params: - body_params = params['add_credits'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -132,52 +131,52 @@ def add_credits_with_http_info(self, child_auth_key, add_credits, **kwargs): # files=local_var_files, response_type='RemainingCreditModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def associate_ip_to_child(self, child_auth_key, ip, **kwargs): # noqa: E501 + def associate_ip_to_child(self, body, child_auth_key, **kwargs): # noqa: E501 """Associate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.associate_ip_to_child(child_auth_key, ip, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.associate_ip_to_child(body, child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param ManageIp body: IP to associate (required) :param str child_auth_key: auth key of reseller's child (required) - :param ManageIp ip: IP to associate (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.associate_ip_to_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.associate_ip_to_child_with_http_info(body, child_auth_key, **kwargs) # noqa: E501 else: - (data) = self.associate_ip_to_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 + (data) = self.associate_ip_to_child_with_http_info(body, child_auth_key, **kwargs) # noqa: E501 return data - def associate_ip_to_child_with_http_info(self, child_auth_key, ip, **kwargs): # noqa: E501 + def associate_ip_to_child_with_http_info(self, body, child_auth_key, **kwargs): # noqa: E501 """Associate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.associate_ip_to_child_with_http_info(child_auth_key, ip, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.associate_ip_to_child_with_http_info(body, child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param ManageIp body: IP to associate (required) :param str child_auth_key: auth key of reseller's child (required) - :param ManageIp ip: IP to associate (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['child_auth_key', 'ip'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'child_auth_key'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -191,14 +190,14 @@ def associate_ip_to_child_with_http_info(self, child_auth_key, ip, **kwargs): # ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `associate_ip_to_child`") # noqa: E501 # verify the required parameter 'child_auth_key' is set if ('child_auth_key' not in params or params['child_auth_key'] is None): raise ValueError("Missing the required parameter `child_auth_key` when calling `associate_ip_to_child`") # noqa: E501 - # verify the required parameter 'ip' is set - if ('ip' not in params or - params['ip'] is None): - raise ValueError("Missing the required parameter `ip` when calling `associate_ip_to_child`") # noqa: E501 collection_formats = {} @@ -214,8 +213,8 @@ def associate_ip_to_child_with_http_info(self, child_auth_key, ip, **kwargs): # local_var_files = {} body_params = None - if 'ip' in params: - body_params = params['ip'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -237,7 +236,7 @@ def associate_ip_to_child_with_http_info(self, child_auth_key, ip, **kwargs): # files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -247,18 +246,18 @@ def create_reseller_child(self, **kwargs): # noqa: E501 """Creates a reseller child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_reseller_child(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_reseller_child(async_req=True) >>> result = thread.get() - :param async bool - :param CreateChild reseller_child: reseller child to add + :param async_req bool + :param CreateChild body: reseller child to add :return: CreateReseller If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_reseller_child_with_http_info(**kwargs) # noqa: E501 else: (data) = self.create_reseller_child_with_http_info(**kwargs) # noqa: E501 @@ -268,19 +267,19 @@ def create_reseller_child_with_http_info(self, **kwargs): # noqa: E501 """Creates a reseller child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_reseller_child_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_reseller_child_with_http_info(async_req=True) >>> result = thread.get() - :param async bool - :param CreateChild reseller_child: reseller child to add + :param async_req bool + :param CreateChild body: reseller child to add :return: CreateReseller If the method is called asynchronously, returns the request thread. """ - all_params = ['reseller_child'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -307,8 +306,8 @@ def create_reseller_child_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'reseller_child' in params: - body_params = params['reseller_child'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -330,7 +329,7 @@ def create_reseller_child_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateReseller', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -340,18 +339,18 @@ def delete_reseller_child(self, child_auth_key, **kwargs): # noqa: E501 """Deletes a single reseller child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_reseller_child(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_reseller_child(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_reseller_child_with_http_info(child_auth_key, **kwargs) # noqa: E501 else: (data) = self.delete_reseller_child_with_http_info(child_auth_key, **kwargs) # noqa: E501 @@ -361,11 +360,11 @@ def delete_reseller_child_with_http_info(self, child_auth_key, **kwargs): # noq """Deletes a single reseller child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_reseller_child_with_http_info(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_reseller_child_with_http_info(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: None If the method is called asynchronously, @@ -373,7 +372,7 @@ def delete_reseller_child_with_http_info(self, child_auth_key, **kwargs): # noq """ all_params = ['child_auth_key'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -410,10 +409,6 @@ def delete_reseller_child_with_http_info(self, child_auth_key, **kwargs): # noq header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -427,52 +422,52 @@ def delete_reseller_child_with_http_info(self, child_auth_key, **kwargs): # noq files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def dissociate_ip_from_child(self, child_auth_key, ip, **kwargs): # noqa: E501 + def dissociate_ip_from_child(self, body, child_auth_key, **kwargs): # noqa: E501 """Dissociate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.dissociate_ip_from_child(child_auth_key, ip, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.dissociate_ip_from_child(body, child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param ManageIp body: IP to dissociate (required) :param str child_auth_key: auth key of reseller's child (required) - :param ManageIp ip: IP to dissociate (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.dissociate_ip_from_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.dissociate_ip_from_child_with_http_info(body, child_auth_key, **kwargs) # noqa: E501 else: - (data) = self.dissociate_ip_from_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 + (data) = self.dissociate_ip_from_child_with_http_info(body, child_auth_key, **kwargs) # noqa: E501 return data - def dissociate_ip_from_child_with_http_info(self, child_auth_key, ip, **kwargs): # noqa: E501 + def dissociate_ip_from_child_with_http_info(self, body, child_auth_key, **kwargs): # noqa: E501 """Dissociate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.dissociate_ip_from_child_with_http_info(child_auth_key, ip, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.dissociate_ip_from_child_with_http_info(body, child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param ManageIp body: IP to dissociate (required) :param str child_auth_key: auth key of reseller's child (required) - :param ManageIp ip: IP to dissociate (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['child_auth_key', 'ip'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'child_auth_key'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -486,14 +481,14 @@ def dissociate_ip_from_child_with_http_info(self, child_auth_key, ip, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `dissociate_ip_from_child`") # noqa: E501 # verify the required parameter 'child_auth_key' is set if ('child_auth_key' not in params or params['child_auth_key'] is None): raise ValueError("Missing the required parameter `child_auth_key` when calling `dissociate_ip_from_child`") # noqa: E501 - # verify the required parameter 'ip' is set - if ('ip' not in params or - params['ip'] is None): - raise ValueError("Missing the required parameter `ip` when calling `dissociate_ip_from_child`") # noqa: E501 collection_formats = {} @@ -509,8 +504,8 @@ def dissociate_ip_from_child_with_http_info(self, child_auth_key, ip, **kwargs): local_var_files = {} body_params = None - if 'ip' in params: - body_params = params['ip'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -532,7 +527,7 @@ def dissociate_ip_from_child_with_http_info(self, child_auth_key, ip, **kwargs): files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -542,18 +537,18 @@ def get_child_info(self, child_auth_key, **kwargs): # noqa: E501 """Gets the info about a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_child_info(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_child_info(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: GetChildInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_child_info_with_http_info(child_auth_key, **kwargs) # noqa: E501 else: (data) = self.get_child_info_with_http_info(child_auth_key, **kwargs) # noqa: E501 @@ -563,11 +558,11 @@ def get_child_info_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 """Gets the info about a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_child_info_with_http_info(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_child_info_with_http_info(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: GetChildInfo If the method is called asynchronously, @@ -575,7 +570,7 @@ def get_child_info_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 """ all_params = ['child_auth_key'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -612,10 +607,6 @@ def get_child_info_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -629,48 +620,48 @@ def get_child_info_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 files=local_var_files, response_type='GetChildInfo', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_reseller_childs(self, **kwargs): # noqa: E501 - """Gets the list of all reseller's children accounts # noqa: E501 + """Gets the list of all reseller's children accounts # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_reseller_childs(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_reseller_childs(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetChildrenList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_reseller_childs_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_reseller_childs_with_http_info(**kwargs) # noqa: E501 return data def get_reseller_childs_with_http_info(self, **kwargs): # noqa: E501 - """Gets the list of all reseller's children accounts # noqa: E501 + """Gets the list of all reseller's children accounts # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_reseller_childs_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_reseller_childs_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetChildrenList If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -701,10 +692,6 @@ def get_reseller_childs_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -718,52 +705,52 @@ def get_reseller_childs_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetChildrenList', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def remove_credits(self, child_auth_key, remove_credits, **kwargs): # noqa: E501 + def remove_credits(self, body, child_auth_key, **kwargs): # noqa: E501 """Remove Email and/or SMS credits from a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_credits(child_auth_key, remove_credits, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_credits(body, child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param RemoveCredits body: Values to post to remove email or SMS credits from a specific child account (required) :param str child_auth_key: auth key of reseller's child (required) - :param RemoveCredits remove_credits: Values to post to remove email or SMS credits from a specific child account (required) :return: RemainingCreditModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.remove_credits_with_http_info(child_auth_key, remove_credits, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.remove_credits_with_http_info(body, child_auth_key, **kwargs) # noqa: E501 else: - (data) = self.remove_credits_with_http_info(child_auth_key, remove_credits, **kwargs) # noqa: E501 + (data) = self.remove_credits_with_http_info(body, child_auth_key, **kwargs) # noqa: E501 return data - def remove_credits_with_http_info(self, child_auth_key, remove_credits, **kwargs): # noqa: E501 + def remove_credits_with_http_info(self, body, child_auth_key, **kwargs): # noqa: E501 """Remove Email and/or SMS credits from a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_credits_with_http_info(child_auth_key, remove_credits, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_credits_with_http_info(body, child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param RemoveCredits body: Values to post to remove email or SMS credits from a specific child account (required) :param str child_auth_key: auth key of reseller's child (required) - :param RemoveCredits remove_credits: Values to post to remove email or SMS credits from a specific child account (required) :return: RemainingCreditModel If the method is called asynchronously, returns the request thread. """ - all_params = ['child_auth_key', 'remove_credits'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'child_auth_key'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -777,14 +764,14 @@ def remove_credits_with_http_info(self, child_auth_key, remove_credits, **kwargs ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `remove_credits`") # noqa: E501 # verify the required parameter 'child_auth_key' is set if ('child_auth_key' not in params or params['child_auth_key'] is None): raise ValueError("Missing the required parameter `child_auth_key` when calling `remove_credits`") # noqa: E501 - # verify the required parameter 'remove_credits' is set - if ('remove_credits' not in params or - params['remove_credits'] is None): - raise ValueError("Missing the required parameter `remove_credits` when calling `remove_credits`") # noqa: E501 collection_formats = {} @@ -800,8 +787,8 @@ def remove_credits_with_http_info(self, child_auth_key, remove_credits, **kwargs local_var_files = {} body_params = None - if 'remove_credits' in params: - body_params = params['remove_credits'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -823,52 +810,52 @@ def remove_credits_with_http_info(self, child_auth_key, remove_credits, **kwargs files=local_var_files, response_type='RemainingCreditModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_reseller_child(self, child_auth_key, reseller_child, **kwargs): # noqa: E501 - """Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 + def update_reseller_child(self, body, child_auth_key, **kwargs): # noqa: E501 + """Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_reseller_child(child_auth_key, reseller_child, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_reseller_child(body, child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateChild body: values to update in child profile (required) :param str child_auth_key: auth key of reseller's child (required) - :param UpdateChild reseller_child: values to update in child profile (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_reseller_child_with_http_info(child_auth_key, reseller_child, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_reseller_child_with_http_info(body, child_auth_key, **kwargs) # noqa: E501 else: - (data) = self.update_reseller_child_with_http_info(child_auth_key, reseller_child, **kwargs) # noqa: E501 + (data) = self.update_reseller_child_with_http_info(body, child_auth_key, **kwargs) # noqa: E501 return data - def update_reseller_child_with_http_info(self, child_auth_key, reseller_child, **kwargs): # noqa: E501 - """Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 + def update_reseller_child_with_http_info(self, body, child_auth_key, **kwargs): # noqa: E501 + """Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_reseller_child_with_http_info(child_auth_key, reseller_child, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_reseller_child_with_http_info(body, child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateChild body: values to update in child profile (required) :param str child_auth_key: auth key of reseller's child (required) - :param UpdateChild reseller_child: values to update in child profile (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['child_auth_key', 'reseller_child'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'child_auth_key'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -882,14 +869,14 @@ def update_reseller_child_with_http_info(self, child_auth_key, reseller_child, * ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_reseller_child`") # noqa: E501 # verify the required parameter 'child_auth_key' is set if ('child_auth_key' not in params or params['child_auth_key'] is None): raise ValueError("Missing the required parameter `child_auth_key` when calling `update_reseller_child`") # noqa: E501 - # verify the required parameter 'reseller_child' is set - if ('reseller_child' not in params or - params['reseller_child'] is None): - raise ValueError("Missing the required parameter `reseller_child` when calling `update_reseller_child`") # noqa: E501 collection_formats = {} @@ -905,8 +892,8 @@ def update_reseller_child_with_http_info(self, child_auth_key, reseller_child, * local_var_files = {} body_params = None - if 'reseller_child' in params: - body_params = params['reseller_child'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -928,7 +915,7 @@ def update_reseller_child_with_http_info(self, child_auth_key, reseller_child, * files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/senders_api.py b/sib_api_v3_sdk/api/senders_api.py index 59472be..8616e86 100644 --- a/sib_api_v3_sdk/api/senders_api.py +++ b/sib_api_v3_sdk/api/senders_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -37,18 +36,18 @@ def create_sender(self, **kwargs): # noqa: E501 """Create a new sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_sender(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_sender(async_req=True) >>> result = thread.get() - :param async bool - :param CreateSender sender: sender's name + :param async_req bool + :param CreateSender body: sender's name :return: CreateSenderModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_sender_with_http_info(**kwargs) # noqa: E501 else: (data) = self.create_sender_with_http_info(**kwargs) # noqa: E501 @@ -58,19 +57,19 @@ def create_sender_with_http_info(self, **kwargs): # noqa: E501 """Create a new sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_sender_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_sender_with_http_info(async_req=True) >>> result = thread.get() - :param async bool - :param CreateSender sender: sender's name + :param async_req bool + :param CreateSender body: sender's name :return: CreateSenderModel If the method is called asynchronously, returns the request thread. """ - all_params = ['sender'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -97,8 +96,8 @@ def create_sender_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'sender' in params: - body_params = params['sender'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -120,7 +119,7 @@ def create_sender_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateSenderModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -130,18 +129,18 @@ def delete_sender(self, sender_id, **kwargs): # noqa: E501 """Delete a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_sender(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_sender(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.delete_sender_with_http_info(sender_id, **kwargs) # noqa: E501 @@ -151,11 +150,11 @@ def delete_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Delete a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_sender_with_http_info(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, @@ -163,7 +162,7 @@ def delete_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """ all_params = ['sender_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -200,10 +199,6 @@ def delete_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -217,7 +212,7 @@ def delete_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -227,17 +222,17 @@ def get_ips(self, **kwargs): # noqa: E501 """Return all the dedicated IPs for your account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_ips(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_ips(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetIps If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_ips_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_ips_with_http_info(**kwargs) # noqa: E501 @@ -247,18 +242,18 @@ def get_ips_with_http_info(self, **kwargs): # noqa: E501 """Return all the dedicated IPs for your account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_ips_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_ips_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetIps If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -289,10 +284,6 @@ def get_ips_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -306,7 +297,7 @@ def get_ips_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetIps', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -316,18 +307,18 @@ def get_ips_from_sender(self, sender_id, **kwargs): # noqa: E501 """Return all the dedicated IPs for a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_ips_from_sender(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_ips_from_sender(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_ips_from_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.get_ips_from_sender_with_http_info(sender_id, **kwargs) # noqa: E501 @@ -337,11 +328,11 @@ def get_ips_from_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Return all the dedicated IPs for a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_ips_from_sender_with_http_info(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_ips_from_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, @@ -349,7 +340,7 @@ def get_ips_from_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """ all_params = ['sender_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -386,10 +377,6 @@ def get_ips_from_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -403,7 +390,7 @@ def get_ips_from_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetIpsFromSender', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -413,11 +400,11 @@ def get_senders(self, **kwargs): # noqa: E501 """Get the list of all your senders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_senders(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_senders(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only) :param str domain: Filter your senders for a specific domain :return: GetSendersList @@ -425,7 +412,7 @@ def get_senders(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_senders_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_senders_with_http_info(**kwargs) # noqa: E501 @@ -435,11 +422,11 @@ def get_senders_with_http_info(self, **kwargs): # noqa: E501 """Get the list of all your senders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_senders_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_senders_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only) :param str domain: Filter your senders for a specific domain :return: GetSendersList @@ -448,7 +435,7 @@ def get_senders_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['ip', 'domain'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -483,10 +470,6 @@ def get_senders_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -500,7 +483,7 @@ def get_senders_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSendersList', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -510,19 +493,19 @@ def update_sender(self, sender_id, **kwargs): # noqa: E501 """Update a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sender(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sender(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) - :param UpdateSender sender: sender's name + :param UpdateSender body: sender's name :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.update_sender_with_http_info(sender_id, **kwargs) # noqa: E501 @@ -532,20 +515,20 @@ def update_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Update a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sender_with_http_info(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) - :param UpdateSender sender: sender's name + :param UpdateSender body: sender's name :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sender_id', 'sender'] # noqa: E501 - all_params.append('async') + all_params = ['sender_id', 'body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -578,8 +561,8 @@ def update_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'sender' in params: - body_params = params['sender'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -601,7 +584,7 @@ def update_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/sms_campaigns_api.py b/sib_api_v3_sdk/api/sms_campaigns_api.py index a15001d..56f45fe 100644 --- a/sib_api_v3_sdk/api/sms_campaigns_api.py +++ b/sib_api_v3_sdk/api/sms_campaigns_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -33,44 +32,44 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_sms_campaign(self, create_sms_campaign, **kwargs): # noqa: E501 + def create_sms_campaign(self, body, **kwargs): # noqa: E501 """Creates an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_sms_campaign(create_sms_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_sms_campaign(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateSmsCampaign create_sms_campaign: Values to create an SMS Campaign (required) + :param async_req bool + :param CreateSmsCampaign body: Values to create an SMS Campaign (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_sms_campaign_with_http_info(create_sms_campaign, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_sms_campaign_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_sms_campaign_with_http_info(create_sms_campaign, **kwargs) # noqa: E501 + (data) = self.create_sms_campaign_with_http_info(body, **kwargs) # noqa: E501 return data - def create_sms_campaign_with_http_info(self, create_sms_campaign, **kwargs): # noqa: E501 + def create_sms_campaign_with_http_info(self, body, **kwargs): # noqa: E501 """Creates an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_sms_campaign_with_http_info(create_sms_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_sms_campaign_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateSmsCampaign create_sms_campaign: Values to create an SMS Campaign (required) + :param async_req bool + :param CreateSmsCampaign body: Values to create an SMS Campaign (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ - all_params = ['create_sms_campaign'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -84,10 +83,10 @@ def create_sms_campaign_with_http_info(self, create_sms_campaign, **kwargs): # ) params[key] = val del params['kwargs'] - # verify the required parameter 'create_sms_campaign' is set - if ('create_sms_campaign' not in params or - params['create_sms_campaign'] is None): - raise ValueError("Missing the required parameter `create_sms_campaign` when calling `create_sms_campaign`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_sms_campaign`") # noqa: E501 collection_formats = {} @@ -101,8 +100,8 @@ def create_sms_campaign_with_http_info(self, create_sms_campaign, **kwargs): # local_var_files = {} body_params = None - if 'create_sms_campaign' in params: - body_params = params['create_sms_campaign'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -124,7 +123,7 @@ def create_sms_campaign_with_http_info(self, create_sms_campaign, **kwargs): # files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -134,18 +133,18 @@ def delete_sms_campaign(self, campaign_id, **kwargs): # noqa: E501 """Delete the SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_sms_campaign(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_sms_campaign(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the SMS campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_sms_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.delete_sms_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -155,11 +154,11 @@ def delete_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E5 """Delete the SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_sms_campaign_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_sms_campaign_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the SMS campaign (required) :return: None If the method is called asynchronously, @@ -167,7 +166,7 @@ def delete_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E5 """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -204,10 +203,6 @@ def delete_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E5 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -221,7 +216,7 @@ def delete_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E5 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -231,18 +226,18 @@ def get_sms_campaign(self, campaign_id, **kwargs): # noqa: E501 """Get an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_campaign(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_campaign(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the SMS campaign (required) :return: GetSmsCampaign If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_sms_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.get_sms_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -252,11 +247,11 @@ def get_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E501 """Get an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_campaign_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_campaign_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the SMS campaign (required) :return: GetSmsCampaign If the method is called asynchronously, @@ -264,7 +259,7 @@ def get_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E501 """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -301,10 +296,6 @@ def get_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -318,7 +309,7 @@ def get_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSmsCampaign', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -328,14 +319,14 @@ def get_sms_campaigns(self, **kwargs): # noqa: E501 """Returns the informations for all your created SMS campaigns # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_campaigns(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_campaigns(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str status: Status of campaign. - :param datetime start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) - :param datetime end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param str start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param str end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) :param int limit: Number limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :return: GetSmsCampaigns @@ -343,7 +334,7 @@ def get_sms_campaigns(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_sms_campaigns_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_sms_campaigns_with_http_info(**kwargs) # noqa: E501 @@ -353,14 +344,14 @@ def get_sms_campaigns_with_http_info(self, **kwargs): # noqa: E501 """Returns the informations for all your created SMS campaigns # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_campaigns_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_campaigns_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str status: Status of campaign. - :param datetime start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) - :param datetime end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param str start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param str end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) :param int limit: Number limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :return: GetSmsCampaigns @@ -369,7 +360,7 @@ def get_sms_campaigns_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['status', 'start_date', 'end_date', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -384,8 +375,6 @@ def get_sms_campaigns_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 1000: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_sms_campaigns`, must be a value less than or equal to `1000`") # noqa: E501 collection_formats = {} path_params = {} @@ -412,10 +401,6 @@ def get_sms_campaigns_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -429,7 +414,7 @@ def get_sms_campaigns_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSmsCampaigns', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -440,19 +425,19 @@ def request_sms_recipient_export(self, campaign_id, **kwargs): # noqa: E501 It returns the background process ID which on completion calls the notify URL that you have set in the input. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.request_sms_recipient_export(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.request_sms_recipient_export(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) - :param RequestSmsRecipientExport recipient_export: Values to send for a recipient export request + :param RequestSmsRecipientExport body: Values to send for a recipient export request :return: CreatedProcessId If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.request_sms_recipient_export_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.request_sms_recipient_export_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -463,20 +448,20 @@ def request_sms_recipient_export_with_http_info(self, campaign_id, **kwargs): # It returns the background process ID which on completion calls the notify URL that you have set in the input. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.request_sms_recipient_export_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.request_sms_recipient_export_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) - :param RequestSmsRecipientExport recipient_export: Values to send for a recipient export request + :param RequestSmsRecipientExport body: Values to send for a recipient export request :return: CreatedProcessId If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id', 'recipient_export'] # noqa: E501 - all_params.append('async') + all_params = ['campaign_id', 'body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -509,8 +494,8 @@ def request_sms_recipient_export_with_http_info(self, campaign_id, **kwargs): # local_var_files = {} body_params = None - if 'recipient_export' in params: - body_params = params['recipient_export'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -532,7 +517,7 @@ def request_sms_recipient_export_with_http_info(self, campaign_id, **kwargs): # files=local_var_files, response_type='CreatedProcessId', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -542,18 +527,18 @@ def send_sms_campaign_now(self, campaign_id, **kwargs): # noqa: E501 """Send your SMS campaign immediately # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_sms_campaign_now(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_sms_campaign_now(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_sms_campaign_now_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.send_sms_campaign_now_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -563,11 +548,11 @@ def send_sms_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa: """Send your SMS campaign immediately # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_sms_campaign_now_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_sms_campaign_now_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, @@ -575,7 +560,7 @@ def send_sms_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa: """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -612,10 +597,6 @@ def send_sms_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa: header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -629,54 +610,54 @@ def send_sms_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa: files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def send_sms_report(self, campaign_id, send_report, **kwargs): # noqa: E501 + def send_sms_report(self, body, campaign_id, **kwargs): # noqa: E501 """Send report of SMS campaigns # noqa: E501 Send report of Sent and Archived campaign, to the specified email addresses, with respective data and a pdf attachment in detail. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_sms_report(campaign_id, send_report, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_sms_report(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendReport body: Values for send a report (required) :param int campaign_id: id of the campaign (required) - :param SendReport send_report: Values for send a report (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.send_sms_report_with_http_info(campaign_id, send_report, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.send_sms_report_with_http_info(body, campaign_id, **kwargs) # noqa: E501 else: - (data) = self.send_sms_report_with_http_info(campaign_id, send_report, **kwargs) # noqa: E501 + (data) = self.send_sms_report_with_http_info(body, campaign_id, **kwargs) # noqa: E501 return data - def send_sms_report_with_http_info(self, campaign_id, send_report, **kwargs): # noqa: E501 + def send_sms_report_with_http_info(self, body, campaign_id, **kwargs): # noqa: E501 """Send report of SMS campaigns # noqa: E501 Send report of Sent and Archived campaign, to the specified email addresses, with respective data and a pdf attachment in detail. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_sms_report_with_http_info(campaign_id, send_report, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_sms_report_with_http_info(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendReport body: Values for send a report (required) :param int campaign_id: id of the campaign (required) - :param SendReport send_report: Values for send a report (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id', 'send_report'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'campaign_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -690,14 +671,14 @@ def send_sms_report_with_http_info(self, campaign_id, send_report, **kwargs): # ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `send_sms_report`") # noqa: E501 # verify the required parameter 'campaign_id' is set if ('campaign_id' not in params or params['campaign_id'] is None): raise ValueError("Missing the required parameter `campaign_id` when calling `send_sms_report`") # noqa: E501 - # verify the required parameter 'send_report' is set - if ('send_report' not in params or - params['send_report'] is None): - raise ValueError("Missing the required parameter `send_report` when calling `send_sms_report`") # noqa: E501 collection_formats = {} @@ -713,8 +694,8 @@ def send_sms_report_with_http_info(self, campaign_id, send_report, **kwargs): # local_var_files = {} body_params = None - if 'send_report' in params: - body_params = params['send_report'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -736,52 +717,52 @@ def send_sms_report_with_http_info(self, campaign_id, send_report, **kwargs): # files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def send_test_sms(self, campaign_id, phone_number, **kwargs): # noqa: E501 + def send_test_sms(self, body, campaign_id, **kwargs): # noqa: E501 """Send an SMS # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_sms(campaign_id, phone_number, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_sms(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendTestSms body: Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted (required) :param int campaign_id: Id of the SMS campaign (required) - :param SendTestSms phone_number: Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.send_test_sms_with_http_info(campaign_id, phone_number, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.send_test_sms_with_http_info(body, campaign_id, **kwargs) # noqa: E501 else: - (data) = self.send_test_sms_with_http_info(campaign_id, phone_number, **kwargs) # noqa: E501 + (data) = self.send_test_sms_with_http_info(body, campaign_id, **kwargs) # noqa: E501 return data - def send_test_sms_with_http_info(self, campaign_id, phone_number, **kwargs): # noqa: E501 + def send_test_sms_with_http_info(self, body, campaign_id, **kwargs): # noqa: E501 """Send an SMS # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_sms_with_http_info(campaign_id, phone_number, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_sms_with_http_info(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendTestSms body: Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted (required) :param int campaign_id: Id of the SMS campaign (required) - :param SendTestSms phone_number: Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id', 'phone_number'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'campaign_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -795,14 +776,14 @@ def send_test_sms_with_http_info(self, campaign_id, phone_number, **kwargs): # ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `send_test_sms`") # noqa: E501 # verify the required parameter 'campaign_id' is set if ('campaign_id' not in params or params['campaign_id'] is None): raise ValueError("Missing the required parameter `campaign_id` when calling `send_test_sms`") # noqa: E501 - # verify the required parameter 'phone_number' is set - if ('phone_number' not in params or - params['phone_number'] is None): - raise ValueError("Missing the required parameter `phone_number` when calling `send_test_sms`") # noqa: E501 collection_formats = {} @@ -818,8 +799,8 @@ def send_test_sms_with_http_info(self, campaign_id, phone_number, **kwargs): # local_var_files = {} body_params = None - if 'phone_number' in params: - body_params = params['phone_number'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -841,52 +822,52 @@ def send_test_sms_with_http_info(self, campaign_id, phone_number, **kwargs): # files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_sms_campaign(self, campaign_id, update_sms_campaign, **kwargs): # noqa: E501 + def update_sms_campaign(self, body, campaign_id, **kwargs): # noqa: E501 """Updates an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sms_campaign(campaign_id, update_sms_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sms_campaign(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateSmsCampaign body: Values to update an SMS Campaign (required) :param int campaign_id: id of the SMS campaign (required) - :param UpdateSmsCampaign update_sms_campaign: Values to update an SMS Campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_sms_campaign_with_http_info(campaign_id, update_sms_campaign, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_sms_campaign_with_http_info(body, campaign_id, **kwargs) # noqa: E501 else: - (data) = self.update_sms_campaign_with_http_info(campaign_id, update_sms_campaign, **kwargs) # noqa: E501 + (data) = self.update_sms_campaign_with_http_info(body, campaign_id, **kwargs) # noqa: E501 return data - def update_sms_campaign_with_http_info(self, campaign_id, update_sms_campaign, **kwargs): # noqa: E501 + def update_sms_campaign_with_http_info(self, body, campaign_id, **kwargs): # noqa: E501 """Updates an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sms_campaign_with_http_info(campaign_id, update_sms_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sms_campaign_with_http_info(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateSmsCampaign body: Values to update an SMS Campaign (required) :param int campaign_id: id of the SMS campaign (required) - :param UpdateSmsCampaign update_sms_campaign: Values to update an SMS Campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id', 'update_sms_campaign'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'campaign_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -900,14 +881,14 @@ def update_sms_campaign_with_http_info(self, campaign_id, update_sms_campaign, * ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_sms_campaign`") # noqa: E501 # verify the required parameter 'campaign_id' is set if ('campaign_id' not in params or params['campaign_id'] is None): raise ValueError("Missing the required parameter `campaign_id` when calling `update_sms_campaign`") # noqa: E501 - # verify the required parameter 'update_sms_campaign' is set - if ('update_sms_campaign' not in params or - params['update_sms_campaign'] is None): - raise ValueError("Missing the required parameter `update_sms_campaign` when calling `update_sms_campaign`") # noqa: E501 collection_formats = {} @@ -923,8 +904,8 @@ def update_sms_campaign_with_http_info(self, campaign_id, update_sms_campaign, * local_var_files = {} body_params = None - if 'update_sms_campaign' in params: - body_params = params['update_sms_campaign'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -946,52 +927,52 @@ def update_sms_campaign_with_http_info(self, campaign_id, update_sms_campaign, * files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_sms_campaign_status(self, campaign_id, status, **kwargs): # noqa: E501 + def update_sms_campaign_status(self, body, campaign_id, **kwargs): # noqa: E501 """Update the campaign status # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sms_campaign_status(campaign_id, status, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sms_campaign_status(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateCampaignStatus body: Status of the campaign. (required) :param int campaign_id: id of the campaign (required) - :param UpdateCampaignStatus status: Status of the campaign. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_sms_campaign_status_with_http_info(campaign_id, status, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_sms_campaign_status_with_http_info(body, campaign_id, **kwargs) # noqa: E501 else: - (data) = self.update_sms_campaign_status_with_http_info(campaign_id, status, **kwargs) # noqa: E501 + (data) = self.update_sms_campaign_status_with_http_info(body, campaign_id, **kwargs) # noqa: E501 return data - def update_sms_campaign_status_with_http_info(self, campaign_id, status, **kwargs): # noqa: E501 + def update_sms_campaign_status_with_http_info(self, body, campaign_id, **kwargs): # noqa: E501 """Update the campaign status # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sms_campaign_status_with_http_info(campaign_id, status, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sms_campaign_status_with_http_info(body, campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateCampaignStatus body: Status of the campaign. (required) :param int campaign_id: id of the campaign (required) - :param UpdateCampaignStatus status: Status of the campaign. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id', 'status'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'campaign_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1005,14 +986,14 @@ def update_sms_campaign_status_with_http_info(self, campaign_id, status, **kwarg ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_sms_campaign_status`") # noqa: E501 # verify the required parameter 'campaign_id' is set if ('campaign_id' not in params or params['campaign_id'] is None): raise ValueError("Missing the required parameter `campaign_id` when calling `update_sms_campaign_status`") # noqa: E501 - # verify the required parameter 'status' is set - if ('status' not in params or - params['status'] is None): - raise ValueError("Missing the required parameter `status` when calling `update_sms_campaign_status`") # noqa: E501 collection_formats = {} @@ -1028,8 +1009,8 @@ def update_sms_campaign_status_with_http_info(self, campaign_id, status, **kwarg local_var_files = {} body_params = None - if 'status' in params: - body_params = params['status'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -1051,7 +1032,7 @@ def update_sms_campaign_status_with_http_info(self, campaign_id, status, **kwarg files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/smtp_api.py b/sib_api_v3_sdk/api/smtp_api.py index 529ce6a..8b7ddbd 100644 --- a/sib_api_v3_sdk/api/smtp_api.py +++ b/sib_api_v3_sdk/api/smtp_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -33,44 +32,44 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_smtp_template(self, smtp_template, **kwargs): # noqa: E501 + def create_smtp_template(self, body, **kwargs): # noqa: E501 """Create an smtp template # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_smtp_template(smtp_template, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_smtp_template(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateSmtpTemplate smtp_template: values to update in smtp template (required) + :param async_req bool + :param CreateSmtpTemplate body: values to update in smtp template (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_smtp_template_with_http_info(smtp_template, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_smtp_template_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_smtp_template_with_http_info(smtp_template, **kwargs) # noqa: E501 + (data) = self.create_smtp_template_with_http_info(body, **kwargs) # noqa: E501 return data - def create_smtp_template_with_http_info(self, smtp_template, **kwargs): # noqa: E501 + def create_smtp_template_with_http_info(self, body, **kwargs): # noqa: E501 """Create an smtp template # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_smtp_template_with_http_info(smtp_template, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_smtp_template_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateSmtpTemplate smtp_template: values to update in smtp template (required) + :param async_req bool + :param CreateSmtpTemplate body: values to update in smtp template (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ - all_params = ['smtp_template'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -84,10 +83,10 @@ def create_smtp_template_with_http_info(self, smtp_template, **kwargs): # noqa: ) params[key] = val del params['kwargs'] - # verify the required parameter 'smtp_template' is set - if ('smtp_template' not in params or - params['smtp_template'] is None): - raise ValueError("Missing the required parameter `smtp_template` when calling `create_smtp_template`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_smtp_template`") # noqa: E501 collection_formats = {} @@ -101,8 +100,8 @@ def create_smtp_template_with_http_info(self, smtp_template, **kwargs): # noqa: local_var_files = {} body_params = None - if 'smtp_template' in params: - body_params = params['smtp_template'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -124,7 +123,7 @@ def create_smtp_template_with_http_info(self, smtp_template, **kwargs): # noqa: files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -135,18 +134,18 @@ def delete_hardbounces(self, **kwargs): # noqa: E501 Delete hardbounces. To use carefully (e.g. in case of temporary ISP failures) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_hardbounces(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_hardbounces(async_req=True) >>> result = thread.get() - :param async bool - :param DeleteHardbounces delete_hardbounces: values to delete hardbounces + :param async_req bool + :param DeleteHardbounces body: values to delete hardbounces :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_hardbounces_with_http_info(**kwargs) # noqa: E501 else: (data) = self.delete_hardbounces_with_http_info(**kwargs) # noqa: E501 @@ -157,19 +156,19 @@ def delete_hardbounces_with_http_info(self, **kwargs): # noqa: E501 Delete hardbounces. To use carefully (e.g. in case of temporary ISP failures) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_hardbounces_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_hardbounces_with_http_info(async_req=True) >>> result = thread.get() - :param async bool - :param DeleteHardbounces delete_hardbounces: values to delete hardbounces + :param async_req bool + :param DeleteHardbounces body: values to delete hardbounces :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['delete_hardbounces'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -196,8 +195,8 @@ def delete_hardbounces_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'delete_hardbounces' in params: - body_params = params['delete_hardbounces'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -219,7 +218,7 @@ def delete_hardbounces_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -229,18 +228,18 @@ def delete_smtp_template(self, template_id, **kwargs): # noqa: E501 """Delete an inactive smtp template # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_smtp_template(template_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_smtp_template(template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: id of the template (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_smtp_template_with_http_info(template_id, **kwargs) # noqa: E501 else: (data) = self.delete_smtp_template_with_http_info(template_id, **kwargs) # noqa: E501 @@ -250,11 +249,11 @@ def delete_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E """Delete an inactive smtp template # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_smtp_template_with_http_info(template_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_smtp_template_with_http_info(template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: id of the template (required) :return: None If the method is called asynchronously, @@ -262,7 +261,7 @@ def delete_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E """ all_params = ['template_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -299,10 +298,6 @@ def delete_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -316,7 +311,7 @@ def delete_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -326,11 +321,11 @@ def get_aggregated_smtp_report(self, **kwargs): # noqa: E501 """Get your SMTP activity aggregated over a period of time # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_aggregated_smtp_report(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_aggregated_smtp_report(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate :param str end_date: Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate :param int days: Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' @@ -340,7 +335,7 @@ def get_aggregated_smtp_report(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_aggregated_smtp_report_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_aggregated_smtp_report_with_http_info(**kwargs) # noqa: E501 @@ -350,11 +345,11 @@ def get_aggregated_smtp_report_with_http_info(self, **kwargs): # noqa: E501 """Get your SMTP activity aggregated over a period of time # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_aggregated_smtp_report_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_aggregated_smtp_report_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate :param str end_date: Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate :param int days: Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' @@ -365,7 +360,7 @@ def get_aggregated_smtp_report_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['start_date', 'end_date', 'days', 'tag'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -404,10 +399,6 @@ def get_aggregated_smtp_report_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -421,7 +412,7 @@ def get_aggregated_smtp_report_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetAggregatedReport', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -431,11 +422,11 @@ def get_email_event_report(self, **kwargs): # noqa: E501 """Get all your SMTP activity (unaggregated events) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_event_report(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_event_report(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate @@ -451,7 +442,7 @@ def get_email_event_report(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_email_event_report_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_email_event_report_with_http_info(**kwargs) # noqa: E501 @@ -461,11 +452,11 @@ def get_email_event_report_with_http_info(self, **kwargs): # noqa: E501 """Get all your SMTP activity (unaggregated events) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_event_report_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_event_report_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate @@ -482,7 +473,7 @@ def get_email_event_report_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset', 'start_date', 'end_date', 'days', 'email', 'event', 'tags', 'message_id', 'template_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -497,8 +488,6 @@ def get_email_event_report_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 100: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_email_event_report`, must be a value less than or equal to `100`") # noqa: E501 collection_formats = {} path_params = {} @@ -535,10 +524,6 @@ def get_email_event_report_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -552,7 +537,7 @@ def get_email_event_report_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetEmailEventReport', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -562,11 +547,11 @@ def get_smtp_report(self, **kwargs): # noqa: E501 """Get your SMTP activity aggregated per day # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_report(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_report(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents returned per page :param int offset: Index of the first document on the page :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) @@ -578,7 +563,7 @@ def get_smtp_report(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_smtp_report_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_smtp_report_with_http_info(**kwargs) # noqa: E501 @@ -588,11 +573,11 @@ def get_smtp_report_with_http_info(self, **kwargs): # noqa: E501 """Get your SMTP activity aggregated per day # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_report_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_report_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents returned per page :param int offset: Index of the first document on the page :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) @@ -605,7 +590,7 @@ def get_smtp_report_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset', 'start_date', 'end_date', 'days', 'tag'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -620,8 +605,6 @@ def get_smtp_report_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 100: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_smtp_report`, must be a value less than or equal to `100`") # noqa: E501 collection_formats = {} path_params = {} @@ -650,10 +633,6 @@ def get_smtp_report_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -667,7 +646,7 @@ def get_smtp_report_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetReports', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -677,18 +656,18 @@ def get_smtp_template(self, template_id, **kwargs): # noqa: E501 """Returns the template informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_template(template_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_template(template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: id of the template (required) :return: GetSmtpTemplateOverview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_smtp_template_with_http_info(template_id, **kwargs) # noqa: E501 else: (data) = self.get_smtp_template_with_http_info(template_id, **kwargs) # noqa: E501 @@ -698,11 +677,11 @@ def get_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E501 """Returns the template informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_template_with_http_info(template_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_template_with_http_info(template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: id of the template (required) :return: GetSmtpTemplateOverview If the method is called asynchronously, @@ -710,7 +689,7 @@ def get_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E501 """ all_params = ['template_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -747,10 +726,6 @@ def get_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -764,7 +739,7 @@ def get_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSmtpTemplateOverview', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -774,11 +749,11 @@ def get_smtp_templates(self, **kwargs): # noqa: E501 """Get the list of SMTP templates # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_templates(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_templates(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param bool template_status: Filter on the status of the template. Active = true, inactive = false :param int limit: Number of documents returned per page :param int offset: Index of the first document in the page @@ -787,7 +762,7 @@ def get_smtp_templates(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_smtp_templates_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_smtp_templates_with_http_info(**kwargs) # noqa: E501 @@ -797,11 +772,11 @@ def get_smtp_templates_with_http_info(self, **kwargs): # noqa: E501 """Get the list of SMTP templates # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_templates_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_templates_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param bool template_status: Filter on the status of the template. Active = true, inactive = false :param int limit: Number of documents returned per page :param int offset: Index of the first document in the page @@ -811,7 +786,7 @@ def get_smtp_templates_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['template_status', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -826,8 +801,6 @@ def get_smtp_templates_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 1000: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_smtp_templates`, must be a value less than or equal to `1000`") # noqa: E501 collection_formats = {} path_params = {} @@ -850,10 +823,6 @@ def get_smtp_templates_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -867,54 +836,54 @@ def get_smtp_templates_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSmtpTemplates', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def send_template(self, template_id, send_email, **kwargs): # noqa: E501 + def send_template(self, body, template_id, **kwargs): # noqa: E501 """Send a template # noqa: E501 This endpoint is deprecated. Prefer v3/smtp/email instead. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_template(template_id, send_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_template(body, template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendEmail body: (required) :param int template_id: Id of the template (required) - :param SendEmail send_email: (required) :return: SendTemplateEmail If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.send_template_with_http_info(template_id, send_email, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.send_template_with_http_info(body, template_id, **kwargs) # noqa: E501 else: - (data) = self.send_template_with_http_info(template_id, send_email, **kwargs) # noqa: E501 + (data) = self.send_template_with_http_info(body, template_id, **kwargs) # noqa: E501 return data - def send_template_with_http_info(self, template_id, send_email, **kwargs): # noqa: E501 + def send_template_with_http_info(self, body, template_id, **kwargs): # noqa: E501 """Send a template # noqa: E501 This endpoint is deprecated. Prefer v3/smtp/email instead. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_template_with_http_info(template_id, send_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_template_with_http_info(body, template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendEmail body: (required) :param int template_id: Id of the template (required) - :param SendEmail send_email: (required) :return: SendTemplateEmail If the method is called asynchronously, returns the request thread. """ - all_params = ['template_id', 'send_email'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'template_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -928,14 +897,14 @@ def send_template_with_http_info(self, template_id, send_email, **kwargs): # no ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `send_template`") # noqa: E501 # verify the required parameter 'template_id' is set if ('template_id' not in params or params['template_id'] is None): raise ValueError("Missing the required parameter `template_id` when calling `send_template`") # noqa: E501 - # verify the required parameter 'send_email' is set - if ('send_email' not in params or - params['send_email'] is None): - raise ValueError("Missing the required parameter `send_email` when calling `send_template`") # noqa: E501 collection_formats = {} @@ -951,8 +920,8 @@ def send_template_with_http_info(self, template_id, send_email, **kwargs): # no local_var_files = {} body_params = None - if 'send_email' in params: - body_params = params['send_email'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -974,52 +943,52 @@ def send_template_with_http_info(self, template_id, send_email, **kwargs): # no files=local_var_files, response_type='SendTemplateEmail', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def send_test_template(self, template_id, send_test_email, **kwargs): # noqa: E501 + def send_test_template(self, body, template_id, **kwargs): # noqa: E501 """Send a template to your test list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_template(template_id, send_test_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_template(body, template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendTestEmail body: (required) :param int template_id: Id of the template (required) - :param SendTestEmail send_test_email: (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.send_test_template_with_http_info(template_id, send_test_email, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.send_test_template_with_http_info(body, template_id, **kwargs) # noqa: E501 else: - (data) = self.send_test_template_with_http_info(template_id, send_test_email, **kwargs) # noqa: E501 + (data) = self.send_test_template_with_http_info(body, template_id, **kwargs) # noqa: E501 return data - def send_test_template_with_http_info(self, template_id, send_test_email, **kwargs): # noqa: E501 + def send_test_template_with_http_info(self, body, template_id, **kwargs): # noqa: E501 """Send a template to your test list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_template_with_http_info(template_id, send_test_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_template_with_http_info(body, template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param SendTestEmail body: (required) :param int template_id: Id of the template (required) - :param SendTestEmail send_test_email: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['template_id', 'send_test_email'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'template_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1033,14 +1002,14 @@ def send_test_template_with_http_info(self, template_id, send_test_email, **kwar ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `send_test_template`") # noqa: E501 # verify the required parameter 'template_id' is set if ('template_id' not in params or params['template_id'] is None): raise ValueError("Missing the required parameter `template_id` when calling `send_test_template`") # noqa: E501 - # verify the required parameter 'send_test_email' is set - if ('send_test_email' not in params or - params['send_test_email'] is None): - raise ValueError("Missing the required parameter `send_test_email` when calling `send_test_template`") # noqa: E501 collection_formats = {} @@ -1056,8 +1025,8 @@ def send_test_template_with_http_info(self, template_id, send_test_email, **kwar local_var_files = {} body_params = None - if 'send_test_email' in params: - body_params = params['send_test_email'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -1079,50 +1048,50 @@ def send_test_template_with_http_info(self, template_id, send_test_email, **kwar files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def send_transac_email(self, send_smtp_email, **kwargs): # noqa: E501 + def send_transac_email(self, body, **kwargs): # noqa: E501 """Send a transactional email # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_transac_email(send_smtp_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_transac_email(body, async_req=True) >>> result = thread.get() - :param async bool - :param SendSmtpEmail send_smtp_email: Values to send a transactional email (required) + :param async_req bool + :param SendSmtpEmail body: Values to send a transactional email (required) :return: CreateSmtpEmail If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.send_transac_email_with_http_info(send_smtp_email, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.send_transac_email_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.send_transac_email_with_http_info(send_smtp_email, **kwargs) # noqa: E501 + (data) = self.send_transac_email_with_http_info(body, **kwargs) # noqa: E501 return data - def send_transac_email_with_http_info(self, send_smtp_email, **kwargs): # noqa: E501 + def send_transac_email_with_http_info(self, body, **kwargs): # noqa: E501 """Send a transactional email # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_transac_email_with_http_info(send_smtp_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_transac_email_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param SendSmtpEmail send_smtp_email: Values to send a transactional email (required) + :param async_req bool + :param SendSmtpEmail body: Values to send a transactional email (required) :return: CreateSmtpEmail If the method is called asynchronously, returns the request thread. """ - all_params = ['send_smtp_email'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1136,10 +1105,10 @@ def send_transac_email_with_http_info(self, send_smtp_email, **kwargs): # noqa: ) params[key] = val del params['kwargs'] - # verify the required parameter 'send_smtp_email' is set - if ('send_smtp_email' not in params or - params['send_smtp_email'] is None): - raise ValueError("Missing the required parameter `send_smtp_email` when calling `send_transac_email`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `send_transac_email`") # noqa: E501 collection_formats = {} @@ -1153,8 +1122,8 @@ def send_transac_email_with_http_info(self, send_smtp_email, **kwargs): # noqa: local_var_files = {} body_params = None - if 'send_smtp_email' in params: - body_params = params['send_smtp_email'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -1176,52 +1145,52 @@ def send_transac_email_with_http_info(self, send_smtp_email, **kwargs): # noqa: files=local_var_files, response_type='CreateSmtpEmail', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_smtp_template(self, template_id, smtp_template, **kwargs): # noqa: E501 + def update_smtp_template(self, body, template_id, **kwargs): # noqa: E501 """Updates an smtp templates # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_smtp_template(template_id, smtp_template, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_smtp_template(body, template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateSmtpTemplate body: values to update in smtp template (required) :param int template_id: id of the template (required) - :param UpdateSmtpTemplate smtp_template: values to update in smtp template (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_smtp_template_with_http_info(template_id, smtp_template, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_smtp_template_with_http_info(body, template_id, **kwargs) # noqa: E501 else: - (data) = self.update_smtp_template_with_http_info(template_id, smtp_template, **kwargs) # noqa: E501 + (data) = self.update_smtp_template_with_http_info(body, template_id, **kwargs) # noqa: E501 return data - def update_smtp_template_with_http_info(self, template_id, smtp_template, **kwargs): # noqa: E501 + def update_smtp_template_with_http_info(self, body, template_id, **kwargs): # noqa: E501 """Updates an smtp templates # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_smtp_template_with_http_info(template_id, smtp_template, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_smtp_template_with_http_info(body, template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateSmtpTemplate body: values to update in smtp template (required) :param int template_id: id of the template (required) - :param UpdateSmtpTemplate smtp_template: values to update in smtp template (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['template_id', 'smtp_template'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'template_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1235,14 +1204,14 @@ def update_smtp_template_with_http_info(self, template_id, smtp_template, **kwar ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_smtp_template`") # noqa: E501 # verify the required parameter 'template_id' is set if ('template_id' not in params or params['template_id'] is None): raise ValueError("Missing the required parameter `template_id` when calling `update_smtp_template`") # noqa: E501 - # verify the required parameter 'smtp_template' is set - if ('smtp_template' not in params or - params['smtp_template'] is None): - raise ValueError("Missing the required parameter `smtp_template` when calling `update_smtp_template`") # noqa: E501 collection_formats = {} @@ -1258,8 +1227,8 @@ def update_smtp_template_with_http_info(self, template_id, smtp_template, **kwar local_var_files = {} body_params = None - if 'smtp_template' in params: - body_params = params['smtp_template'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -1281,7 +1250,7 @@ def update_smtp_template_with_http_info(self, template_id, smtp_template, **kwar files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/transactional_sms_api.py b/sib_api_v3_sdk/api/transactional_sms_api.py index 245220e..6a1127e 100644 --- a/sib_api_v3_sdk/api/transactional_sms_api.py +++ b/sib_api_v3_sdk/api/transactional_sms_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -37,11 +36,11 @@ def get_sms_events(self, **kwargs): # noqa: E501 """Get all the SMS activity (unaggregated events) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_events(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_events(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report @@ -55,7 +54,7 @@ def get_sms_events(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_sms_events_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_sms_events_with_http_info(**kwargs) # noqa: E501 @@ -65,11 +64,11 @@ def get_sms_events_with_http_info(self, **kwargs): # noqa: E501 """Get all the SMS activity (unaggregated events) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_events_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_events_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report @@ -84,7 +83,7 @@ def get_sms_events_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'start_date', 'end_date', 'offset', 'days', 'phone_number', 'event', 'tags'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -99,8 +98,6 @@ def get_sms_events_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 100: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_sms_events`, must be a value less than or equal to `100`") # noqa: E501 collection_formats = {} path_params = {} @@ -133,10 +130,6 @@ def get_sms_events_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -150,7 +143,7 @@ def get_sms_events_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSmsEventReport', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -160,11 +153,11 @@ def get_transac_aggregated_sms_report(self, **kwargs): # noqa: E501 """Get your SMS activity aggregated over a period of time # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_aggregated_sms_report(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_aggregated_sms_report(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report :param int days: Number of days in the past including today (positive integer). Not compatible with startDate and endDate @@ -174,7 +167,7 @@ def get_transac_aggregated_sms_report(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_transac_aggregated_sms_report_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_transac_aggregated_sms_report_with_http_info(**kwargs) # noqa: E501 @@ -184,11 +177,11 @@ def get_transac_aggregated_sms_report_with_http_info(self, **kwargs): # noqa: E """Get your SMS activity aggregated over a period of time # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_aggregated_sms_report_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_aggregated_sms_report_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report :param int days: Number of days in the past including today (positive integer). Not compatible with startDate and endDate @@ -199,7 +192,7 @@ def get_transac_aggregated_sms_report_with_http_info(self, **kwargs): # noqa: E """ all_params = ['start_date', 'end_date', 'days', 'tag'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -238,10 +231,6 @@ def get_transac_aggregated_sms_report_with_http_info(self, **kwargs): # noqa: E header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -255,7 +244,7 @@ def get_transac_aggregated_sms_report_with_http_info(self, **kwargs): # noqa: E files=local_var_files, response_type='GetTransacAggregatedSmsReport', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -265,11 +254,11 @@ def get_transac_sms_report(self, **kwargs): # noqa: E501 """Get your SMS activity aggregated per day # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_sms_report(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_sms_report(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report :param int days: Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' @@ -279,7 +268,7 @@ def get_transac_sms_report(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_transac_sms_report_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_transac_sms_report_with_http_info(**kwargs) # noqa: E501 @@ -289,11 +278,11 @@ def get_transac_sms_report_with_http_info(self, **kwargs): # noqa: E501 """Get your SMS activity aggregated per day # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_sms_report_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_sms_report_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report :param int days: Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' @@ -304,7 +293,7 @@ def get_transac_sms_report_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['start_date', 'end_date', 'days', 'tag'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -343,10 +332,6 @@ def get_transac_sms_report_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -360,50 +345,50 @@ def get_transac_sms_report_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetTransacSmsReport', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def send_transac_sms(self, send_transac_sms, **kwargs): # noqa: E501 + def send_transac_sms(self, body, **kwargs): # noqa: E501 """Send the SMS campaign to the specified mobile number # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_transac_sms(send_transac_sms, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_transac_sms(body, async_req=True) >>> result = thread.get() - :param async bool - :param SendTransacSms send_transac_sms: Values to send a transactional SMS (required) + :param async_req bool + :param SendTransacSms body: Values to send a transactional SMS (required) :return: SendSms If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.send_transac_sms_with_http_info(send_transac_sms, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.send_transac_sms_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.send_transac_sms_with_http_info(send_transac_sms, **kwargs) # noqa: E501 + (data) = self.send_transac_sms_with_http_info(body, **kwargs) # noqa: E501 return data - def send_transac_sms_with_http_info(self, send_transac_sms, **kwargs): # noqa: E501 + def send_transac_sms_with_http_info(self, body, **kwargs): # noqa: E501 """Send the SMS campaign to the specified mobile number # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_transac_sms_with_http_info(send_transac_sms, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_transac_sms_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param SendTransacSms send_transac_sms: Values to send a transactional SMS (required) + :param async_req bool + :param SendTransacSms body: Values to send a transactional SMS (required) :return: SendSms If the method is called asynchronously, returns the request thread. """ - all_params = ['send_transac_sms'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -417,10 +402,10 @@ def send_transac_sms_with_http_info(self, send_transac_sms, **kwargs): # noqa: ) params[key] = val del params['kwargs'] - # verify the required parameter 'send_transac_sms' is set - if ('send_transac_sms' not in params or - params['send_transac_sms'] is None): - raise ValueError("Missing the required parameter `send_transac_sms` when calling `send_transac_sms`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `send_transac_sms`") # noqa: E501 collection_formats = {} @@ -434,8 +419,8 @@ def send_transac_sms_with_http_info(self, send_transac_sms, **kwargs): # noqa: local_var_files = {} body_params = None - if 'send_transac_sms' in params: - body_params = params['send_transac_sms'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -457,7 +442,7 @@ def send_transac_sms_with_http_info(self, send_transac_sms, **kwargs): # noqa: files=local_var_files, response_type='SendSms', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/webhooks_api.py b/sib_api_v3_sdk/api/webhooks_api.py index d810f21..58c0112 100644 --- a/sib_api_v3_sdk/api/webhooks_api.py +++ b/sib_api_v3_sdk/api/webhooks_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -33,44 +32,44 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_webhook(self, create_webhook, **kwargs): # noqa: E501 + def create_webhook(self, body, **kwargs): # noqa: E501 """Create a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_webhook(create_webhook, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_webhook(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateWebhook create_webhook: Values to create a webhook (required) + :param async_req bool + :param CreateWebhook body: Values to create a webhook (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.create_webhook_with_http_info(create_webhook, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.create_webhook_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_webhook_with_http_info(create_webhook, **kwargs) # noqa: E501 + (data) = self.create_webhook_with_http_info(body, **kwargs) # noqa: E501 return data - def create_webhook_with_http_info(self, create_webhook, **kwargs): # noqa: E501 + def create_webhook_with_http_info(self, body, **kwargs): # noqa: E501 """Create a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_webhook_with_http_info(create_webhook, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_webhook_with_http_info(body, async_req=True) >>> result = thread.get() - :param async bool - :param CreateWebhook create_webhook: Values to create a webhook (required) + :param async_req bool + :param CreateWebhook body: Values to create a webhook (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ - all_params = ['create_webhook'] # noqa: E501 - all_params.append('async') + all_params = ['body'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -84,10 +83,10 @@ def create_webhook_with_http_info(self, create_webhook, **kwargs): # noqa: E501 ) params[key] = val del params['kwargs'] - # verify the required parameter 'create_webhook' is set - if ('create_webhook' not in params or - params['create_webhook'] is None): - raise ValueError("Missing the required parameter `create_webhook` when calling `create_webhook`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_webhook`") # noqa: E501 collection_formats = {} @@ -101,8 +100,8 @@ def create_webhook_with_http_info(self, create_webhook, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'create_webhook' in params: - body_params = params['create_webhook'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -124,7 +123,7 @@ def create_webhook_with_http_info(self, create_webhook, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -134,18 +133,18 @@ def delete_webhook(self, webhook_id, **kwargs): # noqa: E501 """Delete a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_webhook(webhook_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_webhook(webhook_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int webhook_id: Id of the webhook (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_webhook_with_http_info(webhook_id, **kwargs) # noqa: E501 else: (data) = self.delete_webhook_with_http_info(webhook_id, **kwargs) # noqa: E501 @@ -155,11 +154,11 @@ def delete_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 """Delete a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_webhook_with_http_info(webhook_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_webhook_with_http_info(webhook_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int webhook_id: Id of the webhook (required) :return: None If the method is called asynchronously, @@ -167,7 +166,7 @@ def delete_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 """ all_params = ['webhook_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -204,10 +203,6 @@ def delete_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -221,7 +216,7 @@ def delete_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -231,18 +226,18 @@ def get_webhook(self, webhook_id, **kwargs): # noqa: E501 """Get a webhook details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_webhook(webhook_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_webhook(webhook_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int webhook_id: Id of the webhook (required) :return: GetWebhook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_webhook_with_http_info(webhook_id, **kwargs) # noqa: E501 else: (data) = self.get_webhook_with_http_info(webhook_id, **kwargs) # noqa: E501 @@ -252,11 +247,11 @@ def get_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 """Get a webhook details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_webhook_with_http_info(webhook_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_webhook_with_http_info(webhook_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int webhook_id: Id of the webhook (required) :return: GetWebhook If the method is called asynchronously, @@ -264,7 +259,7 @@ def get_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 """ all_params = ['webhook_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -301,10 +296,6 @@ def get_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -318,7 +309,7 @@ def get_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetWebhook', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -328,18 +319,18 @@ def get_webhooks(self, **kwargs): # noqa: E501 """Get all webhooks # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_webhooks(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_webhooks(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str type: Filter on webhook type :return: GetWebhooks If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_webhooks_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_webhooks_with_http_info(**kwargs) # noqa: E501 @@ -349,11 +340,11 @@ def get_webhooks_with_http_info(self, **kwargs): # noqa: E501 """Get all webhooks # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_webhooks_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_webhooks_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str type: Filter on webhook type :return: GetWebhooks If the method is called asynchronously, @@ -361,7 +352,7 @@ def get_webhooks_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['type'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -394,10 +385,6 @@ def get_webhooks_with_http_info(self, **kwargs): # noqa: E501 header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 @@ -411,52 +398,52 @@ def get_webhooks_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetWebhooks', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_webhook(self, webhook_id, update_webhook, **kwargs): # noqa: E501 + def update_webhook(self, body, webhook_id, **kwargs): # noqa: E501 """Update a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_webhook(webhook_id, update_webhook, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_webhook(body, webhook_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateWebhook body: Values to update a webhook (required) :param int webhook_id: Id of the webhook (required) - :param UpdateWebhook update_webhook: Values to update a webhook (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.update_webhook_with_http_info(webhook_id, update_webhook, **kwargs) # noqa: E501 + if kwargs.get('async_req'): + return self.update_webhook_with_http_info(body, webhook_id, **kwargs) # noqa: E501 else: - (data) = self.update_webhook_with_http_info(webhook_id, update_webhook, **kwargs) # noqa: E501 + (data) = self.update_webhook_with_http_info(body, webhook_id, **kwargs) # noqa: E501 return data - def update_webhook_with_http_info(self, webhook_id, update_webhook, **kwargs): # noqa: E501 + def update_webhook_with_http_info(self, body, webhook_id, **kwargs): # noqa: E501 """Update a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_webhook_with_http_info(webhook_id, update_webhook, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_webhook_with_http_info(body, webhook_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param UpdateWebhook body: Values to update a webhook (required) :param int webhook_id: Id of the webhook (required) - :param UpdateWebhook update_webhook: Values to update a webhook (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['webhook_id', 'update_webhook'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'webhook_id'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -470,14 +457,14 @@ def update_webhook_with_http_info(self, webhook_id, update_webhook, **kwargs): ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_webhook`") # noqa: E501 # verify the required parameter 'webhook_id' is set if ('webhook_id' not in params or params['webhook_id'] is None): raise ValueError("Missing the required parameter `webhook_id` when calling `update_webhook`") # noqa: E501 - # verify the required parameter 'update_webhook' is set - if ('update_webhook' not in params or - params['update_webhook'] is None): - raise ValueError("Missing the required parameter `update_webhook` when calling `update_webhook`") # noqa: E501 collection_formats = {} @@ -493,8 +480,8 @@ def update_webhook_with_http_info(self, webhook_id, update_webhook, **kwargs): local_var_files = {} body_params = None - if 'update_webhook' in params: - body_params = params['update_webhook'] + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -516,7 +503,7 @@ def update_webhook_with_http_info(self, webhook_id, update_webhook, **kwargs): files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api_client.py b/sib_api_v3_sdk/api_client.py index 0104fa2..0dc6966 100644 --- a/sib_api_v3_sdk/api_client.py +++ b/sib_api_v3_sdk/api_client.py @@ -8,7 +8,6 @@ Contact: contact@sendinblue.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import datetime @@ -245,12 +244,12 @@ def __deserialize(self, data, klass): if type(klass) == str: if klass.startswith('list['): - sub_kls = re.match('list\[(.*)\]', klass).group(1) + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] if klass.startswith('dict('): - sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) return {k: self.__deserialize(v, sub_kls) for k, v in six.iteritems(data)} @@ -274,12 +273,12 @@ def __deserialize(self, data, klass): def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async=None, + response_type=None, auth_settings=None, async_req=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): """Makes the HTTP request (synchronous) and returns deserialized data. - To make an async request, set the async parameter. + To make an async request, set the async_req parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -294,7 +293,7 @@ def call_api(self, resource_path, method, :param response: Response data type. :param files dict: key -> filename, value -> filepath, for `multipart/form-data`. - :param async bool: execute request asynchronously + :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param collection_formats: dict of collection formats for path, query, @@ -307,13 +306,13 @@ def call_api(self, resource_path, method, timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: - If async parameter is True, + If async_req parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter async is False or missing, + If parameter async_req is False or missing, then the method will return the response directly. """ - if not async: + if not async_req: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, @@ -541,7 +540,7 @@ def __deserialize_primitive(self, data, klass): try: return klass(data) except UnicodeEncodeError: - return six.u(data) + return six.text_type(data) except TypeError: return data @@ -591,6 +590,9 @@ def __deserialize_datatime(self, string): ) ) + def __hasattr(self, object, name): + return name in object.__class__.__dict__ + def __deserialize_model(self, data, klass): """Deserializes list or dict to model. @@ -599,8 +601,7 @@ def __deserialize_model(self, data, klass): :return: model object. """ - if not klass.swagger_types and not hasattr(klass, - 'get_real_child_model'): + if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): return data kwargs = {} @@ -614,7 +615,13 @@ def __deserialize_model(self, data, klass): instance = klass(**kwargs) - if hasattr(instance, 'get_real_child_model'): + if (isinstance(instance, dict) and + klass.swagger_types is not None and + isinstance(data, dict)): + for key, value in data.items(): + if key not in klass.swagger_types: + instance[key] = value + if self.__hasattr(instance, 'get_real_child_model'): klass_name = instance.get_real_child_model(data) if klass_name: instance = self.__deserialize(data, klass_name) diff --git a/sib_api_v3_sdk/configuration.py b/sib_api_v3_sdk/configuration.py index a831a95..555d473 100644 --- a/sib_api_v3_sdk/configuration.py +++ b/sib_api_v3_sdk/configuration.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import copy @@ -60,7 +59,6 @@ def __init__(self): self.username = "" # Password for HTTP basic authentication self.password = "" - # Logging Settings self.logger = {} self.logger["package_logger"] = logging.getLogger("sib_api_v3_sdk") @@ -238,7 +236,6 @@ def auth_settings(self): 'key': 'partner-key', 'value': self.get_api_key_with_prefix('partner-key') }, - } def to_debug_report(self): diff --git a/sib_api_v3_sdk/models/__init__.py b/sib_api_v3_sdk/models/__init__.py index d4fe875..96fd52b 100644 --- a/sib_api_v3_sdk/models/__init__.py +++ b/sib_api_v3_sdk/models/__init__.py @@ -11,30 +11,23 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import # import models into model package from sib_api_v3_sdk.models.add_contact_to_list import AddContactToList from sib_api_v3_sdk.models.add_credits import AddCredits from sib_api_v3_sdk.models.create_attribute import CreateAttribute -from sib_api_v3_sdk.models.create_attribute_enumeration import CreateAttributeEnumeration from sib_api_v3_sdk.models.create_child import CreateChild from sib_api_v3_sdk.models.create_contact import CreateContact from sib_api_v3_sdk.models.create_email_campaign import CreateEmailCampaign -from sib_api_v3_sdk.models.create_email_campaign_recipients import CreateEmailCampaignRecipients -from sib_api_v3_sdk.models.create_email_campaign_sender import CreateEmailCampaignSender from sib_api_v3_sdk.models.create_list import CreateList from sib_api_v3_sdk.models.create_model import CreateModel from sib_api_v3_sdk.models.create_reseller import CreateReseller from sib_api_v3_sdk.models.create_sender import CreateSender -from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps from sib_api_v3_sdk.models.create_sender_model import CreateSenderModel from sib_api_v3_sdk.models.create_sms_campaign import CreateSmsCampaign -from sib_api_v3_sdk.models.create_sms_campaign_recipients import CreateSmsCampaignRecipients from sib_api_v3_sdk.models.create_smtp_email import CreateSmtpEmail from sib_api_v3_sdk.models.create_smtp_template import CreateSmtpTemplate -from sib_api_v3_sdk.models.create_smtp_template_sender import CreateSmtpTemplateSender from sib_api_v3_sdk.models.create_update_contact_model import CreateUpdateContactModel from sib_api_v3_sdk.models.create_update_folder import CreateUpdateFolder from sib_api_v3_sdk.models.create_webhook import CreateWebhook @@ -42,46 +35,26 @@ from sib_api_v3_sdk.models.delete_hardbounces import DeleteHardbounces from sib_api_v3_sdk.models.email_export_recipients import EmailExportRecipients from sib_api_v3_sdk.models.error_model import ErrorModel -from sib_api_v3_sdk.models.get_account_marketing_automation import GetAccountMarketingAutomation -from sib_api_v3_sdk.models.get_account_plan import GetAccountPlan -from sib_api_v3_sdk.models.get_account_relay import GetAccountRelay -from sib_api_v3_sdk.models.get_account_relay_data import GetAccountRelayData +from sib_api_v3_sdk.models.get_account import GetAccount from sib_api_v3_sdk.models.get_aggregated_report import GetAggregatedReport from sib_api_v3_sdk.models.get_attributes import GetAttributes -from sib_api_v3_sdk.models.get_attributes_attributes import GetAttributesAttributes -from sib_api_v3_sdk.models.get_attributes_enumeration import GetAttributesEnumeration from sib_api_v3_sdk.models.get_campaign_overview import GetCampaignOverview from sib_api_v3_sdk.models.get_campaign_recipients import GetCampaignRecipients from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats -from sib_api_v3_sdk.models.get_child_info_api_keys import GetChildInfoApiKeys -from sib_api_v3_sdk.models.get_child_info_api_keys_v2 import GetChildInfoApiKeysV2 -from sib_api_v3_sdk.models.get_child_info_api_keys_v3 import GetChildInfoApiKeysV3 -from sib_api_v3_sdk.models.get_child_info_credits import GetChildInfoCredits -from sib_api_v3_sdk.models.get_child_info_statistics import GetChildInfoStatistics +from sib_api_v3_sdk.models.get_child_info import GetChildInfo from sib_api_v3_sdk.models.get_children_list import GetChildrenList from sib_api_v3_sdk.models.get_client import GetClient from sib_api_v3_sdk.models.get_contact_campaign_stats import GetContactCampaignStats -from sib_api_v3_sdk.models.get_contact_campaign_stats_clicked import GetContactCampaignStatsClicked -from sib_api_v3_sdk.models.get_contact_campaign_stats_opened import GetContactCampaignStatsOpened -from sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes import GetContactCampaignStatsTransacAttributes -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions import GetContactCampaignStatsUnsubscriptions from sib_api_v3_sdk.models.get_contact_details import GetContactDetails from sib_api_v3_sdk.models.get_contacts import GetContacts +from sib_api_v3_sdk.models.get_email_campaign import GetEmailCampaign from sib_api_v3_sdk.models.get_email_campaigns import GetEmailCampaigns from sib_api_v3_sdk.models.get_email_event_report import GetEmailEventReport -from sib_api_v3_sdk.models.get_email_event_report_events import GetEmailEventReportEvents -from sib_api_v3_sdk.models.get_extended_campaign_overview_sender import GetExtendedCampaignOverviewSender +from sib_api_v3_sdk.models.get_extended_campaign_overview import GetExtendedCampaignOverview from sib_api_v3_sdk.models.get_extended_campaign_stats import GetExtendedCampaignStats -from sib_api_v3_sdk.models.get_extended_client_address import GetExtendedClientAddress -from sib_api_v3_sdk.models.get_extended_contact_details_statistics import GetExtendedContactDetailsStatistics -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_clicked import GetExtendedContactDetailsStatisticsClicked -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_links import GetExtendedContactDetailsStatisticsLinks -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_messages_sent import GetExtendedContactDetailsStatisticsMessagesSent -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_opened import GetExtendedContactDetailsStatisticsOpened -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions import GetExtendedContactDetailsStatisticsUnsubscriptions -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_user_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription -from sib_api_v3_sdk.models.get_extended_list_campaign_stats import GetExtendedListCampaignStats +from sib_api_v3_sdk.models.get_extended_client import GetExtendedClient +from sib_api_v3_sdk.models.get_extended_contact_details import GetExtendedContactDetails +from sib_api_v3_sdk.models.get_extended_list import GetExtendedList from sib_api_v3_sdk.models.get_folder import GetFolder from sib_api_v3_sdk.models.get_folder_lists import GetFolderLists from sib_api_v3_sdk.models.get_folders import GetFolders @@ -94,73 +67,44 @@ from sib_api_v3_sdk.models.get_process import GetProcess from sib_api_v3_sdk.models.get_processes import GetProcesses from sib_api_v3_sdk.models.get_reports import GetReports -from sib_api_v3_sdk.models.get_reports_reports import GetReportsReports from sib_api_v3_sdk.models.get_senders_list import GetSendersList -from sib_api_v3_sdk.models.get_senders_list_ips import GetSendersListIps -from sib_api_v3_sdk.models.get_senders_list_senders import GetSendersListSenders +from sib_api_v3_sdk.models.get_sms_campaign import GetSmsCampaign from sib_api_v3_sdk.models.get_sms_campaign_overview import GetSmsCampaignOverview from sib_api_v3_sdk.models.get_sms_campaign_stats import GetSmsCampaignStats from sib_api_v3_sdk.models.get_sms_campaigns import GetSmsCampaigns from sib_api_v3_sdk.models.get_sms_event_report import GetSmsEventReport -from sib_api_v3_sdk.models.get_sms_event_report_events import GetSmsEventReportEvents from sib_api_v3_sdk.models.get_smtp_template_overview import GetSmtpTemplateOverview -from sib_api_v3_sdk.models.get_smtp_template_overview_sender import GetSmtpTemplateOverviewSender from sib_api_v3_sdk.models.get_smtp_templates import GetSmtpTemplates from sib_api_v3_sdk.models.get_stats_by_domain import GetStatsByDomain from sib_api_v3_sdk.models.get_transac_aggregated_sms_report import GetTransacAggregatedSmsReport from sib_api_v3_sdk.models.get_transac_sms_report import GetTransacSmsReport -from sib_api_v3_sdk.models.get_transac_sms_report_reports import GetTransacSmsReportReports from sib_api_v3_sdk.models.get_webhook import GetWebhook from sib_api_v3_sdk.models.get_webhooks import GetWebhooks from sib_api_v3_sdk.models.manage_ip import ManageIp from sib_api_v3_sdk.models.post_contact_info import PostContactInfo -from sib_api_v3_sdk.models.post_contact_info_contacts import PostContactInfoContacts from sib_api_v3_sdk.models.post_send_failed import PostSendFailed from sib_api_v3_sdk.models.post_send_sms_test_failed import PostSendSmsTestFailed from sib_api_v3_sdk.models.remaining_credit_model import RemainingCreditModel -from sib_api_v3_sdk.models.remaining_credit_model_child import RemainingCreditModelChild -from sib_api_v3_sdk.models.remaining_credit_model_reseller import RemainingCreditModelReseller from sib_api_v3_sdk.models.remove_contact_from_list import RemoveContactFromList from sib_api_v3_sdk.models.remove_credits import RemoveCredits from sib_api_v3_sdk.models.request_contact_export import RequestContactExport from sib_api_v3_sdk.models.request_contact_import import RequestContactImport -from sib_api_v3_sdk.models.request_contact_import_new_list import RequestContactImportNewList from sib_api_v3_sdk.models.request_sms_recipient_export import RequestSmsRecipientExport from sib_api_v3_sdk.models.send_email import SendEmail -from sib_api_v3_sdk.models.send_email_attachment import SendEmailAttachment from sib_api_v3_sdk.models.send_report import SendReport -from sib_api_v3_sdk.models.send_report_email import SendReportEmail from sib_api_v3_sdk.models.send_sms import SendSms from sib_api_v3_sdk.models.send_smtp_email import SendSmtpEmail -from sib_api_v3_sdk.models.send_smtp_email_attachment import SendSmtpEmailAttachment -from sib_api_v3_sdk.models.send_smtp_email_bcc import SendSmtpEmailBcc -from sib_api_v3_sdk.models.send_smtp_email_cc import SendSmtpEmailCc -from sib_api_v3_sdk.models.send_smtp_email_reply_to import SendSmtpEmailReplyTo -from sib_api_v3_sdk.models.send_smtp_email_sender import SendSmtpEmailSender -from sib_api_v3_sdk.models.send_smtp_email_to import SendSmtpEmailTo from sib_api_v3_sdk.models.send_template_email import SendTemplateEmail from sib_api_v3_sdk.models.send_test_email import SendTestEmail from sib_api_v3_sdk.models.send_test_sms import SendTestSms from sib_api_v3_sdk.models.send_transac_sms import SendTransacSms from sib_api_v3_sdk.models.update_attribute import UpdateAttribute -from sib_api_v3_sdk.models.update_attribute_enumeration import UpdateAttributeEnumeration from sib_api_v3_sdk.models.update_campaign_status import UpdateCampaignStatus from sib_api_v3_sdk.models.update_child import UpdateChild from sib_api_v3_sdk.models.update_contact import UpdateContact from sib_api_v3_sdk.models.update_email_campaign import UpdateEmailCampaign -from sib_api_v3_sdk.models.update_email_campaign_recipients import UpdateEmailCampaignRecipients -from sib_api_v3_sdk.models.update_email_campaign_sender import UpdateEmailCampaignSender from sib_api_v3_sdk.models.update_list import UpdateList from sib_api_v3_sdk.models.update_sender import UpdateSender from sib_api_v3_sdk.models.update_sms_campaign import UpdateSmsCampaign from sib_api_v3_sdk.models.update_smtp_template import UpdateSmtpTemplate -from sib_api_v3_sdk.models.update_smtp_template_sender import UpdateSmtpTemplateSender from sib_api_v3_sdk.models.update_webhook import UpdateWebhook -from sib_api_v3_sdk.models.get_child_info import GetChildInfo -from sib_api_v3_sdk.models.get_extended_campaign_overview import GetExtendedCampaignOverview -from sib_api_v3_sdk.models.get_extended_client import GetExtendedClient -from sib_api_v3_sdk.models.get_extended_contact_details import GetExtendedContactDetails -from sib_api_v3_sdk.models.get_extended_list import GetExtendedList -from sib_api_v3_sdk.models.get_sms_campaign import GetSmsCampaign -from sib_api_v3_sdk.models.get_account import GetAccount -from sib_api_v3_sdk.models.get_email_campaign import GetEmailCampaign diff --git a/sib_api_v3_sdk/models/add_contact_to_list.py b/sib_api_v3_sdk/models/add_contact_to_list.py index fcde152..d092018 100644 --- a/sib_api_v3_sdk/models/add_contact_to_list.py +++ b/sib_api_v3_sdk/models/add_contact_to_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class AddContactToList(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class AddContactToList(object): def __init__(self, emails=None): # noqa: E501 """AddContactToList - a model defined in Swagger""" # noqa: E501 - self._emails = None self.discriminator = None - if emails is not None: self.emails = emails @@ -91,6 +87,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(AddContactToList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/add_credits.py b/sib_api_v3_sdk/models/add_credits.py index ed8edf7..c622f58 100644 --- a/sib_api_v3_sdk/models/add_credits.py +++ b/sib_api_v3_sdk/models/add_credits.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class AddCredits(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class AddCredits(object): def __init__(self, sms=None, email=None): # noqa: E501 """AddCredits - a model defined in Swagger""" # noqa: E501 - self._sms = None self._email = None self.discriminator = None - if sms is not None: self.sms = sms if email is not None: @@ -119,6 +115,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(AddCredits, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_attribute.py b/sib_api_v3_sdk/models/create_attribute.py index 036d41f..557f2a9 100644 --- a/sib_api_v3_sdk/models/create_attribute.py +++ b/sib_api_v3_sdk/models/create_attribute.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.create_attribute_enumeration import CreateAttributeEnumeration # noqa: F401,E501 - class CreateAttribute(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,7 +30,7 @@ class CreateAttribute(object): """ swagger_types = { 'value': 'str', - 'enumeration': 'list[CreateAttributeEnumeration]', + 'enumeration': 'list[object]', 'type': 'str' } @@ -46,12 +42,10 @@ class CreateAttribute(object): def __init__(self, value=None, enumeration=None, type=None): # noqa: E501 """CreateAttribute - a model defined in Swagger""" # noqa: E501 - self._value = None self._enumeration = None self._type = None self.discriminator = None - if value is not None: self.value = value if enumeration is not None: @@ -89,7 +83,7 @@ def enumeration(self): List of values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, `[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]` # noqa: E501 :return: The enumeration of this CreateAttribute. # noqa: E501 - :rtype: list[CreateAttributeEnumeration] + :rtype: list[object] """ return self._enumeration @@ -100,7 +94,7 @@ def enumeration(self, enumeration): List of values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, `[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]` # noqa: E501 :param enumeration: The enumeration of this CreateAttribute. # noqa: E501 - :type: list[CreateAttributeEnumeration] + :type: list[object] """ self._enumeration = enumeration @@ -155,6 +149,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateAttribute, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_attribute_enumeration.py b/sib_api_v3_sdk/models/create_attribute_enumeration.py deleted file mode 100644 index 945ff6d..0000000 --- a/sib_api_v3_sdk/models/create_attribute_enumeration.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CreateAttributeEnumeration(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'value': 'int', - 'label': 'str' - } - - attribute_map = { - 'value': 'value', - 'label': 'label' - } - - def __init__(self, value=None, label=None): # noqa: E501 - """CreateAttributeEnumeration - a model defined in Swagger""" # noqa: E501 - - self._value = None - self._label = None - self.discriminator = None - - self.value = value - self.label = label - - @property - def value(self): - """Gets the value of this CreateAttributeEnumeration. # noqa: E501 - - Id of the value # noqa: E501 - - :return: The value of this CreateAttributeEnumeration. # noqa: E501 - :rtype: int - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this CreateAttributeEnumeration. - - Id of the value # noqa: E501 - - :param value: The value of this CreateAttributeEnumeration. # noqa: E501 - :type: int - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def label(self): - """Gets the label of this CreateAttributeEnumeration. # noqa: E501 - - Label of the value # noqa: E501 - - :return: The label of this CreateAttributeEnumeration. # noqa: E501 - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this CreateAttributeEnumeration. - - Label of the value # noqa: E501 - - :param label: The label of this CreateAttributeEnumeration. # noqa: E501 - :type: str - """ - if label is None: - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - - self._label = label - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreateAttributeEnumeration): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/create_child.py b/sib_api_v3_sdk/models/create_child.py index 705839d..464199e 100644 --- a/sib_api_v3_sdk/models/create_child.py +++ b/sib_api_v3_sdk/models/create_child.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreateChild(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,14 +46,12 @@ class CreateChild(object): def __init__(self, email=None, first_name=None, last_name=None, company_name=None, password=None): # noqa: E501 """CreateChild - a model defined in Swagger""" # noqa: E501 - self._email = None self._first_name = None self._last_name = None self._company_name = None self._password = None self.discriminator = None - self.email = email self.first_name = first_name self.last_name = last_name @@ -208,6 +204,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateChild, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_contact.py b/sib_api_v3_sdk/models/create_contact.py index 4d34690..88ff533 100644 --- a/sib_api_v3_sdk/models/create_contact.py +++ b/sib_api_v3_sdk/models/create_contact.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreateContact(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -52,7 +50,6 @@ class CreateContact(object): def __init__(self, email=None, attributes=None, email_blacklisted=None, sms_blacklisted=None, list_ids=None, update_enabled=False, smtp_blacklist_sender=None): # noqa: E501 """CreateContact - a model defined in Swagger""" # noqa: E501 - self._email = None self._attributes = None self._email_blacklisted = None @@ -61,7 +58,6 @@ def __init__(self, email=None, attributes=None, email_blacklisted=None, sms_blac self._update_enabled = None self._smtp_blacklist_sender = None self.discriminator = None - if email is not None: self.email = email if attributes is not None: @@ -259,6 +255,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateContact, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_email_campaign.py b/sib_api_v3_sdk/models/create_email_campaign.py index 84e1828..bdd6edc 100644 --- a/sib_api_v3_sdk/models/create_email_campaign.py +++ b/sib_api_v3_sdk/models/create_email_campaign.py @@ -10,22 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.create_email_campaign_recipients import CreateEmailCampaignRecipients # noqa: F401,E501 -from sib_api_v3_sdk.models.create_email_campaign_sender import CreateEmailCampaignSender # noqa: F401,E501 - class CreateEmailCampaign(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -35,7 +30,7 @@ class CreateEmailCampaign(object): """ swagger_types = { 'tag': 'str', - 'sender': 'CreateEmailCampaignSender', + 'sender': 'object', 'name': 'str', 'html_content': 'str', 'html_url': 'str', @@ -44,7 +39,7 @@ class CreateEmailCampaign(object): 'subject': 'str', 'reply_to': 'str', 'to_field': 'str', - 'recipients': 'CreateEmailCampaignRecipients', + 'recipients': 'object', 'attachment_url': 'str', 'inline_image_activation': 'bool', 'mirror_active': 'bool', @@ -91,7 +86,6 @@ class CreateEmailCampaign(object): def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url=None, template_id=None, scheduled_at=None, subject=None, reply_to=None, to_field=None, recipients=None, attachment_url=None, inline_image_activation=False, mirror_active=None, footer=None, header=None, utm_campaign=None, params=None, send_at_best_time=False, ab_testing=False, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None): # noqa: E501 """CreateEmailCampaign - a model defined in Swagger""" # noqa: E501 - self._tag = None self._sender = None self._name = None @@ -118,7 +112,6 @@ def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url self._winner_criteria = None self._winner_delay = None self.discriminator = None - if tag is not None: self.tag = tag self.sender = sender @@ -195,9 +188,10 @@ def tag(self, tag): def sender(self): """Gets the sender of this CreateEmailCampaign. # noqa: E501 + Sender details including email and name (optional). For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` # noqa: E501 :return: The sender of this CreateEmailCampaign. # noqa: E501 - :rtype: CreateEmailCampaignSender + :rtype: object """ return self._sender @@ -205,9 +199,10 @@ def sender(self): def sender(self, sender): """Sets the sender of this CreateEmailCampaign. + Sender details including email and name (optional). For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` # noqa: E501 :param sender: The sender of this CreateEmailCampaign. # noqa: E501 - :type: CreateEmailCampaignSender + :type: object """ if sender is None: raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 @@ -404,9 +399,10 @@ def to_field(self, to_field): def recipients(self): """Gets the recipients of this CreateEmailCampaign. # noqa: E501 + List ids to include/exclude from campaign # noqa: E501 :return: The recipients of this CreateEmailCampaign. # noqa: E501 - :rtype: CreateEmailCampaignRecipients + :rtype: object """ return self._recipients @@ -414,9 +410,10 @@ def recipients(self): def recipients(self, recipients): """Sets the recipients of this CreateEmailCampaign. + List ids to include/exclude from campaign # noqa: E501 :param recipients: The recipients of this CreateEmailCampaign. # noqa: E501 - :type: CreateEmailCampaignRecipients + :type: object """ self._recipients = recipients @@ -694,10 +691,6 @@ def split_rule(self, split_rule): :param split_rule: The split_rule of this CreateEmailCampaign. # noqa: E501 :type: int """ - if split_rule is not None and split_rule > 50: # noqa: E501 - raise ValueError("Invalid value for `split_rule`, must be a value less than or equal to `50`") # noqa: E501 - if split_rule is not None and split_rule < 1: # noqa: E501 - raise ValueError("Invalid value for `split_rule`, must be a value greater than or equal to `1`") # noqa: E501 self._split_rule = split_rule @@ -750,10 +743,6 @@ def winner_delay(self, winner_delay): :param winner_delay: The winner_delay of this CreateEmailCampaign. # noqa: E501 :type: int """ - if winner_delay is not None and winner_delay > 168: # noqa: E501 - raise ValueError("Invalid value for `winner_delay`, must be a value less than or equal to `168`") # noqa: E501 - if winner_delay is not None and winner_delay < 1: # noqa: E501 - raise ValueError("Invalid value for `winner_delay`, must be a value greater than or equal to `1`") # noqa: E501 self._winner_delay = winner_delay @@ -778,6 +767,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateEmailCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_email_campaign_recipients.py b/sib_api_v3_sdk/models/create_email_campaign_recipients.py deleted file mode 100644 index 252ee0e..0000000 --- a/sib_api_v3_sdk/models/create_email_campaign_recipients.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CreateEmailCampaignRecipients(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'exclusion_list_ids': 'list[int]', - 'list_ids': 'list[int]' - } - - attribute_map = { - 'exclusion_list_ids': 'exclusionListIds', - 'list_ids': 'listIds' - } - - def __init__(self, exclusion_list_ids=None, list_ids=None): # noqa: E501 - """CreateEmailCampaignRecipients - a model defined in Swagger""" # noqa: E501 - - self._exclusion_list_ids = None - self._list_ids = None - self.discriminator = None - - if exclusion_list_ids is not None: - self.exclusion_list_ids = exclusion_list_ids - if list_ids is not None: - self.list_ids = list_ids - - @property - def exclusion_list_ids(self): - """Gets the exclusion_list_ids of this CreateEmailCampaignRecipients. # noqa: E501 - - List ids to exclude from the campaign # noqa: E501 - - :return: The exclusion_list_ids of this CreateEmailCampaignRecipients. # noqa: E501 - :rtype: list[int] - """ - return self._exclusion_list_ids - - @exclusion_list_ids.setter - def exclusion_list_ids(self, exclusion_list_ids): - """Sets the exclusion_list_ids of this CreateEmailCampaignRecipients. - - List ids to exclude from the campaign # noqa: E501 - - :param exclusion_list_ids: The exclusion_list_ids of this CreateEmailCampaignRecipients. # noqa: E501 - :type: list[int] - """ - - self._exclusion_list_ids = exclusion_list_ids - - @property - def list_ids(self): - """Gets the list_ids of this CreateEmailCampaignRecipients. # noqa: E501 - - Mandatory if scheduledAt is not empty. List Ids to send the campaign to # noqa: E501 - - :return: The list_ids of this CreateEmailCampaignRecipients. # noqa: E501 - :rtype: list[int] - """ - return self._list_ids - - @list_ids.setter - def list_ids(self, list_ids): - """Sets the list_ids of this CreateEmailCampaignRecipients. - - Mandatory if scheduledAt is not empty. List Ids to send the campaign to # noqa: E501 - - :param list_ids: The list_ids of this CreateEmailCampaignRecipients. # noqa: E501 - :type: list[int] - """ - - self._list_ids = list_ids - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreateEmailCampaignRecipients): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/create_email_campaign_sender.py b/sib_api_v3_sdk/models/create_email_campaign_sender.py deleted file mode 100644 index adc0560..0000000 --- a/sib_api_v3_sdk/models/create_email_campaign_sender.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CreateEmailCampaignSender(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'email': 'str' - } - - attribute_map = { - 'name': 'name', - 'email': 'email' - } - - def __init__(self, name=None, email=None): # noqa: E501 - """CreateEmailCampaignSender - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._email = None - self.discriminator = None - - if name is not None: - self.name = name - self.email = email - - @property - def name(self): - """Gets the name of this CreateEmailCampaignSender. # noqa: E501 - - Sender Name # noqa: E501 - - :return: The name of this CreateEmailCampaignSender. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CreateEmailCampaignSender. - - Sender Name # noqa: E501 - - :param name: The name of this CreateEmailCampaignSender. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def email(self): - """Gets the email of this CreateEmailCampaignSender. # noqa: E501 - - Sender email # noqa: E501 - - :return: The email of this CreateEmailCampaignSender. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this CreateEmailCampaignSender. - - Sender email # noqa: E501 - - :param email: The email of this CreateEmailCampaignSender. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreateEmailCampaignSender): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/create_list.py b/sib_api_v3_sdk/models/create_list.py index aced38d..6801f6e 100644 --- a/sib_api_v3_sdk/models/create_list.py +++ b/sib_api_v3_sdk/models/create_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreateList(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class CreateList(object): def __init__(self, name=None, folder_id=None): # noqa: E501 """CreateList - a model defined in Swagger""" # noqa: E501 - self._name = None self._folder_id = None self.discriminator = None - self.name = name self.folder_id = folder_id @@ -121,6 +117,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_model.py b/sib_api_v3_sdk/models/create_model.py index f588404..074fa9d 100644 --- a/sib_api_v3_sdk/models/create_model.py +++ b/sib_api_v3_sdk/models/create_model.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreateModel(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class CreateModel(object): def __init__(self, id=None): # noqa: E501 """CreateModel - a model defined in Swagger""" # noqa: E501 - self._id = None self.discriminator = None - self.id = id @property @@ -92,6 +88,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateModel, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_reseller.py b/sib_api_v3_sdk/models/create_reseller.py index 750685d..912dbb4 100644 --- a/sib_api_v3_sdk/models/create_reseller.py +++ b/sib_api_v3_sdk/models/create_reseller.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreateReseller(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class CreateReseller(object): def __init__(self, auth_key=None): # noqa: E501 """CreateReseller - a model defined in Swagger""" # noqa: E501 - self._auth_key = None self.discriminator = None - self.auth_key = auth_key @property @@ -92,6 +88,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateReseller, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_sender.py b/sib_api_v3_sdk/models/create_sender.py index 4964593..2fa1917 100644 --- a/sib_api_v3_sdk/models/create_sender.py +++ b/sib_api_v3_sdk/models/create_sender.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps # noqa: F401,E501 - class CreateSender(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -35,7 +31,7 @@ class CreateSender(object): swagger_types = { 'name': 'str', 'email': 'str', - 'ips': 'list[CreateSenderIps]' + 'ips': 'list[object]' } attribute_map = { @@ -46,12 +42,10 @@ class CreateSender(object): def __init__(self, name=None, email=None, ips=None): # noqa: E501 """CreateSender - a model defined in Swagger""" # noqa: E501 - self._name = None self._email = None self._ips = None self.discriminator = None - self.name = name self.email = email if ips is not None: @@ -114,7 +108,7 @@ def ips(self): Mandatory in case of dedicated IP, IPs to associate to the sender # noqa: E501 :return: The ips of this CreateSender. # noqa: E501 - :rtype: list[CreateSenderIps] + :rtype: list[object] """ return self._ips @@ -125,7 +119,7 @@ def ips(self, ips): Mandatory in case of dedicated IP, IPs to associate to the sender # noqa: E501 :param ips: The ips of this CreateSender. # noqa: E501 - :type: list[CreateSenderIps] + :type: list[object] """ self._ips = ips @@ -151,6 +145,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_sender_ips.py b/sib_api_v3_sdk/models/create_sender_ips.py deleted file mode 100644 index ec01d59..0000000 --- a/sib_api_v3_sdk/models/create_sender_ips.py +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CreateSenderIps(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'ip': 'str', - 'domain': 'str', - 'weight': 'int' - } - - attribute_map = { - 'ip': 'ip', - 'domain': 'domain', - 'weight': 'weight' - } - - def __init__(self, ip=None, domain=None, weight=None): # noqa: E501 - """CreateSenderIps - a model defined in Swagger""" # noqa: E501 - - self._ip = None - self._domain = None - self._weight = None - self.discriminator = None - - self.ip = ip - self.domain = domain - if weight is not None: - self.weight = weight - - @property - def ip(self): - """Gets the ip of this CreateSenderIps. # noqa: E501 - - Dedicated IP available in your account # noqa: E501 - - :return: The ip of this CreateSenderIps. # noqa: E501 - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this CreateSenderIps. - - Dedicated IP available in your account # noqa: E501 - - :param ip: The ip of this CreateSenderIps. # noqa: E501 - :type: str - """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 - - self._ip = ip - - @property - def domain(self): - """Gets the domain of this CreateSenderIps. # noqa: E501 - - Domain of the IP # noqa: E501 - - :return: The domain of this CreateSenderIps. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this CreateSenderIps. - - Domain of the IP # noqa: E501 - - :param domain: The domain of this CreateSenderIps. # noqa: E501 - :type: str - """ - if domain is None: - raise ValueError("Invalid value for `domain`, must not be `None`") # noqa: E501 - - self._domain = domain - - @property - def weight(self): - """Gets the weight of this CreateSenderIps. # noqa: E501 - - Weight to apply to the IP. Sum of all IP weights must be 100. Should be passed for either ALL or NONE of the IPs. If it's not passed, the sending will be equally balanced on all IPs. # noqa: E501 - - :return: The weight of this CreateSenderIps. # noqa: E501 - :rtype: int - """ - return self._weight - - @weight.setter - def weight(self, weight): - """Sets the weight of this CreateSenderIps. - - Weight to apply to the IP. Sum of all IP weights must be 100. Should be passed for either ALL or NONE of the IPs. If it's not passed, the sending will be equally balanced on all IPs. # noqa: E501 - - :param weight: The weight of this CreateSenderIps. # noqa: E501 - :type: int - """ - if weight is not None and weight > 100: # noqa: E501 - raise ValueError("Invalid value for `weight`, must be a value less than or equal to `100`") # noqa: E501 - if weight is not None and weight < 1: # noqa: E501 - raise ValueError("Invalid value for `weight`, must be a value greater than or equal to `1`") # noqa: E501 - - self._weight = weight - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreateSenderIps): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/create_sender_model.py b/sib_api_v3_sdk/models/create_sender_model.py index acc7d76..9eb0e51 100644 --- a/sib_api_v3_sdk/models/create_sender_model.py +++ b/sib_api_v3_sdk/models/create_sender_model.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreateSenderModel(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,12 +42,10 @@ class CreateSenderModel(object): def __init__(self, id=None, spf_error=None, dkim_error=None): # noqa: E501 """CreateSenderModel - a model defined in Swagger""" # noqa: E501 - self._id = None self._spf_error = None self._dkim_error = None self.discriminator = None - self.id = id if spf_error is not None: self.spf_error = spf_error @@ -148,6 +144,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSenderModel, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_sms_campaign.py b/sib_api_v3_sdk/models/create_sms_campaign.py index 9ac45c1..ff335cd 100644 --- a/sib_api_v3_sdk/models/create_sms_campaign.py +++ b/sib_api_v3_sdk/models/create_sms_campaign.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.create_sms_campaign_recipients import CreateSmsCampaignRecipients # noqa: F401,E501 - class CreateSmsCampaign(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -36,7 +32,7 @@ class CreateSmsCampaign(object): 'name': 'str', 'sender': 'str', 'content': 'str', - 'recipients': 'CreateSmsCampaignRecipients', + 'recipients': 'object', 'scheduled_at': 'datetime' } @@ -50,14 +46,12 @@ class CreateSmsCampaign(object): def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None): # noqa: E501 """CreateSmsCampaign - a model defined in Swagger""" # noqa: E501 - self._name = None self._sender = None self._content = None self._recipients = None self._scheduled_at = None self.discriminator = None - self.name = name self.sender = sender self.content = content @@ -113,8 +107,6 @@ def sender(self, sender): """ if sender is None: raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 - if sender is not None and len(sender) > 11: - raise ValueError("Invalid value for `sender`, length must be less than or equal to `11`") # noqa: E501 self._sender = sender @@ -149,7 +141,7 @@ def recipients(self): :return: The recipients of this CreateSmsCampaign. # noqa: E501 - :rtype: CreateSmsCampaignRecipients + :rtype: object """ return self._recipients @@ -159,7 +151,7 @@ def recipients(self, recipients): :param recipients: The recipients of this CreateSmsCampaign. # noqa: E501 - :type: CreateSmsCampaignRecipients + :type: object """ self._recipients = recipients @@ -208,6 +200,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSmsCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_sms_campaign_recipients.py b/sib_api_v3_sdk/models/create_sms_campaign_recipients.py deleted file mode 100644 index 2d49107..0000000 --- a/sib_api_v3_sdk/models/create_sms_campaign_recipients.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CreateSmsCampaignRecipients(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'list_ids': 'list[int]', - 'exclusion_list_ids': 'list[int]' - } - - attribute_map = { - 'list_ids': 'listIds', - 'exclusion_list_ids': 'exclusionListIds' - } - - def __init__(self, list_ids=None, exclusion_list_ids=None): # noqa: E501 - """CreateSmsCampaignRecipients - a model defined in Swagger""" # noqa: E501 - - self._list_ids = None - self._exclusion_list_ids = None - self.discriminator = None - - self.list_ids = list_ids - if exclusion_list_ids is not None: - self.exclusion_list_ids = exclusion_list_ids - - @property - def list_ids(self): - """Gets the list_ids of this CreateSmsCampaignRecipients. # noqa: E501 - - Lists Ids to send the campaign to. REQUIRED if scheduledAt is not empty # noqa: E501 - - :return: The list_ids of this CreateSmsCampaignRecipients. # noqa: E501 - :rtype: list[int] - """ - return self._list_ids - - @list_ids.setter - def list_ids(self, list_ids): - """Sets the list_ids of this CreateSmsCampaignRecipients. - - Lists Ids to send the campaign to. REQUIRED if scheduledAt is not empty # noqa: E501 - - :param list_ids: The list_ids of this CreateSmsCampaignRecipients. # noqa: E501 - :type: list[int] - """ - if list_ids is None: - raise ValueError("Invalid value for `list_ids`, must not be `None`") # noqa: E501 - - self._list_ids = list_ids - - @property - def exclusion_list_ids(self): - """Gets the exclusion_list_ids of this CreateSmsCampaignRecipients. # noqa: E501 - - List ids which have to be excluded from a campaign # noqa: E501 - - :return: The exclusion_list_ids of this CreateSmsCampaignRecipients. # noqa: E501 - :rtype: list[int] - """ - return self._exclusion_list_ids - - @exclusion_list_ids.setter - def exclusion_list_ids(self, exclusion_list_ids): - """Sets the exclusion_list_ids of this CreateSmsCampaignRecipients. - - List ids which have to be excluded from a campaign # noqa: E501 - - :param exclusion_list_ids: The exclusion_list_ids of this CreateSmsCampaignRecipients. # noqa: E501 - :type: list[int] - """ - - self._exclusion_list_ids = exclusion_list_ids - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreateSmsCampaignRecipients): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/create_smtp_email.py b/sib_api_v3_sdk/models/create_smtp_email.py index 1c6b55d..fedf9e0 100644 --- a/sib_api_v3_sdk/models/create_smtp_email.py +++ b/sib_api_v3_sdk/models/create_smtp_email.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreateSmtpEmail(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class CreateSmtpEmail(object): def __init__(self, message_id=None): # noqa: E501 """CreateSmtpEmail - a model defined in Swagger""" # noqa: E501 - self._message_id = None self.discriminator = None - self.message_id = message_id @property @@ -92,6 +88,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSmtpEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_smtp_template.py b/sib_api_v3_sdk/models/create_smtp_template.py index 98e991f..200e734 100644 --- a/sib_api_v3_sdk/models/create_smtp_template.py +++ b/sib_api_v3_sdk/models/create_smtp_template.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.create_smtp_template_sender import CreateSmtpTemplateSender # noqa: F401,E501 - class CreateSmtpTemplate(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,7 +30,7 @@ class CreateSmtpTemplate(object): """ swagger_types = { 'tag': 'str', - 'sender': 'CreateSmtpTemplateSender', + 'sender': 'object', 'template_name': 'str', 'html_content': 'str', 'html_url': 'str', @@ -60,7 +56,6 @@ class CreateSmtpTemplate(object): def __init__(self, tag=None, sender=None, template_name=None, html_content=None, html_url=None, subject=None, reply_to=None, to_field=None, attachment_url=None, is_active=None): # noqa: E501 """CreateSmtpTemplate - a model defined in Swagger""" # noqa: E501 - self._tag = None self._sender = None self._template_name = None @@ -72,7 +67,6 @@ def __init__(self, tag=None, sender=None, template_name=None, html_content=None, self._attachment_url = None self._is_active = None self.discriminator = None - if tag is not None: self.tag = tag self.sender = sender @@ -118,9 +112,10 @@ def tag(self, tag): def sender(self): """Gets the sender of this CreateSmtpTemplate. # noqa: E501 + Sender details including email and name (optional). For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` # noqa: E501 :return: The sender of this CreateSmtpTemplate. # noqa: E501 - :rtype: CreateSmtpTemplateSender + :rtype: object """ return self._sender @@ -128,9 +123,10 @@ def sender(self): def sender(self, sender): """Sets the sender of this CreateSmtpTemplate. + Sender details including email and name (optional). For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` # noqa: E501 :param sender: The sender of this CreateSmtpTemplate. # noqa: E501 - :type: CreateSmtpTemplateSender + :type: object """ if sender is None: raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 @@ -346,6 +342,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSmtpTemplate, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_smtp_template_sender.py b/sib_api_v3_sdk/models/create_smtp_template_sender.py deleted file mode 100644 index 8cd85a3..0000000 --- a/sib_api_v3_sdk/models/create_smtp_template_sender.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CreateSmtpTemplateSender(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'email': 'str' - } - - attribute_map = { - 'name': 'name', - 'email': 'email' - } - - def __init__(self, name=None, email=None): # noqa: E501 - """CreateSmtpTemplateSender - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._email = None - self.discriminator = None - - if name is not None: - self.name = name - self.email = email - - @property - def name(self): - """Gets the name of this CreateSmtpTemplateSender. # noqa: E501 - - Name of the sender. If not passed, will be set to default # noqa: E501 - - :return: The name of this CreateSmtpTemplateSender. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CreateSmtpTemplateSender. - - Name of the sender. If not passed, will be set to default # noqa: E501 - - :param name: The name of this CreateSmtpTemplateSender. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def email(self): - """Gets the email of this CreateSmtpTemplateSender. # noqa: E501 - - Email of the sender # noqa: E501 - - :return: The email of this CreateSmtpTemplateSender. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this CreateSmtpTemplateSender. - - Email of the sender # noqa: E501 - - :param email: The email of this CreateSmtpTemplateSender. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreateSmtpTemplateSender): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/create_update_contact_model.py b/sib_api_v3_sdk/models/create_update_contact_model.py index 5651f7f..0f2f515 100644 --- a/sib_api_v3_sdk/models/create_update_contact_model.py +++ b/sib_api_v3_sdk/models/create_update_contact_model.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreateUpdateContactModel(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class CreateUpdateContactModel(object): def __init__(self, id=None): # noqa: E501 """CreateUpdateContactModel - a model defined in Swagger""" # noqa: E501 - self._id = None self.discriminator = None - if id is not None: self.id = id @@ -91,6 +87,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateUpdateContactModel, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_update_folder.py b/sib_api_v3_sdk/models/create_update_folder.py index 259c555..e33cf08 100644 --- a/sib_api_v3_sdk/models/create_update_folder.py +++ b/sib_api_v3_sdk/models/create_update_folder.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreateUpdateFolder(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class CreateUpdateFolder(object): def __init__(self, name=None): # noqa: E501 """CreateUpdateFolder - a model defined in Swagger""" # noqa: E501 - self._name = None self.discriminator = None - if name is not None: self.name = name @@ -91,6 +87,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateUpdateFolder, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_webhook.py b/sib_api_v3_sdk/models/create_webhook.py index ab1db2a..56df1b2 100644 --- a/sib_api_v3_sdk/models/create_webhook.py +++ b/sib_api_v3_sdk/models/create_webhook.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreateWebhook(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -46,13 +44,11 @@ class CreateWebhook(object): def __init__(self, url=None, description=None, events=None, type='transactional'): # noqa: E501 """CreateWebhook - a model defined in Swagger""" # noqa: E501 - self._url = None self._description = None self._events = None self._type = None self.discriminator = None - self.url = url if description is not None: self.description = description @@ -190,6 +186,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateWebhook, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/created_process_id.py b/sib_api_v3_sdk/models/created_process_id.py index 1bca7c8..aabab7e 100644 --- a/sib_api_v3_sdk/models/created_process_id.py +++ b/sib_api_v3_sdk/models/created_process_id.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class CreatedProcessId(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class CreatedProcessId(object): def __init__(self, process_id=None): # noqa: E501 """CreatedProcessId - a model defined in Swagger""" # noqa: E501 - self._process_id = None self.discriminator = None - self.process_id = process_id @property @@ -92,6 +88,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreatedProcessId, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/delete_hardbounces.py b/sib_api_v3_sdk/models/delete_hardbounces.py index b694f70..879a3c3 100644 --- a/sib_api_v3_sdk/models/delete_hardbounces.py +++ b/sib_api_v3_sdk/models/delete_hardbounces.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class DeleteHardbounces(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,12 +42,10 @@ class DeleteHardbounces(object): def __init__(self, start_date=None, end_date=None, contact_email=None): # noqa: E501 """DeleteHardbounces - a model defined in Swagger""" # noqa: E501 - self._start_date = None self._end_date = None self._contact_email = None self.discriminator = None - if start_date is not None: self.start_date = start_date if end_date is not None: @@ -147,6 +143,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(DeleteHardbounces, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/email_export_recipients.py b/sib_api_v3_sdk/models/email_export_recipients.py index 7ad832e..9f16fba 100644 --- a/sib_api_v3_sdk/models/email_export_recipients.py +++ b/sib_api_v3_sdk/models/email_export_recipients.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class EmailExportRecipients(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class EmailExportRecipients(object): def __init__(self, notify_url=None, recipients_type=None): # noqa: E501 """EmailExportRecipients - a model defined in Swagger""" # noqa: E501 - self._notify_url = None self._recipients_type = None self.discriminator = None - if notify_url is not None: self.notify_url = notify_url self.recipients_type = recipients_type @@ -126,6 +122,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(EmailExportRecipients, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/error_model.py b/sib_api_v3_sdk/models/error_model.py index 09ac29f..884f59d 100644 --- a/sib_api_v3_sdk/models/error_model.py +++ b/sib_api_v3_sdk/models/error_model.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class ErrorModel(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class ErrorModel(object): def __init__(self, code=None, message=None): # noqa: E501 """ErrorModel - a model defined in Swagger""" # noqa: E501 - self._code = None self._message = None self.discriminator = None - self.code = code self.message = message @@ -127,6 +123,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ErrorModel, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_account.py b/sib_api_v3_sdk/models/get_account.py index 1f6cfa9..b89f4cb 100644 --- a/sib_api_v3_sdk/models/get_account.py +++ b/sib_api_v3_sdk/models/get_account.py @@ -10,25 +10,18 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - -from sib_api_v3_sdk.models.get_account_marketing_automation import GetAccountMarketingAutomation # noqa: F401,E501 -from sib_api_v3_sdk.models.get_account_plan import GetAccountPlan # noqa: F401,E501 -from sib_api_v3_sdk.models.get_account_relay import GetAccountRelay # noqa: F401,E501 from sib_api_v3_sdk.models.get_extended_client import GetExtendedClient # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_client_address import GetExtendedClientAddress # noqa: F401,E501 -class GetAccount(object): +class GetAccount(GetExtendedClient): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -37,173 +30,28 @@ class GetAccount(object): and the value is json key in definition. """ swagger_types = { - 'email': 'str', - 'first_name': 'str', - 'last_name': 'str', - 'company_name': 'str', - 'address': 'GetExtendedClientAddress', - 'plan': 'list[GetAccountPlan]', - 'relay': 'GetAccountRelay', - 'marketing_automation': 'GetAccountMarketingAutomation' + 'plan': 'list[object]', + 'relay': 'object', + 'marketing_automation': 'object' } attribute_map = { - 'email': 'email', - 'first_name': 'firstName', - 'last_name': 'lastName', - 'company_name': 'companyName', - 'address': 'address', 'plan': 'plan', 'relay': 'relay', 'marketing_automation': 'marketingAutomation' } - def __init__(self, email=None, first_name=None, last_name=None, company_name=None, address=None, plan=None, relay=None, marketing_automation=None): # noqa: E501 + def __init__(self, plan=None, relay=None, marketing_automation=None): # noqa: E501 """GetAccount - a model defined in Swagger""" # noqa: E501 - - self._email = None - self._first_name = None - self._last_name = None - self._company_name = None - self._address = None self._plan = None self._relay = None self._marketing_automation = None self.discriminator = None - - self.email = email - self.first_name = first_name - self.last_name = last_name - self.company_name = company_name - self.address = address self.plan = plan self.relay = relay if marketing_automation is not None: self.marketing_automation = marketing_automation - @property - def email(self): - """Gets the email of this GetAccount. # noqa: E501 - - Login Email # noqa: E501 - - :return: The email of this GetAccount. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this GetAccount. - - Login Email # noqa: E501 - - :param email: The email of this GetAccount. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def first_name(self): - """Gets the first_name of this GetAccount. # noqa: E501 - - First Name # noqa: E501 - - :return: The first_name of this GetAccount. # noqa: E501 - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """Sets the first_name of this GetAccount. - - First Name # noqa: E501 - - :param first_name: The first_name of this GetAccount. # noqa: E501 - :type: str - """ - if first_name is None: - raise ValueError("Invalid value for `first_name`, must not be `None`") # noqa: E501 - - self._first_name = first_name - - @property - def last_name(self): - """Gets the last_name of this GetAccount. # noqa: E501 - - Last Name # noqa: E501 - - :return: The last_name of this GetAccount. # noqa: E501 - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """Sets the last_name of this GetAccount. - - Last Name # noqa: E501 - - :param last_name: The last_name of this GetAccount. # noqa: E501 - :type: str - """ - if last_name is None: - raise ValueError("Invalid value for `last_name`, must not be `None`") # noqa: E501 - - self._last_name = last_name - - @property - def company_name(self): - """Gets the company_name of this GetAccount. # noqa: E501 - - Name of the company # noqa: E501 - - :return: The company_name of this GetAccount. # noqa: E501 - :rtype: str - """ - return self._company_name - - @company_name.setter - def company_name(self, company_name): - """Sets the company_name of this GetAccount. - - Name of the company # noqa: E501 - - :param company_name: The company_name of this GetAccount. # noqa: E501 - :type: str - """ - if company_name is None: - raise ValueError("Invalid value for `company_name`, must not be `None`") # noqa: E501 - - self._company_name = company_name - - @property - def address(self): - """Gets the address of this GetAccount. # noqa: E501 - - - :return: The address of this GetAccount. # noqa: E501 - :rtype: GetExtendedClientAddress - """ - return self._address - - @address.setter - def address(self, address): - """Sets the address of this GetAccount. - - - :param address: The address of this GetAccount. # noqa: E501 - :type: GetExtendedClientAddress - """ - if address is None: - raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 - - self._address = address - @property def plan(self): """Gets the plan of this GetAccount. # noqa: E501 @@ -211,7 +59,7 @@ def plan(self): Information about your plans and credits # noqa: E501 :return: The plan of this GetAccount. # noqa: E501 - :rtype: list[GetAccountPlan] + :rtype: list[object] """ return self._plan @@ -222,7 +70,7 @@ def plan(self, plan): Information about your plans and credits # noqa: E501 :param plan: The plan of this GetAccount. # noqa: E501 - :type: list[GetAccountPlan] + :type: list[object] """ if plan is None: raise ValueError("Invalid value for `plan`, must not be `None`") # noqa: E501 @@ -233,9 +81,10 @@ def plan(self, plan): def relay(self): """Gets the relay of this GetAccount. # noqa: E501 + Information about your SMTP account # noqa: E501 :return: The relay of this GetAccount. # noqa: E501 - :rtype: GetAccountRelay + :rtype: object """ return self._relay @@ -243,9 +92,10 @@ def relay(self): def relay(self, relay): """Sets the relay of this GetAccount. + Information about your SMTP account # noqa: E501 :param relay: The relay of this GetAccount. # noqa: E501 - :type: GetAccountRelay + :type: object """ if relay is None: raise ValueError("Invalid value for `relay`, must not be `None`") # noqa: E501 @@ -258,7 +108,7 @@ def marketing_automation(self): :return: The marketing_automation of this GetAccount. # noqa: E501 - :rtype: GetAccountMarketingAutomation + :rtype: object """ return self._marketing_automation @@ -268,7 +118,7 @@ def marketing_automation(self, marketing_automation): :param marketing_automation: The marketing_automation of this GetAccount. # noqa: E501 - :type: GetAccountMarketingAutomation + :type: object """ self._marketing_automation = marketing_automation @@ -294,6 +144,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAccount, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_account_marketing_automation.py b/sib_api_v3_sdk/models/get_account_marketing_automation.py deleted file mode 100644 index cee10a5..0000000 --- a/sib_api_v3_sdk/models/get_account_marketing_automation.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetAccountMarketingAutomation(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'key': 'str', - 'enabled': 'bool' - } - - attribute_map = { - 'key': 'key', - 'enabled': 'enabled' - } - - def __init__(self, key=None, enabled=None): # noqa: E501 - """GetAccountMarketingAutomation - a model defined in Swagger""" # noqa: E501 - - self._key = None - self._enabled = None - self.discriminator = None - - if key is not None: - self.key = key - self.enabled = enabled - - @property - def key(self): - """Gets the key of this GetAccountMarketingAutomation. # noqa: E501 - - Marketing Automation Tracker ID # noqa: E501 - - :return: The key of this GetAccountMarketingAutomation. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this GetAccountMarketingAutomation. - - Marketing Automation Tracker ID # noqa: E501 - - :param key: The key of this GetAccountMarketingAutomation. # noqa: E501 - :type: str - """ - - self._key = key - - @property - def enabled(self): - """Gets the enabled of this GetAccountMarketingAutomation. # noqa: E501 - - Status of Marketing Automation Plateform activation for your account (true=enabled, false=disabled) # noqa: E501 - - :return: The enabled of this GetAccountMarketingAutomation. # noqa: E501 - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """Sets the enabled of this GetAccountMarketingAutomation. - - Status of Marketing Automation Plateform activation for your account (true=enabled, false=disabled) # noqa: E501 - - :param enabled: The enabled of this GetAccountMarketingAutomation. # noqa: E501 - :type: bool - """ - if enabled is None: - raise ValueError("Invalid value for `enabled`, must not be `None`") # noqa: E501 - - self._enabled = enabled - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetAccountMarketingAutomation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_account_plan.py b/sib_api_v3_sdk/models/get_account_plan.py deleted file mode 100644 index 8a32089..0000000 --- a/sib_api_v3_sdk/models/get_account_plan.py +++ /dev/null @@ -1,269 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetAccountPlan(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'str', - 'credits_type': 'str', - 'credits': 'float', - 'start_date': 'date', - 'end_date': 'date', - 'user_limit': 'int' - } - - attribute_map = { - 'type': 'type', - 'credits_type': 'creditsType', - 'credits': 'credits', - 'start_date': 'startDate', - 'end_date': 'endDate', - 'user_limit': 'userLimit' - } - - def __init__(self, type=None, credits_type=None, credits=None, start_date=None, end_date=None, user_limit=None): # noqa: E501 - """GetAccountPlan - a model defined in Swagger""" # noqa: E501 - - self._type = None - self._credits_type = None - self._credits = None - self._start_date = None - self._end_date = None - self._user_limit = None - self.discriminator = None - - self.type = type - self.credits_type = credits_type - self.credits = credits - if start_date is not None: - self.start_date = start_date - if end_date is not None: - self.end_date = end_date - if user_limit is not None: - self.user_limit = user_limit - - @property - def type(self): - """Gets the type of this GetAccountPlan. # noqa: E501 - - Displays the plan type of the user # noqa: E501 - - :return: The type of this GetAccountPlan. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this GetAccountPlan. - - Displays the plan type of the user # noqa: E501 - - :param type: The type of this GetAccountPlan. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["payAsYouGo", "free", "subscription", "sms", "reseller"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - @property - def credits_type(self): - """Gets the credits_type of this GetAccountPlan. # noqa: E501 - - This is the type of the credit, \"Send Limit\" is one of the possible types of credit of a user. \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. # noqa: E501 - - :return: The credits_type of this GetAccountPlan. # noqa: E501 - :rtype: str - """ - return self._credits_type - - @credits_type.setter - def credits_type(self, credits_type): - """Sets the credits_type of this GetAccountPlan. - - This is the type of the credit, \"Send Limit\" is one of the possible types of credit of a user. \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. # noqa: E501 - - :param credits_type: The credits_type of this GetAccountPlan. # noqa: E501 - :type: str - """ - if credits_type is None: - raise ValueError("Invalid value for `credits_type`, must not be `None`") # noqa: E501 - allowed_values = ["sendLimit"] # noqa: E501 - if credits_type not in allowed_values: - raise ValueError( - "Invalid value for `credits_type` ({0}), must be one of {1}" # noqa: E501 - .format(credits_type, allowed_values) - ) - - self._credits_type = credits_type - - @property - def credits(self): - """Gets the credits of this GetAccountPlan. # noqa: E501 - - Remaining credits of the user # noqa: E501 - - :return: The credits of this GetAccountPlan. # noqa: E501 - :rtype: float - """ - return self._credits - - @credits.setter - def credits(self, credits): - """Sets the credits of this GetAccountPlan. - - Remaining credits of the user # noqa: E501 - - :param credits: The credits of this GetAccountPlan. # noqa: E501 - :type: float - """ - if credits is None: - raise ValueError("Invalid value for `credits`, must not be `None`") # noqa: E501 - - self._credits = credits - - @property - def start_date(self): - """Gets the start_date of this GetAccountPlan. # noqa: E501 - - Date of the period from which the plan will start (only available for \"subscription\" and \"reseller\" plan type) # noqa: E501 - - :return: The start_date of this GetAccountPlan. # noqa: E501 - :rtype: date - """ - return self._start_date - - @start_date.setter - def start_date(self, start_date): - """Sets the start_date of this GetAccountPlan. - - Date of the period from which the plan will start (only available for \"subscription\" and \"reseller\" plan type) # noqa: E501 - - :param start_date: The start_date of this GetAccountPlan. # noqa: E501 - :type: date - """ - - self._start_date = start_date - - @property - def end_date(self): - """Gets the end_date of this GetAccountPlan. # noqa: E501 - - Date of the period from which the plan will end (only available for \"subscription\" and \"reseller\" plan type) # noqa: E501 - - :return: The end_date of this GetAccountPlan. # noqa: E501 - :rtype: date - """ - return self._end_date - - @end_date.setter - def end_date(self, end_date): - """Sets the end_date of this GetAccountPlan. - - Date of the period from which the plan will end (only available for \"subscription\" and \"reseller\" plan type) # noqa: E501 - - :param end_date: The end_date of this GetAccountPlan. # noqa: E501 - :type: date - """ - - self._end_date = end_date - - @property - def user_limit(self): - """Gets the user_limit of this GetAccountPlan. # noqa: E501 - - Only in case of reseller account. It implies the total number of child accounts you can add to your account. # noqa: E501 - - :return: The user_limit of this GetAccountPlan. # noqa: E501 - :rtype: int - """ - return self._user_limit - - @user_limit.setter - def user_limit(self, user_limit): - """Sets the user_limit of this GetAccountPlan. - - Only in case of reseller account. It implies the total number of child accounts you can add to your account. # noqa: E501 - - :param user_limit: The user_limit of this GetAccountPlan. # noqa: E501 - :type: int - """ - - self._user_limit = user_limit - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetAccountPlan): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_account_relay.py b/sib_api_v3_sdk/models/get_account_relay.py deleted file mode 100644 index 47c0492..0000000 --- a/sib_api_v3_sdk/models/get_account_relay.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from sib_api_v3_sdk.models.get_account_relay_data import GetAccountRelayData # noqa: F401,E501 - - -class GetAccountRelay(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'enabled': 'bool', - 'data': 'GetAccountRelayData' - } - - attribute_map = { - 'enabled': 'enabled', - 'data': 'data' - } - - def __init__(self, enabled=None, data=None): # noqa: E501 - """GetAccountRelay - a model defined in Swagger""" # noqa: E501 - - self._enabled = None - self._data = None - self.discriminator = None - - self.enabled = enabled - self.data = data - - @property - def enabled(self): - """Gets the enabled of this GetAccountRelay. # noqa: E501 - - Status of your SMTP Account (true=Enabled, false=Disabled) # noqa: E501 - - :return: The enabled of this GetAccountRelay. # noqa: E501 - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """Sets the enabled of this GetAccountRelay. - - Status of your SMTP Account (true=Enabled, false=Disabled) # noqa: E501 - - :param enabled: The enabled of this GetAccountRelay. # noqa: E501 - :type: bool - """ - if enabled is None: - raise ValueError("Invalid value for `enabled`, must not be `None`") # noqa: E501 - - self._enabled = enabled - - @property - def data(self): - """Gets the data of this GetAccountRelay. # noqa: E501 - - - :return: The data of this GetAccountRelay. # noqa: E501 - :rtype: GetAccountRelayData - """ - return self._data - - @data.setter - def data(self, data): - """Sets the data of this GetAccountRelay. - - - :param data: The data of this GetAccountRelay. # noqa: E501 - :type: GetAccountRelayData - """ - if data is None: - raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 - - self._data = data - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetAccountRelay): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_account_relay_data.py b/sib_api_v3_sdk/models/get_account_relay_data.py deleted file mode 100644 index af75367..0000000 --- a/sib_api_v3_sdk/models/get_account_relay_data.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetAccountRelayData(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'user_name': 'str', - 'relay': 'str', - 'port': 'int' - } - - attribute_map = { - 'user_name': 'userName', - 'relay': 'relay', - 'port': 'port' - } - - def __init__(self, user_name=None, relay=None, port=None): # noqa: E501 - """GetAccountRelayData - a model defined in Swagger""" # noqa: E501 - - self._user_name = None - self._relay = None - self._port = None - self.discriminator = None - - self.user_name = user_name - self.relay = relay - self.port = port - - @property - def user_name(self): - """Gets the user_name of this GetAccountRelayData. # noqa: E501 - - Email to use as login on SMTP # noqa: E501 - - :return: The user_name of this GetAccountRelayData. # noqa: E501 - :rtype: str - """ - return self._user_name - - @user_name.setter - def user_name(self, user_name): - """Sets the user_name of this GetAccountRelayData. - - Email to use as login on SMTP # noqa: E501 - - :param user_name: The user_name of this GetAccountRelayData. # noqa: E501 - :type: str - """ - if user_name is None: - raise ValueError("Invalid value for `user_name`, must not be `None`") # noqa: E501 - - self._user_name = user_name - - @property - def relay(self): - """Gets the relay of this GetAccountRelayData. # noqa: E501 - - URL of the SMTP Relay # noqa: E501 - - :return: The relay of this GetAccountRelayData. # noqa: E501 - :rtype: str - """ - return self._relay - - @relay.setter - def relay(self, relay): - """Sets the relay of this GetAccountRelayData. - - URL of the SMTP Relay # noqa: E501 - - :param relay: The relay of this GetAccountRelayData. # noqa: E501 - :type: str - """ - if relay is None: - raise ValueError("Invalid value for `relay`, must not be `None`") # noqa: E501 - - self._relay = relay - - @property - def port(self): - """Gets the port of this GetAccountRelayData. # noqa: E501 - - Port used for SMTP Relay # noqa: E501 - - :return: The port of this GetAccountRelayData. # noqa: E501 - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """Sets the port of this GetAccountRelayData. - - Port used for SMTP Relay # noqa: E501 - - :param port: The port of this GetAccountRelayData. # noqa: E501 - :type: int - """ - if port is None: - raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 - - self._port = port - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetAccountRelayData): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_aggregated_report.py b/sib_api_v3_sdk/models/get_aggregated_report.py index b038823..2eac0e9 100644 --- a/sib_api_v3_sdk/models/get_aggregated_report.py +++ b/sib_api_v3_sdk/models/get_aggregated_report.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetAggregatedReport(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -64,7 +62,6 @@ class GetAggregatedReport(object): def __init__(self, range=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, clicks=None, unique_clicks=None, opens=None, unique_opens=None, spam_reports=None, blocked=None, invalid=None, unsubscribed=None): # noqa: E501 """GetAggregatedReport - a model defined in Swagger""" # noqa: E501 - self._range = None self._requests = None self._delivered = None @@ -79,7 +76,6 @@ def __init__(self, range=None, requests=None, delivered=None, hard_bounces=None, self._invalid = None self._unsubscribed = None self.discriminator = None - self.range = range self.requests = requests self.delivered = delivered @@ -440,6 +436,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAggregatedReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_attributes.py b/sib_api_v3_sdk/models/get_attributes.py index 6b216f0..13629af 100644 --- a/sib_api_v3_sdk/models/get_attributes.py +++ b/sib_api_v3_sdk/models/get_attributes.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.get_attributes_attributes import GetAttributesAttributes # noqa: F401,E501 - class GetAttributes(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -33,7 +29,7 @@ class GetAttributes(object): and the value is json key in definition. """ swagger_types = { - 'attributes': 'list[GetAttributesAttributes]' + 'attributes': 'list[object]' } attribute_map = { @@ -42,10 +38,8 @@ class GetAttributes(object): def __init__(self, attributes=None): # noqa: E501 """GetAttributes - a model defined in Swagger""" # noqa: E501 - self._attributes = None self.discriminator = None - self.attributes = attributes @property @@ -55,7 +49,7 @@ def attributes(self): Listing of available contact attributes in your account # noqa: E501 :return: The attributes of this GetAttributes. # noqa: E501 - :rtype: list[GetAttributesAttributes] + :rtype: list[object] """ return self._attributes @@ -66,7 +60,7 @@ def attributes(self, attributes): Listing of available contact attributes in your account # noqa: E501 :param attributes: The attributes of this GetAttributes. # noqa: E501 - :type: list[GetAttributesAttributes] + :type: list[object] """ if attributes is None: raise ValueError("Invalid value for `attributes`, must not be `None`") # noqa: E501 @@ -94,6 +88,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAttributes, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_attributes_attributes.py b/sib_api_v3_sdk/models/get_attributes_attributes.py deleted file mode 100644 index 194c07d..0000000 --- a/sib_api_v3_sdk/models/get_attributes_attributes.py +++ /dev/null @@ -1,242 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from sib_api_v3_sdk.models.get_attributes_enumeration import GetAttributesEnumeration # noqa: F401,E501 - - -class GetAttributesAttributes(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'category': 'str', - 'type': 'str', - 'enumeration': 'list[GetAttributesEnumeration]', - 'calculated_value': 'str' - } - - attribute_map = { - 'name': 'name', - 'category': 'category', - 'type': 'type', - 'enumeration': 'enumeration', - 'calculated_value': 'calculatedValue' - } - - def __init__(self, name=None, category=None, type=None, enumeration=None, calculated_value=None): # noqa: E501 - """GetAttributesAttributes - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._category = None - self._type = None - self._enumeration = None - self._calculated_value = None - self.discriminator = None - - self.name = name - self.category = category - if type is not None: - self.type = type - if enumeration is not None: - self.enumeration = enumeration - if calculated_value is not None: - self.calculated_value = calculated_value - - @property - def name(self): - """Gets the name of this GetAttributesAttributes. # noqa: E501 - - Name of the attribute # noqa: E501 - - :return: The name of this GetAttributesAttributes. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetAttributesAttributes. - - Name of the attribute # noqa: E501 - - :param name: The name of this GetAttributesAttributes. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def category(self): - """Gets the category of this GetAttributesAttributes. # noqa: E501 - - Category of the attribute # noqa: E501 - - :return: The category of this GetAttributesAttributes. # noqa: E501 - :rtype: str - """ - return self._category - - @category.setter - def category(self, category): - """Sets the category of this GetAttributesAttributes. - - Category of the attribute # noqa: E501 - - :param category: The category of this GetAttributesAttributes. # noqa: E501 - :type: str - """ - if category is None: - raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 - allowed_values = ["normal", "transactional", "category", "calculated", "global"] # noqa: E501 - if category not in allowed_values: - raise ValueError( - "Invalid value for `category` ({0}), must be one of {1}" # noqa: E501 - .format(category, allowed_values) - ) - - self._category = category - - @property - def type(self): - """Gets the type of this GetAttributesAttributes. # noqa: E501 - - Type of the attribute # noqa: E501 - - :return: The type of this GetAttributesAttributes. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this GetAttributesAttributes. - - Type of the attribute # noqa: E501 - - :param type: The type of this GetAttributesAttributes. # noqa: E501 - :type: str - """ - allowed_values = ["text", "date", "float", "id", "boolean"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - @property - def enumeration(self): - """Gets the enumeration of this GetAttributesAttributes. # noqa: E501 - - Parameter only available for \"category\" type attributes. # noqa: E501 - - :return: The enumeration of this GetAttributesAttributes. # noqa: E501 - :rtype: list[GetAttributesEnumeration] - """ - return self._enumeration - - @enumeration.setter - def enumeration(self, enumeration): - """Sets the enumeration of this GetAttributesAttributes. - - Parameter only available for \"category\" type attributes. # noqa: E501 - - :param enumeration: The enumeration of this GetAttributesAttributes. # noqa: E501 - :type: list[GetAttributesEnumeration] - """ - - self._enumeration = enumeration - - @property - def calculated_value(self): - """Gets the calculated_value of this GetAttributesAttributes. # noqa: E501 - - Calculated value formula # noqa: E501 - - :return: The calculated_value of this GetAttributesAttributes. # noqa: E501 - :rtype: str - """ - return self._calculated_value - - @calculated_value.setter - def calculated_value(self, calculated_value): - """Sets the calculated_value of this GetAttributesAttributes. - - Calculated value formula # noqa: E501 - - :param calculated_value: The calculated_value of this GetAttributesAttributes. # noqa: E501 - :type: str - """ - - self._calculated_value = calculated_value - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetAttributesAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_attributes_enumeration.py b/sib_api_v3_sdk/models/get_attributes_enumeration.py deleted file mode 100644 index d72716c..0000000 --- a/sib_api_v3_sdk/models/get_attributes_enumeration.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetAttributesEnumeration(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'value': 'int', - 'label': 'str' - } - - attribute_map = { - 'value': 'value', - 'label': 'label' - } - - def __init__(self, value=None, label=None): # noqa: E501 - """GetAttributesEnumeration - a model defined in Swagger""" # noqa: E501 - - self._value = None - self._label = None - self.discriminator = None - - self.value = value - self.label = label - - @property - def value(self): - """Gets the value of this GetAttributesEnumeration. # noqa: E501 - - ID of Value of the \"category\" type attribute # noqa: E501 - - :return: The value of this GetAttributesEnumeration. # noqa: E501 - :rtype: int - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this GetAttributesEnumeration. - - ID of Value of the \"category\" type attribute # noqa: E501 - - :param value: The value of this GetAttributesEnumeration. # noqa: E501 - :type: int - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def label(self): - """Gets the label of this GetAttributesEnumeration. # noqa: E501 - - Label of the \"category\" type attribute # noqa: E501 - - :return: The label of this GetAttributesEnumeration. # noqa: E501 - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this GetAttributesEnumeration. - - Label of the \"category\" type attribute # noqa: E501 - - :param label: The label of this GetAttributesEnumeration. # noqa: E501 - :type: str - """ - if label is None: - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - - self._label = label - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetAttributesEnumeration): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_campaign_overview.py b/sib_api_v3_sdk/models/get_campaign_overview.py index 7c9c2aa..76e0a56 100644 --- a/sib_api_v3_sdk/models/get_campaign_overview.py +++ b/sib_api_v3_sdk/models/get_campaign_overview.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetCampaignOverview(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -64,7 +62,6 @@ class GetCampaignOverview(object): def __init__(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None): # noqa: E501 """GetCampaignOverview - a model defined in Swagger""" # noqa: E501 - self._id = None self._name = None self._subject = None @@ -79,7 +76,6 @@ def __init__(self, id=None, name=None, subject=None, type=None, status=None, sch self._winner_delay = None self._send_at_best_time = None self.discriminator = None - self.id = id self.name = name if subject is not None: @@ -443,6 +439,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetCampaignOverview, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_campaign_recipients.py b/sib_api_v3_sdk/models/get_campaign_recipients.py index cbea1a6..41578bb 100644 --- a/sib_api_v3_sdk/models/get_campaign_recipients.py +++ b/sib_api_v3_sdk/models/get_campaign_recipients.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetCampaignRecipients(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class GetCampaignRecipients(object): def __init__(self, lists=None, exclusion_lists=None): # noqa: E501 """GetCampaignRecipients - a model defined in Swagger""" # noqa: E501 - self._lists = None self._exclusion_lists = None self.discriminator = None - self.lists = lists self.exclusion_lists = exclusion_lists @@ -117,6 +113,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetCampaignRecipients, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_campaign_stats.py b/sib_api_v3_sdk/models/get_campaign_stats.py index cdcf243..0011612 100644 --- a/sib_api_v3_sdk/models/get_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_campaign_stats.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetCampaignStats(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -62,7 +60,6 @@ class GetCampaignStats(object): def __init__(self, list_id=None, unique_clicks=None, clickers=None, complaints=None, delivered=None, sent=None, soft_bounces=None, hard_bounces=None, unique_views=None, unsubscriptions=None, viewed=None, deferred=None): # noqa: E501 """GetCampaignStats - a model defined in Swagger""" # noqa: E501 - self._list_id = None self._unique_clicks = None self._clickers = None @@ -76,7 +73,6 @@ def __init__(self, list_id=None, unique_clicks=None, clickers=None, complaints=N self._viewed = None self._deferred = None self.discriminator = None - if list_id is not None: self.list_id = list_id self.unique_clicks = unique_clicks @@ -409,6 +405,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetCampaignStats, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_child_info.py b/sib_api_v3_sdk/models/get_child_info.py index cb3de83..8209d23 100644 --- a/sib_api_v3_sdk/models/get_child_info.py +++ b/sib_api_v3_sdk/models/get_child_info.py @@ -10,24 +10,18 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - -from sib_api_v3_sdk.models.get_child_info_api_keys import GetChildInfoApiKeys # noqa: F401,E501 -from sib_api_v3_sdk.models.get_child_info_credits import GetChildInfoCredits # noqa: F401,E501 -from sib_api_v3_sdk.models.get_child_info_statistics import GetChildInfoStatistics # noqa: F401,E501 from sib_api_v3_sdk.models.get_client import GetClient # noqa: F401,E501 -class GetChildInfo(object): +class GetChildInfo(GetClient): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -36,22 +30,14 @@ class GetChildInfo(object): and the value is json key in definition. """ swagger_types = { - 'email': 'str', - 'first_name': 'str', - 'last_name': 'str', - 'company_name': 'str', - 'credits': 'GetChildInfoCredits', - 'statistics': 'GetChildInfoStatistics', + 'credits': 'object', + 'statistics': 'object', 'password': 'str', 'ips': 'list[str]', - 'api_keys': 'GetChildInfoApiKeys' + 'api_keys': 'object' } attribute_map = { - 'email': 'email', - 'first_name': 'firstName', - 'last_name': 'lastName', - 'company_name': 'companyName', 'credits': 'credits', 'statistics': 'statistics', 'password': 'password', @@ -59,24 +45,14 @@ class GetChildInfo(object): 'api_keys': 'apiKeys' } - def __init__(self, email=None, first_name=None, last_name=None, company_name=None, credits=None, statistics=None, password=None, ips=None, api_keys=None): # noqa: E501 + def __init__(self, credits=None, statistics=None, password=None, ips=None, api_keys=None): # noqa: E501 """GetChildInfo - a model defined in Swagger""" # noqa: E501 - - self._email = None - self._first_name = None - self._last_name = None - self._company_name = None self._credits = None self._statistics = None self._password = None self._ips = None self._api_keys = None self.discriminator = None - - self.email = email - self.first_name = first_name - self.last_name = last_name - self.company_name = company_name if credits is not None: self.credits = credits if statistics is not None: @@ -87,113 +63,14 @@ def __init__(self, email=None, first_name=None, last_name=None, company_name=Non if api_keys is not None: self.api_keys = api_keys - @property - def email(self): - """Gets the email of this GetChildInfo. # noqa: E501 - - Login Email # noqa: E501 - - :return: The email of this GetChildInfo. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this GetChildInfo. - - Login Email # noqa: E501 - - :param email: The email of this GetChildInfo. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def first_name(self): - """Gets the first_name of this GetChildInfo. # noqa: E501 - - First Name # noqa: E501 - - :return: The first_name of this GetChildInfo. # noqa: E501 - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """Sets the first_name of this GetChildInfo. - - First Name # noqa: E501 - - :param first_name: The first_name of this GetChildInfo. # noqa: E501 - :type: str - """ - if first_name is None: - raise ValueError("Invalid value for `first_name`, must not be `None`") # noqa: E501 - - self._first_name = first_name - - @property - def last_name(self): - """Gets the last_name of this GetChildInfo. # noqa: E501 - - Last Name # noqa: E501 - - :return: The last_name of this GetChildInfo. # noqa: E501 - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """Sets the last_name of this GetChildInfo. - - Last Name # noqa: E501 - - :param last_name: The last_name of this GetChildInfo. # noqa: E501 - :type: str - """ - if last_name is None: - raise ValueError("Invalid value for `last_name`, must not be `None`") # noqa: E501 - - self._last_name = last_name - - @property - def company_name(self): - """Gets the company_name of this GetChildInfo. # noqa: E501 - - Name of the company # noqa: E501 - - :return: The company_name of this GetChildInfo. # noqa: E501 - :rtype: str - """ - return self._company_name - - @company_name.setter - def company_name(self, company_name): - """Sets the company_name of this GetChildInfo. - - Name of the company # noqa: E501 - - :param company_name: The company_name of this GetChildInfo. # noqa: E501 - :type: str - """ - if company_name is None: - raise ValueError("Invalid value for `company_name`, must not be `None`") # noqa: E501 - - self._company_name = company_name - @property def credits(self): """Gets the credits of this GetChildInfo. # noqa: E501 + Credits available for your child # noqa: E501 :return: The credits of this GetChildInfo. # noqa: E501 - :rtype: GetChildInfoCredits + :rtype: object """ return self._credits @@ -201,9 +78,10 @@ def credits(self): def credits(self, credits): """Sets the credits of this GetChildInfo. + Credits available for your child # noqa: E501 :param credits: The credits of this GetChildInfo. # noqa: E501 - :type: GetChildInfoCredits + :type: object """ self._credits = credits @@ -212,9 +90,10 @@ def credits(self, credits): def statistics(self): """Gets the statistics of this GetChildInfo. # noqa: E501 + Statistics about your child account activity # noqa: E501 :return: The statistics of this GetChildInfo. # noqa: E501 - :rtype: GetChildInfoStatistics + :rtype: object """ return self._statistics @@ -222,9 +101,10 @@ def statistics(self): def statistics(self, statistics): """Sets the statistics of this GetChildInfo. + Statistics about your child account activity # noqa: E501 :param statistics: The statistics of this GetChildInfo. # noqa: E501 - :type: GetChildInfoStatistics + :type: object """ self._statistics = statistics @@ -281,9 +161,10 @@ def ips(self, ips): def api_keys(self): """Gets the api_keys of this GetChildInfo. # noqa: E501 + API Keys associated to child account # noqa: E501 :return: The api_keys of this GetChildInfo. # noqa: E501 - :rtype: GetChildInfoApiKeys + :rtype: object """ return self._api_keys @@ -291,9 +172,10 @@ def api_keys(self): def api_keys(self, api_keys): """Sets the api_keys of this GetChildInfo. + API Keys associated to child account # noqa: E501 :param api_keys: The api_keys of this GetChildInfo. # noqa: E501 - :type: GetChildInfoApiKeys + :type: object """ self._api_keys = api_keys @@ -319,6 +201,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildInfo, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_child_info_api_keys.py b/sib_api_v3_sdk/models/get_child_info_api_keys.py deleted file mode 100644 index 6c61219..0000000 --- a/sib_api_v3_sdk/models/get_child_info_api_keys.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from sib_api_v3_sdk.models.get_child_info_api_keys_v2 import GetChildInfoApiKeysV2 # noqa: F401,E501 -from sib_api_v3_sdk.models.get_child_info_api_keys_v3 import GetChildInfoApiKeysV3 # noqa: F401,E501 - - -class GetChildInfoApiKeys(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'v2': 'list[GetChildInfoApiKeysV2]', - 'v3': 'list[GetChildInfoApiKeysV3]' - } - - attribute_map = { - 'v2': 'v2', - 'v3': 'v3' - } - - def __init__(self, v2=None, v3=None): # noqa: E501 - """GetChildInfoApiKeys - a model defined in Swagger""" # noqa: E501 - - self._v2 = None - self._v3 = None - self.discriminator = None - - self.v2 = v2 - if v3 is not None: - self.v3 = v3 - - @property - def v2(self): - """Gets the v2 of this GetChildInfoApiKeys. # noqa: E501 - - - :return: The v2 of this GetChildInfoApiKeys. # noqa: E501 - :rtype: list[GetChildInfoApiKeysV2] - """ - return self._v2 - - @v2.setter - def v2(self, v2): - """Sets the v2 of this GetChildInfoApiKeys. - - - :param v2: The v2 of this GetChildInfoApiKeys. # noqa: E501 - :type: list[GetChildInfoApiKeysV2] - """ - if v2 is None: - raise ValueError("Invalid value for `v2`, must not be `None`") # noqa: E501 - - self._v2 = v2 - - @property - def v3(self): - """Gets the v3 of this GetChildInfoApiKeys. # noqa: E501 - - - :return: The v3 of this GetChildInfoApiKeys. # noqa: E501 - :rtype: list[GetChildInfoApiKeysV3] - """ - return self._v3 - - @v3.setter - def v3(self, v3): - """Sets the v3 of this GetChildInfoApiKeys. - - - :param v3: The v3 of this GetChildInfoApiKeys. # noqa: E501 - :type: list[GetChildInfoApiKeysV3] - """ - - self._v3 = v3 - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetChildInfoApiKeys): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_child_info_api_keys_v2.py b/sib_api_v3_sdk/models/get_child_info_api_keys_v2.py deleted file mode 100644 index f3f9b22..0000000 --- a/sib_api_v3_sdk/models/get_child_info_api_keys_v2.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetChildInfoApiKeysV2(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'key': 'str' - } - - attribute_map = { - 'name': 'name', - 'key': 'key' - } - - def __init__(self, name=None, key=None): # noqa: E501 - """GetChildInfoApiKeysV2 - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._key = None - self.discriminator = None - - self.name = name - self.key = key - - @property - def name(self): - """Gets the name of this GetChildInfoApiKeysV2. # noqa: E501 - - Name of the key for version 2 # noqa: E501 - - :return: The name of this GetChildInfoApiKeysV2. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetChildInfoApiKeysV2. - - Name of the key for version 2 # noqa: E501 - - :param name: The name of this GetChildInfoApiKeysV2. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def key(self): - """Gets the key of this GetChildInfoApiKeysV2. # noqa: E501 - - API Key for version 2 # noqa: E501 - - :return: The key of this GetChildInfoApiKeysV2. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this GetChildInfoApiKeysV2. - - API Key for version 2 # noqa: E501 - - :param key: The key of this GetChildInfoApiKeysV2. # noqa: E501 - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 - - self._key = key - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetChildInfoApiKeysV2): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_child_info_api_keys_v3.py b/sib_api_v3_sdk/models/get_child_info_api_keys_v3.py deleted file mode 100644 index 7ca683b..0000000 --- a/sib_api_v3_sdk/models/get_child_info_api_keys_v3.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetChildInfoApiKeysV3(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'key': 'str' - } - - attribute_map = { - 'name': 'name', - 'key': 'key' - } - - def __init__(self, name=None, key=None): # noqa: E501 - """GetChildInfoApiKeysV3 - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._key = None - self.discriminator = None - - self.name = name - self.key = key - - @property - def name(self): - """Gets the name of this GetChildInfoApiKeysV3. # noqa: E501 - - Name of the key for version 3 # noqa: E501 - - :return: The name of this GetChildInfoApiKeysV3. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetChildInfoApiKeysV3. - - Name of the key for version 3 # noqa: E501 - - :param name: The name of this GetChildInfoApiKeysV3. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def key(self): - """Gets the key of this GetChildInfoApiKeysV3. # noqa: E501 - - API Key for version 3 # noqa: E501 - - :return: The key of this GetChildInfoApiKeysV3. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this GetChildInfoApiKeysV3. - - API Key for version 3 # noqa: E501 - - :param key: The key of this GetChildInfoApiKeysV3. # noqa: E501 - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 - - self._key = key - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetChildInfoApiKeysV3): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_child_info_credits.py b/sib_api_v3_sdk/models/get_child_info_credits.py deleted file mode 100644 index 7057c0e..0000000 --- a/sib_api_v3_sdk/models/get_child_info_credits.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetChildInfoCredits(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'email_credits': 'int', - 'sms_credits': 'int' - } - - attribute_map = { - 'email_credits': 'emailCredits', - 'sms_credits': 'smsCredits' - } - - def __init__(self, email_credits=None, sms_credits=None): # noqa: E501 - """GetChildInfoCredits - a model defined in Swagger""" # noqa: E501 - - self._email_credits = None - self._sms_credits = None - self.discriminator = None - - if email_credits is not None: - self.email_credits = email_credits - if sms_credits is not None: - self.sms_credits = sms_credits - - @property - def email_credits(self): - """Gets the email_credits of this GetChildInfoCredits. # noqa: E501 - - Email credits available for your child # noqa: E501 - - :return: The email_credits of this GetChildInfoCredits. # noqa: E501 - :rtype: int - """ - return self._email_credits - - @email_credits.setter - def email_credits(self, email_credits): - """Sets the email_credits of this GetChildInfoCredits. - - Email credits available for your child # noqa: E501 - - :param email_credits: The email_credits of this GetChildInfoCredits. # noqa: E501 - :type: int - """ - - self._email_credits = email_credits - - @property - def sms_credits(self): - """Gets the sms_credits of this GetChildInfoCredits. # noqa: E501 - - SMS credits available for your child # noqa: E501 - - :return: The sms_credits of this GetChildInfoCredits. # noqa: E501 - :rtype: int - """ - return self._sms_credits - - @sms_credits.setter - def sms_credits(self, sms_credits): - """Sets the sms_credits of this GetChildInfoCredits. - - SMS credits available for your child # noqa: E501 - - :param sms_credits: The sms_credits of this GetChildInfoCredits. # noqa: E501 - :type: int - """ - - self._sms_credits = sms_credits - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetChildInfoCredits): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_child_info_statistics.py b/sib_api_v3_sdk/models/get_child_info_statistics.py deleted file mode 100644 index c565d79..0000000 --- a/sib_api_v3_sdk/models/get_child_info_statistics.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetChildInfoStatistics(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'previous_month_total_sent': 'int', - 'current_month_total_sent': 'int', - 'total_sent': 'int' - } - - attribute_map = { - 'previous_month_total_sent': 'previousMonthTotalSent', - 'current_month_total_sent': 'currentMonthTotalSent', - 'total_sent': 'totalSent' - } - - def __init__(self, previous_month_total_sent=None, current_month_total_sent=None, total_sent=None): # noqa: E501 - """GetChildInfoStatistics - a model defined in Swagger""" # noqa: E501 - - self._previous_month_total_sent = None - self._current_month_total_sent = None - self._total_sent = None - self.discriminator = None - - if previous_month_total_sent is not None: - self.previous_month_total_sent = previous_month_total_sent - if current_month_total_sent is not None: - self.current_month_total_sent = current_month_total_sent - if total_sent is not None: - self.total_sent = total_sent - - @property - def previous_month_total_sent(self): - """Gets the previous_month_total_sent of this GetChildInfoStatistics. # noqa: E501 - - Overall emails sent for the previous month # noqa: E501 - - :return: The previous_month_total_sent of this GetChildInfoStatistics. # noqa: E501 - :rtype: int - """ - return self._previous_month_total_sent - - @previous_month_total_sent.setter - def previous_month_total_sent(self, previous_month_total_sent): - """Sets the previous_month_total_sent of this GetChildInfoStatistics. - - Overall emails sent for the previous month # noqa: E501 - - :param previous_month_total_sent: The previous_month_total_sent of this GetChildInfoStatistics. # noqa: E501 - :type: int - """ - - self._previous_month_total_sent = previous_month_total_sent - - @property - def current_month_total_sent(self): - """Gets the current_month_total_sent of this GetChildInfoStatistics. # noqa: E501 - - Overall emails sent for current month # noqa: E501 - - :return: The current_month_total_sent of this GetChildInfoStatistics. # noqa: E501 - :rtype: int - """ - return self._current_month_total_sent - - @current_month_total_sent.setter - def current_month_total_sent(self, current_month_total_sent): - """Sets the current_month_total_sent of this GetChildInfoStatistics. - - Overall emails sent for current month # noqa: E501 - - :param current_month_total_sent: The current_month_total_sent of this GetChildInfoStatistics. # noqa: E501 - :type: int - """ - - self._current_month_total_sent = current_month_total_sent - - @property - def total_sent(self): - """Gets the total_sent of this GetChildInfoStatistics. # noqa: E501 - - Overall emails sent for since the account exists # noqa: E501 - - :return: The total_sent of this GetChildInfoStatistics. # noqa: E501 - :rtype: int - """ - return self._total_sent - - @total_sent.setter - def total_sent(self, total_sent): - """Sets the total_sent of this GetChildInfoStatistics. - - Overall emails sent for since the account exists # noqa: E501 - - :param total_sent: The total_sent of this GetChildInfoStatistics. # noqa: E501 - :type: int - """ - - self._total_sent = total_sent - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetChildInfoStatistics): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_children_list.py b/sib_api_v3_sdk/models/get_children_list.py index d893fd3..fc89db7 100644 --- a/sib_api_v3_sdk/models/get_children_list.py +++ b/sib_api_v3_sdk/models/get_children_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetChildrenList(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class GetChildrenList(object): def __init__(self, children=None): # noqa: E501 """GetChildrenList - a model defined in Swagger""" # noqa: E501 - self._children = None self.discriminator = None - if children is not None: self.children = children @@ -91,6 +87,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildrenList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_client.py b/sib_api_v3_sdk/models/get_client.py index 53b9f3d..ce3d61e 100644 --- a/sib_api_v3_sdk/models/get_client.py +++ b/sib_api_v3_sdk/models/get_client.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetClient(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -46,13 +44,11 @@ class GetClient(object): def __init__(self, email=None, first_name=None, last_name=None, company_name=None): # noqa: E501 """GetClient - a model defined in Swagger""" # noqa: E501 - self._email = None self._first_name = None self._last_name = None self._company_name = None self.discriminator = None - self.email = email self.first_name = first_name self.last_name = last_name @@ -179,6 +175,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetClient, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats.py b/sib_api_v3_sdk/models/get_contact_campaign_stats.py index c64259f..fcc2db1 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats.py @@ -10,25 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.get_contact_campaign_stats_clicked import GetContactCampaignStatsClicked # noqa: F401,E501 -from sib_api_v3_sdk.models.get_contact_campaign_stats_opened import GetContactCampaignStatsOpened # noqa: F401,E501 -from sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes import GetContactCampaignStatsTransacAttributes # noqa: F401,E501 -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions import GetContactCampaignStatsUnsubscriptions # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_messages_sent import GetExtendedContactDetailsStatisticsMessagesSent # noqa: F401,E501 - class GetContactCampaignStats(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -37,14 +29,14 @@ class GetContactCampaignStats(object): and the value is json key in definition. """ swagger_types = { - 'messages_sent': 'list[GetExtendedContactDetailsStatisticsMessagesSent]', - 'hard_bounces': 'list[GetExtendedContactDetailsStatisticsMessagesSent]', - 'soft_bounces': 'list[GetExtendedContactDetailsStatisticsMessagesSent]', - 'complaints': 'list[GetExtendedContactDetailsStatisticsMessagesSent]', - 'unsubscriptions': 'GetContactCampaignStatsUnsubscriptions', - 'opened': 'list[GetContactCampaignStatsOpened]', - 'clicked': 'list[GetContactCampaignStatsClicked]', - 'transac_attributes': 'list[GetContactCampaignStatsTransacAttributes]' + 'messages_sent': 'list[object]', + 'hard_bounces': 'list[object]', + 'soft_bounces': 'list[object]', + 'complaints': 'list[object]', + 'unsubscriptions': 'object', + 'opened': 'list[object]', + 'clicked': 'list[object]', + 'transac_attributes': 'list[object]' } attribute_map = { @@ -60,7 +52,6 @@ class GetContactCampaignStats(object): def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, complaints=None, unsubscriptions=None, opened=None, clicked=None, transac_attributes=None): # noqa: E501 """GetContactCampaignStats - a model defined in Swagger""" # noqa: E501 - self._messages_sent = None self._hard_bounces = None self._soft_bounces = None @@ -70,7 +61,6 @@ def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, com self._clicked = None self._transac_attributes = None self.discriminator = None - if messages_sent is not None: self.messages_sent = messages_sent if hard_bounces is not None: @@ -94,7 +84,7 @@ def messages_sent(self): :return: The messages_sent of this GetContactCampaignStats. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsMessagesSent] + :rtype: list[object] """ return self._messages_sent @@ -104,7 +94,7 @@ def messages_sent(self, messages_sent): :param messages_sent: The messages_sent of this GetContactCampaignStats. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsMessagesSent] + :type: list[object] """ self._messages_sent = messages_sent @@ -115,7 +105,7 @@ def hard_bounces(self): :return: The hard_bounces of this GetContactCampaignStats. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsMessagesSent] + :rtype: list[object] """ return self._hard_bounces @@ -125,7 +115,7 @@ def hard_bounces(self, hard_bounces): :param hard_bounces: The hard_bounces of this GetContactCampaignStats. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsMessagesSent] + :type: list[object] """ self._hard_bounces = hard_bounces @@ -136,7 +126,7 @@ def soft_bounces(self): :return: The soft_bounces of this GetContactCampaignStats. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsMessagesSent] + :rtype: list[object] """ return self._soft_bounces @@ -146,7 +136,7 @@ def soft_bounces(self, soft_bounces): :param soft_bounces: The soft_bounces of this GetContactCampaignStats. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsMessagesSent] + :type: list[object] """ self._soft_bounces = soft_bounces @@ -157,7 +147,7 @@ def complaints(self): :return: The complaints of this GetContactCampaignStats. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsMessagesSent] + :rtype: list[object] """ return self._complaints @@ -167,7 +157,7 @@ def complaints(self, complaints): :param complaints: The complaints of this GetContactCampaignStats. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsMessagesSent] + :type: list[object] """ self._complaints = complaints @@ -178,7 +168,7 @@ def unsubscriptions(self): :return: The unsubscriptions of this GetContactCampaignStats. # noqa: E501 - :rtype: GetContactCampaignStatsUnsubscriptions + :rtype: object """ return self._unsubscriptions @@ -188,7 +178,7 @@ def unsubscriptions(self, unsubscriptions): :param unsubscriptions: The unsubscriptions of this GetContactCampaignStats. # noqa: E501 - :type: GetContactCampaignStatsUnsubscriptions + :type: object """ self._unsubscriptions = unsubscriptions @@ -199,7 +189,7 @@ def opened(self): :return: The opened of this GetContactCampaignStats. # noqa: E501 - :rtype: list[GetContactCampaignStatsOpened] + :rtype: list[object] """ return self._opened @@ -209,7 +199,7 @@ def opened(self, opened): :param opened: The opened of this GetContactCampaignStats. # noqa: E501 - :type: list[GetContactCampaignStatsOpened] + :type: list[object] """ self._opened = opened @@ -220,7 +210,7 @@ def clicked(self): :return: The clicked of this GetContactCampaignStats. # noqa: E501 - :rtype: list[GetContactCampaignStatsClicked] + :rtype: list[object] """ return self._clicked @@ -230,7 +220,7 @@ def clicked(self, clicked): :param clicked: The clicked of this GetContactCampaignStats. # noqa: E501 - :type: list[GetContactCampaignStatsClicked] + :type: list[object] """ self._clicked = clicked @@ -241,7 +231,7 @@ def transac_attributes(self): :return: The transac_attributes of this GetContactCampaignStats. # noqa: E501 - :rtype: list[GetContactCampaignStatsTransacAttributes] + :rtype: list[object] """ return self._transac_attributes @@ -251,7 +241,7 @@ def transac_attributes(self, transac_attributes): :param transac_attributes: The transac_attributes of this GetContactCampaignStats. # noqa: E501 - :type: list[GetContactCampaignStatsTransacAttributes] + :type: list[object] """ self._transac_attributes = transac_attributes @@ -277,6 +267,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetContactCampaignStats, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py deleted file mode 100644 index b30d204..0000000 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_links import GetExtendedContactDetailsStatisticsLinks # noqa: F401,E501 - - -class GetContactCampaignStatsClicked(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'campaign_id': 'int', - 'links': 'list[GetExtendedContactDetailsStatisticsLinks]' - } - - attribute_map = { - 'campaign_id': 'campaignId', - 'links': 'links' - } - - def __init__(self, campaign_id=None, links=None): # noqa: E501 - """GetContactCampaignStatsClicked - a model defined in Swagger""" # noqa: E501 - - self._campaign_id = None - self._links = None - self.discriminator = None - - self.campaign_id = campaign_id - self.links = links - - @property - def campaign_id(self): - """Gets the campaign_id of this GetContactCampaignStatsClicked. # noqa: E501 - - ID of the campaign which generated the event # noqa: E501 - - :return: The campaign_id of this GetContactCampaignStatsClicked. # noqa: E501 - :rtype: int - """ - return self._campaign_id - - @campaign_id.setter - def campaign_id(self, campaign_id): - """Sets the campaign_id of this GetContactCampaignStatsClicked. - - ID of the campaign which generated the event # noqa: E501 - - :param campaign_id: The campaign_id of this GetContactCampaignStatsClicked. # noqa: E501 - :type: int - """ - if campaign_id is None: - raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 - - self._campaign_id = campaign_id - - @property - def links(self): - """Gets the links of this GetContactCampaignStatsClicked. # noqa: E501 - - - :return: The links of this GetContactCampaignStatsClicked. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsLinks] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this GetContactCampaignStatsClicked. - - - :param links: The links of this GetContactCampaignStatsClicked. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsLinks] - """ - if links is None: - raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 - - self._links = links - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetContactCampaignStatsClicked): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py deleted file mode 100644 index 78323e1..0000000 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetContactCampaignStatsOpened(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'campaign_id': 'int', - 'count': 'int', - 'event_time': 'datetime', - 'ip': 'str' - } - - attribute_map = { - 'campaign_id': 'campaignId', - 'count': 'count', - 'event_time': 'eventTime', - 'ip': 'ip' - } - - def __init__(self, campaign_id=None, count=None, event_time=None, ip=None): # noqa: E501 - """GetContactCampaignStatsOpened - a model defined in Swagger""" # noqa: E501 - - self._campaign_id = None - self._count = None - self._event_time = None - self._ip = None - self.discriminator = None - - self.campaign_id = campaign_id - self.count = count - self.event_time = event_time - self.ip = ip - - @property - def campaign_id(self): - """Gets the campaign_id of this GetContactCampaignStatsOpened. # noqa: E501 - - ID of the campaign which generated the event # noqa: E501 - - :return: The campaign_id of this GetContactCampaignStatsOpened. # noqa: E501 - :rtype: int - """ - return self._campaign_id - - @campaign_id.setter - def campaign_id(self, campaign_id): - """Sets the campaign_id of this GetContactCampaignStatsOpened. - - ID of the campaign which generated the event # noqa: E501 - - :param campaign_id: The campaign_id of this GetContactCampaignStatsOpened. # noqa: E501 - :type: int - """ - if campaign_id is None: - raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 - - self._campaign_id = campaign_id - - @property - def count(self): - """Gets the count of this GetContactCampaignStatsOpened. # noqa: E501 - - Number of openings of the campaign # noqa: E501 - - :return: The count of this GetContactCampaignStatsOpened. # noqa: E501 - :rtype: int - """ - return self._count - - @count.setter - def count(self, count): - """Sets the count of this GetContactCampaignStatsOpened. - - Number of openings of the campaign # noqa: E501 - - :param count: The count of this GetContactCampaignStatsOpened. # noqa: E501 - :type: int - """ - if count is None: - raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 - - self._count = count - - @property - def event_time(self): - """Gets the event_time of this GetContactCampaignStatsOpened. # noqa: E501 - - UTC date-time of the event # noqa: E501 - - :return: The event_time of this GetContactCampaignStatsOpened. # noqa: E501 - :rtype: datetime - """ - return self._event_time - - @event_time.setter - def event_time(self, event_time): - """Sets the event_time of this GetContactCampaignStatsOpened. - - UTC date-time of the event # noqa: E501 - - :param event_time: The event_time of this GetContactCampaignStatsOpened. # noqa: E501 - :type: datetime - """ - if event_time is None: - raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 - - self._event_time = event_time - - @property - def ip(self): - """Gets the ip of this GetContactCampaignStatsOpened. # noqa: E501 - - IP from which the user has opened the campaign # noqa: E501 - - :return: The ip of this GetContactCampaignStatsOpened. # noqa: E501 - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this GetContactCampaignStatsOpened. - - IP from which the user has opened the campaign # noqa: E501 - - :param ip: The ip of this GetContactCampaignStatsOpened. # noqa: E501 - :type: str - """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 - - self._ip = ip - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetContactCampaignStatsOpened): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_transac_attributes.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_transac_attributes.py deleted file mode 100644 index 805efbf..0000000 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_transac_attributes.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetContactCampaignStatsTransacAttributes(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'order_date': 'date', - 'order_price': 'float', - 'order_id': 'int' - } - - attribute_map = { - 'order_date': 'orderDate', - 'order_price': 'orderPrice', - 'order_id': 'orderId' - } - - def __init__(self, order_date=None, order_price=None, order_id=None): # noqa: E501 - """GetContactCampaignStatsTransacAttributes - a model defined in Swagger""" # noqa: E501 - - self._order_date = None - self._order_price = None - self._order_id = None - self.discriminator = None - - self.order_date = order_date - self.order_price = order_price - self.order_id = order_id - - @property - def order_date(self): - """Gets the order_date of this GetContactCampaignStatsTransacAttributes. # noqa: E501 - - Date of the order # noqa: E501 - - :return: The order_date of this GetContactCampaignStatsTransacAttributes. # noqa: E501 - :rtype: date - """ - return self._order_date - - @order_date.setter - def order_date(self, order_date): - """Sets the order_date of this GetContactCampaignStatsTransacAttributes. - - Date of the order # noqa: E501 - - :param order_date: The order_date of this GetContactCampaignStatsTransacAttributes. # noqa: E501 - :type: date - """ - if order_date is None: - raise ValueError("Invalid value for `order_date`, must not be `None`") # noqa: E501 - - self._order_date = order_date - - @property - def order_price(self): - """Gets the order_price of this GetContactCampaignStatsTransacAttributes. # noqa: E501 - - Price of the order # noqa: E501 - - :return: The order_price of this GetContactCampaignStatsTransacAttributes. # noqa: E501 - :rtype: float - """ - return self._order_price - - @order_price.setter - def order_price(self, order_price): - """Sets the order_price of this GetContactCampaignStatsTransacAttributes. - - Price of the order # noqa: E501 - - :param order_price: The order_price of this GetContactCampaignStatsTransacAttributes. # noqa: E501 - :type: float - """ - if order_price is None: - raise ValueError("Invalid value for `order_price`, must not be `None`") # noqa: E501 - - self._order_price = order_price - - @property - def order_id(self): - """Gets the order_id of this GetContactCampaignStatsTransacAttributes. # noqa: E501 - - ID of the order # noqa: E501 - - :return: The order_id of this GetContactCampaignStatsTransacAttributes. # noqa: E501 - :rtype: int - """ - return self._order_id - - @order_id.setter - def order_id(self, order_id): - """Sets the order_id of this GetContactCampaignStatsTransacAttributes. - - ID of the order # noqa: E501 - - :param order_id: The order_id of this GetContactCampaignStatsTransacAttributes. # noqa: E501 - :type: int - """ - if order_id is None: - raise ValueError("Invalid value for `order_id`, must not be `None`") # noqa: E501 - - self._order_id = order_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetContactCampaignStatsTransacAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py deleted file mode 100644 index c7e2021..0000000 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_user_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription # noqa: F401,E501 - - -class GetContactCampaignStatsUnsubscriptions(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'user_unsubscription': 'list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]', - 'admin_unsubscription': 'list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]' - } - - attribute_map = { - 'user_unsubscription': 'userUnsubscription', - 'admin_unsubscription': 'adminUnsubscription' - } - - def __init__(self, user_unsubscription=None, admin_unsubscription=None): # noqa: E501 - """GetContactCampaignStatsUnsubscriptions - a model defined in Swagger""" # noqa: E501 - - self._user_unsubscription = None - self._admin_unsubscription = None - self.discriminator = None - - self.user_unsubscription = user_unsubscription - self.admin_unsubscription = admin_unsubscription - - @property - def user_unsubscription(self): - """Gets the user_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - - Contact has unsubscribed via the unsubscription link in the email # noqa: E501 - - :return: The user_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription] - """ - return self._user_unsubscription - - @user_unsubscription.setter - def user_unsubscription(self, user_unsubscription): - """Sets the user_unsubscription of this GetContactCampaignStatsUnsubscriptions. - - Contact has unsubscribed via the unsubscription link in the email # noqa: E501 - - :param user_unsubscription: The user_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription] - """ - if user_unsubscription is None: - raise ValueError("Invalid value for `user_unsubscription`, must not be `None`") # noqa: E501 - - self._user_unsubscription = user_unsubscription - - @property - def admin_unsubscription(self): - """Gets the admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - - Contact has been unsubscribed from the administrator # noqa: E501 - - :return: The admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription] - """ - return self._admin_unsubscription - - @admin_unsubscription.setter - def admin_unsubscription(self, admin_unsubscription): - """Sets the admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. - - Contact has been unsubscribed from the administrator # noqa: E501 - - :param admin_unsubscription: The admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription] - """ - if admin_unsubscription is None: - raise ValueError("Invalid value for `admin_unsubscription`, must not be `None`") # noqa: E501 - - self._admin_unsubscription = admin_unsubscription - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetContactCampaignStatsUnsubscriptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_contact_details.py b/sib_api_v3_sdk/models/get_contact_details.py index 5cd891c..7a290c9 100644 --- a/sib_api_v3_sdk/models/get_contact_details.py +++ b/sib_api_v3_sdk/models/get_contact_details.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetContactDetails(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -56,7 +54,6 @@ class GetContactDetails(object): def __init__(self, email=None, id=None, email_blacklisted=None, sms_blacklisted=None, created_at=None, modified_at=None, list_ids=None, list_unsubscribed=None, attributes=None): # noqa: E501 """GetContactDetails - a model defined in Swagger""" # noqa: E501 - self._email = None self._id = None self._email_blacklisted = None @@ -67,7 +64,6 @@ def __init__(self, email=None, id=None, email_blacklisted=None, sms_blacklisted= self._list_unsubscribed = None self._attributes = None self.discriminator = None - self.email = email self.id = id self.email_blacklisted = email_blacklisted @@ -319,6 +315,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetContactDetails, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contacts.py b/sib_api_v3_sdk/models/get_contacts.py index e785e3c..5f0c2d2 100644 --- a/sib_api_v3_sdk/models/get_contacts.py +++ b/sib_api_v3_sdk/models/get_contacts.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetContacts(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class GetContacts(object): def __init__(self, contacts=None, count=None): # noqa: E501 """GetContacts - a model defined in Swagger""" # noqa: E501 - self._contacts = None self._count = None self.discriminator = None - self.contacts = contacts self.count = count @@ -119,6 +115,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetContacts, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_email_campaign.py b/sib_api_v3_sdk/models/get_email_campaign.py index 6724ce6..163673e 100644 --- a/sib_api_v3_sdk/models/get_email_campaign.py +++ b/sib_api_v3_sdk/models/get_email_campaign.py @@ -10,22 +10,18 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_extended_campaign_overview import GetExtendedCampaignOverview # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_campaign_overview_sender import GetExtendedCampaignOverviewSender # noqa: F401,E501 -class GetEmailCampaign(object): +class GetEmailCampaign(GetExtendedCampaignOverview): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,833 +30,23 @@ class GetEmailCampaign(object): and the value is json key in definition. """ swagger_types = { - 'id': 'int', - 'name': 'str', - 'subject': 'str', - 'type': 'str', - 'status': 'str', - 'scheduled_at': 'datetime', - 'ab_testing': 'bool', - 'subject_a': 'str', - 'subject_b': 'str', - 'split_rule': 'int', - 'winner_criteria': 'str', - 'winner_delay': 'int', - 'send_at_best_time': 'bool', - 'test_sent': 'bool', - 'header': 'str', - 'footer': 'str', - 'sender': 'GetExtendedCampaignOverviewSender', - 'reply_to': 'str', - 'to_field': 'str', - 'html_content': 'str', - 'share_link': 'str', - 'tag': 'str', - 'created_at': 'datetime', - 'modified_at': 'datetime', - 'inline_image_activation': 'bool', - 'mirror_active': 'bool', - 'recurring': 'bool', - 'sent_date': 'datetime', 'recipients': 'object', 'statistics': 'object' } attribute_map = { - 'id': 'id', - 'name': 'name', - 'subject': 'subject', - 'type': 'type', - 'status': 'status', - 'scheduled_at': 'scheduledAt', - 'ab_testing': 'abTesting', - 'subject_a': 'subjectA', - 'subject_b': 'subjectB', - 'split_rule': 'splitRule', - 'winner_criteria': 'winnerCriteria', - 'winner_delay': 'winnerDelay', - 'send_at_best_time': 'sendAtBestTime', - 'test_sent': 'testSent', - 'header': 'header', - 'footer': 'footer', - 'sender': 'sender', - 'reply_to': 'replyTo', - 'to_field': 'toField', - 'html_content': 'htmlContent', - 'share_link': 'shareLink', - 'tag': 'tag', - 'created_at': 'createdAt', - 'modified_at': 'modifiedAt', - 'inline_image_activation': 'inlineImageActivation', - 'mirror_active': 'mirrorActive', - 'recurring': 'recurring', - 'sent_date': 'sentDate', 'recipients': 'recipients', 'statistics': 'statistics' } - def __init__(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None, recipients=None, statistics=None): # noqa: E501 + def __init__(self, recipients=None, statistics=None): # noqa: E501 """GetEmailCampaign - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._name = None - self._subject = None - self._type = None - self._status = None - self._scheduled_at = None - self._ab_testing = None - self._subject_a = None - self._subject_b = None - self._split_rule = None - self._winner_criteria = None - self._winner_delay = None - self._send_at_best_time = None - self._test_sent = None - self._header = None - self._footer = None - self._sender = None - self._reply_to = None - self._to_field = None - self._html_content = None - self._share_link = None - self._tag = None - self._created_at = None - self._modified_at = None - self._inline_image_activation = None - self._mirror_active = None - self._recurring = None - self._sent_date = None self._recipients = None self._statistics = None self.discriminator = None - - self.id = id - self.name = name - if subject is not None: - self.subject = subject - self.type = type - self.status = status - if scheduled_at is not None: - self.scheduled_at = scheduled_at - if ab_testing is not None: - self.ab_testing = ab_testing - if subject_a is not None: - self.subject_a = subject_a - if subject_b is not None: - self.subject_b = subject_b - if split_rule is not None: - self.split_rule = split_rule - if winner_criteria is not None: - self.winner_criteria = winner_criteria - if winner_delay is not None: - self.winner_delay = winner_delay - if send_at_best_time is not None: - self.send_at_best_time = send_at_best_time - self.test_sent = test_sent - self.header = header - self.footer = footer - self.sender = sender - self.reply_to = reply_to - self.to_field = to_field - self.html_content = html_content - if share_link is not None: - self.share_link = share_link - self.tag = tag - self.created_at = created_at - self.modified_at = modified_at - if inline_image_activation is not None: - self.inline_image_activation = inline_image_activation - if mirror_active is not None: - self.mirror_active = mirror_active - if recurring is not None: - self.recurring = recurring - if sent_date is not None: - self.sent_date = sent_date self.recipients = recipients self.statistics = statistics - @property - def id(self): - """Gets the id of this GetEmailCampaign. # noqa: E501 - - ID of the campaign # noqa: E501 - - :return: The id of this GetEmailCampaign. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this GetEmailCampaign. - - ID of the campaign # noqa: E501 - - :param id: The id of this GetEmailCampaign. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this GetEmailCampaign. # noqa: E501 - - Name of the campaign # noqa: E501 - - :return: The name of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetEmailCampaign. - - Name of the campaign # noqa: E501 - - :param name: The name of this GetEmailCampaign. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def subject(self): - """Gets the subject of this GetEmailCampaign. # noqa: E501 - - Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` # noqa: E501 - - :return: The subject of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._subject - - @subject.setter - def subject(self, subject): - """Sets the subject of this GetEmailCampaign. - - Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` # noqa: E501 - - :param subject: The subject of this GetEmailCampaign. # noqa: E501 - :type: str - """ - - self._subject = subject - - @property - def type(self): - """Gets the type of this GetEmailCampaign. # noqa: E501 - - Type of campaign # noqa: E501 - - :return: The type of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this GetEmailCampaign. - - Type of campaign # noqa: E501 - - :param type: The type of this GetEmailCampaign. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["classic", "trigger"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - @property - def status(self): - """Gets the status of this GetEmailCampaign. # noqa: E501 - - Status of the campaign # noqa: E501 - - :return: The status of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this GetEmailCampaign. - - Status of the campaign # noqa: E501 - - :param status: The status of this GetEmailCampaign. # noqa: E501 - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["draft", "sent", "archive", "queued", "suspended", "in_process"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - - self._status = status - - @property - def scheduled_at(self): - """Gets the scheduled_at of this GetEmailCampaign. # noqa: E501 - - UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :return: The scheduled_at of this GetEmailCampaign. # noqa: E501 - :rtype: datetime - """ - return self._scheduled_at - - @scheduled_at.setter - def scheduled_at(self, scheduled_at): - """Sets the scheduled_at of this GetEmailCampaign. - - UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :param scheduled_at: The scheduled_at of this GetEmailCampaign. # noqa: E501 - :type: datetime - """ - - self._scheduled_at = scheduled_at - - @property - def ab_testing(self): - """Gets the ab_testing of this GetEmailCampaign. # noqa: E501 - - Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. # noqa: E501 - - :return: The ab_testing of this GetEmailCampaign. # noqa: E501 - :rtype: bool - """ - return self._ab_testing - - @ab_testing.setter - def ab_testing(self, ab_testing): - """Sets the ab_testing of this GetEmailCampaign. - - Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. # noqa: E501 - - :param ab_testing: The ab_testing of this GetEmailCampaign. # noqa: E501 - :type: bool - """ - - self._ab_testing = ab_testing - - @property - def subject_a(self): - """Gets the subject_a of this GetEmailCampaign. # noqa: E501 - - Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :return: The subject_a of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._subject_a - - @subject_a.setter - def subject_a(self, subject_a): - """Sets the subject_a of this GetEmailCampaign. - - Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :param subject_a: The subject_a of this GetEmailCampaign. # noqa: E501 - :type: str - """ - - self._subject_a = subject_a - - @property - def subject_b(self): - """Gets the subject_b of this GetEmailCampaign. # noqa: E501 - - Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :return: The subject_b of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._subject_b - - @subject_b.setter - def subject_b(self, subject_b): - """Sets the subject_b of this GetEmailCampaign. - - Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :param subject_b: The subject_b of this GetEmailCampaign. # noqa: E501 - :type: str - """ - - self._subject_b = subject_b - - @property - def split_rule(self): - """Gets the split_rule of this GetEmailCampaign. # noqa: E501 - - The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :return: The split_rule of this GetEmailCampaign. # noqa: E501 - :rtype: int - """ - return self._split_rule - - @split_rule.setter - def split_rule(self, split_rule): - """Sets the split_rule of this GetEmailCampaign. - - The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :param split_rule: The split_rule of this GetEmailCampaign. # noqa: E501 - :type: int - """ - - self._split_rule = split_rule - - @property - def winner_criteria(self): - """Gets the winner_criteria of this GetEmailCampaign. # noqa: E501 - - Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :return: The winner_criteria of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._winner_criteria - - @winner_criteria.setter - def winner_criteria(self, winner_criteria): - """Sets the winner_criteria of this GetEmailCampaign. - - Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :param winner_criteria: The winner_criteria of this GetEmailCampaign. # noqa: E501 - :type: str - """ - - self._winner_criteria = winner_criteria - - @property - def winner_delay(self): - """Gets the winner_delay of this GetEmailCampaign. # noqa: E501 - - The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :return: The winner_delay of this GetEmailCampaign. # noqa: E501 - :rtype: int - """ - return self._winner_delay - - @winner_delay.setter - def winner_delay(self, winner_delay): - """Sets the winner_delay of this GetEmailCampaign. - - The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :param winner_delay: The winner_delay of this GetEmailCampaign. # noqa: E501 - :type: int - """ - - self._winner_delay = winner_delay - - @property - def send_at_best_time(self): - """Gets the send_at_best_time of this GetEmailCampaign. # noqa: E501 - - It is true if you have chosen to send your campaign at best time, otherwise it is false # noqa: E501 - - :return: The send_at_best_time of this GetEmailCampaign. # noqa: E501 - :rtype: bool - """ - return self._send_at_best_time - - @send_at_best_time.setter - def send_at_best_time(self, send_at_best_time): - """Sets the send_at_best_time of this GetEmailCampaign. - - It is true if you have chosen to send your campaign at best time, otherwise it is false # noqa: E501 - - :param send_at_best_time: The send_at_best_time of this GetEmailCampaign. # noqa: E501 - :type: bool - """ - - self._send_at_best_time = send_at_best_time - - @property - def test_sent(self): - """Gets the test_sent of this GetEmailCampaign. # noqa: E501 - - Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) # noqa: E501 - - :return: The test_sent of this GetEmailCampaign. # noqa: E501 - :rtype: bool - """ - return self._test_sent - - @test_sent.setter - def test_sent(self, test_sent): - """Sets the test_sent of this GetEmailCampaign. - - Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) # noqa: E501 - - :param test_sent: The test_sent of this GetEmailCampaign. # noqa: E501 - :type: bool - """ - if test_sent is None: - raise ValueError("Invalid value for `test_sent`, must not be `None`") # noqa: E501 - - self._test_sent = test_sent - - @property - def header(self): - """Gets the header of this GetEmailCampaign. # noqa: E501 - - Header of the campaign # noqa: E501 - - :return: The header of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._header - - @header.setter - def header(self, header): - """Sets the header of this GetEmailCampaign. - - Header of the campaign # noqa: E501 - - :param header: The header of this GetEmailCampaign. # noqa: E501 - :type: str - """ - if header is None: - raise ValueError("Invalid value for `header`, must not be `None`") # noqa: E501 - - self._header = header - - @property - def footer(self): - """Gets the footer of this GetEmailCampaign. # noqa: E501 - - Footer of the campaign # noqa: E501 - - :return: The footer of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._footer - - @footer.setter - def footer(self, footer): - """Sets the footer of this GetEmailCampaign. - - Footer of the campaign # noqa: E501 - - :param footer: The footer of this GetEmailCampaign. # noqa: E501 - :type: str - """ - if footer is None: - raise ValueError("Invalid value for `footer`, must not be `None`") # noqa: E501 - - self._footer = footer - - @property - def sender(self): - """Gets the sender of this GetEmailCampaign. # noqa: E501 - - - :return: The sender of this GetEmailCampaign. # noqa: E501 - :rtype: GetExtendedCampaignOverviewSender - """ - return self._sender - - @sender.setter - def sender(self, sender): - """Sets the sender of this GetEmailCampaign. - - - :param sender: The sender of this GetEmailCampaign. # noqa: E501 - :type: GetExtendedCampaignOverviewSender - """ - if sender is None: - raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 - - self._sender = sender - - @property - def reply_to(self): - """Gets the reply_to of this GetEmailCampaign. # noqa: E501 - - Email defined as the \"Reply to\" of the campaign # noqa: E501 - - :return: The reply_to of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._reply_to - - @reply_to.setter - def reply_to(self, reply_to): - """Sets the reply_to of this GetEmailCampaign. - - Email defined as the \"Reply to\" of the campaign # noqa: E501 - - :param reply_to: The reply_to of this GetEmailCampaign. # noqa: E501 - :type: str - """ - if reply_to is None: - raise ValueError("Invalid value for `reply_to`, must not be `None`") # noqa: E501 - - self._reply_to = reply_to - - @property - def to_field(self): - """Gets the to_field of this GetEmailCampaign. # noqa: E501 - - Customisation of the \"to\" field of the campaign # noqa: E501 - - :return: The to_field of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._to_field - - @to_field.setter - def to_field(self, to_field): - """Sets the to_field of this GetEmailCampaign. - - Customisation of the \"to\" field of the campaign # noqa: E501 - - :param to_field: The to_field of this GetEmailCampaign. # noqa: E501 - :type: str - """ - if to_field is None: - raise ValueError("Invalid value for `to_field`, must not be `None`") # noqa: E501 - - self._to_field = to_field - - @property - def html_content(self): - """Gets the html_content of this GetEmailCampaign. # noqa: E501 - - HTML content of the campaign # noqa: E501 - - :return: The html_content of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._html_content - - @html_content.setter - def html_content(self, html_content): - """Sets the html_content of this GetEmailCampaign. - - HTML content of the campaign # noqa: E501 - - :param html_content: The html_content of this GetEmailCampaign. # noqa: E501 - :type: str - """ - if html_content is None: - raise ValueError("Invalid value for `html_content`, must not be `None`") # noqa: E501 - - self._html_content = html_content - - @property - def share_link(self): - """Gets the share_link of this GetEmailCampaign. # noqa: E501 - - Link to share the campaign on social medias # noqa: E501 - - :return: The share_link of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._share_link - - @share_link.setter - def share_link(self, share_link): - """Sets the share_link of this GetEmailCampaign. - - Link to share the campaign on social medias # noqa: E501 - - :param share_link: The share_link of this GetEmailCampaign. # noqa: E501 - :type: str - """ - - self._share_link = share_link - - @property - def tag(self): - """Gets the tag of this GetEmailCampaign. # noqa: E501 - - Tag of the campaign # noqa: E501 - - :return: The tag of this GetEmailCampaign. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this GetEmailCampaign. - - Tag of the campaign # noqa: E501 - - :param tag: The tag of this GetEmailCampaign. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - @property - def created_at(self): - """Gets the created_at of this GetEmailCampaign. # noqa: E501 - - Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :return: The created_at of this GetEmailCampaign. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this GetEmailCampaign. - - Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :param created_at: The created_at of this GetEmailCampaign. # noqa: E501 - :type: datetime - """ - if created_at is None: - raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - - self._created_at = created_at - - @property - def modified_at(self): - """Gets the modified_at of this GetEmailCampaign. # noqa: E501 - - UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :return: The modified_at of this GetEmailCampaign. # noqa: E501 - :rtype: datetime - """ - return self._modified_at - - @modified_at.setter - def modified_at(self, modified_at): - """Sets the modified_at of this GetEmailCampaign. - - UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :param modified_at: The modified_at of this GetEmailCampaign. # noqa: E501 - :type: datetime - """ - if modified_at is None: - raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 - - self._modified_at = modified_at - - @property - def inline_image_activation(self): - """Gets the inline_image_activation of this GetEmailCampaign. # noqa: E501 - - Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. # noqa: E501 - - :return: The inline_image_activation of this GetEmailCampaign. # noqa: E501 - :rtype: bool - """ - return self._inline_image_activation - - @inline_image_activation.setter - def inline_image_activation(self, inline_image_activation): - """Sets the inline_image_activation of this GetEmailCampaign. - - Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. # noqa: E501 - - :param inline_image_activation: The inline_image_activation of this GetEmailCampaign. # noqa: E501 - :type: bool - """ - - self._inline_image_activation = inline_image_activation - - @property - def mirror_active(self): - """Gets the mirror_active of this GetEmailCampaign. # noqa: E501 - - Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign # noqa: E501 - - :return: The mirror_active of this GetEmailCampaign. # noqa: E501 - :rtype: bool - """ - return self._mirror_active - - @mirror_active.setter - def mirror_active(self, mirror_active): - """Sets the mirror_active of this GetEmailCampaign. - - Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign # noqa: E501 - - :param mirror_active: The mirror_active of this GetEmailCampaign. # noqa: E501 - :type: bool - """ - - self._mirror_active = mirror_active - - @property - def recurring(self): - """Gets the recurring of this GetEmailCampaign. # noqa: E501 - - FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times # noqa: E501 - - :return: The recurring of this GetEmailCampaign. # noqa: E501 - :rtype: bool - """ - return self._recurring - - @recurring.setter - def recurring(self, recurring): - """Sets the recurring of this GetEmailCampaign. - - FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times # noqa: E501 - - :param recurring: The recurring of this GetEmailCampaign. # noqa: E501 - :type: bool - """ - - self._recurring = recurring - - @property - def sent_date(self): - """Gets the sent_date of this GetEmailCampaign. # noqa: E501 - - Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' # noqa: E501 - - :return: The sent_date of this GetEmailCampaign. # noqa: E501 - :rtype: datetime - """ - return self._sent_date - - @sent_date.setter - def sent_date(self, sent_date): - """Sets the sent_date of this GetEmailCampaign. - - Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' # noqa: E501 - - :param sent_date: The sent_date of this GetEmailCampaign. # noqa: E501 - :type: datetime - """ - - self._sent_date = sent_date - @property def recipients(self): """Gets the recipients of this GetEmailCampaign. # noqa: E501 @@ -928,6 +114,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetEmailCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_email_campaigns.py b/sib_api_v3_sdk/models/get_email_campaigns.py index 60ccc31..fa81978 100644 --- a/sib_api_v3_sdk/models/get_email_campaigns.py +++ b/sib_api_v3_sdk/models/get_email_campaigns.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetEmailCampaigns(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class GetEmailCampaigns(object): def __init__(self, campaigns=None, count=None): # noqa: E501 """GetEmailCampaigns - a model defined in Swagger""" # noqa: E501 - self._campaigns = None self._count = None self.discriminator = None - if campaigns is not None: self.campaigns = campaigns self.count = count @@ -118,6 +114,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetEmailCampaigns, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_email_event_report.py b/sib_api_v3_sdk/models/get_email_event_report.py index 77b5509..2e66dbf 100644 --- a/sib_api_v3_sdk/models/get_email_event_report.py +++ b/sib_api_v3_sdk/models/get_email_event_report.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.get_email_event_report_events import GetEmailEventReportEvents # noqa: F401,E501 - class GetEmailEventReport(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -33,7 +29,7 @@ class GetEmailEventReport(object): and the value is json key in definition. """ swagger_types = { - 'events': 'list[GetEmailEventReportEvents]' + 'events': 'list[object]' } attribute_map = { @@ -42,10 +38,8 @@ class GetEmailEventReport(object): def __init__(self, events=None): # noqa: E501 """GetEmailEventReport - a model defined in Swagger""" # noqa: E501 - self._events = None self.discriminator = None - if events is not None: self.events = events @@ -55,7 +49,7 @@ def events(self): :return: The events of this GetEmailEventReport. # noqa: E501 - :rtype: list[GetEmailEventReportEvents] + :rtype: list[object] """ return self._events @@ -65,7 +59,7 @@ def events(self, events): :param events: The events of this GetEmailEventReport. # noqa: E501 - :type: list[GetEmailEventReportEvents] + :type: list[object] """ self._events = events @@ -91,6 +85,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetEmailEventReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_email_event_report_events.py b/sib_api_v3_sdk/models/get_email_event_report_events.py deleted file mode 100644 index 4db499c..0000000 --- a/sib_api_v3_sdk/models/get_email_event_report_events.py +++ /dev/null @@ -1,376 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetEmailEventReportEvents(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'email': 'str', - 'date': 'datetime', - 'subject': 'str', - 'message_id': 'str', - 'event': 'str', - 'reason': 'str', - 'tag': 'str', - 'ip': 'str', - 'link': 'str', - '_from': 'str' - } - - attribute_map = { - 'email': 'email', - 'date': 'date', - 'subject': 'subject', - 'message_id': 'messageId', - 'event': 'event', - 'reason': 'reason', - 'tag': 'tag', - 'ip': 'ip', - 'link': 'link', - '_from': 'from' - } - - def __init__(self, email=None, date=None, subject=None, message_id=None, event=None, reason=None, tag=None, ip=None, link=None, _from=None): # noqa: E501 - """GetEmailEventReportEvents - a model defined in Swagger""" # noqa: E501 - - self._email = None - self._date = None - self._subject = None - self._message_id = None - self._event = None - self._reason = None - self._tag = None - self._ip = None - self._link = None - self.__from = None - self.discriminator = None - - self.email = email - self.date = date - if subject is not None: - self.subject = subject - self.message_id = message_id - self.event = event - if reason is not None: - self.reason = reason - if tag is not None: - self.tag = tag - if ip is not None: - self.ip = ip - if link is not None: - self.link = link - if _from is not None: - self._from = _from - - @property - def email(self): - """Gets the email of this GetEmailEventReportEvents. # noqa: E501 - - Email address which generates the event # noqa: E501 - - :return: The email of this GetEmailEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this GetEmailEventReportEvents. - - Email address which generates the event # noqa: E501 - - :param email: The email of this GetEmailEventReportEvents. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def date(self): - """Gets the date of this GetEmailEventReportEvents. # noqa: E501 - - UTC date-time on which the event has been generated # noqa: E501 - - :return: The date of this GetEmailEventReportEvents. # noqa: E501 - :rtype: datetime - """ - return self._date - - @date.setter - def date(self, date): - """Sets the date of this GetEmailEventReportEvents. - - UTC date-time on which the event has been generated # noqa: E501 - - :param date: The date of this GetEmailEventReportEvents. # noqa: E501 - :type: datetime - """ - if date is None: - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 - - self._date = date - - @property - def subject(self): - """Gets the subject of this GetEmailEventReportEvents. # noqa: E501 - - Subject of the event # noqa: E501 - - :return: The subject of this GetEmailEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._subject - - @subject.setter - def subject(self, subject): - """Sets the subject of this GetEmailEventReportEvents. - - Subject of the event # noqa: E501 - - :param subject: The subject of this GetEmailEventReportEvents. # noqa: E501 - :type: str - """ - - self._subject = subject - - @property - def message_id(self): - """Gets the message_id of this GetEmailEventReportEvents. # noqa: E501 - - Message ID which generated the event # noqa: E501 - - :return: The message_id of this GetEmailEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._message_id - - @message_id.setter - def message_id(self, message_id): - """Sets the message_id of this GetEmailEventReportEvents. - - Message ID which generated the event # noqa: E501 - - :param message_id: The message_id of this GetEmailEventReportEvents. # noqa: E501 - :type: str - """ - if message_id is None: - raise ValueError("Invalid value for `message_id`, must not be `None`") # noqa: E501 - - self._message_id = message_id - - @property - def event(self): - """Gets the event of this GetEmailEventReportEvents. # noqa: E501 - - Event which occurred # noqa: E501 - - :return: The event of this GetEmailEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._event - - @event.setter - def event(self, event): - """Sets the event of this GetEmailEventReportEvents. - - Event which occurred # noqa: E501 - - :param event: The event of this GetEmailEventReportEvents. # noqa: E501 - :type: str - """ - if event is None: - raise ValueError("Invalid value for `event`, must not be `None`") # noqa: E501 - allowed_values = ["bounces", "hardBounces", "softBounces", "delivered", "spam", "requests", "opened", "clicks", "invalid", "deferred", "blocked", "unsubscribed"] # noqa: E501 - if event not in allowed_values: - raise ValueError( - "Invalid value for `event` ({0}), must be one of {1}" # noqa: E501 - .format(event, allowed_values) - ) - - self._event = event - - @property - def reason(self): - """Gets the reason of this GetEmailEventReportEvents. # noqa: E501 - - Reason of bounce (only available if the event is hardbounce or softbounce) # noqa: E501 - - :return: The reason of this GetEmailEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """Sets the reason of this GetEmailEventReportEvents. - - Reason of bounce (only available if the event is hardbounce or softbounce) # noqa: E501 - - :param reason: The reason of this GetEmailEventReportEvents. # noqa: E501 - :type: str - """ - - self._reason = reason - - @property - def tag(self): - """Gets the tag of this GetEmailEventReportEvents. # noqa: E501 - - Tag of the email which generated the event # noqa: E501 - - :return: The tag of this GetEmailEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this GetEmailEventReportEvents. - - Tag of the email which generated the event # noqa: E501 - - :param tag: The tag of this GetEmailEventReportEvents. # noqa: E501 - :type: str - """ - - self._tag = tag - - @property - def ip(self): - """Gets the ip of this GetEmailEventReportEvents. # noqa: E501 - - IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) # noqa: E501 - - :return: The ip of this GetEmailEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this GetEmailEventReportEvents. - - IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) # noqa: E501 - - :param ip: The ip of this GetEmailEventReportEvents. # noqa: E501 - :type: str - """ - - self._ip = ip - - @property - def link(self): - """Gets the link of this GetEmailEventReportEvents. # noqa: E501 - - The link which is sent to the user (only available if the event is requests or opened or clicks) # noqa: E501 - - :return: The link of this GetEmailEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._link - - @link.setter - def link(self, link): - """Sets the link of this GetEmailEventReportEvents. - - The link which is sent to the user (only available if the event is requests or opened or clicks) # noqa: E501 - - :param link: The link of this GetEmailEventReportEvents. # noqa: E501 - :type: str - """ - - self._link = link - - @property - def _from(self): - """Gets the _from of this GetEmailEventReportEvents. # noqa: E501 - - Sender email from which the emails are sent # noqa: E501 - - :return: The _from of this GetEmailEventReportEvents. # noqa: E501 - :rtype: str - """ - return self.__from - - @_from.setter - def _from(self, _from): - """Sets the _from of this GetEmailEventReportEvents. - - Sender email from which the emails are sent # noqa: E501 - - :param _from: The _from of this GetEmailEventReportEvents. # noqa: E501 - :type: str - """ - - self.__from = _from - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetEmailEventReportEvents): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_campaign_overview.py b/sib_api_v3_sdk/models/get_extended_campaign_overview.py index b6745f2..0a15d42 100644 --- a/sib_api_v3_sdk/models/get_extended_campaign_overview.py +++ b/sib_api_v3_sdk/models/get_extended_campaign_overview.py @@ -10,22 +10,18 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_campaign_overview import GetCampaignOverview # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_campaign_overview_sender import GetExtendedCampaignOverviewSender # noqa: F401,E501 -class GetExtendedCampaignOverview(object): +class GetExtendedCampaignOverview(GetCampaignOverview): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,23 +30,10 @@ class GetExtendedCampaignOverview(object): and the value is json key in definition. """ swagger_types = { - 'id': 'int', - 'name': 'str', - 'subject': 'str', - 'type': 'str', - 'status': 'str', - 'scheduled_at': 'datetime', - 'ab_testing': 'bool', - 'subject_a': 'str', - 'subject_b': 'str', - 'split_rule': 'int', - 'winner_criteria': 'str', - 'winner_delay': 'int', - 'send_at_best_time': 'bool', 'test_sent': 'bool', 'header': 'str', 'footer': 'str', - 'sender': 'GetExtendedCampaignOverviewSender', + 'sender': 'object', 'reply_to': 'str', 'to_field': 'str', 'html_content': 'str', @@ -65,19 +48,6 @@ class GetExtendedCampaignOverview(object): } attribute_map = { - 'id': 'id', - 'name': 'name', - 'subject': 'subject', - 'type': 'type', - 'status': 'status', - 'scheduled_at': 'scheduledAt', - 'ab_testing': 'abTesting', - 'subject_a': 'subjectA', - 'subject_b': 'subjectB', - 'split_rule': 'splitRule', - 'winner_criteria': 'winnerCriteria', - 'winner_delay': 'winnerDelay', - 'send_at_best_time': 'sendAtBestTime', 'test_sent': 'testSent', 'header': 'header', 'footer': 'footer', @@ -95,22 +65,8 @@ class GetExtendedCampaignOverview(object): 'sent_date': 'sentDate' } - def __init__(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None): # noqa: E501 + def __init__(self, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None): # noqa: E501 """GetExtendedCampaignOverview - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._name = None - self._subject = None - self._type = None - self._status = None - self._scheduled_at = None - self._ab_testing = None - self._subject_a = None - self._subject_b = None - self._split_rule = None - self._winner_criteria = None - self._winner_delay = None - self._send_at_best_time = None self._test_sent = None self._header = None self._footer = None @@ -127,29 +83,6 @@ def __init__(self, id=None, name=None, subject=None, type=None, status=None, sch self._recurring = None self._sent_date = None self.discriminator = None - - self.id = id - self.name = name - if subject is not None: - self.subject = subject - self.type = type - self.status = status - if scheduled_at is not None: - self.scheduled_at = scheduled_at - if ab_testing is not None: - self.ab_testing = ab_testing - if subject_a is not None: - self.subject_a = subject_a - if subject_b is not None: - self.subject_b = subject_b - if split_rule is not None: - self.split_rule = split_rule - if winner_criteria is not None: - self.winner_criteria = winner_criteria - if winner_delay is not None: - self.winner_delay = winner_delay - if send_at_best_time is not None: - self.send_at_best_time = send_at_best_time self.test_sent = test_sent self.header = header self.footer = footer @@ -171,325 +104,6 @@ def __init__(self, id=None, name=None, subject=None, type=None, status=None, sch if sent_date is not None: self.sent_date = sent_date - @property - def id(self): - """Gets the id of this GetExtendedCampaignOverview. # noqa: E501 - - ID of the campaign # noqa: E501 - - :return: The id of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this GetExtendedCampaignOverview. - - ID of the campaign # noqa: E501 - - :param id: The id of this GetExtendedCampaignOverview. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this GetExtendedCampaignOverview. # noqa: E501 - - Name of the campaign # noqa: E501 - - :return: The name of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetExtendedCampaignOverview. - - Name of the campaign # noqa: E501 - - :param name: The name of this GetExtendedCampaignOverview. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def subject(self): - """Gets the subject of this GetExtendedCampaignOverview. # noqa: E501 - - Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` # noqa: E501 - - :return: The subject of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: str - """ - return self._subject - - @subject.setter - def subject(self, subject): - """Sets the subject of this GetExtendedCampaignOverview. - - Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` # noqa: E501 - - :param subject: The subject of this GetExtendedCampaignOverview. # noqa: E501 - :type: str - """ - - self._subject = subject - - @property - def type(self): - """Gets the type of this GetExtendedCampaignOverview. # noqa: E501 - - Type of campaign # noqa: E501 - - :return: The type of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this GetExtendedCampaignOverview. - - Type of campaign # noqa: E501 - - :param type: The type of this GetExtendedCampaignOverview. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["classic", "trigger"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - @property - def status(self): - """Gets the status of this GetExtendedCampaignOverview. # noqa: E501 - - Status of the campaign # noqa: E501 - - :return: The status of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this GetExtendedCampaignOverview. - - Status of the campaign # noqa: E501 - - :param status: The status of this GetExtendedCampaignOverview. # noqa: E501 - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["draft", "sent", "archive", "queued", "suspended", "in_process"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - - self._status = status - - @property - def scheduled_at(self): - """Gets the scheduled_at of this GetExtendedCampaignOverview. # noqa: E501 - - UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :return: The scheduled_at of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: datetime - """ - return self._scheduled_at - - @scheduled_at.setter - def scheduled_at(self, scheduled_at): - """Sets the scheduled_at of this GetExtendedCampaignOverview. - - UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :param scheduled_at: The scheduled_at of this GetExtendedCampaignOverview. # noqa: E501 - :type: datetime - """ - - self._scheduled_at = scheduled_at - - @property - def ab_testing(self): - """Gets the ab_testing of this GetExtendedCampaignOverview. # noqa: E501 - - Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. # noqa: E501 - - :return: The ab_testing of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: bool - """ - return self._ab_testing - - @ab_testing.setter - def ab_testing(self, ab_testing): - """Sets the ab_testing of this GetExtendedCampaignOverview. - - Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. # noqa: E501 - - :param ab_testing: The ab_testing of this GetExtendedCampaignOverview. # noqa: E501 - :type: bool - """ - - self._ab_testing = ab_testing - - @property - def subject_a(self): - """Gets the subject_a of this GetExtendedCampaignOverview. # noqa: E501 - - Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :return: The subject_a of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: str - """ - return self._subject_a - - @subject_a.setter - def subject_a(self, subject_a): - """Sets the subject_a of this GetExtendedCampaignOverview. - - Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :param subject_a: The subject_a of this GetExtendedCampaignOverview. # noqa: E501 - :type: str - """ - - self._subject_a = subject_a - - @property - def subject_b(self): - """Gets the subject_b of this GetExtendedCampaignOverview. # noqa: E501 - - Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :return: The subject_b of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: str - """ - return self._subject_b - - @subject_b.setter - def subject_b(self, subject_b): - """Sets the subject_b of this GetExtendedCampaignOverview. - - Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :param subject_b: The subject_b of this GetExtendedCampaignOverview. # noqa: E501 - :type: str - """ - - self._subject_b = subject_b - - @property - def split_rule(self): - """Gets the split_rule of this GetExtendedCampaignOverview. # noqa: E501 - - The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :return: The split_rule of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: int - """ - return self._split_rule - - @split_rule.setter - def split_rule(self, split_rule): - """Sets the split_rule of this GetExtendedCampaignOverview. - - The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :param split_rule: The split_rule of this GetExtendedCampaignOverview. # noqa: E501 - :type: int - """ - - self._split_rule = split_rule - - @property - def winner_criteria(self): - """Gets the winner_criteria of this GetExtendedCampaignOverview. # noqa: E501 - - Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :return: The winner_criteria of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: str - """ - return self._winner_criteria - - @winner_criteria.setter - def winner_criteria(self, winner_criteria): - """Sets the winner_criteria of this GetExtendedCampaignOverview. - - Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :param winner_criteria: The winner_criteria of this GetExtendedCampaignOverview. # noqa: E501 - :type: str - """ - - self._winner_criteria = winner_criteria - - @property - def winner_delay(self): - """Gets the winner_delay of this GetExtendedCampaignOverview. # noqa: E501 - - The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :return: The winner_delay of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: int - """ - return self._winner_delay - - @winner_delay.setter - def winner_delay(self, winner_delay): - """Sets the winner_delay of this GetExtendedCampaignOverview. - - The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true` # noqa: E501 - - :param winner_delay: The winner_delay of this GetExtendedCampaignOverview. # noqa: E501 - :type: int - """ - - self._winner_delay = winner_delay - - @property - def send_at_best_time(self): - """Gets the send_at_best_time of this GetExtendedCampaignOverview. # noqa: E501 - - It is true if you have chosen to send your campaign at best time, otherwise it is false # noqa: E501 - - :return: The send_at_best_time of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: bool - """ - return self._send_at_best_time - - @send_at_best_time.setter - def send_at_best_time(self, send_at_best_time): - """Sets the send_at_best_time of this GetExtendedCampaignOverview. - - It is true if you have chosen to send your campaign at best time, otherwise it is false # noqa: E501 - - :param send_at_best_time: The send_at_best_time of this GetExtendedCampaignOverview. # noqa: E501 - :type: bool - """ - - self._send_at_best_time = send_at_best_time - @property def test_sent(self): """Gets the test_sent of this GetExtendedCampaignOverview. # noqa: E501 @@ -571,7 +185,7 @@ def sender(self): :return: The sender of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: GetExtendedCampaignOverviewSender + :rtype: object """ return self._sender @@ -581,7 +195,7 @@ def sender(self, sender): :param sender: The sender of this GetExtendedCampaignOverview. # noqa: E501 - :type: GetExtendedCampaignOverviewSender + :type: object """ if sender is None: raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 @@ -874,6 +488,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedCampaignOverview, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_campaign_overview_sender.py b/sib_api_v3_sdk/models/get_extended_campaign_overview_sender.py deleted file mode 100644 index 434fdf2..0000000 --- a/sib_api_v3_sdk/models/get_extended_campaign_overview_sender.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetExtendedCampaignOverviewSender(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'email': 'str' - } - - attribute_map = { - 'name': 'name', - 'email': 'email' - } - - def __init__(self, name=None, email=None): # noqa: E501 - """GetExtendedCampaignOverviewSender - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._email = None - self.discriminator = None - - if name is not None: - self.name = name - if email is not None: - self.email = email - - @property - def name(self): - """Gets the name of this GetExtendedCampaignOverviewSender. # noqa: E501 - - Sender name of the campaign # noqa: E501 - - :return: The name of this GetExtendedCampaignOverviewSender. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetExtendedCampaignOverviewSender. - - Sender name of the campaign # noqa: E501 - - :param name: The name of this GetExtendedCampaignOverviewSender. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def email(self): - """Gets the email of this GetExtendedCampaignOverviewSender. # noqa: E501 - - Sender email of the campaign # noqa: E501 - - :return: The email of this GetExtendedCampaignOverviewSender. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this GetExtendedCampaignOverviewSender. - - Sender email of the campaign # noqa: E501 - - :param email: The email of this GetExtendedCampaignOverviewSender. # noqa: E501 - :type: str - """ - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedCampaignOverviewSender): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_campaign_stats.py b/sib_api_v3_sdk/models/get_extended_campaign_stats.py index abc770d..6258f78 100644 --- a/sib_api_v3_sdk/models/get_extended_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_extended_campaign_stats.py @@ -10,12 +10,10 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_stats_by_domain import GetStatsByDomain # noqa: F401,E501 @@ -24,7 +22,6 @@ class GetExtendedCampaignStats(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -52,7 +49,6 @@ class GetExtendedCampaignStats(object): def __init__(self, global_stats=None, campaign_stats=None, mirror_click=None, remaining=None, links_stats=None, stats_by_domain=None): # noqa: E501 """GetExtendedCampaignStats - a model defined in Swagger""" # noqa: E501 - self._global_stats = None self._campaign_stats = None self._mirror_click = None @@ -60,7 +56,6 @@ def __init__(self, global_stats=None, campaign_stats=None, mirror_click=None, re self._links_stats = None self._stats_by_domain = None self.discriminator = None - self.global_stats = global_stats self.campaign_stats = campaign_stats self.mirror_click = mirror_click @@ -237,6 +232,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedCampaignStats, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_client.py b/sib_api_v3_sdk/models/get_extended_client.py index 5aa878f..de3d87d 100644 --- a/sib_api_v3_sdk/models/get_extended_client.py +++ b/sib_api_v3_sdk/models/get_extended_client.py @@ -10,22 +10,18 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_client import GetClient # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_client_address import GetExtendedClientAddress # noqa: F401,E501 -class GetExtendedClient(object): +class GetExtendedClient(GetClient): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,144 +30,27 @@ class GetExtendedClient(object): and the value is json key in definition. """ swagger_types = { - 'email': 'str', - 'first_name': 'str', - 'last_name': 'str', - 'company_name': 'str', - 'address': 'GetExtendedClientAddress' + 'address': 'object' } attribute_map = { - 'email': 'email', - 'first_name': 'firstName', - 'last_name': 'lastName', - 'company_name': 'companyName', 'address': 'address' } - def __init__(self, email=None, first_name=None, last_name=None, company_name=None, address=None): # noqa: E501 + def __init__(self, address=None): # noqa: E501 """GetExtendedClient - a model defined in Swagger""" # noqa: E501 - - self._email = None - self._first_name = None - self._last_name = None - self._company_name = None self._address = None self.discriminator = None - - self.email = email - self.first_name = first_name - self.last_name = last_name - self.company_name = company_name self.address = address - @property - def email(self): - """Gets the email of this GetExtendedClient. # noqa: E501 - - Login Email # noqa: E501 - - :return: The email of this GetExtendedClient. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this GetExtendedClient. - - Login Email # noqa: E501 - - :param email: The email of this GetExtendedClient. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def first_name(self): - """Gets the first_name of this GetExtendedClient. # noqa: E501 - - First Name # noqa: E501 - - :return: The first_name of this GetExtendedClient. # noqa: E501 - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """Sets the first_name of this GetExtendedClient. - - First Name # noqa: E501 - - :param first_name: The first_name of this GetExtendedClient. # noqa: E501 - :type: str - """ - if first_name is None: - raise ValueError("Invalid value for `first_name`, must not be `None`") # noqa: E501 - - self._first_name = first_name - - @property - def last_name(self): - """Gets the last_name of this GetExtendedClient. # noqa: E501 - - Last Name # noqa: E501 - - :return: The last_name of this GetExtendedClient. # noqa: E501 - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """Sets the last_name of this GetExtendedClient. - - Last Name # noqa: E501 - - :param last_name: The last_name of this GetExtendedClient. # noqa: E501 - :type: str - """ - if last_name is None: - raise ValueError("Invalid value for `last_name`, must not be `None`") # noqa: E501 - - self._last_name = last_name - - @property - def company_name(self): - """Gets the company_name of this GetExtendedClient. # noqa: E501 - - Name of the company # noqa: E501 - - :return: The company_name of this GetExtendedClient. # noqa: E501 - :rtype: str - """ - return self._company_name - - @company_name.setter - def company_name(self, company_name): - """Sets the company_name of this GetExtendedClient. - - Name of the company # noqa: E501 - - :param company_name: The company_name of this GetExtendedClient. # noqa: E501 - :type: str - """ - if company_name is None: - raise ValueError("Invalid value for `company_name`, must not be `None`") # noqa: E501 - - self._company_name = company_name - @property def address(self): """Gets the address of this GetExtendedClient. # noqa: E501 + Address informations # noqa: E501 :return: The address of this GetExtendedClient. # noqa: E501 - :rtype: GetExtendedClientAddress + :rtype: object """ return self._address @@ -179,9 +58,10 @@ def address(self): def address(self, address): """Sets the address of this GetExtendedClient. + Address informations # noqa: E501 :param address: The address of this GetExtendedClient. # noqa: E501 - :type: GetExtendedClientAddress + :type: object """ if address is None: raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 @@ -209,6 +89,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedClient, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_client_address.py b/sib_api_v3_sdk/models/get_extended_client_address.py deleted file mode 100644 index f993d65..0000000 --- a/sib_api_v3_sdk/models/get_extended_client_address.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetExtendedClientAddress(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'street': 'str', - 'city': 'str', - 'zip_code': 'str', - 'country': 'str' - } - - attribute_map = { - 'street': 'street', - 'city': 'city', - 'zip_code': 'zipCode', - 'country': 'country' - } - - def __init__(self, street=None, city=None, zip_code=None, country=None): # noqa: E501 - """GetExtendedClientAddress - a model defined in Swagger""" # noqa: E501 - - self._street = None - self._city = None - self._zip_code = None - self._country = None - self.discriminator = None - - self.street = street - self.city = city - self.zip_code = zip_code - self.country = country - - @property - def street(self): - """Gets the street of this GetExtendedClientAddress. # noqa: E501 - - Street information # noqa: E501 - - :return: The street of this GetExtendedClientAddress. # noqa: E501 - :rtype: str - """ - return self._street - - @street.setter - def street(self, street): - """Sets the street of this GetExtendedClientAddress. - - Street information # noqa: E501 - - :param street: The street of this GetExtendedClientAddress. # noqa: E501 - :type: str - """ - if street is None: - raise ValueError("Invalid value for `street`, must not be `None`") # noqa: E501 - - self._street = street - - @property - def city(self): - """Gets the city of this GetExtendedClientAddress. # noqa: E501 - - City information # noqa: E501 - - :return: The city of this GetExtendedClientAddress. # noqa: E501 - :rtype: str - """ - return self._city - - @city.setter - def city(self, city): - """Sets the city of this GetExtendedClientAddress. - - City information # noqa: E501 - - :param city: The city of this GetExtendedClientAddress. # noqa: E501 - :type: str - """ - if city is None: - raise ValueError("Invalid value for `city`, must not be `None`") # noqa: E501 - - self._city = city - - @property - def zip_code(self): - """Gets the zip_code of this GetExtendedClientAddress. # noqa: E501 - - Zip Code information # noqa: E501 - - :return: The zip_code of this GetExtendedClientAddress. # noqa: E501 - :rtype: str - """ - return self._zip_code - - @zip_code.setter - def zip_code(self, zip_code): - """Sets the zip_code of this GetExtendedClientAddress. - - Zip Code information # noqa: E501 - - :param zip_code: The zip_code of this GetExtendedClientAddress. # noqa: E501 - :type: str - """ - if zip_code is None: - raise ValueError("Invalid value for `zip_code`, must not be `None`") # noqa: E501 - - self._zip_code = zip_code - - @property - def country(self): - """Gets the country of this GetExtendedClientAddress. # noqa: E501 - - Country information # noqa: E501 - - :return: The country of this GetExtendedClientAddress. # noqa: E501 - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """Sets the country of this GetExtendedClientAddress. - - Country information # noqa: E501 - - :param country: The country of this GetExtendedClientAddress. # noqa: E501 - :type: str - """ - if country is None: - raise ValueError("Invalid value for `country`, must not be `None`") # noqa: E501 - - self._country = country - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedClientAddress): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_contact_details.py b/sib_api_v3_sdk/models/get_extended_contact_details.py index 9caa9ee..1628a4a 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details.py @@ -10,22 +10,18 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_contact_details import GetContactDetails # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics import GetExtendedContactDetailsStatistics # noqa: F401,E501 -class GetExtendedContactDetails(object): +class GetExtendedContactDetails(GetContactDetails): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,284 +30,27 @@ class GetExtendedContactDetails(object): and the value is json key in definition. """ swagger_types = { - 'email': 'str', - 'id': 'int', - 'email_blacklisted': 'bool', - 'sms_blacklisted': 'bool', - 'created_at': 'datetime', - 'modified_at': 'datetime', - 'list_ids': 'list[int]', - 'list_unsubscribed': 'list[int]', - 'attributes': 'object', - 'statistics': 'GetExtendedContactDetailsStatistics' + 'statistics': 'object' } attribute_map = { - 'email': 'email', - 'id': 'id', - 'email_blacklisted': 'emailBlacklisted', - 'sms_blacklisted': 'smsBlacklisted', - 'created_at': 'createdAt', - 'modified_at': 'modifiedAt', - 'list_ids': 'listIds', - 'list_unsubscribed': 'listUnsubscribed', - 'attributes': 'attributes', 'statistics': 'statistics' } - def __init__(self, email=None, id=None, email_blacklisted=None, sms_blacklisted=None, created_at=None, modified_at=None, list_ids=None, list_unsubscribed=None, attributes=None, statistics=None): # noqa: E501 + def __init__(self, statistics=None): # noqa: E501 """GetExtendedContactDetails - a model defined in Swagger""" # noqa: E501 - - self._email = None - self._id = None - self._email_blacklisted = None - self._sms_blacklisted = None - self._created_at = None - self._modified_at = None - self._list_ids = None - self._list_unsubscribed = None - self._attributes = None self._statistics = None self.discriminator = None - - self.email = email - self.id = id - self.email_blacklisted = email_blacklisted - self.sms_blacklisted = sms_blacklisted - self.created_at = created_at - self.modified_at = modified_at - self.list_ids = list_ids - if list_unsubscribed is not None: - self.list_unsubscribed = list_unsubscribed - self.attributes = attributes self.statistics = statistics - @property - def email(self): - """Gets the email of this GetExtendedContactDetails. # noqa: E501 - - Email address of the contact for which you requested the details # noqa: E501 - - :return: The email of this GetExtendedContactDetails. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this GetExtendedContactDetails. - - Email address of the contact for which you requested the details # noqa: E501 - - :param email: The email of this GetExtendedContactDetails. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def id(self): - """Gets the id of this GetExtendedContactDetails. # noqa: E501 - - ID of the contact for which you requested the details # noqa: E501 - - :return: The id of this GetExtendedContactDetails. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this GetExtendedContactDetails. - - ID of the contact for which you requested the details # noqa: E501 - - :param id: The id of this GetExtendedContactDetails. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def email_blacklisted(self): - """Gets the email_blacklisted of this GetExtendedContactDetails. # noqa: E501 - - Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) # noqa: E501 - - :return: The email_blacklisted of this GetExtendedContactDetails. # noqa: E501 - :rtype: bool - """ - return self._email_blacklisted - - @email_blacklisted.setter - def email_blacklisted(self, email_blacklisted): - """Sets the email_blacklisted of this GetExtendedContactDetails. - - Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) # noqa: E501 - - :param email_blacklisted: The email_blacklisted of this GetExtendedContactDetails. # noqa: E501 - :type: bool - """ - if email_blacklisted is None: - raise ValueError("Invalid value for `email_blacklisted`, must not be `None`") # noqa: E501 - - self._email_blacklisted = email_blacklisted - - @property - def sms_blacklisted(self): - """Gets the sms_blacklisted of this GetExtendedContactDetails. # noqa: E501 - - Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) # noqa: E501 - - :return: The sms_blacklisted of this GetExtendedContactDetails. # noqa: E501 - :rtype: bool - """ - return self._sms_blacklisted - - @sms_blacklisted.setter - def sms_blacklisted(self, sms_blacklisted): - """Sets the sms_blacklisted of this GetExtendedContactDetails. - - Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) # noqa: E501 - - :param sms_blacklisted: The sms_blacklisted of this GetExtendedContactDetails. # noqa: E501 - :type: bool - """ - if sms_blacklisted is None: - raise ValueError("Invalid value for `sms_blacklisted`, must not be `None`") # noqa: E501 - - self._sms_blacklisted = sms_blacklisted - - @property - def created_at(self): - """Gets the created_at of this GetExtendedContactDetails. # noqa: E501 - - Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :return: The created_at of this GetExtendedContactDetails. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this GetExtendedContactDetails. - - Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :param created_at: The created_at of this GetExtendedContactDetails. # noqa: E501 - :type: datetime - """ - if created_at is None: - raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - - self._created_at = created_at - - @property - def modified_at(self): - """Gets the modified_at of this GetExtendedContactDetails. # noqa: E501 - - Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :return: The modified_at of this GetExtendedContactDetails. # noqa: E501 - :rtype: datetime - """ - return self._modified_at - - @modified_at.setter - def modified_at(self, modified_at): - """Sets the modified_at of this GetExtendedContactDetails. - - Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :param modified_at: The modified_at of this GetExtendedContactDetails. # noqa: E501 - :type: datetime - """ - if modified_at is None: - raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 - - self._modified_at = modified_at - - @property - def list_ids(self): - """Gets the list_ids of this GetExtendedContactDetails. # noqa: E501 - - - :return: The list_ids of this GetExtendedContactDetails. # noqa: E501 - :rtype: list[int] - """ - return self._list_ids - - @list_ids.setter - def list_ids(self, list_ids): - """Sets the list_ids of this GetExtendedContactDetails. - - - :param list_ids: The list_ids of this GetExtendedContactDetails. # noqa: E501 - :type: list[int] - """ - if list_ids is None: - raise ValueError("Invalid value for `list_ids`, must not be `None`") # noqa: E501 - - self._list_ids = list_ids - - @property - def list_unsubscribed(self): - """Gets the list_unsubscribed of this GetExtendedContactDetails. # noqa: E501 - - - :return: The list_unsubscribed of this GetExtendedContactDetails. # noqa: E501 - :rtype: list[int] - """ - return self._list_unsubscribed - - @list_unsubscribed.setter - def list_unsubscribed(self, list_unsubscribed): - """Sets the list_unsubscribed of this GetExtendedContactDetails. - - - :param list_unsubscribed: The list_unsubscribed of this GetExtendedContactDetails. # noqa: E501 - :type: list[int] - """ - - self._list_unsubscribed = list_unsubscribed - - @property - def attributes(self): - """Gets the attributes of this GetExtendedContactDetails. # noqa: E501 - - Set of attributes of the contact # noqa: E501 - - :return: The attributes of this GetExtendedContactDetails. # noqa: E501 - :rtype: object - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """Sets the attributes of this GetExtendedContactDetails. - - Set of attributes of the contact # noqa: E501 - - :param attributes: The attributes of this GetExtendedContactDetails. # noqa: E501 - :type: object - """ - if attributes is None: - raise ValueError("Invalid value for `attributes`, must not be `None`") # noqa: E501 - - self._attributes = attributes - @property def statistics(self): """Gets the statistics of this GetExtendedContactDetails. # noqa: E501 + Campaign statistics of the contact # noqa: E501 :return: The statistics of this GetExtendedContactDetails. # noqa: E501 - :rtype: GetExtendedContactDetailsStatistics + :rtype: object """ return self._statistics @@ -319,9 +58,10 @@ def statistics(self): def statistics(self, statistics): """Sets the statistics of this GetExtendedContactDetails. + Campaign statistics of the contact # noqa: E501 :param statistics: The statistics of this GetExtendedContactDetails. # noqa: E501 - :type: GetExtendedContactDetailsStatistics + :type: object """ if statistics is None: raise ValueError("Invalid value for `statistics`, must not be `None`") # noqa: E501 @@ -349,6 +89,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedContactDetails, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py deleted file mode 100644 index d3f6d44..0000000 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py +++ /dev/null @@ -1,313 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_clicked import GetExtendedContactDetailsStatisticsClicked # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_messages_sent import GetExtendedContactDetailsStatisticsMessagesSent # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_opened import GetExtendedContactDetailsStatisticsOpened # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions import GetExtendedContactDetailsStatisticsUnsubscriptions # noqa: F401,E501 - - -class GetExtendedContactDetailsStatistics(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'messages_sent': 'list[GetExtendedContactDetailsStatisticsMessagesSent]', - 'hard_bounces': 'list[GetExtendedContactDetailsStatisticsMessagesSent]', - 'soft_bounces': 'list[GetExtendedContactDetailsStatisticsMessagesSent]', - 'complaints': 'list[GetExtendedContactDetailsStatisticsMessagesSent]', - 'unsubscriptions': 'GetExtendedContactDetailsStatisticsUnsubscriptions', - 'opened': 'list[GetExtendedContactDetailsStatisticsOpened]', - 'clicked': 'list[GetExtendedContactDetailsStatisticsClicked]', - 'transac_attributes': 'list[object]' - } - - attribute_map = { - 'messages_sent': 'messagesSent', - 'hard_bounces': 'hardBounces', - 'soft_bounces': 'softBounces', - 'complaints': 'complaints', - 'unsubscriptions': 'unsubscriptions', - 'opened': 'opened', - 'clicked': 'clicked', - 'transac_attributes': 'transacAttributes' - } - - def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, complaints=None, unsubscriptions=None, opened=None, clicked=None, transac_attributes=None): # noqa: E501 - """GetExtendedContactDetailsStatistics - a model defined in Swagger""" # noqa: E501 - - self._messages_sent = None - self._hard_bounces = None - self._soft_bounces = None - self._complaints = None - self._unsubscriptions = None - self._opened = None - self._clicked = None - self._transac_attributes = None - self.discriminator = None - - if messages_sent is not None: - self.messages_sent = messages_sent - if hard_bounces is not None: - self.hard_bounces = hard_bounces - if soft_bounces is not None: - self.soft_bounces = soft_bounces - if complaints is not None: - self.complaints = complaints - if unsubscriptions is not None: - self.unsubscriptions = unsubscriptions - if opened is not None: - self.opened = opened - if clicked is not None: - self.clicked = clicked - if transac_attributes is not None: - self.transac_attributes = transac_attributes - - @property - def messages_sent(self): - """Gets the messages_sent of this GetExtendedContactDetailsStatistics. # noqa: E501 - - Listing of the sent campaign for the contact # noqa: E501 - - :return: The messages_sent of this GetExtendedContactDetailsStatistics. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsMessagesSent] - """ - return self._messages_sent - - @messages_sent.setter - def messages_sent(self, messages_sent): - """Sets the messages_sent of this GetExtendedContactDetailsStatistics. - - Listing of the sent campaign for the contact # noqa: E501 - - :param messages_sent: The messages_sent of this GetExtendedContactDetailsStatistics. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsMessagesSent] - """ - - self._messages_sent = messages_sent - - @property - def hard_bounces(self): - """Gets the hard_bounces of this GetExtendedContactDetailsStatistics. # noqa: E501 - - Listing of the hardbounes generated by the contact # noqa: E501 - - :return: The hard_bounces of this GetExtendedContactDetailsStatistics. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsMessagesSent] - """ - return self._hard_bounces - - @hard_bounces.setter - def hard_bounces(self, hard_bounces): - """Sets the hard_bounces of this GetExtendedContactDetailsStatistics. - - Listing of the hardbounes generated by the contact # noqa: E501 - - :param hard_bounces: The hard_bounces of this GetExtendedContactDetailsStatistics. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsMessagesSent] - """ - - self._hard_bounces = hard_bounces - - @property - def soft_bounces(self): - """Gets the soft_bounces of this GetExtendedContactDetailsStatistics. # noqa: E501 - - Listing of the softbounes generated by the contact # noqa: E501 - - :return: The soft_bounces of this GetExtendedContactDetailsStatistics. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsMessagesSent] - """ - return self._soft_bounces - - @soft_bounces.setter - def soft_bounces(self, soft_bounces): - """Sets the soft_bounces of this GetExtendedContactDetailsStatistics. - - Listing of the softbounes generated by the contact # noqa: E501 - - :param soft_bounces: The soft_bounces of this GetExtendedContactDetailsStatistics. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsMessagesSent] - """ - - self._soft_bounces = soft_bounces - - @property - def complaints(self): - """Gets the complaints of this GetExtendedContactDetailsStatistics. # noqa: E501 - - Listing of the complaints generated by the contact # noqa: E501 - - :return: The complaints of this GetExtendedContactDetailsStatistics. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsMessagesSent] - """ - return self._complaints - - @complaints.setter - def complaints(self, complaints): - """Sets the complaints of this GetExtendedContactDetailsStatistics. - - Listing of the complaints generated by the contact # noqa: E501 - - :param complaints: The complaints of this GetExtendedContactDetailsStatistics. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsMessagesSent] - """ - - self._complaints = complaints - - @property - def unsubscriptions(self): - """Gets the unsubscriptions of this GetExtendedContactDetailsStatistics. # noqa: E501 - - - :return: The unsubscriptions of this GetExtendedContactDetailsStatistics. # noqa: E501 - :rtype: GetExtendedContactDetailsStatisticsUnsubscriptions - """ - return self._unsubscriptions - - @unsubscriptions.setter - def unsubscriptions(self, unsubscriptions): - """Sets the unsubscriptions of this GetExtendedContactDetailsStatistics. - - - :param unsubscriptions: The unsubscriptions of this GetExtendedContactDetailsStatistics. # noqa: E501 - :type: GetExtendedContactDetailsStatisticsUnsubscriptions - """ - - self._unsubscriptions = unsubscriptions - - @property - def opened(self): - """Gets the opened of this GetExtendedContactDetailsStatistics. # noqa: E501 - - Listing of the openings generated by the contact # noqa: E501 - - :return: The opened of this GetExtendedContactDetailsStatistics. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsOpened] - """ - return self._opened - - @opened.setter - def opened(self, opened): - """Sets the opened of this GetExtendedContactDetailsStatistics. - - Listing of the openings generated by the contact # noqa: E501 - - :param opened: The opened of this GetExtendedContactDetailsStatistics. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsOpened] - """ - - self._opened = opened - - @property - def clicked(self): - """Gets the clicked of this GetExtendedContactDetailsStatistics. # noqa: E501 - - Listing of the clicks generated by the contact # noqa: E501 - - :return: The clicked of this GetExtendedContactDetailsStatistics. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsClicked] - """ - return self._clicked - - @clicked.setter - def clicked(self, clicked): - """Sets the clicked of this GetExtendedContactDetailsStatistics. - - Listing of the clicks generated by the contact # noqa: E501 - - :param clicked: The clicked of this GetExtendedContactDetailsStatistics. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsClicked] - """ - - self._clicked = clicked - - @property - def transac_attributes(self): - """Gets the transac_attributes of this GetExtendedContactDetailsStatistics. # noqa: E501 - - Listing of the transactional attributes for the contact # noqa: E501 - - :return: The transac_attributes of this GetExtendedContactDetailsStatistics. # noqa: E501 - :rtype: list[object] - """ - return self._transac_attributes - - @transac_attributes.setter - def transac_attributes(self, transac_attributes): - """Sets the transac_attributes of this GetExtendedContactDetailsStatistics. - - Listing of the transactional attributes for the contact # noqa: E501 - - :param transac_attributes: The transac_attributes of this GetExtendedContactDetailsStatistics. # noqa: E501 - :type: list[object] - """ - - self._transac_attributes = transac_attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedContactDetailsStatistics): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_clicked.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_clicked.py deleted file mode 100644 index 755ccf0..0000000 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_clicked.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_links import GetExtendedContactDetailsStatisticsLinks # noqa: F401,E501 - - -class GetExtendedContactDetailsStatisticsClicked(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'campaign_id': 'int', - 'links': 'list[GetExtendedContactDetailsStatisticsLinks]' - } - - attribute_map = { - 'campaign_id': 'campaignId', - 'links': 'links' - } - - def __init__(self, campaign_id=None, links=None): # noqa: E501 - """GetExtendedContactDetailsStatisticsClicked - a model defined in Swagger""" # noqa: E501 - - self._campaign_id = None - self._links = None - self.discriminator = None - - self.campaign_id = campaign_id - self.links = links - - @property - def campaign_id(self): - """Gets the campaign_id of this GetExtendedContactDetailsStatisticsClicked. # noqa: E501 - - ID of the campaign which generated the event # noqa: E501 - - :return: The campaign_id of this GetExtendedContactDetailsStatisticsClicked. # noqa: E501 - :rtype: int - """ - return self._campaign_id - - @campaign_id.setter - def campaign_id(self, campaign_id): - """Sets the campaign_id of this GetExtendedContactDetailsStatisticsClicked. - - ID of the campaign which generated the event # noqa: E501 - - :param campaign_id: The campaign_id of this GetExtendedContactDetailsStatisticsClicked. # noqa: E501 - :type: int - """ - if campaign_id is None: - raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 - - self._campaign_id = campaign_id - - @property - def links(self): - """Gets the links of this GetExtendedContactDetailsStatisticsClicked. # noqa: E501 - - Listing of the clicked links for the campaign # noqa: E501 - - :return: The links of this GetExtendedContactDetailsStatisticsClicked. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsLinks] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this GetExtendedContactDetailsStatisticsClicked. - - Listing of the clicked links for the campaign # noqa: E501 - - :param links: The links of this GetExtendedContactDetailsStatisticsClicked. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsLinks] - """ - if links is None: - raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 - - self._links = links - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedContactDetailsStatisticsClicked): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py deleted file mode 100644 index bce9063..0000000 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetExtendedContactDetailsStatisticsLinks(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'count': 'int', - 'event_time': 'datetime', - 'ip': 'str', - 'url': 'str' - } - - attribute_map = { - 'count': 'count', - 'event_time': 'eventTime', - 'ip': 'ip', - 'url': 'url' - } - - def __init__(self, count=None, event_time=None, ip=None, url=None): # noqa: E501 - """GetExtendedContactDetailsStatisticsLinks - a model defined in Swagger""" # noqa: E501 - - self._count = None - self._event_time = None - self._ip = None - self._url = None - self.discriminator = None - - self.count = count - self.event_time = event_time - self.ip = ip - self.url = url - - @property - def count(self): - """Gets the count of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - - Number of clicks on this link for the campaign # noqa: E501 - - :return: The count of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - :rtype: int - """ - return self._count - - @count.setter - def count(self, count): - """Sets the count of this GetExtendedContactDetailsStatisticsLinks. - - Number of clicks on this link for the campaign # noqa: E501 - - :param count: The count of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - :type: int - """ - if count is None: - raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 - - self._count = count - - @property - def event_time(self): - """Gets the event_time of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - - UTC date-time of the event # noqa: E501 - - :return: The event_time of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - :rtype: datetime - """ - return self._event_time - - @event_time.setter - def event_time(self, event_time): - """Sets the event_time of this GetExtendedContactDetailsStatisticsLinks. - - UTC date-time of the event # noqa: E501 - - :param event_time: The event_time of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - :type: datetime - """ - if event_time is None: - raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 - - self._event_time = event_time - - @property - def ip(self): - """Gets the ip of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - - IP from which the user has clicked on the link # noqa: E501 - - :return: The ip of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this GetExtendedContactDetailsStatisticsLinks. - - IP from which the user has clicked on the link # noqa: E501 - - :param ip: The ip of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - :type: str - """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 - - self._ip = ip - - @property - def url(self): - """Gets the url of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - - URL of the clicked link # noqa: E501 - - :return: The url of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this GetExtendedContactDetailsStatisticsLinks. - - URL of the clicked link # noqa: E501 - - :param url: The url of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - :type: str - """ - if url is None: - raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 - - self._url = url - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedContactDetailsStatisticsLinks): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py deleted file mode 100644 index 204868e..0000000 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetExtendedContactDetailsStatisticsMessagesSent(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'campaign_id': 'int', - 'event_time': 'datetime' - } - - attribute_map = { - 'campaign_id': 'campaignId', - 'event_time': 'eventTime' - } - - def __init__(self, campaign_id=None, event_time=None): # noqa: E501 - """GetExtendedContactDetailsStatisticsMessagesSent - a model defined in Swagger""" # noqa: E501 - - self._campaign_id = None - self._event_time = None - self.discriminator = None - - self.campaign_id = campaign_id - self.event_time = event_time - - @property - def campaign_id(self): - """Gets the campaign_id of this GetExtendedContactDetailsStatisticsMessagesSent. # noqa: E501 - - ID of the campaign which generated the event # noqa: E501 - - :return: The campaign_id of this GetExtendedContactDetailsStatisticsMessagesSent. # noqa: E501 - :rtype: int - """ - return self._campaign_id - - @campaign_id.setter - def campaign_id(self, campaign_id): - """Sets the campaign_id of this GetExtendedContactDetailsStatisticsMessagesSent. - - ID of the campaign which generated the event # noqa: E501 - - :param campaign_id: The campaign_id of this GetExtendedContactDetailsStatisticsMessagesSent. # noqa: E501 - :type: int - """ - if campaign_id is None: - raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 - - self._campaign_id = campaign_id - - @property - def event_time(self): - """Gets the event_time of this GetExtendedContactDetailsStatisticsMessagesSent. # noqa: E501 - - UTC date-time of the event # noqa: E501 - - :return: The event_time of this GetExtendedContactDetailsStatisticsMessagesSent. # noqa: E501 - :rtype: datetime - """ - return self._event_time - - @event_time.setter - def event_time(self, event_time): - """Sets the event_time of this GetExtendedContactDetailsStatisticsMessagesSent. - - UTC date-time of the event # noqa: E501 - - :param event_time: The event_time of this GetExtendedContactDetailsStatisticsMessagesSent. # noqa: E501 - :type: datetime - """ - if event_time is None: - raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 - - self._event_time = event_time - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedContactDetailsStatisticsMessagesSent): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py deleted file mode 100644 index 839648b..0000000 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetExtendedContactDetailsStatisticsOpened(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'campaign_id': 'int', - 'count': 'int', - 'event_time': 'datetime', - 'ip': 'str' - } - - attribute_map = { - 'campaign_id': 'campaignId', - 'count': 'count', - 'event_time': 'eventTime', - 'ip': 'ip' - } - - def __init__(self, campaign_id=None, count=None, event_time=None, ip=None): # noqa: E501 - """GetExtendedContactDetailsStatisticsOpened - a model defined in Swagger""" # noqa: E501 - - self._campaign_id = None - self._count = None - self._event_time = None - self._ip = None - self.discriminator = None - - self.campaign_id = campaign_id - self.count = count - self.event_time = event_time - self.ip = ip - - @property - def campaign_id(self): - """Gets the campaign_id of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - - ID of the campaign which generated the event # noqa: E501 - - :return: The campaign_id of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - :rtype: int - """ - return self._campaign_id - - @campaign_id.setter - def campaign_id(self, campaign_id): - """Sets the campaign_id of this GetExtendedContactDetailsStatisticsOpened. - - ID of the campaign which generated the event # noqa: E501 - - :param campaign_id: The campaign_id of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - :type: int - """ - if campaign_id is None: - raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 - - self._campaign_id = campaign_id - - @property - def count(self): - """Gets the count of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - - Number of openings for the campaign # noqa: E501 - - :return: The count of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - :rtype: int - """ - return self._count - - @count.setter - def count(self, count): - """Sets the count of this GetExtendedContactDetailsStatisticsOpened. - - Number of openings for the campaign # noqa: E501 - - :param count: The count of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - :type: int - """ - if count is None: - raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 - - self._count = count - - @property - def event_time(self): - """Gets the event_time of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - - UTC date-time of the event # noqa: E501 - - :return: The event_time of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - :rtype: datetime - """ - return self._event_time - - @event_time.setter - def event_time(self, event_time): - """Sets the event_time of this GetExtendedContactDetailsStatisticsOpened. - - UTC date-time of the event # noqa: E501 - - :param event_time: The event_time of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - :type: datetime - """ - if event_time is None: - raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 - - self._event_time = event_time - - @property - def ip(self): - """Gets the ip of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - - IP from which the user has opened the email # noqa: E501 - - :return: The ip of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this GetExtendedContactDetailsStatisticsOpened. - - IP from which the user has opened the email # noqa: E501 - - :param ip: The ip of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - :type: str - """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 - - self._ip = ip - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedContactDetailsStatisticsOpened): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions.py deleted file mode 100644 index 3c894b9..0000000 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_user_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription # noqa: F401,E501 - - -class GetExtendedContactDetailsStatisticsUnsubscriptions(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'user_unsubscription': 'list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]', - 'admin_unsubscription': 'list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]' - } - - attribute_map = { - 'user_unsubscription': 'userUnsubscription', - 'admin_unsubscription': 'adminUnsubscription' - } - - def __init__(self, user_unsubscription=None, admin_unsubscription=None): # noqa: E501 - """GetExtendedContactDetailsStatisticsUnsubscriptions - a model defined in Swagger""" # noqa: E501 - - self._user_unsubscription = None - self._admin_unsubscription = None - self.discriminator = None - - self.user_unsubscription = user_unsubscription - self.admin_unsubscription = admin_unsubscription - - @property - def user_unsubscription(self): - """Gets the user_unsubscription of this GetExtendedContactDetailsStatisticsUnsubscriptions. # noqa: E501 - - Contact unsubscribe via unsubscription link in a campaign # noqa: E501 - - :return: The user_unsubscription of this GetExtendedContactDetailsStatisticsUnsubscriptions. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription] - """ - return self._user_unsubscription - - @user_unsubscription.setter - def user_unsubscription(self, user_unsubscription): - """Sets the user_unsubscription of this GetExtendedContactDetailsStatisticsUnsubscriptions. - - Contact unsubscribe via unsubscription link in a campaign # noqa: E501 - - :param user_unsubscription: The user_unsubscription of this GetExtendedContactDetailsStatisticsUnsubscriptions. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription] - """ - if user_unsubscription is None: - raise ValueError("Invalid value for `user_unsubscription`, must not be `None`") # noqa: E501 - - self._user_unsubscription = user_unsubscription - - @property - def admin_unsubscription(self): - """Gets the admin_unsubscription of this GetExtendedContactDetailsStatisticsUnsubscriptions. # noqa: E501 - - Contact has been unsubscribed from the administrator # noqa: E501 - - :return: The admin_unsubscription of this GetExtendedContactDetailsStatisticsUnsubscriptions. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription] - """ - return self._admin_unsubscription - - @admin_unsubscription.setter - def admin_unsubscription(self, admin_unsubscription): - """Sets the admin_unsubscription of this GetExtendedContactDetailsStatisticsUnsubscriptions. - - Contact has been unsubscribed from the administrator # noqa: E501 - - :param admin_unsubscription: The admin_unsubscription of this GetExtendedContactDetailsStatisticsUnsubscriptions. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription] - """ - if admin_unsubscription is None: - raise ValueError("Invalid value for `admin_unsubscription`, must not be `None`") # noqa: E501 - - self._admin_unsubscription = admin_unsubscription - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedContactDetailsStatisticsUnsubscriptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py deleted file mode 100644 index 2fd838b..0000000 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'event_time': 'datetime', - 'ip': 'str' - } - - attribute_map = { - 'event_time': 'eventTime', - 'ip': 'ip' - } - - def __init__(self, event_time=None, ip=None): # noqa: E501 - """GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription - a model defined in Swagger""" # noqa: E501 - - self._event_time = None - self._ip = None - self.discriminator = None - - self.event_time = event_time - self.ip = ip - - @property - def event_time(self): - """Gets the event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501 - - UTC date-time of the event # noqa: E501 - - :return: The event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501 - :rtype: datetime - """ - return self._event_time - - @event_time.setter - def event_time(self, event_time): - """Sets the event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. - - UTC date-time of the event # noqa: E501 - - :param event_time: The event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501 - :type: datetime - """ - if event_time is None: - raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 - - self._event_time = event_time - - @property - def ip(self): - """Gets the ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501 - - IP from which the user has been unsubscribed # noqa: E501 - - :return: The ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501 - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. - - IP from which the user has been unsubscribed # noqa: E501 - - :param ip: The ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501 - :type: str - """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 - - self._ip = ip - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py deleted file mode 100644 index 30a24b5..0000000 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'campaign_id': 'int', - 'event_time': 'datetime', - 'ip': 'str' - } - - attribute_map = { - 'campaign_id': 'campaignId', - 'event_time': 'eventTime', - 'ip': 'ip' - } - - def __init__(self, campaign_id=None, event_time=None, ip=None): # noqa: E501 - """GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription - a model defined in Swagger""" # noqa: E501 - - self._campaign_id = None - self._event_time = None - self._ip = None - self.discriminator = None - - self.campaign_id = campaign_id - self.event_time = event_time - self.ip = ip - - @property - def campaign_id(self): - """Gets the campaign_id of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - - ID of the campaign which generated the event # noqa: E501 - - :return: The campaign_id of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - :rtype: int - """ - return self._campaign_id - - @campaign_id.setter - def campaign_id(self, campaign_id): - """Sets the campaign_id of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. - - ID of the campaign which generated the event # noqa: E501 - - :param campaign_id: The campaign_id of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - :type: int - """ - if campaign_id is None: - raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 - - self._campaign_id = campaign_id - - @property - def event_time(self): - """Gets the event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - - UTC date-time of the event # noqa: E501 - - :return: The event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - :rtype: datetime - """ - return self._event_time - - @event_time.setter - def event_time(self, event_time): - """Sets the event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. - - UTC date-time of the event # noqa: E501 - - :param event_time: The event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - :type: datetime - """ - if event_time is None: - raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 - - self._event_time = event_time - - @property - def ip(self): - """Gets the ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - - IP from which the user has unsubscribed # noqa: E501 - - :return: The ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. - - IP from which the user has unsubscribed # noqa: E501 - - :param ip: The ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - :type: str - """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 - - self._ip = ip - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_list.py b/sib_api_v3_sdk/models/get_extended_list.py index 7ca41b3..c6ecc92 100644 --- a/sib_api_v3_sdk/models/get_extended_list.py +++ b/sib_api_v3_sdk/models/get_extended_list.py @@ -10,22 +10,18 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - -from sib_api_v3_sdk.models.get_extended_list_campaign_stats import GetExtendedListCampaignStats # noqa: F401,E501 from sib_api_v3_sdk.models.get_list import GetList # noqa: F401,E501 -class GetExtendedList(object): +class GetExtendedList(GetList): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,44 +30,26 @@ class GetExtendedList(object): and the value is json key in definition. """ swagger_types = { - 'id': 'int', - 'name': 'str', - 'total_blacklisted': 'int', - 'total_subscribers': 'int', 'folder_id': 'int', 'created_at': 'datetime', - 'campaign_stats': 'list[GetExtendedListCampaignStats]', + 'campaign_stats': 'list[object]', 'dynamic_list': 'bool' } attribute_map = { - 'id': 'id', - 'name': 'name', - 'total_blacklisted': 'totalBlacklisted', - 'total_subscribers': 'totalSubscribers', 'folder_id': 'folderId', 'created_at': 'createdAt', 'campaign_stats': 'campaignStats', 'dynamic_list': 'dynamicList' } - def __init__(self, id=None, name=None, total_blacklisted=None, total_subscribers=None, folder_id=None, created_at=None, campaign_stats=None, dynamic_list=None): # noqa: E501 + def __init__(self, folder_id=None, created_at=None, campaign_stats=None, dynamic_list=None): # noqa: E501 """GetExtendedList - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._name = None - self._total_blacklisted = None - self._total_subscribers = None self._folder_id = None self._created_at = None self._campaign_stats = None self._dynamic_list = None self.discriminator = None - - self.id = id - self.name = name - self.total_blacklisted = total_blacklisted - self.total_subscribers = total_subscribers self.folder_id = folder_id self.created_at = created_at if campaign_stats is not None: @@ -79,106 +57,6 @@ def __init__(self, id=None, name=None, total_blacklisted=None, total_subscribers if dynamic_list is not None: self.dynamic_list = dynamic_list - @property - def id(self): - """Gets the id of this GetExtendedList. # noqa: E501 - - ID of the list # noqa: E501 - - :return: The id of this GetExtendedList. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this GetExtendedList. - - ID of the list # noqa: E501 - - :param id: The id of this GetExtendedList. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this GetExtendedList. # noqa: E501 - - Name of the list # noqa: E501 - - :return: The name of this GetExtendedList. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetExtendedList. - - Name of the list # noqa: E501 - - :param name: The name of this GetExtendedList. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def total_blacklisted(self): - """Gets the total_blacklisted of this GetExtendedList. # noqa: E501 - - Number of blacklisted contacts in the list # noqa: E501 - - :return: The total_blacklisted of this GetExtendedList. # noqa: E501 - :rtype: int - """ - return self._total_blacklisted - - @total_blacklisted.setter - def total_blacklisted(self, total_blacklisted): - """Sets the total_blacklisted of this GetExtendedList. - - Number of blacklisted contacts in the list # noqa: E501 - - :param total_blacklisted: The total_blacklisted of this GetExtendedList. # noqa: E501 - :type: int - """ - if total_blacklisted is None: - raise ValueError("Invalid value for `total_blacklisted`, must not be `None`") # noqa: E501 - - self._total_blacklisted = total_blacklisted - - @property - def total_subscribers(self): - """Gets the total_subscribers of this GetExtendedList. # noqa: E501 - - Number of contacts in the list # noqa: E501 - - :return: The total_subscribers of this GetExtendedList. # noqa: E501 - :rtype: int - """ - return self._total_subscribers - - @total_subscribers.setter - def total_subscribers(self, total_subscribers): - """Sets the total_subscribers of this GetExtendedList. - - Number of contacts in the list # noqa: E501 - - :param total_subscribers: The total_subscribers of this GetExtendedList. # noqa: E501 - :type: int - """ - if total_subscribers is None: - raise ValueError("Invalid value for `total_subscribers`, must not be `None`") # noqa: E501 - - self._total_subscribers = total_subscribers - @property def folder_id(self): """Gets the folder_id of this GetExtendedList. # noqa: E501 @@ -235,7 +113,7 @@ def campaign_stats(self): :return: The campaign_stats of this GetExtendedList. # noqa: E501 - :rtype: list[GetExtendedListCampaignStats] + :rtype: list[object] """ return self._campaign_stats @@ -245,7 +123,7 @@ def campaign_stats(self, campaign_stats): :param campaign_stats: The campaign_stats of this GetExtendedList. # noqa: E501 - :type: list[GetExtendedListCampaignStats] + :type: list[object] """ self._campaign_stats = campaign_stats @@ -294,6 +172,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_list_campaign_stats.py b/sib_api_v3_sdk/models/get_extended_list_campaign_stats.py deleted file mode 100644 index fd4aff1..0000000 --- a/sib_api_v3_sdk/models/get_extended_list_campaign_stats.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats # noqa: F401,E501 - - -class GetExtendedListCampaignStats(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'campaign_id': 'int', - 'stats': 'GetCampaignStats' - } - - attribute_map = { - 'campaign_id': 'campaignId', - 'stats': 'stats' - } - - def __init__(self, campaign_id=None, stats=None): # noqa: E501 - """GetExtendedListCampaignStats - a model defined in Swagger""" # noqa: E501 - - self._campaign_id = None - self._stats = None - self.discriminator = None - - self.campaign_id = campaign_id - self.stats = stats - - @property - def campaign_id(self): - """Gets the campaign_id of this GetExtendedListCampaignStats. # noqa: E501 - - ID of the campaign # noqa: E501 - - :return: The campaign_id of this GetExtendedListCampaignStats. # noqa: E501 - :rtype: int - """ - return self._campaign_id - - @campaign_id.setter - def campaign_id(self, campaign_id): - """Sets the campaign_id of this GetExtendedListCampaignStats. - - ID of the campaign # noqa: E501 - - :param campaign_id: The campaign_id of this GetExtendedListCampaignStats. # noqa: E501 - :type: int - """ - if campaign_id is None: - raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 - - self._campaign_id = campaign_id - - @property - def stats(self): - """Gets the stats of this GetExtendedListCampaignStats. # noqa: E501 - - - :return: The stats of this GetExtendedListCampaignStats. # noqa: E501 - :rtype: GetCampaignStats - """ - return self._stats - - @stats.setter - def stats(self, stats): - """Sets the stats of this GetExtendedListCampaignStats. - - - :param stats: The stats of this GetExtendedListCampaignStats. # noqa: E501 - :type: GetCampaignStats - """ - if stats is None: - raise ValueError("Invalid value for `stats`, must not be `None`") # noqa: E501 - - self._stats = stats - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetExtendedListCampaignStats): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_folder.py b/sib_api_v3_sdk/models/get_folder.py index d9cd246..7539c09 100644 --- a/sib_api_v3_sdk/models/get_folder.py +++ b/sib_api_v3_sdk/models/get_folder.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetFolder(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,14 +46,12 @@ class GetFolder(object): def __init__(self, id=None, name=None, total_blacklisted=None, total_subscribers=None, unique_subscribers=None): # noqa: E501 """GetFolder - a model defined in Swagger""" # noqa: E501 - self._id = None self._name = None self._total_blacklisted = None self._total_subscribers = None self._unique_subscribers = None self.discriminator = None - self.id = id self.name = name self.total_blacklisted = total_blacklisted @@ -208,6 +204,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetFolder, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_folder_lists.py b/sib_api_v3_sdk/models/get_folder_lists.py index 8b07f5d..149a0b6 100644 --- a/sib_api_v3_sdk/models/get_folder_lists.py +++ b/sib_api_v3_sdk/models/get_folder_lists.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetFolderLists(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class GetFolderLists(object): def __init__(self, lists=None, count=None): # noqa: E501 """GetFolderLists - a model defined in Swagger""" # noqa: E501 - self._lists = None self._count = None self.discriminator = None - self.lists = lists self.count = count @@ -119,6 +115,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetFolderLists, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_folders.py b/sib_api_v3_sdk/models/get_folders.py index f562f41..b8a6876 100644 --- a/sib_api_v3_sdk/models/get_folders.py +++ b/sib_api_v3_sdk/models/get_folders.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetFolders(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class GetFolders(object): def __init__(self, folders=None, count=None): # noqa: E501 """GetFolders - a model defined in Swagger""" # noqa: E501 - self._folders = None self._count = None self.discriminator = None - if folders is not None: self.folders = folders if count is not None: @@ -117,6 +113,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetFolders, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_ip.py b/sib_api_v3_sdk/models/get_ip.py index 633c309..ce7f462 100644 --- a/sib_api_v3_sdk/models/get_ip.py +++ b/sib_api_v3_sdk/models/get_ip.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetIp(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -46,13 +44,11 @@ class GetIp(object): def __init__(self, id=None, ip=None, active=None, domain=None): # noqa: E501 """GetIp - a model defined in Swagger""" # noqa: E501 - self._id = None self._ip = None self._active = None self._domain = None self.discriminator = None - self.id = id self.ip = ip self.active = active @@ -179,6 +175,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetIp, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_ip_from_sender.py b/sib_api_v3_sdk/models/get_ip_from_sender.py index 8dee534..48ad026 100644 --- a/sib_api_v3_sdk/models/get_ip_from_sender.py +++ b/sib_api_v3_sdk/models/get_ip_from_sender.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetIpFromSender(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -46,13 +44,11 @@ class GetIpFromSender(object): def __init__(self, id=None, ip=None, domain=None, weight=None): # noqa: E501 """GetIpFromSender - a model defined in Swagger""" # noqa: E501 - self._id = None self._ip = None self._domain = None self._weight = None self.discriminator = None - self.id = id self.ip = ip self.domain = domain @@ -179,6 +175,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetIpFromSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_ips.py b/sib_api_v3_sdk/models/get_ips.py index 4fd60cf..4fdb273 100644 --- a/sib_api_v3_sdk/models/get_ips.py +++ b/sib_api_v3_sdk/models/get_ips.py @@ -10,12 +10,10 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_ip import GetIp # noqa: F401,E501 @@ -24,7 +22,6 @@ class GetIps(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,10 +39,8 @@ class GetIps(object): def __init__(self, ips=None): # noqa: E501 """GetIps - a model defined in Swagger""" # noqa: E501 - self._ips = None self.discriminator = None - self.ips = ips @property @@ -94,6 +89,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetIps, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_ips_from_sender.py b/sib_api_v3_sdk/models/get_ips_from_sender.py index f41de4c..a919be1 100644 --- a/sib_api_v3_sdk/models/get_ips_from_sender.py +++ b/sib_api_v3_sdk/models/get_ips_from_sender.py @@ -10,12 +10,10 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_ip_from_sender import GetIpFromSender # noqa: F401,E501 @@ -24,7 +22,6 @@ class GetIpsFromSender(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,10 +39,8 @@ class GetIpsFromSender(object): def __init__(self, ips=None): # noqa: E501 """GetIpsFromSender - a model defined in Swagger""" # noqa: E501 - self._ips = None self.discriminator = None - self.ips = ips @property @@ -94,6 +89,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetIpsFromSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_list.py b/sib_api_v3_sdk/models/get_list.py index 66f1060..ac79f82 100644 --- a/sib_api_v3_sdk/models/get_list.py +++ b/sib_api_v3_sdk/models/get_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetList(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -46,13 +44,11 @@ class GetList(object): def __init__(self, id=None, name=None, total_blacklisted=None, total_subscribers=None): # noqa: E501 """GetList - a model defined in Swagger""" # noqa: E501 - self._id = None self._name = None self._total_blacklisted = None self._total_subscribers = None self.discriminator = None - self.id = id self.name = name self.total_blacklisted = total_blacklisted @@ -179,6 +175,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_lists.py b/sib_api_v3_sdk/models/get_lists.py index 7479cad..1b9d7b1 100644 --- a/sib_api_v3_sdk/models/get_lists.py +++ b/sib_api_v3_sdk/models/get_lists.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetLists(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class GetLists(object): def __init__(self, lists=None, count=None): # noqa: E501 """GetLists - a model defined in Swagger""" # noqa: E501 - self._lists = None self._count = None self.discriminator = None - self.lists = lists self.count = count @@ -121,6 +117,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetLists, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_process.py b/sib_api_v3_sdk/models/get_process.py index a56000a..87c5226 100644 --- a/sib_api_v3_sdk/models/get_process.py +++ b/sib_api_v3_sdk/models/get_process.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetProcess(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -46,13 +44,11 @@ class GetProcess(object): def __init__(self, id=None, status=None, name=None, export_url=None): # noqa: E501 """GetProcess - a model defined in Swagger""" # noqa: E501 - self._id = None self._status = None self._name = None self._export_url = None self.discriminator = None - self.id = id self.status = status self.name = name @@ -184,6 +180,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetProcess, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_processes.py b/sib_api_v3_sdk/models/get_processes.py index 3857da1..9981501 100644 --- a/sib_api_v3_sdk/models/get_processes.py +++ b/sib_api_v3_sdk/models/get_processes.py @@ -10,12 +10,10 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_process import GetProcess # noqa: F401,E501 @@ -24,7 +22,6 @@ class GetProcesses(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,11 +41,9 @@ class GetProcesses(object): def __init__(self, processes=None, count=None): # noqa: E501 """GetProcesses - a model defined in Swagger""" # noqa: E501 - self._processes = None self._count = None self.discriminator = None - if processes is not None: self.processes = processes self.count = count @@ -122,6 +117,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetProcesses, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_reports.py b/sib_api_v3_sdk/models/get_reports.py index 1c8de1e..04dc988 100644 --- a/sib_api_v3_sdk/models/get_reports.py +++ b/sib_api_v3_sdk/models/get_reports.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.get_reports_reports import GetReportsReports # noqa: F401,E501 - class GetReports(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -33,7 +29,7 @@ class GetReports(object): and the value is json key in definition. """ swagger_types = { - 'reports': 'list[GetReportsReports]' + 'reports': 'list[object]' } attribute_map = { @@ -42,10 +38,8 @@ class GetReports(object): def __init__(self, reports=None): # noqa: E501 """GetReports - a model defined in Swagger""" # noqa: E501 - self._reports = None self.discriminator = None - if reports is not None: self.reports = reports @@ -55,7 +49,7 @@ def reports(self): :return: The reports of this GetReports. # noqa: E501 - :rtype: list[GetReportsReports] + :rtype: list[object] """ return self._reports @@ -65,7 +59,7 @@ def reports(self, reports): :param reports: The reports of this GetReports. # noqa: E501 - :type: list[GetReportsReports] + :type: list[object] """ self._reports = reports @@ -91,6 +85,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetReports, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_reports_reports.py b/sib_api_v3_sdk/models/get_reports_reports.py deleted file mode 100644 index ebcabbf..0000000 --- a/sib_api_v3_sdk/models/get_reports_reports.py +++ /dev/null @@ -1,463 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetReportsReports(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'date': 'date', - 'requests': 'int', - 'delivered': 'int', - 'hard_bounces': 'int', - 'soft_bounces': 'int', - 'clicks': 'int', - 'unique_clicks': 'int', - 'opens': 'int', - 'unique_opens': 'int', - 'spam_reports': 'int', - 'blocked': 'int', - 'invalid': 'int', - 'unsubscribed': 'int' - } - - attribute_map = { - 'date': 'date', - 'requests': 'requests', - 'delivered': 'delivered', - 'hard_bounces': 'hardBounces', - 'soft_bounces': 'softBounces', - 'clicks': 'clicks', - 'unique_clicks': 'uniqueClicks', - 'opens': 'opens', - 'unique_opens': 'uniqueOpens', - 'spam_reports': 'spamReports', - 'blocked': 'blocked', - 'invalid': 'invalid', - 'unsubscribed': 'unsubscribed' - } - - def __init__(self, date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, clicks=None, unique_clicks=None, opens=None, unique_opens=None, spam_reports=None, blocked=None, invalid=None, unsubscribed=None): # noqa: E501 - """GetReportsReports - a model defined in Swagger""" # noqa: E501 - - self._date = None - self._requests = None - self._delivered = None - self._hard_bounces = None - self._soft_bounces = None - self._clicks = None - self._unique_clicks = None - self._opens = None - self._unique_opens = None - self._spam_reports = None - self._blocked = None - self._invalid = None - self._unsubscribed = None - self.discriminator = None - - self.date = date - self.requests = requests - self.delivered = delivered - self.hard_bounces = hard_bounces - self.soft_bounces = soft_bounces - self.clicks = clicks - self.unique_clicks = unique_clicks - self.opens = opens - self.unique_opens = unique_opens - self.spam_reports = spam_reports - self.blocked = blocked - self.invalid = invalid - self.unsubscribed = unsubscribed - - @property - def date(self): - """Gets the date of this GetReportsReports. # noqa: E501 - - Date of the statistics # noqa: E501 - - :return: The date of this GetReportsReports. # noqa: E501 - :rtype: date - """ - return self._date - - @date.setter - def date(self, date): - """Sets the date of this GetReportsReports. - - Date of the statistics # noqa: E501 - - :param date: The date of this GetReportsReports. # noqa: E501 - :type: date - """ - if date is None: - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 - - self._date = date - - @property - def requests(self): - """Gets the requests of this GetReportsReports. # noqa: E501 - - Number of requests for the date # noqa: E501 - - :return: The requests of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._requests - - @requests.setter - def requests(self, requests): - """Sets the requests of this GetReportsReports. - - Number of requests for the date # noqa: E501 - - :param requests: The requests of this GetReportsReports. # noqa: E501 - :type: int - """ - if requests is None: - raise ValueError("Invalid value for `requests`, must not be `None`") # noqa: E501 - - self._requests = requests - - @property - def delivered(self): - """Gets the delivered of this GetReportsReports. # noqa: E501 - - Number of delivered emails for the date # noqa: E501 - - :return: The delivered of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._delivered - - @delivered.setter - def delivered(self, delivered): - """Sets the delivered of this GetReportsReports. - - Number of delivered emails for the date # noqa: E501 - - :param delivered: The delivered of this GetReportsReports. # noqa: E501 - :type: int - """ - if delivered is None: - raise ValueError("Invalid value for `delivered`, must not be `None`") # noqa: E501 - - self._delivered = delivered - - @property - def hard_bounces(self): - """Gets the hard_bounces of this GetReportsReports. # noqa: E501 - - Number of hardbounces for the date # noqa: E501 - - :return: The hard_bounces of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._hard_bounces - - @hard_bounces.setter - def hard_bounces(self, hard_bounces): - """Sets the hard_bounces of this GetReportsReports. - - Number of hardbounces for the date # noqa: E501 - - :param hard_bounces: The hard_bounces of this GetReportsReports. # noqa: E501 - :type: int - """ - if hard_bounces is None: - raise ValueError("Invalid value for `hard_bounces`, must not be `None`") # noqa: E501 - - self._hard_bounces = hard_bounces - - @property - def soft_bounces(self): - """Gets the soft_bounces of this GetReportsReports. # noqa: E501 - - Number of softbounces for the date # noqa: E501 - - :return: The soft_bounces of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._soft_bounces - - @soft_bounces.setter - def soft_bounces(self, soft_bounces): - """Sets the soft_bounces of this GetReportsReports. - - Number of softbounces for the date # noqa: E501 - - :param soft_bounces: The soft_bounces of this GetReportsReports. # noqa: E501 - :type: int - """ - if soft_bounces is None: - raise ValueError("Invalid value for `soft_bounces`, must not be `None`") # noqa: E501 - - self._soft_bounces = soft_bounces - - @property - def clicks(self): - """Gets the clicks of this GetReportsReports. # noqa: E501 - - Number of clicks for the date # noqa: E501 - - :return: The clicks of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._clicks - - @clicks.setter - def clicks(self, clicks): - """Sets the clicks of this GetReportsReports. - - Number of clicks for the date # noqa: E501 - - :param clicks: The clicks of this GetReportsReports. # noqa: E501 - :type: int - """ - if clicks is None: - raise ValueError("Invalid value for `clicks`, must not be `None`") # noqa: E501 - - self._clicks = clicks - - @property - def unique_clicks(self): - """Gets the unique_clicks of this GetReportsReports. # noqa: E501 - - Number of unique clicks for the date # noqa: E501 - - :return: The unique_clicks of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._unique_clicks - - @unique_clicks.setter - def unique_clicks(self, unique_clicks): - """Sets the unique_clicks of this GetReportsReports. - - Number of unique clicks for the date # noqa: E501 - - :param unique_clicks: The unique_clicks of this GetReportsReports. # noqa: E501 - :type: int - """ - if unique_clicks is None: - raise ValueError("Invalid value for `unique_clicks`, must not be `None`") # noqa: E501 - - self._unique_clicks = unique_clicks - - @property - def opens(self): - """Gets the opens of this GetReportsReports. # noqa: E501 - - Number of openings for the date # noqa: E501 - - :return: The opens of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._opens - - @opens.setter - def opens(self, opens): - """Sets the opens of this GetReportsReports. - - Number of openings for the date # noqa: E501 - - :param opens: The opens of this GetReportsReports. # noqa: E501 - :type: int - """ - if opens is None: - raise ValueError("Invalid value for `opens`, must not be `None`") # noqa: E501 - - self._opens = opens - - @property - def unique_opens(self): - """Gets the unique_opens of this GetReportsReports. # noqa: E501 - - Number of unique openings for the date # noqa: E501 - - :return: The unique_opens of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._unique_opens - - @unique_opens.setter - def unique_opens(self, unique_opens): - """Sets the unique_opens of this GetReportsReports. - - Number of unique openings for the date # noqa: E501 - - :param unique_opens: The unique_opens of this GetReportsReports. # noqa: E501 - :type: int - """ - if unique_opens is None: - raise ValueError("Invalid value for `unique_opens`, must not be `None`") # noqa: E501 - - self._unique_opens = unique_opens - - @property - def spam_reports(self): - """Gets the spam_reports of this GetReportsReports. # noqa: E501 - - Number of complaints (spam reports) for the date # noqa: E501 - - :return: The spam_reports of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._spam_reports - - @spam_reports.setter - def spam_reports(self, spam_reports): - """Sets the spam_reports of this GetReportsReports. - - Number of complaints (spam reports) for the date # noqa: E501 - - :param spam_reports: The spam_reports of this GetReportsReports. # noqa: E501 - :type: int - """ - if spam_reports is None: - raise ValueError("Invalid value for `spam_reports`, must not be `None`") # noqa: E501 - - self._spam_reports = spam_reports - - @property - def blocked(self): - """Gets the blocked of this GetReportsReports. # noqa: E501 - - Number of blocked emails for the date # noqa: E501 - - :return: The blocked of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._blocked - - @blocked.setter - def blocked(self, blocked): - """Sets the blocked of this GetReportsReports. - - Number of blocked emails for the date # noqa: E501 - - :param blocked: The blocked of this GetReportsReports. # noqa: E501 - :type: int - """ - if blocked is None: - raise ValueError("Invalid value for `blocked`, must not be `None`") # noqa: E501 - - self._blocked = blocked - - @property - def invalid(self): - """Gets the invalid of this GetReportsReports. # noqa: E501 - - Number of invalid emails for the date # noqa: E501 - - :return: The invalid of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._invalid - - @invalid.setter - def invalid(self, invalid): - """Sets the invalid of this GetReportsReports. - - Number of invalid emails for the date # noqa: E501 - - :param invalid: The invalid of this GetReportsReports. # noqa: E501 - :type: int - """ - if invalid is None: - raise ValueError("Invalid value for `invalid`, must not be `None`") # noqa: E501 - - self._invalid = invalid - - @property - def unsubscribed(self): - """Gets the unsubscribed of this GetReportsReports. # noqa: E501 - - Number of unsubscribed emails for the date # noqa: E501 - - :return: The unsubscribed of this GetReportsReports. # noqa: E501 - :rtype: int - """ - return self._unsubscribed - - @unsubscribed.setter - def unsubscribed(self, unsubscribed): - """Sets the unsubscribed of this GetReportsReports. - - Number of unsubscribed emails for the date # noqa: E501 - - :param unsubscribed: The unsubscribed of this GetReportsReports. # noqa: E501 - :type: int - """ - if unsubscribed is None: - raise ValueError("Invalid value for `unsubscribed`, must not be `None`") # noqa: E501 - - self._unsubscribed = unsubscribed - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetReportsReports): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_senders_list.py b/sib_api_v3_sdk/models/get_senders_list.py index f8a08b6..6986a65 100644 --- a/sib_api_v3_sdk/models/get_senders_list.py +++ b/sib_api_v3_sdk/models/get_senders_list.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.get_senders_list_senders import GetSendersListSenders # noqa: F401,E501 - class GetSendersList(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -33,7 +29,7 @@ class GetSendersList(object): and the value is json key in definition. """ swagger_types = { - 'senders': 'list[GetSendersListSenders]' + 'senders': 'list[object]' } attribute_map = { @@ -42,10 +38,8 @@ class GetSendersList(object): def __init__(self, senders=None): # noqa: E501 """GetSendersList - a model defined in Swagger""" # noqa: E501 - self._senders = None self.discriminator = None - if senders is not None: self.senders = senders @@ -56,7 +50,7 @@ def senders(self): List of the senders available in your account # noqa: E501 :return: The senders of this GetSendersList. # noqa: E501 - :rtype: list[GetSendersListSenders] + :rtype: list[object] """ return self._senders @@ -67,7 +61,7 @@ def senders(self, senders): List of the senders available in your account # noqa: E501 :param senders: The senders of this GetSendersList. # noqa: E501 - :type: list[GetSendersListSenders] + :type: list[object] """ self._senders = senders @@ -93,6 +87,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSendersList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_senders_list_ips.py b/sib_api_v3_sdk/models/get_senders_list_ips.py deleted file mode 100644 index 000af35..0000000 --- a/sib_api_v3_sdk/models/get_senders_list_ips.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetSendersListIps(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'ip': 'str', - 'domain': 'str', - 'weight': 'int' - } - - attribute_map = { - 'ip': 'ip', - 'domain': 'domain', - 'weight': 'weight' - } - - def __init__(self, ip=None, domain=None, weight=None): # noqa: E501 - """GetSendersListIps - a model defined in Swagger""" # noqa: E501 - - self._ip = None - self._domain = None - self._weight = None - self.discriminator = None - - self.ip = ip - self.domain = domain - self.weight = weight - - @property - def ip(self): - """Gets the ip of this GetSendersListIps. # noqa: E501 - - Dedicated IP available in your account # noqa: E501 - - :return: The ip of this GetSendersListIps. # noqa: E501 - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this GetSendersListIps. - - Dedicated IP available in your account # noqa: E501 - - :param ip: The ip of this GetSendersListIps. # noqa: E501 - :type: str - """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 - - self._ip = ip - - @property - def domain(self): - """Gets the domain of this GetSendersListIps. # noqa: E501 - - Domain of the IP # noqa: E501 - - :return: The domain of this GetSendersListIps. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this GetSendersListIps. - - Domain of the IP # noqa: E501 - - :param domain: The domain of this GetSendersListIps. # noqa: E501 - :type: str - """ - if domain is None: - raise ValueError("Invalid value for `domain`, must not be `None`") # noqa: E501 - - self._domain = domain - - @property - def weight(self): - """Gets the weight of this GetSendersListIps. # noqa: E501 - - Weight of the IP for this sender # noqa: E501 - - :return: The weight of this GetSendersListIps. # noqa: E501 - :rtype: int - """ - return self._weight - - @weight.setter - def weight(self, weight): - """Sets the weight of this GetSendersListIps. - - Weight of the IP for this sender # noqa: E501 - - :param weight: The weight of this GetSendersListIps. # noqa: E501 - :type: int - """ - if weight is None: - raise ValueError("Invalid value for `weight`, must not be `None`") # noqa: E501 - - self._weight = weight - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetSendersListIps): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_senders_list_senders.py b/sib_api_v3_sdk/models/get_senders_list_senders.py deleted file mode 100644 index b172362..0000000 --- a/sib_api_v3_sdk/models/get_senders_list_senders.py +++ /dev/null @@ -1,232 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from sib_api_v3_sdk.models.get_senders_list_ips import GetSendersListIps # noqa: F401,E501 - - -class GetSendersListSenders(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'email': 'str', - 'active': 'bool', - 'ips': 'list[GetSendersListIps]' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'email': 'email', - 'active': 'active', - 'ips': 'ips' - } - - def __init__(self, id=None, name=None, email=None, active=None, ips=None): # noqa: E501 - """GetSendersListSenders - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._name = None - self._email = None - self._active = None - self._ips = None - self.discriminator = None - - self.id = id - self.name = name - self.email = email - self.active = active - if ips is not None: - self.ips = ips - - @property - def id(self): - """Gets the id of this GetSendersListSenders. # noqa: E501 - - Id of the sender # noqa: E501 - - :return: The id of this GetSendersListSenders. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this GetSendersListSenders. - - Id of the sender # noqa: E501 - - :param id: The id of this GetSendersListSenders. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this GetSendersListSenders. # noqa: E501 - - From Name associated to the sender # noqa: E501 - - :return: The name of this GetSendersListSenders. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetSendersListSenders. - - From Name associated to the sender # noqa: E501 - - :param name: The name of this GetSendersListSenders. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def email(self): - """Gets the email of this GetSendersListSenders. # noqa: E501 - - From Email associated to the sender # noqa: E501 - - :return: The email of this GetSendersListSenders. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this GetSendersListSenders. - - From Email associated to the sender # noqa: E501 - - :param email: The email of this GetSendersListSenders. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def active(self): - """Gets the active of this GetSendersListSenders. # noqa: E501 - - Status of sender (true=activated, false=deactivated) # noqa: E501 - - :return: The active of this GetSendersListSenders. # noqa: E501 - :rtype: bool - """ - return self._active - - @active.setter - def active(self, active): - """Sets the active of this GetSendersListSenders. - - Status of sender (true=activated, false=deactivated) # noqa: E501 - - :param active: The active of this GetSendersListSenders. # noqa: E501 - :type: bool - """ - if active is None: - raise ValueError("Invalid value for `active`, must not be `None`") # noqa: E501 - - self._active = active - - @property - def ips(self): - """Gets the ips of this GetSendersListSenders. # noqa: E501 - - List of dedicated IP(s) available in the account. This data is displayed only for dedicated IPs # noqa: E501 - - :return: The ips of this GetSendersListSenders. # noqa: E501 - :rtype: list[GetSendersListIps] - """ - return self._ips - - @ips.setter - def ips(self, ips): - """Sets the ips of this GetSendersListSenders. - - List of dedicated IP(s) available in the account. This data is displayed only for dedicated IPs # noqa: E501 - - :param ips: The ips of this GetSendersListSenders. # noqa: E501 - :type: list[GetSendersListIps] - """ - - self._ips = ips - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetSendersListSenders): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_sms_campaign.py b/sib_api_v3_sdk/models/get_sms_campaign.py index 890e317..c564daf 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign.py +++ b/sib_api_v3_sdk/models/get_sms_campaign.py @@ -10,21 +10,18 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_sms_campaign_overview import GetSmsCampaignOverview # noqa: F401,E501 -class GetSmsCampaign(object): +class GetSmsCampaign(GetSmsCampaignOverview): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -33,263 +30,23 @@ class GetSmsCampaign(object): and the value is json key in definition. """ swagger_types = { - 'id': 'int', - 'name': 'str', - 'status': 'str', - 'content': 'str', - 'scheduled_at': 'datetime', - 'sender': 'str', - 'created_at': 'datetime', - 'modified_at': 'datetime', 'recipients': 'object', 'statistics': 'object' } attribute_map = { - 'id': 'id', - 'name': 'name', - 'status': 'status', - 'content': 'content', - 'scheduled_at': 'scheduledAt', - 'sender': 'sender', - 'created_at': 'createdAt', - 'modified_at': 'modifiedAt', 'recipients': 'recipients', 'statistics': 'statistics' } - def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=None, sender=None, created_at=None, modified_at=None, recipients=None, statistics=None): # noqa: E501 + def __init__(self, recipients=None, statistics=None): # noqa: E501 """GetSmsCampaign - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._name = None - self._status = None - self._content = None - self._scheduled_at = None - self._sender = None - self._created_at = None - self._modified_at = None self._recipients = None self._statistics = None self.discriminator = None - - self.id = id - self.name = name - self.status = status - self.content = content - self.scheduled_at = scheduled_at - self.sender = sender - self.created_at = created_at - self.modified_at = modified_at self.recipients = recipients self.statistics = statistics - @property - def id(self): - """Gets the id of this GetSmsCampaign. # noqa: E501 - - ID of the SMS Campaign # noqa: E501 - - :return: The id of this GetSmsCampaign. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this GetSmsCampaign. - - ID of the SMS Campaign # noqa: E501 - - :param id: The id of this GetSmsCampaign. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this GetSmsCampaign. # noqa: E501 - - Name of the SMS Campaign # noqa: E501 - - :return: The name of this GetSmsCampaign. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetSmsCampaign. - - Name of the SMS Campaign # noqa: E501 - - :param name: The name of this GetSmsCampaign. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def status(self): - """Gets the status of this GetSmsCampaign. # noqa: E501 - - Status of the SMS Campaign # noqa: E501 - - :return: The status of this GetSmsCampaign. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this GetSmsCampaign. - - Status of the SMS Campaign # noqa: E501 - - :param status: The status of this GetSmsCampaign. # noqa: E501 - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["draft", "sent", "archive", "queued", "suspended", "inProcess"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - - self._status = status - - @property - def content(self): - """Gets the content of this GetSmsCampaign. # noqa: E501 - - Content of the SMS Campaign # noqa: E501 - - :return: The content of this GetSmsCampaign. # noqa: E501 - :rtype: str - """ - return self._content - - @content.setter - def content(self, content): - """Sets the content of this GetSmsCampaign. - - Content of the SMS Campaign # noqa: E501 - - :param content: The content of this GetSmsCampaign. # noqa: E501 - :type: str - """ - if content is None: - raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 - - self._content = content - - @property - def scheduled_at(self): - """Gets the scheduled_at of this GetSmsCampaign. # noqa: E501 - - UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501 - - :return: The scheduled_at of this GetSmsCampaign. # noqa: E501 - :rtype: datetime - """ - return self._scheduled_at - - @scheduled_at.setter - def scheduled_at(self, scheduled_at): - """Sets the scheduled_at of this GetSmsCampaign. - - UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501 - - :param scheduled_at: The scheduled_at of this GetSmsCampaign. # noqa: E501 - :type: datetime - """ - if scheduled_at is None: - raise ValueError("Invalid value for `scheduled_at`, must not be `None`") # noqa: E501 - - self._scheduled_at = scheduled_at - - @property - def sender(self): - """Gets the sender of this GetSmsCampaign. # noqa: E501 - - Sender of the SMS Campaign # noqa: E501 - - :return: The sender of this GetSmsCampaign. # noqa: E501 - :rtype: str - """ - return self._sender - - @sender.setter - def sender(self, sender): - """Sets the sender of this GetSmsCampaign. - - Sender of the SMS Campaign # noqa: E501 - - :param sender: The sender of this GetSmsCampaign. # noqa: E501 - :type: str - """ - if sender is None: - raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 - - self._sender = sender - - @property - def created_at(self): - """Gets the created_at of this GetSmsCampaign. # noqa: E501 - - Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :return: The created_at of this GetSmsCampaign. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this GetSmsCampaign. - - Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :param created_at: The created_at of this GetSmsCampaign. # noqa: E501 - :type: datetime - """ - if created_at is None: - raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - - self._created_at = created_at - - @property - def modified_at(self): - """Gets the modified_at of this GetSmsCampaign. # noqa: E501 - - UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :return: The modified_at of this GetSmsCampaign. # noqa: E501 - :rtype: datetime - """ - return self._modified_at - - @modified_at.setter - def modified_at(self, modified_at): - """Sets the modified_at of this GetSmsCampaign. - - UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 - - :param modified_at: The modified_at of this GetSmsCampaign. # noqa: E501 - :type: datetime - """ - if modified_at is None: - raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 - - self._modified_at = modified_at - @property def recipients(self): """Gets the recipients of this GetSmsCampaign. # noqa: E501 @@ -357,6 +114,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sms_campaign_overview.py b/sib_api_v3_sdk/models/get_sms_campaign_overview.py index 7a49976..3dfa950 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign_overview.py +++ b/sib_api_v3_sdk/models/get_sms_campaign_overview.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetSmsCampaignOverview(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -54,7 +52,6 @@ class GetSmsCampaignOverview(object): def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=None, sender=None, created_at=None, modified_at=None): # noqa: E501 """GetSmsCampaignOverview - a model defined in Swagger""" # noqa: E501 - self._id = None self._name = None self._status = None @@ -64,7 +61,6 @@ def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=N self._created_at = None self._modified_at = None self.discriminator = None - self.id = id self.name = name self.status = status @@ -301,6 +297,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsCampaignOverview, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sms_campaign_stats.py b/sib_api_v3_sdk/models/get_sms_campaign_stats.py index 8db82fa..317ef52 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_sms_campaign_stats.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetSmsCampaignStats(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -52,7 +50,6 @@ class GetSmsCampaignStats(object): def __init__(self, delivered=None, sent=None, processing=None, soft_bounces=None, hard_bounces=None, unsubscriptions=None, answered=None): # noqa: E501 """GetSmsCampaignStats - a model defined in Swagger""" # noqa: E501 - self._delivered = None self._sent = None self._processing = None @@ -61,7 +58,6 @@ def __init__(self, delivered=None, sent=None, processing=None, soft_bounces=None self._unsubscriptions = None self._answered = None self.discriminator = None - self.delivered = delivered self.sent = sent self.processing = processing @@ -266,6 +262,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsCampaignStats, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sms_campaigns.py b/sib_api_v3_sdk/models/get_sms_campaigns.py index 1ed170f..10c11ee 100644 --- a/sib_api_v3_sdk/models/get_sms_campaigns.py +++ b/sib_api_v3_sdk/models/get_sms_campaigns.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetSmsCampaigns(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class GetSmsCampaigns(object): def __init__(self, campaigns=None, count=None): # noqa: E501 """GetSmsCampaigns - a model defined in Swagger""" # noqa: E501 - self._campaigns = None self._count = None self.discriminator = None - if campaigns is not None: self.campaigns = campaigns self.count = count @@ -118,6 +114,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsCampaigns, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sms_event_report.py b/sib_api_v3_sdk/models/get_sms_event_report.py index 6e5b098..7a89b5f 100644 --- a/sib_api_v3_sdk/models/get_sms_event_report.py +++ b/sib_api_v3_sdk/models/get_sms_event_report.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.get_sms_event_report_events import GetSmsEventReportEvents # noqa: F401,E501 - class GetSmsEventReport(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -33,7 +29,7 @@ class GetSmsEventReport(object): and the value is json key in definition. """ swagger_types = { - 'events': 'list[GetSmsEventReportEvents]' + 'events': 'list[object]' } attribute_map = { @@ -42,10 +38,8 @@ class GetSmsEventReport(object): def __init__(self, events=None): # noqa: E501 """GetSmsEventReport - a model defined in Swagger""" # noqa: E501 - self._events = None self.discriminator = None - if events is not None: self.events = events @@ -55,7 +49,7 @@ def events(self): :return: The events of this GetSmsEventReport. # noqa: E501 - :rtype: list[GetSmsEventReportEvents] + :rtype: list[object] """ return self._events @@ -65,7 +59,7 @@ def events(self, events): :param events: The events of this GetSmsEventReport. # noqa: E501 - :type: list[GetSmsEventReportEvents] + :type: list[object] """ self._events = events @@ -91,6 +85,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsEventReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sms_event_report_events.py b/sib_api_v3_sdk/models/get_sms_event_report_events.py deleted file mode 100644 index 46efcf0..0000000 --- a/sib_api_v3_sdk/models/get_sms_event_report_events.py +++ /dev/null @@ -1,290 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetSmsEventReportEvents(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'phone_number': 'str', - 'date': 'datetime', - 'message_id': 'str', - 'event': 'str', - 'reason': 'str', - 'reply': 'str', - 'tag': 'str' - } - - attribute_map = { - 'phone_number': 'phoneNumber', - 'date': 'date', - 'message_id': 'messageId', - 'event': 'event', - 'reason': 'reason', - 'reply': 'reply', - 'tag': 'tag' - } - - def __init__(self, phone_number=None, date=None, message_id=None, event=None, reason=None, reply=None, tag=None): # noqa: E501 - """GetSmsEventReportEvents - a model defined in Swagger""" # noqa: E501 - - self._phone_number = None - self._date = None - self._message_id = None - self._event = None - self._reason = None - self._reply = None - self._tag = None - self.discriminator = None - - self.phone_number = phone_number - self.date = date - self.message_id = message_id - self.event = event - if reason is not None: - self.reason = reason - if reply is not None: - self.reply = reply - if tag is not None: - self.tag = tag - - @property - def phone_number(self): - """Gets the phone_number of this GetSmsEventReportEvents. # noqa: E501 - - Phone number which has generated the event # noqa: E501 - - :return: The phone_number of this GetSmsEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """Sets the phone_number of this GetSmsEventReportEvents. - - Phone number which has generated the event # noqa: E501 - - :param phone_number: The phone_number of this GetSmsEventReportEvents. # noqa: E501 - :type: str - """ - if phone_number is None: - raise ValueError("Invalid value for `phone_number`, must not be `None`") # noqa: E501 - - self._phone_number = phone_number - - @property - def date(self): - """Gets the date of this GetSmsEventReportEvents. # noqa: E501 - - UTC date-time on which the event has been generated # noqa: E501 - - :return: The date of this GetSmsEventReportEvents. # noqa: E501 - :rtype: datetime - """ - return self._date - - @date.setter - def date(self, date): - """Sets the date of this GetSmsEventReportEvents. - - UTC date-time on which the event has been generated # noqa: E501 - - :param date: The date of this GetSmsEventReportEvents. # noqa: E501 - :type: datetime - """ - if date is None: - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 - - self._date = date - - @property - def message_id(self): - """Gets the message_id of this GetSmsEventReportEvents. # noqa: E501 - - Message ID which generated the event # noqa: E501 - - :return: The message_id of this GetSmsEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._message_id - - @message_id.setter - def message_id(self, message_id): - """Sets the message_id of this GetSmsEventReportEvents. - - Message ID which generated the event # noqa: E501 - - :param message_id: The message_id of this GetSmsEventReportEvents. # noqa: E501 - :type: str - """ - if message_id is None: - raise ValueError("Invalid value for `message_id`, must not be `None`") # noqa: E501 - - self._message_id = message_id - - @property - def event(self): - """Gets the event of this GetSmsEventReportEvents. # noqa: E501 - - Event which occurred # noqa: E501 - - :return: The event of this GetSmsEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._event - - @event.setter - def event(self, event): - """Sets the event of this GetSmsEventReportEvents. - - Event which occurred # noqa: E501 - - :param event: The event of this GetSmsEventReportEvents. # noqa: E501 - :type: str - """ - if event is None: - raise ValueError("Invalid value for `event`, must not be `None`") # noqa: E501 - allowed_values = ["bounces", "hardBounces", "softBounces", "delivered", "sent", "accepted", "unsubscription", "replies", "blocked"] # noqa: E501 - if event not in allowed_values: - raise ValueError( - "Invalid value for `event` ({0}), must be one of {1}" # noqa: E501 - .format(event, allowed_values) - ) - - self._event = event - - @property - def reason(self): - """Gets the reason of this GetSmsEventReportEvents. # noqa: E501 - - Reason of bounce (only available if the event is hardbounce or softbounce) # noqa: E501 - - :return: The reason of this GetSmsEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """Sets the reason of this GetSmsEventReportEvents. - - Reason of bounce (only available if the event is hardbounce or softbounce) # noqa: E501 - - :param reason: The reason of this GetSmsEventReportEvents. # noqa: E501 - :type: str - """ - - self._reason = reason - - @property - def reply(self): - """Gets the reply of this GetSmsEventReportEvents. # noqa: E501 - - - :return: The reply of this GetSmsEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._reply - - @reply.setter - def reply(self, reply): - """Sets the reply of this GetSmsEventReportEvents. - - - :param reply: The reply of this GetSmsEventReportEvents. # noqa: E501 - :type: str - """ - - self._reply = reply - - @property - def tag(self): - """Gets the tag of this GetSmsEventReportEvents. # noqa: E501 - - Tag of the SMS which generated the event # noqa: E501 - - :return: The tag of this GetSmsEventReportEvents. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this GetSmsEventReportEvents. - - Tag of the SMS which generated the event # noqa: E501 - - :param tag: The tag of this GetSmsEventReportEvents. # noqa: E501 - :type: str - """ - - self._tag = tag - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetSmsEventReportEvents): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_smtp_template_overview.py b/sib_api_v3_sdk/models/get_smtp_template_overview.py index f5ed3b2..dbcc485 100644 --- a/sib_api_v3_sdk/models/get_smtp_template_overview.py +++ b/sib_api_v3_sdk/models/get_smtp_template_overview.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.get_smtp_template_overview_sender import GetSmtpTemplateOverviewSender # noqa: F401,E501 - class GetSmtpTemplateOverview(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,7 +34,7 @@ class GetSmtpTemplateOverview(object): 'subject': 'str', 'is_active': 'bool', 'test_sent': 'bool', - 'sender': 'GetSmtpTemplateOverviewSender', + 'sender': 'object', 'reply_to': 'str', 'to_field': 'str', 'tag': 'str', @@ -64,7 +60,6 @@ class GetSmtpTemplateOverview(object): def __init__(self, id=None, name=None, subject=None, is_active=None, test_sent=None, sender=None, reply_to=None, to_field=None, tag=None, html_content=None, created_at=None, modified_at=None): # noqa: E501 """GetSmtpTemplateOverview - a model defined in Swagger""" # noqa: E501 - self._id = None self._name = None self._subject = None @@ -78,7 +73,6 @@ def __init__(self, id=None, name=None, subject=None, is_active=None, test_sent=N self._created_at = None self._modified_at = None self.discriminator = None - self.id = id self.name = name self.subject = subject @@ -223,7 +217,7 @@ def sender(self): :return: The sender of this GetSmtpTemplateOverview. # noqa: E501 - :rtype: GetSmtpTemplateOverviewSender + :rtype: object """ return self._sender @@ -233,7 +227,7 @@ def sender(self, sender): :param sender: The sender of this GetSmtpTemplateOverview. # noqa: E501 - :type: GetSmtpTemplateOverviewSender + :type: object """ if sender is None: raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 @@ -411,6 +405,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmtpTemplateOverview, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_smtp_template_overview_sender.py b/sib_api_v3_sdk/models/get_smtp_template_overview_sender.py deleted file mode 100644 index 0139bf4..0000000 --- a/sib_api_v3_sdk/models/get_smtp_template_overview_sender.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetSmtpTemplateOverviewSender(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'email': 'str' - } - - attribute_map = { - 'name': 'name', - 'email': 'email' - } - - def __init__(self, name=None, email=None): # noqa: E501 - """GetSmtpTemplateOverviewSender - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._email = None - self.discriminator = None - - if name is not None: - self.name = name - if email is not None: - self.email = email - - @property - def name(self): - """Gets the name of this GetSmtpTemplateOverviewSender. # noqa: E501 - - From email for the template # noqa: E501 - - :return: The name of this GetSmtpTemplateOverviewSender. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetSmtpTemplateOverviewSender. - - From email for the template # noqa: E501 - - :param name: The name of this GetSmtpTemplateOverviewSender. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def email(self): - """Gets the email of this GetSmtpTemplateOverviewSender. # noqa: E501 - - From email for the template # noqa: E501 - - :return: The email of this GetSmtpTemplateOverviewSender. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this GetSmtpTemplateOverviewSender. - - From email for the template # noqa: E501 - - :param email: The email of this GetSmtpTemplateOverviewSender. # noqa: E501 - :type: str - """ - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetSmtpTemplateOverviewSender): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_smtp_templates.py b/sib_api_v3_sdk/models/get_smtp_templates.py index dca42e7..2364cb5 100644 --- a/sib_api_v3_sdk/models/get_smtp_templates.py +++ b/sib_api_v3_sdk/models/get_smtp_templates.py @@ -10,12 +10,10 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_smtp_template_overview import GetSmtpTemplateOverview # noqa: F401,E501 @@ -24,7 +22,6 @@ class GetSmtpTemplates(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,11 +41,9 @@ class GetSmtpTemplates(object): def __init__(self, count=None, templates=None): # noqa: E501 """GetSmtpTemplates - a model defined in Swagger""" # noqa: E501 - self._count = None self._templates = None self.discriminator = None - if count is not None: self.count = count if templates is not None: @@ -119,6 +114,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmtpTemplates, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_stats_by_domain.py b/sib_api_v3_sdk/models/get_stats_by_domain.py index 3eacc19..cda59a3 100644 --- a/sib_api_v3_sdk/models/get_stats_by_domain.py +++ b/sib_api_v3_sdk/models/get_stats_by_domain.py @@ -10,21 +10,18 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six - from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats # noqa: F401,E501 -class GetStatsByDomain(object): +class GetStatsByDomain(dict): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -63,6 +60,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetStatsByDomain, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_transac_aggregated_sms_report.py b/sib_api_v3_sdk/models/get_transac_aggregated_sms_report.py index 8ce81ad..1bee4bb 100644 --- a/sib_api_v3_sdk/models/get_transac_aggregated_sms_report.py +++ b/sib_api_v3_sdk/models/get_transac_aggregated_sms_report.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetTransacAggregatedSmsReport(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -58,7 +56,6 @@ class GetTransacAggregatedSmsReport(object): def __init__(self, range=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None): # noqa: E501 """GetTransacAggregatedSmsReport - a model defined in Swagger""" # noqa: E501 - self._range = None self._requests = None self._delivered = None @@ -70,7 +67,6 @@ def __init__(self, range=None, requests=None, delivered=None, hard_bounces=None, self._accepted = None self._rejected = None self.discriminator = None - self.range = range self.requests = requests self.delivered = delivered @@ -353,6 +349,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetTransacAggregatedSmsReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_transac_sms_report.py b/sib_api_v3_sdk/models/get_transac_sms_report.py index 392446d..fd9be11 100644 --- a/sib_api_v3_sdk/models/get_transac_sms_report.py +++ b/sib_api_v3_sdk/models/get_transac_sms_report.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.get_transac_sms_report_reports import GetTransacSmsReportReports # noqa: F401,E501 - class GetTransacSmsReport(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -33,7 +29,7 @@ class GetTransacSmsReport(object): and the value is json key in definition. """ swagger_types = { - 'reports': 'list[GetTransacSmsReportReports]' + 'reports': 'list[object]' } attribute_map = { @@ -42,10 +38,8 @@ class GetTransacSmsReport(object): def __init__(self, reports=None): # noqa: E501 """GetTransacSmsReport - a model defined in Swagger""" # noqa: E501 - self._reports = None self.discriminator = None - if reports is not None: self.reports = reports @@ -55,7 +49,7 @@ def reports(self): :return: The reports of this GetTransacSmsReport. # noqa: E501 - :rtype: list[GetTransacSmsReportReports] + :rtype: list[object] """ return self._reports @@ -65,7 +59,7 @@ def reports(self, reports): :param reports: The reports of this GetTransacSmsReport. # noqa: E501 - :type: list[GetTransacSmsReportReports] + :type: list[object] """ self._reports = reports @@ -91,6 +85,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetTransacSmsReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_transac_sms_report_reports.py b/sib_api_v3_sdk/models/get_transac_sms_report_reports.py deleted file mode 100644 index 1680b35..0000000 --- a/sib_api_v3_sdk/models/get_transac_sms_report_reports.py +++ /dev/null @@ -1,376 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetTransacSmsReportReports(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'date': 'date', - 'requests': 'int', - 'delivered': 'int', - 'hard_bounces': 'int', - 'soft_bounces': 'int', - 'blocked': 'int', - 'unsubscribed': 'int', - 'replied': 'int', - 'accepted': 'int', - 'rejected': 'int' - } - - attribute_map = { - 'date': 'date', - 'requests': 'requests', - 'delivered': 'delivered', - 'hard_bounces': 'hardBounces', - 'soft_bounces': 'softBounces', - 'blocked': 'blocked', - 'unsubscribed': 'unsubscribed', - 'replied': 'replied', - 'accepted': 'accepted', - 'rejected': 'rejected' - } - - def __init__(self, date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None): # noqa: E501 - """GetTransacSmsReportReports - a model defined in Swagger""" # noqa: E501 - - self._date = None - self._requests = None - self._delivered = None - self._hard_bounces = None - self._soft_bounces = None - self._blocked = None - self._unsubscribed = None - self._replied = None - self._accepted = None - self._rejected = None - self.discriminator = None - - self.date = date - self.requests = requests - self.delivered = delivered - self.hard_bounces = hard_bounces - self.soft_bounces = soft_bounces - self.blocked = blocked - self.unsubscribed = unsubscribed - self.replied = replied - self.accepted = accepted - self.rejected = rejected - - @property - def date(self): - """Gets the date of this GetTransacSmsReportReports. # noqa: E501 - - Date for which statistics are retrieved # noqa: E501 - - :return: The date of this GetTransacSmsReportReports. # noqa: E501 - :rtype: date - """ - return self._date - - @date.setter - def date(self, date): - """Sets the date of this GetTransacSmsReportReports. - - Date for which statistics are retrieved # noqa: E501 - - :param date: The date of this GetTransacSmsReportReports. # noqa: E501 - :type: date - """ - if date is None: - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 - - self._date = date - - @property - def requests(self): - """Gets the requests of this GetTransacSmsReportReports. # noqa: E501 - - Number of requests for the date # noqa: E501 - - :return: The requests of this GetTransacSmsReportReports. # noqa: E501 - :rtype: int - """ - return self._requests - - @requests.setter - def requests(self, requests): - """Sets the requests of this GetTransacSmsReportReports. - - Number of requests for the date # noqa: E501 - - :param requests: The requests of this GetTransacSmsReportReports. # noqa: E501 - :type: int - """ - if requests is None: - raise ValueError("Invalid value for `requests`, must not be `None`") # noqa: E501 - - self._requests = requests - - @property - def delivered(self): - """Gets the delivered of this GetTransacSmsReportReports. # noqa: E501 - - Number of delivered SMS for the date # noqa: E501 - - :return: The delivered of this GetTransacSmsReportReports. # noqa: E501 - :rtype: int - """ - return self._delivered - - @delivered.setter - def delivered(self, delivered): - """Sets the delivered of this GetTransacSmsReportReports. - - Number of delivered SMS for the date # noqa: E501 - - :param delivered: The delivered of this GetTransacSmsReportReports. # noqa: E501 - :type: int - """ - if delivered is None: - raise ValueError("Invalid value for `delivered`, must not be `None`") # noqa: E501 - - self._delivered = delivered - - @property - def hard_bounces(self): - """Gets the hard_bounces of this GetTransacSmsReportReports. # noqa: E501 - - Number of hardbounces for the date # noqa: E501 - - :return: The hard_bounces of this GetTransacSmsReportReports. # noqa: E501 - :rtype: int - """ - return self._hard_bounces - - @hard_bounces.setter - def hard_bounces(self, hard_bounces): - """Sets the hard_bounces of this GetTransacSmsReportReports. - - Number of hardbounces for the date # noqa: E501 - - :param hard_bounces: The hard_bounces of this GetTransacSmsReportReports. # noqa: E501 - :type: int - """ - if hard_bounces is None: - raise ValueError("Invalid value for `hard_bounces`, must not be `None`") # noqa: E501 - - self._hard_bounces = hard_bounces - - @property - def soft_bounces(self): - """Gets the soft_bounces of this GetTransacSmsReportReports. # noqa: E501 - - Number of softbounces for the date # noqa: E501 - - :return: The soft_bounces of this GetTransacSmsReportReports. # noqa: E501 - :rtype: int - """ - return self._soft_bounces - - @soft_bounces.setter - def soft_bounces(self, soft_bounces): - """Sets the soft_bounces of this GetTransacSmsReportReports. - - Number of softbounces for the date # noqa: E501 - - :param soft_bounces: The soft_bounces of this GetTransacSmsReportReports. # noqa: E501 - :type: int - """ - if soft_bounces is None: - raise ValueError("Invalid value for `soft_bounces`, must not be `None`") # noqa: E501 - - self._soft_bounces = soft_bounces - - @property - def blocked(self): - """Gets the blocked of this GetTransacSmsReportReports. # noqa: E501 - - Number of blocked contact for the date # noqa: E501 - - :return: The blocked of this GetTransacSmsReportReports. # noqa: E501 - :rtype: int - """ - return self._blocked - - @blocked.setter - def blocked(self, blocked): - """Sets the blocked of this GetTransacSmsReportReports. - - Number of blocked contact for the date # noqa: E501 - - :param blocked: The blocked of this GetTransacSmsReportReports. # noqa: E501 - :type: int - """ - if blocked is None: - raise ValueError("Invalid value for `blocked`, must not be `None`") # noqa: E501 - - self._blocked = blocked - - @property - def unsubscribed(self): - """Gets the unsubscribed of this GetTransacSmsReportReports. # noqa: E501 - - Number of unsubscription for the date # noqa: E501 - - :return: The unsubscribed of this GetTransacSmsReportReports. # noqa: E501 - :rtype: int - """ - return self._unsubscribed - - @unsubscribed.setter - def unsubscribed(self, unsubscribed): - """Sets the unsubscribed of this GetTransacSmsReportReports. - - Number of unsubscription for the date # noqa: E501 - - :param unsubscribed: The unsubscribed of this GetTransacSmsReportReports. # noqa: E501 - :type: int - """ - if unsubscribed is None: - raise ValueError("Invalid value for `unsubscribed`, must not be `None`") # noqa: E501 - - self._unsubscribed = unsubscribed - - @property - def replied(self): - """Gets the replied of this GetTransacSmsReportReports. # noqa: E501 - - Number of answered SMS for the date # noqa: E501 - - :return: The replied of this GetTransacSmsReportReports. # noqa: E501 - :rtype: int - """ - return self._replied - - @replied.setter - def replied(self, replied): - """Sets the replied of this GetTransacSmsReportReports. - - Number of answered SMS for the date # noqa: E501 - - :param replied: The replied of this GetTransacSmsReportReports. # noqa: E501 - :type: int - """ - if replied is None: - raise ValueError("Invalid value for `replied`, must not be `None`") # noqa: E501 - - self._replied = replied - - @property - def accepted(self): - """Gets the accepted of this GetTransacSmsReportReports. # noqa: E501 - - Number of accepted for the date # noqa: E501 - - :return: The accepted of this GetTransacSmsReportReports. # noqa: E501 - :rtype: int - """ - return self._accepted - - @accepted.setter - def accepted(self, accepted): - """Sets the accepted of this GetTransacSmsReportReports. - - Number of accepted for the date # noqa: E501 - - :param accepted: The accepted of this GetTransacSmsReportReports. # noqa: E501 - :type: int - """ - if accepted is None: - raise ValueError("Invalid value for `accepted`, must not be `None`") # noqa: E501 - - self._accepted = accepted - - @property - def rejected(self): - """Gets the rejected of this GetTransacSmsReportReports. # noqa: E501 - - Number of rejected for the date # noqa: E501 - - :return: The rejected of this GetTransacSmsReportReports. # noqa: E501 - :rtype: int - """ - return self._rejected - - @rejected.setter - def rejected(self, rejected): - """Sets the rejected of this GetTransacSmsReportReports. - - Number of rejected for the date # noqa: E501 - - :param rejected: The rejected of this GetTransacSmsReportReports. # noqa: E501 - :type: int - """ - if rejected is None: - raise ValueError("Invalid value for `rejected`, must not be `None`") # noqa: E501 - - self._rejected = rejected - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetTransacSmsReportReports): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_webhook.py b/sib_api_v3_sdk/models/get_webhook.py index 3512b11..a41b7bc 100644 --- a/sib_api_v3_sdk/models/get_webhook.py +++ b/sib_api_v3_sdk/models/get_webhook.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetWebhook(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -52,7 +50,6 @@ class GetWebhook(object): def __init__(self, url=None, id=None, description=None, events=None, type=None, created_at=None, modified_at=None): # noqa: E501 """GetWebhook - a model defined in Swagger""" # noqa: E501 - self._url = None self._id = None self._description = None @@ -61,7 +58,6 @@ def __init__(self, url=None, id=None, description=None, events=None, type=None, self._created_at = None self._modified_at = None self.discriminator = None - self.url = url self.id = id self.description = description @@ -270,6 +266,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetWebhook, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_webhooks.py b/sib_api_v3_sdk/models/get_webhooks.py index 4c9278d..3e6f4db 100644 --- a/sib_api_v3_sdk/models/get_webhooks.py +++ b/sib_api_v3_sdk/models/get_webhooks.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class GetWebhooks(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class GetWebhooks(object): def __init__(self, webhooks=None): # noqa: E501 """GetWebhooks - a model defined in Swagger""" # noqa: E501 - self._webhooks = None self.discriminator = None - self.webhooks = webhooks @property @@ -90,6 +86,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetWebhooks, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/manage_ip.py b/sib_api_v3_sdk/models/manage_ip.py index beb3d9d..33b1dcb 100644 --- a/sib_api_v3_sdk/models/manage_ip.py +++ b/sib_api_v3_sdk/models/manage_ip.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class ManageIp(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class ManageIp(object): def __init__(self, ip=None): # noqa: E501 """ManageIp - a model defined in Swagger""" # noqa: E501 - self._ip = None self.discriminator = None - if ip is not None: self.ip = ip @@ -91,6 +87,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ManageIp, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/post_contact_info.py b/sib_api_v3_sdk/models/post_contact_info.py index 39f69c0..c12d6de 100644 --- a/sib_api_v3_sdk/models/post_contact_info.py +++ b/sib_api_v3_sdk/models/post_contact_info.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.post_contact_info_contacts import PostContactInfoContacts # noqa: F401,E501 - class PostContactInfo(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -33,7 +29,7 @@ class PostContactInfo(object): and the value is json key in definition. """ swagger_types = { - 'contacts': 'PostContactInfoContacts' + 'contacts': 'object' } attribute_map = { @@ -42,10 +38,8 @@ class PostContactInfo(object): def __init__(self, contacts=None): # noqa: E501 """PostContactInfo - a model defined in Swagger""" # noqa: E501 - self._contacts = None self.discriminator = None - self.contacts = contacts @property @@ -54,7 +48,7 @@ def contacts(self): :return: The contacts of this PostContactInfo. # noqa: E501 - :rtype: PostContactInfoContacts + :rtype: object """ return self._contacts @@ -64,7 +58,7 @@ def contacts(self, contacts): :param contacts: The contacts of this PostContactInfo. # noqa: E501 - :type: PostContactInfoContacts + :type: object """ if contacts is None: raise ValueError("Invalid value for `contacts`, must not be `None`") # noqa: E501 @@ -92,6 +86,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PostContactInfo, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/post_contact_info_contacts.py b/sib_api_v3_sdk/models/post_contact_info_contacts.py deleted file mode 100644 index 6e65edd..0000000 --- a/sib_api_v3_sdk/models/post_contact_info_contacts.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PostContactInfoContacts(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'success': 'list[str]', - 'failure': 'list[str]', - 'total': 'int' - } - - attribute_map = { - 'success': 'success', - 'failure': 'failure', - 'total': 'total' - } - - def __init__(self, success=None, failure=None, total=None): # noqa: E501 - """PostContactInfoContacts - a model defined in Swagger""" # noqa: E501 - - self._success = None - self._failure = None - self._total = None - self.discriminator = None - - if success is not None: - self.success = success - if failure is not None: - self.failure = failure - if total is not None: - self.total = total - - @property - def success(self): - """Gets the success of this PostContactInfoContacts. # noqa: E501 - - - :return: The success of this PostContactInfoContacts. # noqa: E501 - :rtype: list[str] - """ - return self._success - - @success.setter - def success(self, success): - """Sets the success of this PostContactInfoContacts. - - - :param success: The success of this PostContactInfoContacts. # noqa: E501 - :type: list[str] - """ - - self._success = success - - @property - def failure(self): - """Gets the failure of this PostContactInfoContacts. # noqa: E501 - - - :return: The failure of this PostContactInfoContacts. # noqa: E501 - :rtype: list[str] - """ - return self._failure - - @failure.setter - def failure(self, failure): - """Sets the failure of this PostContactInfoContacts. - - - :param failure: The failure of this PostContactInfoContacts. # noqa: E501 - :type: list[str] - """ - - self._failure = failure - - @property - def total(self): - """Gets the total of this PostContactInfoContacts. # noqa: E501 - - Displays the count of total number of contacts removed from list when user opts for \"all\" option. # noqa: E501 - - :return: The total of this PostContactInfoContacts. # noqa: E501 - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """Sets the total of this PostContactInfoContacts. - - Displays the count of total number of contacts removed from list when user opts for \"all\" option. # noqa: E501 - - :param total: The total of this PostContactInfoContacts. # noqa: E501 - :type: int - """ - - self._total = total - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, PostContactInfoContacts): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/post_send_failed.py b/sib_api_v3_sdk/models/post_send_failed.py index 016ecb4..8f70f00 100644 --- a/sib_api_v3_sdk/models/post_send_failed.py +++ b/sib_api_v3_sdk/models/post_send_failed.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class PostSendFailed(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,14 +46,12 @@ class PostSendFailed(object): def __init__(self, code=None, message=None, unexisting_emails=None, without_list_emails=None, black_listed_emails=None): # noqa: E501 """PostSendFailed - a model defined in Swagger""" # noqa: E501 - self._code = None self._message = None self._unexisting_emails = None self._without_list_emails = None self._black_listed_emails = None self.discriminator = None - self.code = code self.message = message if unexisting_emails is not None: @@ -199,6 +195,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PostSendFailed, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/post_send_sms_test_failed.py b/sib_api_v3_sdk/models/post_send_sms_test_failed.py index 0c31601..42214e2 100644 --- a/sib_api_v3_sdk/models/post_send_sms_test_failed.py +++ b/sib_api_v3_sdk/models/post_send_sms_test_failed.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class PostSendSmsTestFailed(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -46,13 +44,11 @@ class PostSendSmsTestFailed(object): def __init__(self, code=None, message=None, unexisting_sms=None, without_list_sms=None): # noqa: E501 """PostSendSmsTestFailed - a model defined in Swagger""" # noqa: E501 - self._code = None self._message = None self._unexisting_sms = None self._without_list_sms = None self.discriminator = None - self.code = code self.message = message if unexisting_sms is not None: @@ -173,6 +169,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PostSendSmsTestFailed, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/remaining_credit_model.py b/sib_api_v3_sdk/models/remaining_credit_model.py index 4adeee8..d4dc93e 100644 --- a/sib_api_v3_sdk/models/remaining_credit_model.py +++ b/sib_api_v3_sdk/models/remaining_credit_model.py @@ -10,22 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.remaining_credit_model_child import RemainingCreditModelChild # noqa: F401,E501 -from sib_api_v3_sdk.models.remaining_credit_model_reseller import RemainingCreditModelReseller # noqa: F401,E501 - class RemainingCreditModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,8 +29,8 @@ class RemainingCreditModel(object): and the value is json key in definition. """ swagger_types = { - 'child': 'RemainingCreditModelChild', - 'reseller': 'RemainingCreditModelReseller' + 'child': 'object', + 'reseller': 'object' } attribute_map = { @@ -45,11 +40,9 @@ class RemainingCreditModel(object): def __init__(self, child=None, reseller=None): # noqa: E501 """RemainingCreditModel - a model defined in Swagger""" # noqa: E501 - self._child = None self._reseller = None self.discriminator = None - self.child = child self.reseller = reseller @@ -57,9 +50,10 @@ def __init__(self, child=None, reseller=None): # noqa: E501 def child(self): """Gets the child of this RemainingCreditModel. # noqa: E501 + Credits remaining for child account # noqa: E501 :return: The child of this RemainingCreditModel. # noqa: E501 - :rtype: RemainingCreditModelChild + :rtype: object """ return self._child @@ -67,9 +61,10 @@ def child(self): def child(self, child): """Sets the child of this RemainingCreditModel. + Credits remaining for child account # noqa: E501 :param child: The child of this RemainingCreditModel. # noqa: E501 - :type: RemainingCreditModelChild + :type: object """ if child is None: raise ValueError("Invalid value for `child`, must not be `None`") # noqa: E501 @@ -82,7 +77,7 @@ def reseller(self): :return: The reseller of this RemainingCreditModel. # noqa: E501 - :rtype: RemainingCreditModelReseller + :rtype: object """ return self._reseller @@ -92,7 +87,7 @@ def reseller(self, reseller): :param reseller: The reseller of this RemainingCreditModel. # noqa: E501 - :type: RemainingCreditModelReseller + :type: object """ if reseller is None: raise ValueError("Invalid value for `reseller`, must not be `None`") # noqa: E501 @@ -120,6 +115,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RemainingCreditModel, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/remaining_credit_model_child.py b/sib_api_v3_sdk/models/remaining_credit_model_child.py deleted file mode 100644 index d7dfbfe..0000000 --- a/sib_api_v3_sdk/models/remaining_credit_model_child.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class RemainingCreditModelChild(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'sms': 'int', - 'email': 'int' - } - - attribute_map = { - 'sms': 'sms', - 'email': 'email' - } - - def __init__(self, sms=None, email=None): # noqa: E501 - """RemainingCreditModelChild - a model defined in Swagger""" # noqa: E501 - - self._sms = None - self._email = None - self.discriminator = None - - self.sms = sms - self.email = email - - @property - def sms(self): - """Gets the sms of this RemainingCreditModelChild. # noqa: E501 - - SMS Credits remaining for child account # noqa: E501 - - :return: The sms of this RemainingCreditModelChild. # noqa: E501 - :rtype: int - """ - return self._sms - - @sms.setter - def sms(self, sms): - """Sets the sms of this RemainingCreditModelChild. - - SMS Credits remaining for child account # noqa: E501 - - :param sms: The sms of this RemainingCreditModelChild. # noqa: E501 - :type: int - """ - if sms is None: - raise ValueError("Invalid value for `sms`, must not be `None`") # noqa: E501 - - self._sms = sms - - @property - def email(self): - """Gets the email of this RemainingCreditModelChild. # noqa: E501 - - Email Credits remaining for child account # noqa: E501 - - :return: The email of this RemainingCreditModelChild. # noqa: E501 - :rtype: int - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this RemainingCreditModelChild. - - Email Credits remaining for child account # noqa: E501 - - :param email: The email of this RemainingCreditModelChild. # noqa: E501 - :type: int - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RemainingCreditModelChild): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/remaining_credit_model_reseller.py b/sib_api_v3_sdk/models/remaining_credit_model_reseller.py deleted file mode 100644 index bc23df7..0000000 --- a/sib_api_v3_sdk/models/remaining_credit_model_reseller.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class RemainingCreditModelReseller(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'sms': 'int', - 'email': 'int' - } - - attribute_map = { - 'sms': 'sms', - 'email': 'email' - } - - def __init__(self, sms=None, email=None): # noqa: E501 - """RemainingCreditModelReseller - a model defined in Swagger""" # noqa: E501 - - self._sms = None - self._email = None - self.discriminator = None - - self.sms = sms - self.email = email - - @property - def sms(self): - """Gets the sms of this RemainingCreditModelReseller. # noqa: E501 - - SMS Credits remaining for reseller account # noqa: E501 - - :return: The sms of this RemainingCreditModelReseller. # noqa: E501 - :rtype: int - """ - return self._sms - - @sms.setter - def sms(self, sms): - """Sets the sms of this RemainingCreditModelReseller. - - SMS Credits remaining for reseller account # noqa: E501 - - :param sms: The sms of this RemainingCreditModelReseller. # noqa: E501 - :type: int - """ - if sms is None: - raise ValueError("Invalid value for `sms`, must not be `None`") # noqa: E501 - - self._sms = sms - - @property - def email(self): - """Gets the email of this RemainingCreditModelReseller. # noqa: E501 - - Email Credits remaining for reseller account # noqa: E501 - - :return: The email of this RemainingCreditModelReseller. # noqa: E501 - :rtype: int - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this RemainingCreditModelReseller. - - Email Credits remaining for reseller account # noqa: E501 - - :param email: The email of this RemainingCreditModelReseller. # noqa: E501 - :type: int - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RemainingCreditModelReseller): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/remove_contact_from_list.py b/sib_api_v3_sdk/models/remove_contact_from_list.py index 8d8fd7a..e11a4a8 100644 --- a/sib_api_v3_sdk/models/remove_contact_from_list.py +++ b/sib_api_v3_sdk/models/remove_contact_from_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class RemoveContactFromList(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class RemoveContactFromList(object): def __init__(self, emails=None, all=None): # noqa: E501 """RemoveContactFromList - a model defined in Swagger""" # noqa: E501 - self._emails = None self._all = None self.discriminator = None - if emails is not None: self.emails = emails if all is not None: @@ -119,6 +115,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RemoveContactFromList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/remove_credits.py b/sib_api_v3_sdk/models/remove_credits.py index 6266065..2813c39 100644 --- a/sib_api_v3_sdk/models/remove_credits.py +++ b/sib_api_v3_sdk/models/remove_credits.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class RemoveCredits(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class RemoveCredits(object): def __init__(self, sms=None, email=None): # noqa: E501 """RemoveCredits - a model defined in Swagger""" # noqa: E501 - self._sms = None self._email = None self.discriminator = None - if sms is not None: self.sms = sms if email is not None: @@ -119,6 +115,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RemoveCredits, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/request_contact_export.py b/sib_api_v3_sdk/models/request_contact_export.py index 9c43dd4..dce4649 100644 --- a/sib_api_v3_sdk/models/request_contact_export.py +++ b/sib_api_v3_sdk/models/request_contact_export.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class RequestContactExport(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,12 +42,10 @@ class RequestContactExport(object): def __init__(self, export_attributes=None, contact_filter=None, notify_url=None): # noqa: E501 """RequestContactExport - a model defined in Swagger""" # noqa: E501 - self._export_attributes = None self._contact_filter = None self._notify_url = None self.discriminator = None - if export_attributes is not None: self.export_attributes = export_attributes self.contact_filter = contact_filter @@ -148,6 +144,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RequestContactExport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/request_contact_import.py b/sib_api_v3_sdk/models/request_contact_import.py index e5ef253..971b368 100644 --- a/sib_api_v3_sdk/models/request_contact_import.py +++ b/sib_api_v3_sdk/models/request_contact_import.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.request_contact_import_new_list import RequestContactImportNewList # noqa: F401,E501 - class RequestContactImport(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -37,7 +33,7 @@ class RequestContactImport(object): 'file_body': 'str', 'list_ids': 'list[int]', 'notify_url': 'str', - 'new_list': 'RequestContactImportNewList', + 'new_list': 'object', 'email_blacklist': 'bool', 'sms_blacklist': 'bool', 'update_existing_contacts': 'bool', @@ -58,7 +54,6 @@ class RequestContactImport(object): def __init__(self, file_url=None, file_body=None, list_ids=None, notify_url=None, new_list=None, email_blacklist=False, sms_blacklist=False, update_existing_contacts=True, empty_contacts_attributes=False): # noqa: E501 """RequestContactImport - a model defined in Swagger""" # noqa: E501 - self._file_url = None self._file_body = None self._list_ids = None @@ -69,7 +64,6 @@ def __init__(self, file_url=None, file_body=None, list_ids=None, notify_url=None self._update_existing_contacts = None self._empty_contacts_attributes = None self.discriminator = None - if file_url is not None: self.file_url = file_url if file_body is not None: @@ -185,9 +179,10 @@ def notify_url(self, notify_url): def new_list(self): """Gets the new_list of this RequestContactImport. # noqa: E501 + To create a new list and import the contacts into it, pass the listName and an optional folderId. # noqa: E501 :return: The new_list of this RequestContactImport. # noqa: E501 - :rtype: RequestContactImportNewList + :rtype: object """ return self._new_list @@ -195,9 +190,10 @@ def new_list(self): def new_list(self, new_list): """Sets the new_list of this RequestContactImport. + To create a new list and import the contacts into it, pass the listName and an optional folderId. # noqa: E501 :param new_list: The new_list of this RequestContactImport. # noqa: E501 - :type: RequestContactImportNewList + :type: object """ self._new_list = new_list @@ -315,6 +311,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RequestContactImport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/request_contact_import_new_list.py b/sib_api_v3_sdk/models/request_contact_import_new_list.py deleted file mode 100644 index 8ef20e1..0000000 --- a/sib_api_v3_sdk/models/request_contact_import_new_list.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class RequestContactImportNewList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'list_name': 'str', - 'folder_id': 'int' - } - - attribute_map = { - 'list_name': 'listName', - 'folder_id': 'folderId' - } - - def __init__(self, list_name=None, folder_id=None): # noqa: E501 - """RequestContactImportNewList - a model defined in Swagger""" # noqa: E501 - - self._list_name = None - self._folder_id = None - self.discriminator = None - - if list_name is not None: - self.list_name = list_name - if folder_id is not None: - self.folder_id = folder_id - - @property - def list_name(self): - """Gets the list_name of this RequestContactImportNewList. # noqa: E501 - - List with listName will be created first and users will be imported in it (Mandatory if listIds is empty). # noqa: E501 - - :return: The list_name of this RequestContactImportNewList. # noqa: E501 - :rtype: str - """ - return self._list_name - - @list_name.setter - def list_name(self, list_name): - """Sets the list_name of this RequestContactImportNewList. - - List with listName will be created first and users will be imported in it (Mandatory if listIds is empty). # noqa: E501 - - :param list_name: The list_name of this RequestContactImportNewList. # noqa: E501 - :type: str - """ - - self._list_name = list_name - - @property - def folder_id(self): - """Gets the folder_id of this RequestContactImportNewList. # noqa: E501 - - Id of the folder where this new list shall be created (Mandatory if listName is not empty). # noqa: E501 - - :return: The folder_id of this RequestContactImportNewList. # noqa: E501 - :rtype: int - """ - return self._folder_id - - @folder_id.setter - def folder_id(self, folder_id): - """Sets the folder_id of this RequestContactImportNewList. - - Id of the folder where this new list shall be created (Mandatory if listName is not empty). # noqa: E501 - - :param folder_id: The folder_id of this RequestContactImportNewList. # noqa: E501 - :type: int - """ - - self._folder_id = folder_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RequestContactImportNewList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/request_sms_recipient_export.py b/sib_api_v3_sdk/models/request_sms_recipient_export.py index 4c52810..b7f8481 100644 --- a/sib_api_v3_sdk/models/request_sms_recipient_export.py +++ b/sib_api_v3_sdk/models/request_sms_recipient_export.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class RequestSmsRecipientExport(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class RequestSmsRecipientExport(object): def __init__(self, notify_url=None, recipients_type=None): # noqa: E501 """RequestSmsRecipientExport - a model defined in Swagger""" # noqa: E501 - self._notify_url = None self._recipients_type = None self.discriminator = None - if notify_url is not None: self.notify_url = notify_url self.recipients_type = recipients_type @@ -126,6 +122,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RequestSmsRecipientExport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_email.py b/sib_api_v3_sdk/models/send_email.py index 5d9c827..a08f658 100644 --- a/sib_api_v3_sdk/models/send_email.py +++ b/sib_api_v3_sdk/models/send_email.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.send_email_attachment import SendEmailAttachment # noqa: F401,E501 - class SendEmail(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,7 +34,7 @@ class SendEmail(object): 'email_cc': 'list[str]', 'reply_to': 'str', 'attachment_url': 'str', - 'attachment': 'list[SendEmailAttachment]', + 'attachment': 'list[object]', 'headers': 'object', 'attributes': 'object', 'tags': 'list[str]' @@ -58,7 +54,6 @@ class SendEmail(object): def __init__(self, email_to=None, email_bcc=None, email_cc=None, reply_to=None, attachment_url=None, attachment=None, headers=None, attributes=None, tags=None): # noqa: E501 """SendEmail - a model defined in Swagger""" # noqa: E501 - self._email_to = None self._email_bcc = None self._email_cc = None @@ -69,7 +64,6 @@ def __init__(self, email_to=None, email_bcc=None, email_cc=None, reply_to=None, self._attributes = None self._tags = None self.discriminator = None - self.email_to = email_to if email_bcc is not None: self.email_bcc = email_bcc @@ -212,7 +206,7 @@ def attachment(self): Pass the list of content (base64 encoded) and name of the attachment. For example, `[{\"content\":\"base64 encoded content 1\", \"name\":\"attcahment1\"}, {\"content\":\"base64 encoded content 2\", \"name\":\"attcahment2\"}]` # noqa: E501 :return: The attachment of this SendEmail. # noqa: E501 - :rtype: list[SendEmailAttachment] + :rtype: list[object] """ return self._attachment @@ -223,7 +217,7 @@ def attachment(self, attachment): Pass the list of content (base64 encoded) and name of the attachment. For example, `[{\"content\":\"base64 encoded content 1\", \"name\":\"attcahment1\"}, {\"content\":\"base64 encoded content 2\", \"name\":\"attcahment2\"}]` # noqa: E501 :param attachment: The attachment of this SendEmail. # noqa: E501 - :type: list[SendEmailAttachment] + :type: list[object] """ self._attachment = attachment @@ -318,6 +312,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_email_attachment.py b/sib_api_v3_sdk/models/send_email_attachment.py deleted file mode 100644 index e16e2c1..0000000 --- a/sib_api_v3_sdk/models/send_email_attachment.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SendEmailAttachment(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'content': 'str', - 'name': 'str' - } - - attribute_map = { - 'content': 'content', - 'name': 'name' - } - - def __init__(self, content=None, name=None): # noqa: E501 - """SendEmailAttachment - a model defined in Swagger""" # noqa: E501 - - self._content = None - self._name = None - self.discriminator = None - - self.content = content - self.name = name - - @property - def content(self): - """Gets the content of this SendEmailAttachment. # noqa: E501 - - Base64 encoded chunk data of the attachment generated on the fly # noqa: E501 - - :return: The content of this SendEmailAttachment. # noqa: E501 - :rtype: str - """ - return self._content - - @content.setter - def content(self, content): - """Sets the content of this SendEmailAttachment. - - Base64 encoded chunk data of the attachment generated on the fly # noqa: E501 - - :param content: The content of this SendEmailAttachment. # noqa: E501 - :type: str - """ - if content is None: - raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 - if content is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', content): # noqa: E501 - raise ValueError("Invalid value for `content`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 - - self._content = content - - @property - def name(self): - """Gets the name of this SendEmailAttachment. # noqa: E501 - - Required for content. Name of the attachment # noqa: E501 - - :return: The name of this SendEmailAttachment. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this SendEmailAttachment. - - Required for content. Name of the attachment # noqa: E501 - - :param name: The name of this SendEmailAttachment. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SendEmailAttachment): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/send_report.py b/sib_api_v3_sdk/models/send_report.py index d3722cc..154ba34 100644 --- a/sib_api_v3_sdk/models/send_report.py +++ b/sib_api_v3_sdk/models/send_report.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.send_report_email import SendReportEmail # noqa: F401,E501 - class SendReport(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,7 +30,7 @@ class SendReport(object): """ swagger_types = { 'language': 'str', - 'email': 'SendReportEmail' + 'email': 'object' } attribute_map = { @@ -44,11 +40,9 @@ class SendReport(object): def __init__(self, language='fr', email=None): # noqa: E501 """SendReport - a model defined in Swagger""" # noqa: E501 - self._language = None self._email = None self.discriminator = None - if language is not None: self.language = language self.email = email @@ -86,9 +80,10 @@ def language(self, language): def email(self): """Gets the email of this SendReport. # noqa: E501 + Email sending credentials including subject, body, to, cc etc. # noqa: E501 :return: The email of this SendReport. # noqa: E501 - :rtype: SendReportEmail + :rtype: object """ return self._email @@ -96,9 +91,10 @@ def email(self): def email(self, email): """Sets the email of this SendReport. + Email sending credentials including subject, body, to, cc etc. # noqa: E501 :param email: The email of this SendReport. # noqa: E501 - :type: SendReportEmail + :type: object """ if email is None: raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 @@ -126,6 +122,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_report_email.py b/sib_api_v3_sdk/models/send_report_email.py deleted file mode 100644 index e618ff3..0000000 --- a/sib_api_v3_sdk/models/send_report_email.py +++ /dev/null @@ -1,263 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SendReportEmail(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'subject': 'str', - 'to': 'list[str]', - 'content_type': 'str', - 'bcc': 'list[str]', - 'cc': 'list[str]', - 'body': 'str' - } - - attribute_map = { - 'subject': 'subject', - 'to': 'to', - 'content_type': 'contentType', - 'bcc': 'bcc', - 'cc': 'cc', - 'body': 'body' - } - - def __init__(self, subject=None, to=None, content_type='html', bcc=None, cc=None, body=None): # noqa: E501 - """SendReportEmail - a model defined in Swagger""" # noqa: E501 - - self._subject = None - self._to = None - self._content_type = None - self._bcc = None - self._cc = None - self._body = None - self.discriminator = None - - self.subject = subject - self.to = to - if content_type is not None: - self.content_type = content_type - if bcc is not None: - self.bcc = bcc - if cc is not None: - self.cc = cc - self.body = body - - @property - def subject(self): - """Gets the subject of this SendReportEmail. # noqa: E501 - - Subject of the email message # noqa: E501 - - :return: The subject of this SendReportEmail. # noqa: E501 - :rtype: str - """ - return self._subject - - @subject.setter - def subject(self, subject): - """Sets the subject of this SendReportEmail. - - Subject of the email message # noqa: E501 - - :param subject: The subject of this SendReportEmail. # noqa: E501 - :type: str - """ - if subject is None: - raise ValueError("Invalid value for `subject`, must not be `None`") # noqa: E501 - - self._subject = subject - - @property - def to(self): - """Gets the to of this SendReportEmail. # noqa: E501 - - Email addresses of the recipients # noqa: E501 - - :return: The to of this SendReportEmail. # noqa: E501 - :rtype: list[str] - """ - return self._to - - @to.setter - def to(self, to): - """Sets the to of this SendReportEmail. - - Email addresses of the recipients # noqa: E501 - - :param to: The to of this SendReportEmail. # noqa: E501 - :type: list[str] - """ - if to is None: - raise ValueError("Invalid value for `to`, must not be `None`") # noqa: E501 - - self._to = to - - @property - def content_type(self): - """Gets the content_type of this SendReportEmail. # noqa: E501 - - Type of the message body # noqa: E501 - - :return: The content_type of this SendReportEmail. # noqa: E501 - :rtype: str - """ - return self._content_type - - @content_type.setter - def content_type(self, content_type): - """Sets the content_type of this SendReportEmail. - - Type of the message body # noqa: E501 - - :param content_type: The content_type of this SendReportEmail. # noqa: E501 - :type: str - """ - allowed_values = ["text", "html"] # noqa: E501 - if content_type not in allowed_values: - raise ValueError( - "Invalid value for `content_type` ({0}), must be one of {1}" # noqa: E501 - .format(content_type, allowed_values) - ) - - self._content_type = content_type - - @property - def bcc(self): - """Gets the bcc of this SendReportEmail. # noqa: E501 - - Email addresses of the recipients in bcc # noqa: E501 - - :return: The bcc of this SendReportEmail. # noqa: E501 - :rtype: list[str] - """ - return self._bcc - - @bcc.setter - def bcc(self, bcc): - """Sets the bcc of this SendReportEmail. - - Email addresses of the recipients in bcc # noqa: E501 - - :param bcc: The bcc of this SendReportEmail. # noqa: E501 - :type: list[str] - """ - - self._bcc = bcc - - @property - def cc(self): - """Gets the cc of this SendReportEmail. # noqa: E501 - - Email addresses of the recipients in cc # noqa: E501 - - :return: The cc of this SendReportEmail. # noqa: E501 - :rtype: list[str] - """ - return self._cc - - @cc.setter - def cc(self, cc): - """Sets the cc of this SendReportEmail. - - Email addresses of the recipients in cc # noqa: E501 - - :param cc: The cc of this SendReportEmail. # noqa: E501 - :type: list[str] - """ - - self._cc = cc - - @property - def body(self): - """Gets the body of this SendReportEmail. # noqa: E501 - - Body of the email message # noqa: E501 - - :return: The body of this SendReportEmail. # noqa: E501 - :rtype: str - """ - return self._body - - @body.setter - def body(self, body): - """Sets the body of this SendReportEmail. - - Body of the email message # noqa: E501 - - :param body: The body of this SendReportEmail. # noqa: E501 - :type: str - """ - if body is None: - raise ValueError("Invalid value for `body`, must not be `None`") # noqa: E501 - - self._body = body - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SendReportEmail): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/send_sms.py b/sib_api_v3_sdk/models/send_sms.py index 5b282ce..ec1c1f0 100644 --- a/sib_api_v3_sdk/models/send_sms.py +++ b/sib_api_v3_sdk/models/send_sms.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class SendSms(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,14 +46,12 @@ class SendSms(object): def __init__(self, reference=None, message_id=None, sms_count=None, used_credits=None, remaining_credits=None): # noqa: E501 """SendSms - a model defined in Swagger""" # noqa: E501 - self._reference = None self._message_id = None self._sms_count = None self._used_credits = None self._remaining_credits = None self.discriminator = None - self.reference = reference self.message_id = message_id if sms_count is not None: @@ -201,6 +197,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendSms, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_smtp_email.py b/sib_api_v3_sdk/models/send_smtp_email.py index 6a4b6eb..d892a61 100644 --- a/sib_api_v3_sdk/models/send_smtp_email.py +++ b/sib_api_v3_sdk/models/send_smtp_email.py @@ -10,26 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.send_smtp_email_attachment import SendSmtpEmailAttachment # noqa: F401,E501 -from sib_api_v3_sdk.models.send_smtp_email_bcc import SendSmtpEmailBcc # noqa: F401,E501 -from sib_api_v3_sdk.models.send_smtp_email_cc import SendSmtpEmailCc # noqa: F401,E501 -from sib_api_v3_sdk.models.send_smtp_email_reply_to import SendSmtpEmailReplyTo # noqa: F401,E501 -from sib_api_v3_sdk.models.send_smtp_email_sender import SendSmtpEmailSender # noqa: F401,E501 -from sib_api_v3_sdk.models.send_smtp_email_to import SendSmtpEmailTo # noqa: F401,E501 - class SendSmtpEmail(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,15 +29,15 @@ class SendSmtpEmail(object): and the value is json key in definition. """ swagger_types = { - 'sender': 'SendSmtpEmailSender', - 'to': 'list[SendSmtpEmailTo]', - 'bcc': 'list[SendSmtpEmailBcc]', - 'cc': 'list[SendSmtpEmailCc]', + 'sender': 'object', + 'to': 'list[object]', + 'bcc': 'list[object]', + 'cc': 'list[object]', 'html_content': 'str', 'text_content': 'str', 'subject': 'str', - 'reply_to': 'SendSmtpEmailReplyTo', - 'attachment': 'list[SendSmtpEmailAttachment]', + 'reply_to': 'object', + 'attachment': 'list[object]', 'headers': 'object', 'template_id': 'int', 'params': 'object', @@ -71,7 +62,6 @@ class SendSmtpEmail(object): def __init__(self, sender=None, to=None, bcc=None, cc=None, html_content=None, text_content=None, subject=None, reply_to=None, attachment=None, headers=None, template_id=None, params=None, tags=None): # noqa: E501 """SendSmtpEmail - a model defined in Swagger""" # noqa: E501 - self._sender = None self._to = None self._bcc = None @@ -86,7 +76,6 @@ def __init__(self, sender=None, to=None, bcc=None, cc=None, html_content=None, t self._params = None self._tags = None self.discriminator = None - if sender is not None: self.sender = sender self.to = to @@ -117,9 +106,10 @@ def __init__(self, sender=None, to=None, bcc=None, cc=None, html_content=None, t def sender(self): """Gets the sender of this SendSmtpEmail. # noqa: E501 + Mandatory if 'templateId' is not passed. Pass name (optional) and email of sender from which emails will be sent. For example, `{\"name\":\"Mary from MyShop\", \"email\":\"no-reply@myshop.com\"}` # noqa: E501 :return: The sender of this SendSmtpEmail. # noqa: E501 - :rtype: SendSmtpEmailSender + :rtype: object """ return self._sender @@ -127,9 +117,10 @@ def sender(self): def sender(self, sender): """Sets the sender of this SendSmtpEmail. + Mandatory if 'templateId' is not passed. Pass name (optional) and email of sender from which emails will be sent. For example, `{\"name\":\"Mary from MyShop\", \"email\":\"no-reply@myshop.com\"}` # noqa: E501 :param sender: The sender of this SendSmtpEmail. # noqa: E501 - :type: SendSmtpEmailSender + :type: object """ self._sender = sender @@ -141,7 +132,7 @@ def to(self): List of email addresses and names (optional) of the recipients. For example, `[{\"name\":\"Jimmy\", \"email\":\"jimmy98@example.com\"}, {\"name\":\"Joe\", \"email\":\"joe@example.com\"}]` # noqa: E501 :return: The to of this SendSmtpEmail. # noqa: E501 - :rtype: list[SendSmtpEmailTo] + :rtype: list[object] """ return self._to @@ -152,7 +143,7 @@ def to(self, to): List of email addresses and names (optional) of the recipients. For example, `[{\"name\":\"Jimmy\", \"email\":\"jimmy98@example.com\"}, {\"name\":\"Joe\", \"email\":\"joe@example.com\"}]` # noqa: E501 :param to: The to of this SendSmtpEmail. # noqa: E501 - :type: list[SendSmtpEmailTo] + :type: list[object] """ if to is None: raise ValueError("Invalid value for `to`, must not be `None`") # noqa: E501 @@ -166,7 +157,7 @@ def bcc(self): List of email addresses and names (optional) of the recipients in bcc # noqa: E501 :return: The bcc of this SendSmtpEmail. # noqa: E501 - :rtype: list[SendSmtpEmailBcc] + :rtype: list[object] """ return self._bcc @@ -177,7 +168,7 @@ def bcc(self, bcc): List of email addresses and names (optional) of the recipients in bcc # noqa: E501 :param bcc: The bcc of this SendSmtpEmail. # noqa: E501 - :type: list[SendSmtpEmailBcc] + :type: list[object] """ self._bcc = bcc @@ -189,7 +180,7 @@ def cc(self): List of email addresses and names (optional) of the recipients in cc # noqa: E501 :return: The cc of this SendSmtpEmail. # noqa: E501 - :rtype: list[SendSmtpEmailCc] + :rtype: list[object] """ return self._cc @@ -200,7 +191,7 @@ def cc(self, cc): List of email addresses and names (optional) of the recipients in cc # noqa: E501 :param cc: The cc of this SendSmtpEmail. # noqa: E501 - :type: list[SendSmtpEmailCc] + :type: list[object] """ self._cc = cc @@ -278,9 +269,10 @@ def subject(self, subject): def reply_to(self): """Gets the reply_to of this SendSmtpEmail. # noqa: E501 + Email (required), along with name (optional), on which transactional mail recipients will be able to reply back. For example, `{\"email':'ann6533@example.com', 'name':'Ann'}` # noqa: E501 :return: The reply_to of this SendSmtpEmail. # noqa: E501 - :rtype: SendSmtpEmailReplyTo + :rtype: object """ return self._reply_to @@ -288,9 +280,10 @@ def reply_to(self): def reply_to(self, reply_to): """Sets the reply_to of this SendSmtpEmail. + Email (required), along with name (optional), on which transactional mail recipients will be able to reply back. For example, `{\"email':'ann6533@example.com', 'name':'Ann'}` # noqa: E501 :param reply_to: The reply_to of this SendSmtpEmail. # noqa: E501 - :type: SendSmtpEmailReplyTo + :type: object """ self._reply_to = reply_to @@ -302,7 +295,7 @@ def attachment(self): Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps and odt ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored ) # noqa: E501 :return: The attachment of this SendSmtpEmail. # noqa: E501 - :rtype: list[SendSmtpEmailAttachment] + :rtype: list[object] """ return self._attachment @@ -313,7 +306,7 @@ def attachment(self, attachment): Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps and odt ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored ) # noqa: E501 :param attachment: The attachment of this SendSmtpEmail. # noqa: E501 - :type: list[SendSmtpEmailAttachment] + :type: list[object] """ self._attachment = attachment @@ -431,6 +424,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendSmtpEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_smtp_email_attachment.py b/sib_api_v3_sdk/models/send_smtp_email_attachment.py deleted file mode 100644 index 3a3dfee..0000000 --- a/sib_api_v3_sdk/models/send_smtp_email_attachment.py +++ /dev/null @@ -1,172 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SendSmtpEmailAttachment(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'url': 'str', - 'content': 'str', - 'name': 'str' - } - - attribute_map = { - 'url': 'url', - 'content': 'content', - 'name': 'name' - } - - def __init__(self, url=None, content=None, name=None): # noqa: E501 - """SendSmtpEmailAttachment - a model defined in Swagger""" # noqa: E501 - - self._url = None - self._content = None - self._name = None - self.discriminator = None - - if url is not None: - self.url = url - if content is not None: - self.content = content - if name is not None: - self.name = name - - @property - def url(self): - """Gets the url of this SendSmtpEmailAttachment. # noqa: E501 - - Absolute url of the attachment (no local file). # noqa: E501 - - :return: The url of this SendSmtpEmailAttachment. # noqa: E501 - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this SendSmtpEmailAttachment. - - Absolute url of the attachment (no local file). # noqa: E501 - - :param url: The url of this SendSmtpEmailAttachment. # noqa: E501 - :type: str - """ - - self._url = url - - @property - def content(self): - """Gets the content of this SendSmtpEmailAttachment. # noqa: E501 - - Base64 encoded chunk data of the attachment generated on the fly # noqa: E501 - - :return: The content of this SendSmtpEmailAttachment. # noqa: E501 - :rtype: str - """ - return self._content - - @content.setter - def content(self, content): - """Sets the content of this SendSmtpEmailAttachment. - - Base64 encoded chunk data of the attachment generated on the fly # noqa: E501 - - :param content: The content of this SendSmtpEmailAttachment. # noqa: E501 - :type: str - """ - if content is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', content): # noqa: E501 - raise ValueError("Invalid value for `content`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 - - self._content = content - - @property - def name(self): - """Gets the name of this SendSmtpEmailAttachment. # noqa: E501 - - Required if content is passed. Name of the attachment # noqa: E501 - - :return: The name of this SendSmtpEmailAttachment. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this SendSmtpEmailAttachment. - - Required if content is passed. Name of the attachment # noqa: E501 - - :param name: The name of this SendSmtpEmailAttachment. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SendSmtpEmailAttachment): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/send_smtp_email_bcc.py b/sib_api_v3_sdk/models/send_smtp_email_bcc.py deleted file mode 100644 index b90a603..0000000 --- a/sib_api_v3_sdk/models/send_smtp_email_bcc.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SendSmtpEmailBcc(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'email': 'str', - 'name': 'str' - } - - attribute_map = { - 'email': 'email', - 'name': 'name' - } - - def __init__(self, email=None, name=None): # noqa: E501 - """SendSmtpEmailBcc - a model defined in Swagger""" # noqa: E501 - - self._email = None - self._name = None - self.discriminator = None - - self.email = email - if name is not None: - self.name = name - - @property - def email(self): - """Gets the email of this SendSmtpEmailBcc. # noqa: E501 - - Email address of the recipient in bcc # noqa: E501 - - :return: The email of this SendSmtpEmailBcc. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this SendSmtpEmailBcc. - - Email address of the recipient in bcc # noqa: E501 - - :param email: The email of this SendSmtpEmailBcc. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def name(self): - """Gets the name of this SendSmtpEmailBcc. # noqa: E501 - - Name of the recipient in bcc # noqa: E501 - - :return: The name of this SendSmtpEmailBcc. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this SendSmtpEmailBcc. - - Name of the recipient in bcc # noqa: E501 - - :param name: The name of this SendSmtpEmailBcc. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SendSmtpEmailBcc): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/send_smtp_email_cc.py b/sib_api_v3_sdk/models/send_smtp_email_cc.py deleted file mode 100644 index f6d1916..0000000 --- a/sib_api_v3_sdk/models/send_smtp_email_cc.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SendSmtpEmailCc(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'email': 'str', - 'name': 'str' - } - - attribute_map = { - 'email': 'email', - 'name': 'name' - } - - def __init__(self, email=None, name=None): # noqa: E501 - """SendSmtpEmailCc - a model defined in Swagger""" # noqa: E501 - - self._email = None - self._name = None - self.discriminator = None - - self.email = email - if name is not None: - self.name = name - - @property - def email(self): - """Gets the email of this SendSmtpEmailCc. # noqa: E501 - - Email address of the recipient in cc # noqa: E501 - - :return: The email of this SendSmtpEmailCc. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this SendSmtpEmailCc. - - Email address of the recipient in cc # noqa: E501 - - :param email: The email of this SendSmtpEmailCc. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def name(self): - """Gets the name of this SendSmtpEmailCc. # noqa: E501 - - Name of the recipient in cc # noqa: E501 - - :return: The name of this SendSmtpEmailCc. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this SendSmtpEmailCc. - - Name of the recipient in cc # noqa: E501 - - :param name: The name of this SendSmtpEmailCc. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SendSmtpEmailCc): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/send_smtp_email_reply_to.py b/sib_api_v3_sdk/models/send_smtp_email_reply_to.py deleted file mode 100644 index 2420b89..0000000 --- a/sib_api_v3_sdk/models/send_smtp_email_reply_to.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SendSmtpEmailReplyTo(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'email': 'str', - 'name': 'str' - } - - attribute_map = { - 'email': 'email', - 'name': 'name' - } - - def __init__(self, email=None, name=None): # noqa: E501 - """SendSmtpEmailReplyTo - a model defined in Swagger""" # noqa: E501 - - self._email = None - self._name = None - self.discriminator = None - - self.email = email - if name is not None: - self.name = name - - @property - def email(self): - """Gets the email of this SendSmtpEmailReplyTo. # noqa: E501 - - Email address in reply to # noqa: E501 - - :return: The email of this SendSmtpEmailReplyTo. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this SendSmtpEmailReplyTo. - - Email address in reply to # noqa: E501 - - :param email: The email of this SendSmtpEmailReplyTo. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def name(self): - """Gets the name of this SendSmtpEmailReplyTo. # noqa: E501 - - Name in reply to # noqa: E501 - - :return: The name of this SendSmtpEmailReplyTo. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this SendSmtpEmailReplyTo. - - Name in reply to # noqa: E501 - - :param name: The name of this SendSmtpEmailReplyTo. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SendSmtpEmailReplyTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/send_smtp_email_sender.py b/sib_api_v3_sdk/models/send_smtp_email_sender.py deleted file mode 100644 index dd77cde..0000000 --- a/sib_api_v3_sdk/models/send_smtp_email_sender.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SendSmtpEmailSender(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'email': 'str' - } - - attribute_map = { - 'name': 'name', - 'email': 'email' - } - - def __init__(self, name=None, email=None): # noqa: E501 - """SendSmtpEmailSender - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._email = None - self.discriminator = None - - if name is not None: - self.name = name - self.email = email - - @property - def name(self): - """Gets the name of this SendSmtpEmailSender. # noqa: E501 - - Name of the sender from which the emails will be sent # noqa: E501 - - :return: The name of this SendSmtpEmailSender. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this SendSmtpEmailSender. - - Name of the sender from which the emails will be sent # noqa: E501 - - :param name: The name of this SendSmtpEmailSender. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def email(self): - """Gets the email of this SendSmtpEmailSender. # noqa: E501 - - Email of the sender from which the emails will be sent # noqa: E501 - - :return: The email of this SendSmtpEmailSender. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this SendSmtpEmailSender. - - Email of the sender from which the emails will be sent # noqa: E501 - - :param email: The email of this SendSmtpEmailSender. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SendSmtpEmailSender): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/send_smtp_email_to.py b/sib_api_v3_sdk/models/send_smtp_email_to.py deleted file mode 100644 index c4acda2..0000000 --- a/sib_api_v3_sdk/models/send_smtp_email_to.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SendSmtpEmailTo(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'email': 'str', - 'name': 'str' - } - - attribute_map = { - 'email': 'email', - 'name': 'name' - } - - def __init__(self, email=None, name=None): # noqa: E501 - """SendSmtpEmailTo - a model defined in Swagger""" # noqa: E501 - - self._email = None - self._name = None - self.discriminator = None - - self.email = email - if name is not None: - self.name = name - - @property - def email(self): - """Gets the email of this SendSmtpEmailTo. # noqa: E501 - - Email address of the recipient # noqa: E501 - - :return: The email of this SendSmtpEmailTo. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this SendSmtpEmailTo. - - Email address of the recipient # noqa: E501 - - :param email: The email of this SendSmtpEmailTo. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def name(self): - """Gets the name of this SendSmtpEmailTo. # noqa: E501 - - Name of the recipient # noqa: E501 - - :return: The name of this SendSmtpEmailTo. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this SendSmtpEmailTo. - - Name of the recipient # noqa: E501 - - :param name: The name of this SendSmtpEmailTo. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SendSmtpEmailTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/send_template_email.py b/sib_api_v3_sdk/models/send_template_email.py index c93e5eb..a6cfc46 100644 --- a/sib_api_v3_sdk/models/send_template_email.py +++ b/sib_api_v3_sdk/models/send_template_email.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class SendTemplateEmail(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class SendTemplateEmail(object): def __init__(self, message_id=None): # noqa: E501 """SendTemplateEmail - a model defined in Swagger""" # noqa: E501 - self._message_id = None self.discriminator = None - self.message_id = message_id @property @@ -92,6 +88,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendTemplateEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_test_email.py b/sib_api_v3_sdk/models/send_test_email.py index b43c0b7..2c69377 100644 --- a/sib_api_v3_sdk/models/send_test_email.py +++ b/sib_api_v3_sdk/models/send_test_email.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class SendTestEmail(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class SendTestEmail(object): def __init__(self, email_to=None): # noqa: E501 """SendTestEmail - a model defined in Swagger""" # noqa: E501 - self._email_to = None self.discriminator = None - if email_to is not None: self.email_to = email_to @@ -91,6 +87,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendTestEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_test_sms.py b/sib_api_v3_sdk/models/send_test_sms.py index d32f8fd..d7bdb62 100644 --- a/sib_api_v3_sdk/models/send_test_sms.py +++ b/sib_api_v3_sdk/models/send_test_sms.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class SendTestSms(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class SendTestSms(object): def __init__(self, phone_number=None): # noqa: E501 """SendTestSms - a model defined in Swagger""" # noqa: E501 - self._phone_number = None self.discriminator = None - if phone_number is not None: self.phone_number = phone_number @@ -91,6 +87,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendTestSms, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_transac_sms.py b/sib_api_v3_sdk/models/send_transac_sms.py index 5eada97..cc00e03 100644 --- a/sib_api_v3_sdk/models/send_transac_sms.py +++ b/sib_api_v3_sdk/models/send_transac_sms.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class SendTransacSms(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -50,7 +48,6 @@ class SendTransacSms(object): def __init__(self, sender=None, recipient=None, content=None, type='transactional', tag=None, web_url=None): # noqa: E501 """SendTransacSms - a model defined in Swagger""" # noqa: E501 - self._sender = None self._recipient = None self._content = None @@ -58,7 +55,6 @@ def __init__(self, sender=None, recipient=None, content=None, type='transactiona self._tag = None self._web_url = None self.discriminator = None - self.sender = sender self.recipient = recipient self.content = content @@ -91,8 +87,6 @@ def sender(self, sender): """ if sender is None: raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 - if sender is not None and len(sender) > 11: - raise ValueError("Invalid value for `sender`, length must be less than or equal to `11`") # noqa: E501 self._sender = sender @@ -242,6 +236,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendTransacSms, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_attribute.py b/sib_api_v3_sdk/models/update_attribute.py index e05f155..c70ce84 100644 --- a/sib_api_v3_sdk/models/update_attribute.py +++ b/sib_api_v3_sdk/models/update_attribute.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.update_attribute_enumeration import UpdateAttributeEnumeration # noqa: F401,E501 - class UpdateAttribute(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,7 +30,7 @@ class UpdateAttribute(object): """ swagger_types = { 'value': 'str', - 'enumeration': 'list[UpdateAttributeEnumeration]' + 'enumeration': 'list[object]' } attribute_map = { @@ -44,11 +40,9 @@ class UpdateAttribute(object): def __init__(self, value=None, enumeration=None): # noqa: E501 """UpdateAttribute - a model defined in Swagger""" # noqa: E501 - self._value = None self._enumeration = None self.discriminator = None - if value is not None: self.value = value if enumeration is not None: @@ -84,7 +78,7 @@ def enumeration(self): List of the values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, `[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]` # noqa: E501 :return: The enumeration of this UpdateAttribute. # noqa: E501 - :rtype: list[UpdateAttributeEnumeration] + :rtype: list[object] """ return self._enumeration @@ -95,7 +89,7 @@ def enumeration(self, enumeration): List of the values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, `[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]` # noqa: E501 :param enumeration: The enumeration of this UpdateAttribute. # noqa: E501 - :type: list[UpdateAttributeEnumeration] + :type: list[object] """ self._enumeration = enumeration @@ -121,6 +115,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateAttribute, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_attribute_enumeration.py b/sib_api_v3_sdk/models/update_attribute_enumeration.py deleted file mode 100644 index 1bf6c81..0000000 --- a/sib_api_v3_sdk/models/update_attribute_enumeration.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class UpdateAttributeEnumeration(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'value': 'int', - 'label': 'str' - } - - attribute_map = { - 'value': 'value', - 'label': 'label' - } - - def __init__(self, value=None, label=None): # noqa: E501 - """UpdateAttributeEnumeration - a model defined in Swagger""" # noqa: E501 - - self._value = None - self._label = None - self.discriminator = None - - self.value = value - self.label = label - - @property - def value(self): - """Gets the value of this UpdateAttributeEnumeration. # noqa: E501 - - Id of the value # noqa: E501 - - :return: The value of this UpdateAttributeEnumeration. # noqa: E501 - :rtype: int - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this UpdateAttributeEnumeration. - - Id of the value # noqa: E501 - - :param value: The value of this UpdateAttributeEnumeration. # noqa: E501 - :type: int - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def label(self): - """Gets the label of this UpdateAttributeEnumeration. # noqa: E501 - - Label of the value # noqa: E501 - - :return: The label of this UpdateAttributeEnumeration. # noqa: E501 - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this UpdateAttributeEnumeration. - - Label of the value # noqa: E501 - - :param label: The label of this UpdateAttributeEnumeration. # noqa: E501 - :type: str - """ - if label is None: - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - - self._label = label - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UpdateAttributeEnumeration): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/update_campaign_status.py b/sib_api_v3_sdk/models/update_campaign_status.py index 109bde2..6731ee0 100644 --- a/sib_api_v3_sdk/models/update_campaign_status.py +++ b/sib_api_v3_sdk/models/update_campaign_status.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class UpdateCampaignStatus(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,10 +38,8 @@ class UpdateCampaignStatus(object): def __init__(self, status=None): # noqa: E501 """UpdateCampaignStatus - a model defined in Swagger""" # noqa: E501 - self._status = None self.discriminator = None - if status is not None: self.status = status @@ -97,6 +93,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateCampaignStatus, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_child.py b/sib_api_v3_sdk/models/update_child.py index 6cbe3bb..7b82117 100644 --- a/sib_api_v3_sdk/models/update_child.py +++ b/sib_api_v3_sdk/models/update_child.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class UpdateChild(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,14 +46,12 @@ class UpdateChild(object): def __init__(self, email=None, first_name=None, last_name=None, company_name=None, password=None): # noqa: E501 """UpdateChild - a model defined in Swagger""" # noqa: E501 - self._email = None self._first_name = None self._last_name = None self._company_name = None self._password = None self.discriminator = None - if email is not None: self.email = email if first_name is not None: @@ -203,6 +199,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateChild, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_contact.py b/sib_api_v3_sdk/models/update_contact.py index 1d12a07..49a9365 100644 --- a/sib_api_v3_sdk/models/update_contact.py +++ b/sib_api_v3_sdk/models/update_contact.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class UpdateContact(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -50,7 +48,6 @@ class UpdateContact(object): def __init__(self, attributes=None, email_blacklisted=None, sms_blacklisted=None, list_ids=None, unlink_list_ids=None, smtp_blacklist_sender=None): # noqa: E501 """UpdateContact - a model defined in Swagger""" # noqa: E501 - self._attributes = None self._email_blacklisted = None self._sms_blacklisted = None @@ -58,7 +55,6 @@ def __init__(self, attributes=None, email_blacklisted=None, sms_blacklisted=None self._unlink_list_ids = None self._smtp_blacklist_sender = None self.discriminator = None - if attributes is not None: self.attributes = attributes if email_blacklisted is not None: @@ -231,6 +227,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateContact, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_email_campaign.py b/sib_api_v3_sdk/models/update_email_campaign.py index 68f7953..de91ac2 100644 --- a/sib_api_v3_sdk/models/update_email_campaign.py +++ b/sib_api_v3_sdk/models/update_email_campaign.py @@ -10,22 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.update_email_campaign_recipients import UpdateEmailCampaignRecipients # noqa: F401,E501 -from sib_api_v3_sdk.models.update_email_campaign_sender import UpdateEmailCampaignSender # noqa: F401,E501 - class UpdateEmailCampaign(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -35,7 +30,7 @@ class UpdateEmailCampaign(object): """ swagger_types = { 'tag': 'str', - 'sender': 'UpdateEmailCampaignSender', + 'sender': 'object', 'name': 'str', 'html_content': 'str', 'html_url': 'str', @@ -43,7 +38,7 @@ class UpdateEmailCampaign(object): 'subject': 'str', 'reply_to': 'str', 'to_field': 'str', - 'recipients': 'UpdateEmailCampaignRecipients', + 'recipients': 'object', 'attachment_url': 'str', 'inline_image_activation': 'bool', 'mirror_active': 'bool', @@ -91,7 +86,6 @@ class UpdateEmailCampaign(object): def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url=None, scheduled_at=None, subject=None, reply_to=None, to_field=None, recipients=None, attachment_url=None, inline_image_activation=False, mirror_active=None, recurring=False, footer=None, header=None, utm_campaign=None, params=None, send_at_best_time=None, ab_testing=False, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None): # noqa: E501 """UpdateEmailCampaign - a model defined in Swagger""" # noqa: E501 - self._tag = None self._sender = None self._name = None @@ -118,7 +112,6 @@ def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url self._winner_criteria = None self._winner_delay = None self.discriminator = None - if tag is not None: self.tag = tag if sender is not None: @@ -197,9 +190,10 @@ def tag(self, tag): def sender(self): """Gets the sender of this UpdateEmailCampaign. # noqa: E501 + Sender details including email and/or name. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` # noqa: E501 :return: The sender of this UpdateEmailCampaign. # noqa: E501 - :rtype: UpdateEmailCampaignSender + :rtype: object """ return self._sender @@ -207,9 +201,10 @@ def sender(self): def sender(self, sender): """Sets the sender of this UpdateEmailCampaign. + Sender details including email and/or name. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` # noqa: E501 :param sender: The sender of this UpdateEmailCampaign. # noqa: E501 - :type: UpdateEmailCampaignSender + :type: object """ self._sender = sender @@ -379,9 +374,10 @@ def to_field(self, to_field): def recipients(self): """Gets the recipients of this UpdateEmailCampaign. # noqa: E501 + List ids to include/exclude from campaign # noqa: E501 :return: The recipients of this UpdateEmailCampaign. # noqa: E501 - :rtype: UpdateEmailCampaignRecipients + :rtype: object """ return self._recipients @@ -389,9 +385,10 @@ def recipients(self): def recipients(self, recipients): """Sets the recipients of this UpdateEmailCampaign. + List ids to include/exclude from campaign # noqa: E501 :param recipients: The recipients of this UpdateEmailCampaign. # noqa: E501 - :type: UpdateEmailCampaignRecipients + :type: object """ self._recipients = recipients @@ -692,10 +689,6 @@ def split_rule(self, split_rule): :param split_rule: The split_rule of this UpdateEmailCampaign. # noqa: E501 :type: int """ - if split_rule is not None and split_rule > 50: # noqa: E501 - raise ValueError("Invalid value for `split_rule`, must be a value less than or equal to `50`") # noqa: E501 - if split_rule is not None and split_rule < 1: # noqa: E501 - raise ValueError("Invalid value for `split_rule`, must be a value greater than or equal to `1`") # noqa: E501 self._split_rule = split_rule @@ -748,10 +741,6 @@ def winner_delay(self, winner_delay): :param winner_delay: The winner_delay of this UpdateEmailCampaign. # noqa: E501 :type: int """ - if winner_delay is not None and winner_delay > 168: # noqa: E501 - raise ValueError("Invalid value for `winner_delay`, must be a value less than or equal to `168`") # noqa: E501 - if winner_delay is not None and winner_delay < 1: # noqa: E501 - raise ValueError("Invalid value for `winner_delay`, must be a value greater than or equal to `1`") # noqa: E501 self._winner_delay = winner_delay @@ -776,6 +765,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateEmailCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_email_campaign_recipients.py b/sib_api_v3_sdk/models/update_email_campaign_recipients.py deleted file mode 100644 index d8f27cc..0000000 --- a/sib_api_v3_sdk/models/update_email_campaign_recipients.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class UpdateEmailCampaignRecipients(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'exclusion_list_ids': 'list[int]', - 'list_ids': 'list[int]' - } - - attribute_map = { - 'exclusion_list_ids': 'exclusionListIds', - 'list_ids': 'listIds' - } - - def __init__(self, exclusion_list_ids=None, list_ids=None): # noqa: E501 - """UpdateEmailCampaignRecipients - a model defined in Swagger""" # noqa: E501 - - self._exclusion_list_ids = None - self._list_ids = None - self.discriminator = None - - if exclusion_list_ids is not None: - self.exclusion_list_ids = exclusion_list_ids - if list_ids is not None: - self.list_ids = list_ids - - @property - def exclusion_list_ids(self): - """Gets the exclusion_list_ids of this UpdateEmailCampaignRecipients. # noqa: E501 - - List ids which have to be excluded from a campaign # noqa: E501 - - :return: The exclusion_list_ids of this UpdateEmailCampaignRecipients. # noqa: E501 - :rtype: list[int] - """ - return self._exclusion_list_ids - - @exclusion_list_ids.setter - def exclusion_list_ids(self, exclusion_list_ids): - """Sets the exclusion_list_ids of this UpdateEmailCampaignRecipients. - - List ids which have to be excluded from a campaign # noqa: E501 - - :param exclusion_list_ids: The exclusion_list_ids of this UpdateEmailCampaignRecipients. # noqa: E501 - :type: list[int] - """ - - self._exclusion_list_ids = exclusion_list_ids - - @property - def list_ids(self): - """Gets the list_ids of this UpdateEmailCampaignRecipients. # noqa: E501 - - Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty # noqa: E501 - - :return: The list_ids of this UpdateEmailCampaignRecipients. # noqa: E501 - :rtype: list[int] - """ - return self._list_ids - - @list_ids.setter - def list_ids(self, list_ids): - """Sets the list_ids of this UpdateEmailCampaignRecipients. - - Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty # noqa: E501 - - :param list_ids: The list_ids of this UpdateEmailCampaignRecipients. # noqa: E501 - :type: list[int] - """ - - self._list_ids = list_ids - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UpdateEmailCampaignRecipients): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/update_email_campaign_sender.py b/sib_api_v3_sdk/models/update_email_campaign_sender.py deleted file mode 100644 index 0ada6c7..0000000 --- a/sib_api_v3_sdk/models/update_email_campaign_sender.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class UpdateEmailCampaignSender(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'email': 'str' - } - - attribute_map = { - 'name': 'name', - 'email': 'email' - } - - def __init__(self, name=None, email=None): # noqa: E501 - """UpdateEmailCampaignSender - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._email = None - self.discriminator = None - - if name is not None: - self.name = name - if email is not None: - self.email = email - - @property - def name(self): - """Gets the name of this UpdateEmailCampaignSender. # noqa: E501 - - Sender Name from which the campaign emails are sent # noqa: E501 - - :return: The name of this UpdateEmailCampaignSender. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this UpdateEmailCampaignSender. - - Sender Name from which the campaign emails are sent # noqa: E501 - - :param name: The name of this UpdateEmailCampaignSender. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def email(self): - """Gets the email of this UpdateEmailCampaignSender. # noqa: E501 - - Sender email from which the campaign emails are sent # noqa: E501 - - :return: The email of this UpdateEmailCampaignSender. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UpdateEmailCampaignSender. - - Sender email from which the campaign emails are sent # noqa: E501 - - :param email: The email of this UpdateEmailCampaignSender. # noqa: E501 - :type: str - """ - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UpdateEmailCampaignSender): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/update_list.py b/sib_api_v3_sdk/models/update_list.py index fc369b7..4f7d613 100644 --- a/sib_api_v3_sdk/models/update_list.py +++ b/sib_api_v3_sdk/models/update_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class UpdateList(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,11 +40,9 @@ class UpdateList(object): def __init__(self, name=None, folder_id=None): # noqa: E501 """UpdateList - a model defined in Swagger""" # noqa: E501 - self._name = None self._folder_id = None self.discriminator = None - if name is not None: self.name = name if folder_id is not None: @@ -119,6 +115,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_sender.py b/sib_api_v3_sdk/models/update_sender.py index ac8df53..4c8fa48 100644 --- a/sib_api_v3_sdk/models/update_sender.py +++ b/sib_api_v3_sdk/models/update_sender.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps # noqa: F401,E501 - class UpdateSender(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -35,7 +31,7 @@ class UpdateSender(object): swagger_types = { 'name': 'str', 'email': 'str', - 'ips': 'list[CreateSenderIps]' + 'ips': 'list[object]' } attribute_map = { @@ -46,12 +42,10 @@ class UpdateSender(object): def __init__(self, name=None, email=None, ips=None): # noqa: E501 """UpdateSender - a model defined in Swagger""" # noqa: E501 - self._name = None self._email = None self._ips = None self.discriminator = None - if name is not None: self.name = name if email is not None: @@ -112,7 +106,7 @@ def ips(self): Only in case of dedicated IP, IPs to associate to the sender. If passed, will replace all the existing IPs. # noqa: E501 :return: The ips of this UpdateSender. # noqa: E501 - :rtype: list[CreateSenderIps] + :rtype: list[object] """ return self._ips @@ -123,7 +117,7 @@ def ips(self, ips): Only in case of dedicated IP, IPs to associate to the sender. If passed, will replace all the existing IPs. # noqa: E501 :param ips: The ips of this UpdateSender. # noqa: E501 - :type: list[CreateSenderIps] + :type: list[object] """ self._ips = ips @@ -149,6 +143,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_sms_campaign.py b/sib_api_v3_sdk/models/update_sms_campaign.py index 5e7efc3..7000f68 100644 --- a/sib_api_v3_sdk/models/update_sms_campaign.py +++ b/sib_api_v3_sdk/models/update_sms_campaign.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.create_sms_campaign_recipients import CreateSmsCampaignRecipients # noqa: F401,E501 - class UpdateSmsCampaign(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -36,7 +32,7 @@ class UpdateSmsCampaign(object): 'name': 'str', 'sender': 'str', 'content': 'str', - 'recipients': 'CreateSmsCampaignRecipients', + 'recipients': 'object', 'scheduled_at': 'datetime' } @@ -50,14 +46,12 @@ class UpdateSmsCampaign(object): def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None): # noqa: E501 """UpdateSmsCampaign - a model defined in Swagger""" # noqa: E501 - self._name = None self._sender = None self._content = None self._recipients = None self._scheduled_at = None self.discriminator = None - if name is not None: self.name = name if sender is not None: @@ -112,8 +106,6 @@ def sender(self, sender): :param sender: The sender of this UpdateSmsCampaign. # noqa: E501 :type: str """ - if sender is not None and len(sender) > 11: - raise ValueError("Invalid value for `sender`, length must be less than or equal to `11`") # noqa: E501 self._sender = sender @@ -146,7 +138,7 @@ def recipients(self): :return: The recipients of this UpdateSmsCampaign. # noqa: E501 - :rtype: CreateSmsCampaignRecipients + :rtype: object """ return self._recipients @@ -156,7 +148,7 @@ def recipients(self, recipients): :param recipients: The recipients of this UpdateSmsCampaign. # noqa: E501 - :type: CreateSmsCampaignRecipients + :type: object """ self._recipients = recipients @@ -205,6 +197,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateSmsCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_smtp_template.py b/sib_api_v3_sdk/models/update_smtp_template.py index 02ef100..e083b14 100644 --- a/sib_api_v3_sdk/models/update_smtp_template.py +++ b/sib_api_v3_sdk/models/update_smtp_template.py @@ -10,21 +10,17 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from sib_api_v3_sdk.models.update_smtp_template_sender import UpdateSmtpTemplateSender # noqa: F401,E501 - class UpdateSmtpTemplate(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -34,7 +30,7 @@ class UpdateSmtpTemplate(object): """ swagger_types = { 'tag': 'str', - 'sender': 'UpdateSmtpTemplateSender', + 'sender': 'object', 'template_name': 'str', 'html_content': 'str', 'html_url': 'str', @@ -60,7 +56,6 @@ class UpdateSmtpTemplate(object): def __init__(self, tag=None, sender=None, template_name=None, html_content=None, html_url=None, subject=None, reply_to=None, to_field=None, attachment_url=None, is_active=None): # noqa: E501 """UpdateSmtpTemplate - a model defined in Swagger""" # noqa: E501 - self._tag = None self._sender = None self._template_name = None @@ -72,7 +67,6 @@ def __init__(self, tag=None, sender=None, template_name=None, html_content=None, self._attachment_url = None self._is_active = None self.discriminator = None - if tag is not None: self.tag = tag if sender is not None: @@ -121,9 +115,10 @@ def tag(self, tag): def sender(self): """Gets the sender of this UpdateSmtpTemplate. # noqa: E501 + Sender details including email and/or name. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` # noqa: E501 :return: The sender of this UpdateSmtpTemplate. # noqa: E501 - :rtype: UpdateSmtpTemplateSender + :rtype: object """ return self._sender @@ -131,9 +126,10 @@ def sender(self): def sender(self, sender): """Sets the sender of this UpdateSmtpTemplate. + Sender details including email and/or name. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` # noqa: E501 :param sender: The sender of this UpdateSmtpTemplate. # noqa: E501 - :type: UpdateSmtpTemplateSender + :type: object """ self._sender = sender @@ -343,6 +339,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateSmtpTemplate, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_smtp_template_sender.py b/sib_api_v3_sdk/models/update_smtp_template_sender.py deleted file mode 100644 index b42235b..0000000 --- a/sib_api_v3_sdk/models/update_smtp_template_sender.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class UpdateSmtpTemplateSender(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'email': 'str' - } - - attribute_map = { - 'name': 'name', - 'email': 'email' - } - - def __init__(self, name=None, email=None): # noqa: E501 - """UpdateSmtpTemplateSender - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._email = None - self.discriminator = None - - if name is not None: - self.name = name - if email is not None: - self.email = email - - @property - def name(self): - """Gets the name of this UpdateSmtpTemplateSender. # noqa: E501 - - Name of the sender # noqa: E501 - - :return: The name of this UpdateSmtpTemplateSender. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this UpdateSmtpTemplateSender. - - Name of the sender # noqa: E501 - - :param name: The name of this UpdateSmtpTemplateSender. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def email(self): - """Gets the email of this UpdateSmtpTemplateSender. # noqa: E501 - - Email of the sender # noqa: E501 - - :return: The email of this UpdateSmtpTemplateSender. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UpdateSmtpTemplateSender. - - Email of the sender # noqa: E501 - - :param email: The email of this UpdateSmtpTemplateSender. # noqa: E501 - :type: str - """ - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UpdateSmtpTemplateSender): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/update_webhook.py b/sib_api_v3_sdk/models/update_webhook.py index 118bde6..fc00c8d 100644 --- a/sib_api_v3_sdk/models/update_webhook.py +++ b/sib_api_v3_sdk/models/update_webhook.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 @@ -22,7 +21,6 @@ class UpdateWebhook(object): Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,12 +42,10 @@ class UpdateWebhook(object): def __init__(self, url=None, description=None, events=None): # noqa: E501 """UpdateWebhook - a model defined in Swagger""" # noqa: E501 - self._url = None self._description = None self._events = None self.discriminator = None - if url is not None: self.url = url if description is not None: @@ -154,6 +150,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateWebhook, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/rest.py b/sib_api_v3_sdk/rest.py index aa3f8ab..ae7a019 100644 --- a/sib_api_v3_sdk/rest.py +++ b/sib_api_v3_sdk/rest.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import io diff --git a/test/test_account_api.py b/test/test_account_api.py index 2c05b1f..1407426 100644 --- a/test/test_account_api.py +++ b/test/test_account_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_add_contact_to_list.py b/test/test_add_contact_to_list.py index 5f0c4c2..0c77352 100644 --- a/test/test_add_contact_to_list.py +++ b/test/test_add_contact_to_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_add_credits.py b/test/test_add_credits.py index bca1299..1594218 100644 --- a/test/test_add_credits.py +++ b/test/test_add_credits.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_attributes_api.py b/test/test_attributes_api.py index 4a39560..0be9acc 100644 --- a/test/test_attributes_api.py +++ b/test/test_attributes_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_contacts_api.py b/test/test_contacts_api.py index d8c7911..e71e317 100644 --- a/test/test_contacts_api.py +++ b/test/test_contacts_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_attribute.py b/test/test_create_attribute.py index 762a037..ca7b18e 100644 --- a/test/test_create_attribute.py +++ b/test/test_create_attribute.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_attribute_enumeration.py b/test/test_create_attribute_enumeration.py deleted file mode 100644 index 354cb84..0000000 --- a/test/test_create_attribute_enumeration.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.create_attribute_enumeration import CreateAttributeEnumeration # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestCreateAttributeEnumeration(unittest.TestCase): - """CreateAttributeEnumeration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreateAttributeEnumeration(self): - """Test CreateAttributeEnumeration""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.create_attribute_enumeration.CreateAttributeEnumeration() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_child.py b/test/test_create_child.py index dddab7b..e2cfa52 100644 --- a/test/test_create_child.py +++ b/test/test_create_child.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_contact.py b/test/test_create_contact.py index 27bcf04..ab8b707 100644 --- a/test/test_create_contact.py +++ b/test/test_create_contact.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_email_campaign.py b/test/test_create_email_campaign.py index ab10a33..683c3c7 100644 --- a/test/test_create_email_campaign.py +++ b/test/test_create_email_campaign.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_email_campaign_recipients.py b/test/test_create_email_campaign_recipients.py deleted file mode 100644 index d5825ad..0000000 --- a/test/test_create_email_campaign_recipients.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.create_email_campaign_recipients import CreateEmailCampaignRecipients # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestCreateEmailCampaignRecipients(unittest.TestCase): - """CreateEmailCampaignRecipients unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreateEmailCampaignRecipients(self): - """Test CreateEmailCampaignRecipients""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.create_email_campaign_recipients.CreateEmailCampaignRecipients() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_email_campaign_sender.py b/test/test_create_email_campaign_sender.py deleted file mode 100644 index fb2cfc6..0000000 --- a/test/test_create_email_campaign_sender.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.create_email_campaign_sender import CreateEmailCampaignSender # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestCreateEmailCampaignSender(unittest.TestCase): - """CreateEmailCampaignSender unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreateEmailCampaignSender(self): - """Test CreateEmailCampaignSender""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.create_email_campaign_sender.CreateEmailCampaignSender() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_list.py b/test/test_create_list.py index 7072e77..10e9088 100644 --- a/test/test_create_list.py +++ b/test/test_create_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_model.py b/test/test_create_model.py index 95c58d8..fba457f 100644 --- a/test/test_create_model.py +++ b/test/test_create_model.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_reseller.py b/test/test_create_reseller.py index 7aa350e..252298b 100644 --- a/test/test_create_reseller.py +++ b/test/test_create_reseller.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_sender.py b/test/test_create_sender.py index 7920305..c340fbc 100644 --- a/test/test_create_sender.py +++ b/test/test_create_sender.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_sender_ips.py b/test/test_create_sender_ips.py deleted file mode 100644 index e339820..0000000 --- a/test/test_create_sender_ips.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestCreateSenderIps(unittest.TestCase): - """CreateSenderIps unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreateSenderIps(self): - """Test CreateSenderIps""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.create_sender_ips.CreateSenderIps() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_sender_model.py b/test/test_create_sender_model.py index 9da3326..230b817 100644 --- a/test/test_create_sender_model.py +++ b/test/test_create_sender_model.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_sms_campaign.py b/test/test_create_sms_campaign.py index ee184af..5f2556a 100644 --- a/test/test_create_sms_campaign.py +++ b/test/test_create_sms_campaign.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_sms_campaign_recipients.py b/test/test_create_sms_campaign_recipients.py deleted file mode 100644 index 4f3113d..0000000 --- a/test/test_create_sms_campaign_recipients.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.create_sms_campaign_recipients import CreateSmsCampaignRecipients # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestCreateSmsCampaignRecipients(unittest.TestCase): - """CreateSmsCampaignRecipients unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreateSmsCampaignRecipients(self): - """Test CreateSmsCampaignRecipients""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.create_sms_campaign_recipients.CreateSmsCampaignRecipients() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_smtp_email.py b/test/test_create_smtp_email.py index b944b7c..0fb36a0 100644 --- a/test/test_create_smtp_email.py +++ b/test/test_create_smtp_email.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_smtp_template.py b/test/test_create_smtp_template.py index 798a652..e534e01 100644 --- a/test/test_create_smtp_template.py +++ b/test/test_create_smtp_template.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_smtp_template_sender.py b/test/test_create_smtp_template_sender.py deleted file mode 100644 index d080b81..0000000 --- a/test/test_create_smtp_template_sender.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.create_smtp_template_sender import CreateSmtpTemplateSender # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestCreateSmtpTemplateSender(unittest.TestCase): - """CreateSmtpTemplateSender unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreateSmtpTemplateSender(self): - """Test CreateSmtpTemplateSender""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.create_smtp_template_sender.CreateSmtpTemplateSender() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_update_contact_model.py b/test/test_create_update_contact_model.py index f2c650b..c9e5d22 100644 --- a/test/test_create_update_contact_model.py +++ b/test/test_create_update_contact_model.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_update_folder.py b/test/test_create_update_folder.py index dc637a9..5b151e2 100644 --- a/test/test_create_update_folder.py +++ b/test/test_create_update_folder.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_create_webhook.py b/test/test_create_webhook.py index 8142a77..60499d3 100644 --- a/test/test_create_webhook.py +++ b/test/test_create_webhook.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_created_process_id.py b/test/test_created_process_id.py index 82e01f7..9b28473 100644 --- a/test/test_created_process_id.py +++ b/test/test_created_process_id.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_delete_hardbounces.py b/test/test_delete_hardbounces.py index c23db41..63a57cc 100644 --- a/test/test_delete_hardbounces.py +++ b/test/test_delete_hardbounces.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_email_campaigns_api.py b/test/test_email_campaigns_api.py index 2a87388..54df051 100644 --- a/test/test_email_campaigns_api.py +++ b/test/test_email_campaigns_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_email_export_recipients.py b/test/test_email_export_recipients.py index aa50506..c365e1b 100644 --- a/test/test_email_export_recipients.py +++ b/test/test_email_export_recipients.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_error_model.py b/test/test_error_model.py index 719be9f..3c182d6 100644 --- a/test/test_error_model.py +++ b/test/test_error_model.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_folders_api.py b/test/test_folders_api.py index 8e89383..f00655c 100644 --- a/test/test_folders_api.py +++ b/test/test_folders_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_account.py b/test/test_get_account.py index 5397754..f22315e 100644 --- a/test/test_get_account.py +++ b/test/test_get_account.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_account_marketing_automation.py b/test/test_get_account_marketing_automation.py deleted file mode 100644 index bfcbe17..0000000 --- a/test/test_get_account_marketing_automation.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_account_marketing_automation import GetAccountMarketingAutomation # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetAccountMarketingAutomation(unittest.TestCase): - """GetAccountMarketingAutomation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetAccountMarketingAutomation(self): - """Test GetAccountMarketingAutomation""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_account_marketing_automation.GetAccountMarketingAutomation() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_account_plan.py b/test/test_get_account_plan.py deleted file mode 100644 index f702a49..0000000 --- a/test/test_get_account_plan.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_account_plan import GetAccountPlan # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetAccountPlan(unittest.TestCase): - """GetAccountPlan unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetAccountPlan(self): - """Test GetAccountPlan""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_account_plan.GetAccountPlan() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_account_relay.py b/test/test_get_account_relay.py deleted file mode 100644 index 9422aea..0000000 --- a/test/test_get_account_relay.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_account_relay import GetAccountRelay # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetAccountRelay(unittest.TestCase): - """GetAccountRelay unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetAccountRelay(self): - """Test GetAccountRelay""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_account_relay.GetAccountRelay() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_account_relay_data.py b/test/test_get_account_relay_data.py deleted file mode 100644 index 8f80cd4..0000000 --- a/test/test_get_account_relay_data.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_account_relay_data import GetAccountRelayData # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetAccountRelayData(unittest.TestCase): - """GetAccountRelayData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetAccountRelayData(self): - """Test GetAccountRelayData""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_account_relay_data.GetAccountRelayData() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_aggregated_report.py b/test/test_get_aggregated_report.py index d13f991..9e13239 100644 --- a/test/test_get_aggregated_report.py +++ b/test/test_get_aggregated_report.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_attributes.py b/test/test_get_attributes.py index b17f531..d7fa841 100644 --- a/test/test_get_attributes.py +++ b/test/test_get_attributes.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_attributes_attributes.py b/test/test_get_attributes_attributes.py deleted file mode 100644 index c047192..0000000 --- a/test/test_get_attributes_attributes.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_attributes_attributes import GetAttributesAttributes # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetAttributesAttributes(unittest.TestCase): - """GetAttributesAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetAttributesAttributes(self): - """Test GetAttributesAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_attributes_attributes.GetAttributesAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_attributes_enumeration.py b/test/test_get_attributes_enumeration.py deleted file mode 100644 index df6a29a..0000000 --- a/test/test_get_attributes_enumeration.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_attributes_enumeration import GetAttributesEnumeration # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetAttributesEnumeration(unittest.TestCase): - """GetAttributesEnumeration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetAttributesEnumeration(self): - """Test GetAttributesEnumeration""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_attributes_enumeration.GetAttributesEnumeration() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_campaign_overview.py b/test/test_get_campaign_overview.py index a302896..0248379 100644 --- a/test/test_get_campaign_overview.py +++ b/test/test_get_campaign_overview.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_campaign_recipients.py b/test/test_get_campaign_recipients.py index ae52a46..72ec136 100644 --- a/test/test_get_campaign_recipients.py +++ b/test/test_get_campaign_recipients.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_campaign_stats.py b/test/test_get_campaign_stats.py index b5edc43..46411e4 100644 --- a/test/test_get_campaign_stats.py +++ b/test/test_get_campaign_stats.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_child_info.py b/test/test_get_child_info.py index 268869d..880f943 100644 --- a/test/test_get_child_info.py +++ b/test/test_get_child_info.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_child_info_api_keys.py b/test/test_get_child_info_api_keys.py deleted file mode 100644 index f1a5896..0000000 --- a/test/test_get_child_info_api_keys.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_child_info_api_keys import GetChildInfoApiKeys # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetChildInfoApiKeys(unittest.TestCase): - """GetChildInfoApiKeys unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetChildInfoApiKeys(self): - """Test GetChildInfoApiKeys""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_child_info_api_keys.GetChildInfoApiKeys() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_child_info_api_keys_v2.py b/test/test_get_child_info_api_keys_v2.py deleted file mode 100644 index 43eddab..0000000 --- a/test/test_get_child_info_api_keys_v2.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_child_info_api_keys_v2 import GetChildInfoApiKeysV2 # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetChildInfoApiKeysV2(unittest.TestCase): - """GetChildInfoApiKeysV2 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetChildInfoApiKeysV2(self): - """Test GetChildInfoApiKeysV2""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_child_info_api_keys_v2.GetChildInfoApiKeysV2() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_child_info_api_keys_v3.py b/test/test_get_child_info_api_keys_v3.py deleted file mode 100644 index 1710e11..0000000 --- a/test/test_get_child_info_api_keys_v3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_child_info_api_keys_v3 import GetChildInfoApiKeysV3 # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetChildInfoApiKeysV3(unittest.TestCase): - """GetChildInfoApiKeysV3 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetChildInfoApiKeysV3(self): - """Test GetChildInfoApiKeysV3""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_child_info_api_keys_v3.GetChildInfoApiKeysV3() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_child_info_credits.py b/test/test_get_child_info_credits.py deleted file mode 100644 index a9d4449..0000000 --- a/test/test_get_child_info_credits.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_child_info_credits import GetChildInfoCredits # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetChildInfoCredits(unittest.TestCase): - """GetChildInfoCredits unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetChildInfoCredits(self): - """Test GetChildInfoCredits""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_child_info_credits.GetChildInfoCredits() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_child_info_statistics.py b/test/test_get_child_info_statistics.py deleted file mode 100644 index 2cd3754..0000000 --- a/test/test_get_child_info_statistics.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_child_info_statistics import GetChildInfoStatistics # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetChildInfoStatistics(unittest.TestCase): - """GetChildInfoStatistics unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetChildInfoStatistics(self): - """Test GetChildInfoStatistics""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_child_info_statistics.GetChildInfoStatistics() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_children_list.py b/test/test_get_children_list.py index c05c219..370ddb3 100644 --- a/test/test_get_children_list.py +++ b/test/test_get_children_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_client.py b/test/test_get_client.py index 35d968a..7ad6033 100644 --- a/test/test_get_client.py +++ b/test/test_get_client.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_contact_campaign_stats.py b/test/test_get_contact_campaign_stats.py index e5e7762..ae2efce 100644 --- a/test/test_get_contact_campaign_stats.py +++ b/test/test_get_contact_campaign_stats.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_contact_campaign_stats_clicked.py b/test/test_get_contact_campaign_stats_clicked.py deleted file mode 100644 index 613d6ed..0000000 --- a/test/test_get_contact_campaign_stats_clicked.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_contact_campaign_stats_clicked import GetContactCampaignStatsClicked # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetContactCampaignStatsClicked(unittest.TestCase): - """GetContactCampaignStatsClicked unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetContactCampaignStatsClicked(self): - """Test GetContactCampaignStatsClicked""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_contact_campaign_stats_clicked.GetContactCampaignStatsClicked() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_contact_campaign_stats_opened.py b/test/test_get_contact_campaign_stats_opened.py deleted file mode 100644 index 2690e34..0000000 --- a/test/test_get_contact_campaign_stats_opened.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_contact_campaign_stats_opened import GetContactCampaignStatsOpened # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetContactCampaignStatsOpened(unittest.TestCase): - """GetContactCampaignStatsOpened unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetContactCampaignStatsOpened(self): - """Test GetContactCampaignStatsOpened""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_contact_campaign_stats_opened.GetContactCampaignStatsOpened() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_contact_campaign_stats_transac_attributes.py b/test/test_get_contact_campaign_stats_transac_attributes.py deleted file mode 100644 index f9ed2bc..0000000 --- a/test/test_get_contact_campaign_stats_transac_attributes.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes import GetContactCampaignStatsTransacAttributes # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetContactCampaignStatsTransacAttributes(unittest.TestCase): - """GetContactCampaignStatsTransacAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetContactCampaignStatsTransacAttributes(self): - """Test GetContactCampaignStatsTransacAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes.GetContactCampaignStatsTransacAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_contact_campaign_stats_unsubscriptions.py b/test/test_get_contact_campaign_stats_unsubscriptions.py deleted file mode 100644 index 417b14a..0000000 --- a/test/test_get_contact_campaign_stats_unsubscriptions.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions import GetContactCampaignStatsUnsubscriptions # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetContactCampaignStatsUnsubscriptions(unittest.TestCase): - """GetContactCampaignStatsUnsubscriptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetContactCampaignStatsUnsubscriptions(self): - """Test GetContactCampaignStatsUnsubscriptions""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions.GetContactCampaignStatsUnsubscriptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_contact_details.py b/test/test_get_contact_details.py index d35f769..14674e3 100644 --- a/test/test_get_contact_details.py +++ b/test/test_get_contact_details.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_contacts.py b/test/test_get_contacts.py index 8392d9e..2b2f00f 100644 --- a/test/test_get_contacts.py +++ b/test/test_get_contacts.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_email_campaign.py b/test/test_get_email_campaign.py index 658dfbd..1020ebe 100644 --- a/test/test_get_email_campaign.py +++ b/test/test_get_email_campaign.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_email_campaigns.py b/test/test_get_email_campaigns.py index dd552b7..9f56d93 100644 --- a/test/test_get_email_campaigns.py +++ b/test/test_get_email_campaigns.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_email_event_report.py b/test/test_get_email_event_report.py index a91ec2a..3435ad4 100644 --- a/test/test_get_email_event_report.py +++ b/test/test_get_email_event_report.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_email_event_report_events.py b/test/test_get_email_event_report_events.py deleted file mode 100644 index 579d2c4..0000000 --- a/test/test_get_email_event_report_events.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_email_event_report_events import GetEmailEventReportEvents # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetEmailEventReportEvents(unittest.TestCase): - """GetEmailEventReportEvents unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetEmailEventReportEvents(self): - """Test GetEmailEventReportEvents""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_email_event_report_events.GetEmailEventReportEvents() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_campaign_overview.py b/test/test_get_extended_campaign_overview.py index 84c742b..4515952 100644 --- a/test/test_get_extended_campaign_overview.py +++ b/test/test_get_extended_campaign_overview.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_extended_campaign_overview_sender.py b/test/test_get_extended_campaign_overview_sender.py deleted file mode 100644 index 808a550..0000000 --- a/test/test_get_extended_campaign_overview_sender.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_campaign_overview_sender import GetExtendedCampaignOverviewSender # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedCampaignOverviewSender(unittest.TestCase): - """GetExtendedCampaignOverviewSender unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedCampaignOverviewSender(self): - """Test GetExtendedCampaignOverviewSender""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_campaign_overview_sender.GetExtendedCampaignOverviewSender() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_campaign_stats.py b/test/test_get_extended_campaign_stats.py index d5101f5..20f204f 100644 --- a/test/test_get_extended_campaign_stats.py +++ b/test/test_get_extended_campaign_stats.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_extended_client.py b/test/test_get_extended_client.py index c044d78..2130ee6 100644 --- a/test/test_get_extended_client.py +++ b/test/test_get_extended_client.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_extended_client_address.py b/test/test_get_extended_client_address.py deleted file mode 100644 index 7554630..0000000 --- a/test/test_get_extended_client_address.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_client_address import GetExtendedClientAddress # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedClientAddress(unittest.TestCase): - """GetExtendedClientAddress unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedClientAddress(self): - """Test GetExtendedClientAddress""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_client_address.GetExtendedClientAddress() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_contact_details.py b/test/test_get_extended_contact_details.py index e1c633a..a712619 100644 --- a/test/test_get_extended_contact_details.py +++ b/test/test_get_extended_contact_details.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_extended_contact_details_statistics.py b/test/test_get_extended_contact_details_statistics.py deleted file mode 100644 index 790e2c0..0000000 --- a/test/test_get_extended_contact_details_statistics.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_contact_details_statistics import GetExtendedContactDetailsStatistics # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedContactDetailsStatistics(unittest.TestCase): - """GetExtendedContactDetailsStatistics unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedContactDetailsStatistics(self): - """Test GetExtendedContactDetailsStatistics""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_contact_details_statistics.GetExtendedContactDetailsStatistics() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_contact_details_statistics_clicked.py b/test/test_get_extended_contact_details_statistics_clicked.py deleted file mode 100644 index 17e7e69..0000000 --- a/test/test_get_extended_contact_details_statistics_clicked.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_clicked import GetExtendedContactDetailsStatisticsClicked # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedContactDetailsStatisticsClicked(unittest.TestCase): - """GetExtendedContactDetailsStatisticsClicked unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedContactDetailsStatisticsClicked(self): - """Test GetExtendedContactDetailsStatisticsClicked""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_contact_details_statistics_clicked.GetExtendedContactDetailsStatisticsClicked() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_contact_details_statistics_links.py b/test/test_get_extended_contact_details_statistics_links.py deleted file mode 100644 index c8903ed..0000000 --- a/test/test_get_extended_contact_details_statistics_links.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_links import GetExtendedContactDetailsStatisticsLinks # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedContactDetailsStatisticsLinks(unittest.TestCase): - """GetExtendedContactDetailsStatisticsLinks unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedContactDetailsStatisticsLinks(self): - """Test GetExtendedContactDetailsStatisticsLinks""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_contact_details_statistics_links.GetExtendedContactDetailsStatisticsLinks() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_contact_details_statistics_messages_sent.py b/test/test_get_extended_contact_details_statistics_messages_sent.py deleted file mode 100644 index 68a77bc..0000000 --- a/test/test_get_extended_contact_details_statistics_messages_sent.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_messages_sent import GetExtendedContactDetailsStatisticsMessagesSent # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedContactDetailsStatisticsMessagesSent(unittest.TestCase): - """GetExtendedContactDetailsStatisticsMessagesSent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedContactDetailsStatisticsMessagesSent(self): - """Test GetExtendedContactDetailsStatisticsMessagesSent""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_contact_details_statistics_messages_sent.GetExtendedContactDetailsStatisticsMessagesSent() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_contact_details_statistics_opened.py b/test/test_get_extended_contact_details_statistics_opened.py deleted file mode 100644 index fcff491..0000000 --- a/test/test_get_extended_contact_details_statistics_opened.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_opened import GetExtendedContactDetailsStatisticsOpened # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedContactDetailsStatisticsOpened(unittest.TestCase): - """GetExtendedContactDetailsStatisticsOpened unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedContactDetailsStatisticsOpened(self): - """Test GetExtendedContactDetailsStatisticsOpened""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_contact_details_statistics_opened.GetExtendedContactDetailsStatisticsOpened() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_contact_details_statistics_unsubscriptions.py b/test/test_get_extended_contact_details_statistics_unsubscriptions.py deleted file mode 100644 index c0a1c01..0000000 --- a/test/test_get_extended_contact_details_statistics_unsubscriptions.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions import GetExtendedContactDetailsStatisticsUnsubscriptions # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedContactDetailsStatisticsUnsubscriptions(unittest.TestCase): - """GetExtendedContactDetailsStatisticsUnsubscriptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedContactDetailsStatisticsUnsubscriptions(self): - """Test GetExtendedContactDetailsStatisticsUnsubscriptions""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions.GetExtendedContactDetailsStatisticsUnsubscriptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py b/test/test_get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py deleted file mode 100644 index 591b34e..0000000 --- a/test/test_get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription(unittest.TestCase): - """GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription(self): - """Test GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py b/test/test_get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py deleted file mode 100644 index 812b384..0000000 --- a/test/test_get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_user_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription(unittest.TestCase): - """GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription(self): - """Test GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_extended_list.py b/test/test_get_extended_list.py index 953ffd8..7a6f4dc 100644 --- a/test/test_get_extended_list.py +++ b/test/test_get_extended_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_extended_list_campaign_stats.py b/test/test_get_extended_list_campaign_stats.py deleted file mode 100644 index 6260c39..0000000 --- a/test/test_get_extended_list_campaign_stats.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_extended_list_campaign_stats import GetExtendedListCampaignStats # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetExtendedListCampaignStats(unittest.TestCase): - """GetExtendedListCampaignStats unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetExtendedListCampaignStats(self): - """Test GetExtendedListCampaignStats""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_extended_list_campaign_stats.GetExtendedListCampaignStats() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_folder.py b/test/test_get_folder.py index c6a46d2..0ecb2ca 100644 --- a/test/test_get_folder.py +++ b/test/test_get_folder.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_folder_lists.py b/test/test_get_folder_lists.py index 4b08a07..edd7526 100644 --- a/test/test_get_folder_lists.py +++ b/test/test_get_folder_lists.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_folders.py b/test/test_get_folders.py index 5bd922a..7fed8b3 100644 --- a/test/test_get_folders.py +++ b/test/test_get_folders.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_ip.py b/test/test_get_ip.py index ffe3c3b..ac8b370 100644 --- a/test/test_get_ip.py +++ b/test/test_get_ip.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_ip_from_sender.py b/test/test_get_ip_from_sender.py index 7a98138..e71f1c7 100644 --- a/test/test_get_ip_from_sender.py +++ b/test/test_get_ip_from_sender.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_ips.py b/test/test_get_ips.py index 39d9b22..cc171f0 100644 --- a/test/test_get_ips.py +++ b/test/test_get_ips.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_ips_from_sender.py b/test/test_get_ips_from_sender.py index 8eda139..f2c5b74 100644 --- a/test/test_get_ips_from_sender.py +++ b/test/test_get_ips_from_sender.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_list.py b/test/test_get_list.py index 562a008..7e0aa78 100644 --- a/test/test_get_list.py +++ b/test/test_get_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_lists.py b/test/test_get_lists.py index eb37bb7..e90d036 100644 --- a/test/test_get_lists.py +++ b/test/test_get_lists.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_process.py b/test/test_get_process.py index 824accf..fe1d4e0 100644 --- a/test/test_get_process.py +++ b/test/test_get_process.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_processes.py b/test/test_get_processes.py index 16fd96c..9d01686 100644 --- a/test/test_get_processes.py +++ b/test/test_get_processes.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_reports.py b/test/test_get_reports.py index 7abbc6e..bc3388b 100644 --- a/test/test_get_reports.py +++ b/test/test_get_reports.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_reports_reports.py b/test/test_get_reports_reports.py deleted file mode 100644 index 18fab7e..0000000 --- a/test/test_get_reports_reports.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_reports_reports import GetReportsReports # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetReportsReports(unittest.TestCase): - """GetReportsReports unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetReportsReports(self): - """Test GetReportsReports""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_reports_reports.GetReportsReports() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_senders_list.py b/test/test_get_senders_list.py index 38c11b7..d73b5ad 100644 --- a/test/test_get_senders_list.py +++ b/test/test_get_senders_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_senders_list_ips.py b/test/test_get_senders_list_ips.py deleted file mode 100644 index 89d8988..0000000 --- a/test/test_get_senders_list_ips.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_senders_list_ips import GetSendersListIps # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetSendersListIps(unittest.TestCase): - """GetSendersListIps unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetSendersListIps(self): - """Test GetSendersListIps""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_senders_list_ips.GetSendersListIps() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_senders_list_senders.py b/test/test_get_senders_list_senders.py deleted file mode 100644 index 139deef..0000000 --- a/test/test_get_senders_list_senders.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_senders_list_senders import GetSendersListSenders # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetSendersListSenders(unittest.TestCase): - """GetSendersListSenders unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetSendersListSenders(self): - """Test GetSendersListSenders""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_senders_list_senders.GetSendersListSenders() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_sms_campaign.py b/test/test_get_sms_campaign.py index 68527d1..3c7cd44 100644 --- a/test/test_get_sms_campaign.py +++ b/test/test_get_sms_campaign.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_sms_campaign_overview.py b/test/test_get_sms_campaign_overview.py index e84f9e8..8846b9e 100644 --- a/test/test_get_sms_campaign_overview.py +++ b/test/test_get_sms_campaign_overview.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_sms_campaign_stats.py b/test/test_get_sms_campaign_stats.py index 52c1380..4e8c0f1 100644 --- a/test/test_get_sms_campaign_stats.py +++ b/test/test_get_sms_campaign_stats.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_sms_campaigns.py b/test/test_get_sms_campaigns.py index 02f28e2..a34423a 100644 --- a/test/test_get_sms_campaigns.py +++ b/test/test_get_sms_campaigns.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_sms_event_report.py b/test/test_get_sms_event_report.py index 961a7ca..af54fd0 100644 --- a/test/test_get_sms_event_report.py +++ b/test/test_get_sms_event_report.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_sms_event_report_events.py b/test/test_get_sms_event_report_events.py deleted file mode 100644 index cefa972..0000000 --- a/test/test_get_sms_event_report_events.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_sms_event_report_events import GetSmsEventReportEvents # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetSmsEventReportEvents(unittest.TestCase): - """GetSmsEventReportEvents unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetSmsEventReportEvents(self): - """Test GetSmsEventReportEvents""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_sms_event_report_events.GetSmsEventReportEvents() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_smtp_template_overview.py b/test/test_get_smtp_template_overview.py index 8a4919c..324b35f 100644 --- a/test/test_get_smtp_template_overview.py +++ b/test/test_get_smtp_template_overview.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_smtp_template_overview_sender.py b/test/test_get_smtp_template_overview_sender.py deleted file mode 100644 index 6837c43..0000000 --- a/test/test_get_smtp_template_overview_sender.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_smtp_template_overview_sender import GetSmtpTemplateOverviewSender # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetSmtpTemplateOverviewSender(unittest.TestCase): - """GetSmtpTemplateOverviewSender unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetSmtpTemplateOverviewSender(self): - """Test GetSmtpTemplateOverviewSender""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_smtp_template_overview_sender.GetSmtpTemplateOverviewSender() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_smtp_templates.py b/test/test_get_smtp_templates.py index dc40ef5..48ac8c0 100644 --- a/test/test_get_smtp_templates.py +++ b/test/test_get_smtp_templates.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_stats_by_domain.py b/test/test_get_stats_by_domain.py index e129e07..225f354 100644 --- a/test/test_get_stats_by_domain.py +++ b/test/test_get_stats_by_domain.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_transac_aggregated_sms_report.py b/test/test_get_transac_aggregated_sms_report.py index 2c04782..a39110b 100644 --- a/test/test_get_transac_aggregated_sms_report.py +++ b/test/test_get_transac_aggregated_sms_report.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_transac_sms_report.py b/test/test_get_transac_sms_report.py index abd88a8..18611d0 100644 --- a/test/test_get_transac_sms_report.py +++ b/test/test_get_transac_sms_report.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_transac_sms_report_reports.py b/test/test_get_transac_sms_report_reports.py deleted file mode 100644 index 70c9791..0000000 --- a/test/test_get_transac_sms_report_reports.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_transac_sms_report_reports import GetTransacSmsReportReports # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestGetTransacSmsReportReports(unittest.TestCase): - """GetTransacSmsReportReports unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetTransacSmsReportReports(self): - """Test GetTransacSmsReportReports""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_transac_sms_report_reports.GetTransacSmsReportReports() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_webhook.py b/test/test_get_webhook.py index efcc194..118e1fa 100644 --- a/test/test_get_webhook.py +++ b/test/test_get_webhook.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_get_webhooks.py b/test/test_get_webhooks.py index 84447bb..c83ea53 100644 --- a/test/test_get_webhooks.py +++ b/test/test_get_webhooks.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_lists_api.py b/test/test_lists_api.py index d058b66..1e40350 100644 --- a/test/test_lists_api.py +++ b/test/test_lists_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_manage_ip.py b/test/test_manage_ip.py index e907b70..6fe4740 100644 --- a/test/test_manage_ip.py +++ b/test/test_manage_ip.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_post_contact_info.py b/test/test_post_contact_info.py index d0d29b5..fda1df6 100644 --- a/test/test_post_contact_info.py +++ b/test/test_post_contact_info.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_post_contact_info_contacts.py b/test/test_post_contact_info_contacts.py deleted file mode 100644 index 5558666..0000000 --- a/test/test_post_contact_info_contacts.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.post_contact_info_contacts import PostContactInfoContacts # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestPostContactInfoContacts(unittest.TestCase): - """PostContactInfoContacts unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPostContactInfoContacts(self): - """Test PostContactInfoContacts""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.post_contact_info_contacts.PostContactInfoContacts() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_post_send_failed.py b/test/test_post_send_failed.py index e5a74cf..091b09a 100644 --- a/test/test_post_send_failed.py +++ b/test/test_post_send_failed.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_post_send_sms_test_failed.py b/test/test_post_send_sms_test_failed.py index 3360faa..ff1a3f2 100644 --- a/test/test_post_send_sms_test_failed.py +++ b/test/test_post_send_sms_test_failed.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_process_api.py b/test/test_process_api.py index e1de5d2..1f36925 100644 --- a/test/test_process_api.py +++ b/test/test_process_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_remaining_credit_model.py b/test/test_remaining_credit_model.py index a878f61..9590961 100644 --- a/test/test_remaining_credit_model.py +++ b/test/test_remaining_credit_model.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_remaining_credit_model_child.py b/test/test_remaining_credit_model_child.py deleted file mode 100644 index 9f3a6e0..0000000 --- a/test/test_remaining_credit_model_child.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.remaining_credit_model_child import RemainingCreditModelChild # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestRemainingCreditModelChild(unittest.TestCase): - """RemainingCreditModelChild unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRemainingCreditModelChild(self): - """Test RemainingCreditModelChild""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.remaining_credit_model_child.RemainingCreditModelChild() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_remaining_credit_model_reseller.py b/test/test_remaining_credit_model_reseller.py deleted file mode 100644 index b083d72..0000000 --- a/test/test_remaining_credit_model_reseller.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.remaining_credit_model_reseller import RemainingCreditModelReseller # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestRemainingCreditModelReseller(unittest.TestCase): - """RemainingCreditModelReseller unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRemainingCreditModelReseller(self): - """Test RemainingCreditModelReseller""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.remaining_credit_model_reseller.RemainingCreditModelReseller() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_remove_contact_from_list.py b/test/test_remove_contact_from_list.py index 637c10a..3a76c03 100644 --- a/test/test_remove_contact_from_list.py +++ b/test/test_remove_contact_from_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_remove_credits.py b/test/test_remove_credits.py index abf22fa..8f9b481 100644 --- a/test/test_remove_credits.py +++ b/test/test_remove_credits.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_request_contact_export.py b/test/test_request_contact_export.py index 2c18734..4137304 100644 --- a/test/test_request_contact_export.py +++ b/test/test_request_contact_export.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_request_contact_import.py b/test/test_request_contact_import.py index ec7941d..79c7340 100644 --- a/test/test_request_contact_import.py +++ b/test/test_request_contact_import.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_request_contact_import_new_list.py b/test/test_request_contact_import_new_list.py deleted file mode 100644 index 0b2119d..0000000 --- a/test/test_request_contact_import_new_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.request_contact_import_new_list import RequestContactImportNewList # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestRequestContactImportNewList(unittest.TestCase): - """RequestContactImportNewList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRequestContactImportNewList(self): - """Test RequestContactImportNewList""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.request_contact_import_new_list.RequestContactImportNewList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_request_sms_recipient_export.py b/test/test_request_sms_recipient_export.py index f3d65eb..134b4ba 100644 --- a/test/test_request_sms_recipient_export.py +++ b/test/test_request_sms_recipient_export.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_reseller_api.py b/test/test_reseller_api.py index 15f1d04..d93379d 100644 --- a/test/test_reseller_api.py +++ b/test/test_reseller_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_send_email.py b/test/test_send_email.py index 4f36fa8..85d580b 100644 --- a/test/test_send_email.py +++ b/test/test_send_email.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_send_email_attachment.py b/test/test_send_email_attachment.py deleted file mode 100644 index b9db774..0000000 --- a/test/test_send_email_attachment.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.send_email_attachment import SendEmailAttachment # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestSendEmailAttachment(unittest.TestCase): - """SendEmailAttachment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSendEmailAttachment(self): - """Test SendEmailAttachment""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.send_email_attachment.SendEmailAttachment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_send_report.py b/test/test_send_report.py index 9cf290c..ed5eb47 100644 --- a/test/test_send_report.py +++ b/test/test_send_report.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_send_report_email.py b/test/test_send_report_email.py deleted file mode 100644 index 7945422..0000000 --- a/test/test_send_report_email.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.send_report_email import SendReportEmail # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestSendReportEmail(unittest.TestCase): - """SendReportEmail unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSendReportEmail(self): - """Test SendReportEmail""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.send_report_email.SendReportEmail() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_send_sms.py b/test/test_send_sms.py index c213b9a..15ee0cb 100644 --- a/test/test_send_sms.py +++ b/test/test_send_sms.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_send_smtp_email.py b/test/test_send_smtp_email.py index e04b8d1..2062b01 100644 --- a/test/test_send_smtp_email.py +++ b/test/test_send_smtp_email.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_send_smtp_email_attachment.py b/test/test_send_smtp_email_attachment.py deleted file mode 100644 index ef88804..0000000 --- a/test/test_send_smtp_email_attachment.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.send_smtp_email_attachment import SendSmtpEmailAttachment # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestSendSmtpEmailAttachment(unittest.TestCase): - """SendSmtpEmailAttachment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSendSmtpEmailAttachment(self): - """Test SendSmtpEmailAttachment""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.send_smtp_email_attachment.SendSmtpEmailAttachment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_send_smtp_email_bcc.py b/test/test_send_smtp_email_bcc.py deleted file mode 100644 index ea4cd01..0000000 --- a/test/test_send_smtp_email_bcc.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.send_smtp_email_bcc import SendSmtpEmailBcc # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestSendSmtpEmailBcc(unittest.TestCase): - """SendSmtpEmailBcc unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSendSmtpEmailBcc(self): - """Test SendSmtpEmailBcc""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.send_smtp_email_bcc.SendSmtpEmailBcc() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_send_smtp_email_cc.py b/test/test_send_smtp_email_cc.py deleted file mode 100644 index ad50c07..0000000 --- a/test/test_send_smtp_email_cc.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.send_smtp_email_cc import SendSmtpEmailCc # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestSendSmtpEmailCc(unittest.TestCase): - """SendSmtpEmailCc unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSendSmtpEmailCc(self): - """Test SendSmtpEmailCc""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.send_smtp_email_cc.SendSmtpEmailCc() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_send_smtp_email_reply_to.py b/test/test_send_smtp_email_reply_to.py deleted file mode 100644 index f2a29af..0000000 --- a/test/test_send_smtp_email_reply_to.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.send_smtp_email_reply_to import SendSmtpEmailReplyTo # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestSendSmtpEmailReplyTo(unittest.TestCase): - """SendSmtpEmailReplyTo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSendSmtpEmailReplyTo(self): - """Test SendSmtpEmailReplyTo""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.send_smtp_email_reply_to.SendSmtpEmailReplyTo() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_send_smtp_email_sender.py b/test/test_send_smtp_email_sender.py deleted file mode 100644 index b76d655..0000000 --- a/test/test_send_smtp_email_sender.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.send_smtp_email_sender import SendSmtpEmailSender # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestSendSmtpEmailSender(unittest.TestCase): - """SendSmtpEmailSender unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSendSmtpEmailSender(self): - """Test SendSmtpEmailSender""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.send_smtp_email_sender.SendSmtpEmailSender() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_send_smtp_email_to.py b/test/test_send_smtp_email_to.py deleted file mode 100644 index 1950f52..0000000 --- a/test/test_send_smtp_email_to.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.send_smtp_email_to import SendSmtpEmailTo # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestSendSmtpEmailTo(unittest.TestCase): - """SendSmtpEmailTo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSendSmtpEmailTo(self): - """Test SendSmtpEmailTo""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.send_smtp_email_to.SendSmtpEmailTo() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_send_template_email.py b/test/test_send_template_email.py index 6f9a5b8..a3fd25a 100644 --- a/test/test_send_template_email.py +++ b/test/test_send_template_email.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_send_test_email.py b/test/test_send_test_email.py index ed335b3..39ae499 100644 --- a/test/test_send_test_email.py +++ b/test/test_send_test_email.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_send_test_sms.py b/test/test_send_test_sms.py index df232e5..e028299 100644 --- a/test/test_send_test_sms.py +++ b/test/test_send_test_sms.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_send_transac_sms.py b/test/test_send_transac_sms.py index e23ea60..7142a1f 100644 --- a/test/test_send_transac_sms.py +++ b/test/test_send_transac_sms.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_senders_api.py b/test/test_senders_api.py index 28c1093..6cb316a 100644 --- a/test/test_senders_api.py +++ b/test/test_senders_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_sms_campaigns_api.py b/test/test_sms_campaigns_api.py index 262751e..5c6a8ac 100644 --- a/test/test_sms_campaigns_api.py +++ b/test/test_sms_campaigns_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_smtp_api.py b/test/test_smtp_api.py index 2af2192..e30fb22 100644 --- a/test/test_smtp_api.py +++ b/test/test_smtp_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_transactional_sms_api.py b/test/test_transactional_sms_api.py index 6e3f43f..f7ca92f 100644 --- a/test/test_transactional_sms_api.py +++ b/test/test_transactional_sms_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_update_attribute.py b/test/test_update_attribute.py index e3f304a..2479836 100644 --- a/test/test_update_attribute.py +++ b/test/test_update_attribute.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_update_attribute_enumeration.py b/test/test_update_attribute_enumeration.py deleted file mode 100644 index e059f33..0000000 --- a/test/test_update_attribute_enumeration.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.update_attribute_enumeration import UpdateAttributeEnumeration # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestUpdateAttributeEnumeration(unittest.TestCase): - """UpdateAttributeEnumeration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUpdateAttributeEnumeration(self): - """Test UpdateAttributeEnumeration""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.update_attribute_enumeration.UpdateAttributeEnumeration() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_campaign_status.py b/test/test_update_campaign_status.py index e5ae1a0..9b6da65 100644 --- a/test/test_update_campaign_status.py +++ b/test/test_update_campaign_status.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_update_child.py b/test/test_update_child.py index 1734a55..557e80f 100644 --- a/test/test_update_child.py +++ b/test/test_update_child.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_update_contact.py b/test/test_update_contact.py index 60301d1..e78020d 100644 --- a/test/test_update_contact.py +++ b/test/test_update_contact.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_update_email_campaign.py b/test/test_update_email_campaign.py index d36080d..3b7e91f 100644 --- a/test/test_update_email_campaign.py +++ b/test/test_update_email_campaign.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_update_email_campaign_recipients.py b/test/test_update_email_campaign_recipients.py deleted file mode 100644 index a75d056..0000000 --- a/test/test_update_email_campaign_recipients.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.update_email_campaign_recipients import UpdateEmailCampaignRecipients # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestUpdateEmailCampaignRecipients(unittest.TestCase): - """UpdateEmailCampaignRecipients unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUpdateEmailCampaignRecipients(self): - """Test UpdateEmailCampaignRecipients""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.update_email_campaign_recipients.UpdateEmailCampaignRecipients() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_email_campaign_sender.py b/test/test_update_email_campaign_sender.py deleted file mode 100644 index 37550db..0000000 --- a/test/test_update_email_campaign_sender.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.update_email_campaign_sender import UpdateEmailCampaignSender # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestUpdateEmailCampaignSender(unittest.TestCase): - """UpdateEmailCampaignSender unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUpdateEmailCampaignSender(self): - """Test UpdateEmailCampaignSender""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.update_email_campaign_sender.UpdateEmailCampaignSender() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_list.py b/test/test_update_list.py index 1420036..00dda40 100644 --- a/test/test_update_list.py +++ b/test/test_update_list.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_update_sender.py b/test/test_update_sender.py index dfe9f17..5f6428c 100644 --- a/test/test_update_sender.py +++ b/test/test_update_sender.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_update_sms_campaign.py b/test/test_update_sms_campaign.py index 1f621b3..2cd5d67 100644 --- a/test/test_update_sms_campaign.py +++ b/test/test_update_sms_campaign.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_update_smtp_template.py b/test/test_update_smtp_template.py index b0c3274..9e44f1c 100644 --- a/test/test_update_smtp_template.py +++ b/test/test_update_smtp_template.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_update_smtp_template_sender.py b/test/test_update_smtp_template_sender.py deleted file mode 100644 index 9c474fe..0000000 --- a/test/test_update_smtp_template_sender.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.models.update_smtp_template_sender import UpdateSmtpTemplateSender # noqa: E501 -from sib_api_v3_sdk.rest import ApiException - - -class TestUpdateSmtpTemplateSender(unittest.TestCase): - """UpdateSmtpTemplateSender unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUpdateSmtpTemplateSender(self): - """Test UpdateSmtpTemplateSender""" - # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.update_smtp_template_sender.UpdateSmtpTemplateSender() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_webhook.py b/test/test_update_webhook.py index 850dcf8..ff3e197 100644 --- a/test/test_update_webhook.py +++ b/test/test_update_webhook.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest diff --git a/test/test_webhooks_api.py b/test/test_webhooks_api.py index c50b243..298cf4a 100644 --- a/test/test_webhooks_api.py +++ b/test/test_webhooks_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import unittest